frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 1, 2023 117 power supply coal consumption prediction model based on long and short-term memory neural network mengjie liu*, chenggang zhen school of control and computer engineering, north china electric power university, baoding 071003, china * corresponding author: mengjie liu abstract: as a measure of the overall economic performance of thermal power plants and an important component of the variable cost of power generation, the prediction of coal consumption of power supply is of great significance for the bidding decision of power generation companies. in this paper, we propose an improved long and short-term memory (lstm) model for calculating the coal consumption of thermal power units, using a large amount of data stored in the plant monitoring information system (sis). firstly, the data are pre-processed using the threshold determination method to filter out the data of stable operating conditions. secondly, the maximum correlation minimum redundancy (mrmr) algorithm is used to determine the optimal set of special features. the results show that the prediction effect of the improved lstm-based power supply coal consumption calculation model proposed in this paper is better than other models, and the calculation accuracy is higher, which is suitable for power supply coal consumption calculation. keywords: power supply coal consumption; mrmr; lstm. 1. introduction at present, the real-time calculation of power supply coal consumption mainly adopts data mining method. based on the support vector machine technology, the literature [1] analyzed the sensitivity coefficients of the operating parameters on the coal consumption under different load conditions and provided guidance for the optimal operation adjustment of the unit. in the literature [2], the bp algorithm was used to establish the prediction model of coal consumption with strong dynamic response performance, but the coal consumption characteristics under different load conditions were not further studied. in the literature [3], the energy efficiency indexes that have a major impact on the coal consumption of power supply were selected by using the gray correlation analysis method and combined with the generalized regression neural network to predict the coal consumption of power supply. in the literature [4], a discrete model between load and coal consumption rate was established by using fuzzy clustering, rough set theory and other data mining methods to predict the current coal consumption characteristics of the unit and achieve the optimal load allocation of the unit in real time. in the literature [5], the mrmr algorithm was used to filter the optimal subset of features by ranking the importance of the initial input variables, which improved the prediction accuracy of the model. in the literature [6], a black box model was established based on the long short-term memory (lstm) neural network, and the comparative validation showed that the lstm model outperformed the svr and bp models in all evaluation indexes. in this paper, a 600mw domestic supercritical coal-fired unit is used as the research object, the stable working condition data is screened by the threshold determination method, the optimal set of special features is determined by the mrmr algorithm, and finally the power supply coal consumption prediction model is established based on lstm. the application of the algorithm model was carried out with an ultra-supercritical million wet-cooled unit as the research object. 2. methodology 2.1. screening of steady state data when the unit is in variable operating conditions, fluctuations in operating parameters occur. therefore, the collected data need to be pre-processed, i.e., stability judgment, and the data of non-stable operating conditions need to be excluded[7]. the determination of the stable operating conditions of the unit needs to be based on the important operating parameters that characterize the operating status of the unit. if the unit load, feedwater flow, reheat steam temperature, exhaust smoke temperature, and other parameters are all tested for steady state, sufficient stable data will not be available for model training. therefore, in this paper, unit load, main steam pressure and reheat steam temperature are selected for steady-state condition determination. the data for the steady-state condition were screened by the threshold method. within 60 min, the difference between the maximum and minimum values of the unit load, main steam pressure and reheat steam temperature is less than a certain threshold, which is considered to be in steady-state conditions. otherwise, the sampling slide window is pushed back clockwise for 5 min, and the steady state is re-judged until the sample meets the requirements. 2.2. mrmr-based key feature extraction in probability theory and information theory, the concept of mutual information is introduced to measure the degree of interdependence between two random variables, reflecting both linear and nonlinear correlations between the two sets of variables. for 2 sets of discrete random variables x and y , the mutual information between them is ( ; )i x y . the formula is as follows : 2 ( , ) ( ; ) ( , )log ( ) ( )x x y y p x y i x y p x y p x p y  = (1) 118 the mrmr calculates the correlation between each input variable and the output variable based on the mutual information theory, while taking into account the correlation between each input variable. the mrmr algorithm can find the subset of features from the initial input variables that have the highest correlation with the output variables and the lowest correlation between the input variables. ( ) ( )2 , 1 1 max ; ; i n i j n i i j x s x x s i x z i x x n n    −        (2) an incremental search is used to sequentially select the optimal feature subset, which satisfies the following equation. ( ) ( ) 1 1 max ; ; 1 j m i i j x s i x z i x x m −   −   −  ∣ (3) the mrmr algorithm was used to rank the degree of influence of all features and added to the feature subset in order. to eliminate the difference in magnitude between variables, the sample data need to be normalized by the formula: min max min i i x x m x x − = − (4) the final feature subset is best predicted by the prediction model when unit load, exhaust oxygen, condenser vacuum, total coal feed, ambient temperature, and low-level heat of incoming coal are taken. 2.3. lstm-based coal consumption prediction for power supply long-term memory in learning is difficult to be preserved due to the gradient explosion or gradient disappearance problem of recurrent neural network (rnn).in 1997, hochreiter et al. first proposed long-term and short-term memory network, lstm)[8]. lstm is developed on the basis of rnn recurrent neural network, which is a gated recurrent neural network.the internal structure of lstm is shown in figure 1.the key of lstm is the memory cells, which have states throughout the network with only a small amount of information interaction, making the information stable during the long-term propagation.lstm is implemented through input gates, forgetting gates and output gates to achieve protection and control of gradient information. where the forgetting gate determines which information is discarded or retained from the cell state; the input gate updates the cell state; and the output gate determines the final output result. figure 1. the structure of lstm network the equation for calculating each part of the neuron at time t is shown below. ( )1t xf t hf t ff w x w h b −= + + (5) ( )1t xi t hi t ii w x w h b −= + + (6) ( )1 1 tanh * * t xc t hc t c t t t t t c w x w h b c f c i c  −  −  = + +  = + (7) ( )1t xo t ho t oo w x w h b −= + + (8) ( )*tanht t th o c= (9) 3. results and discussion figure 2 shows the comparison of the prediction effect of lstm with error back propagation (bp) and support vector machines (svm). the structure of lstm in this paper is: 3layer structure, optimizer is adam, loss function is mse, number of nodes in hidden layer is 20, learning rate is 0.001. 100 iterations. compared with bp and svm, lstm has better prediction results. figure 2. prediction effect of three models table 1 shows the comparison of the prediction accuracy of the two networks. table 1. comparison of prediction accuracy models mae rmse mape% lstm 7.619 10.552 2.321 bp 8.274 11.520 2.539 svm 8.505 11.919 2.610 the calculated value of lstm model of coal supply consumption of the unit is in good agreement with the actual value. the low load operation of the unit is unstable and the parameters fluctuate greatly, resulting in a relatively high error in the calculation of power supply coal consumption. the experimental results show that the prediction model used in this paper can achieve the calculation of power supply coal consumption in thermal power plants better. 4. conclusion lstm is an efficient deep learning model that can handle large amounts of data efficiently. it is proven to be more accurate and applicable by comparing with other prediction methods. for the selection of the input parameters of lstm, a maximum small-off minimum redundancy method is used to select the influences with high relevance to form the optimal set of special features. the prediction error is less than 3%, and the accuracy of the predicted coal consumption of thermal power units is high. references [1] liu b.h., fu z.g., wang p.k., et al (2018). research on the application of big data mining data technology in the analysis of energy consumption of coal-fired power plant units. proceedings of the csee, vol.12, no.38, p.3578-3587. 119 [2] du g., liao l, zhang d.l., yang k (2011). online simulation of coal consumption in thermal power plants based on bp neural network. computer simulation, vol.4, no.28, p.313-344. [3] xu j.,gu y.j.,wang z.,li q.q.,yang n (2017). research on energy efficiency characteristic indexes of coal power units and their benchmark values based on data mining. proceedings of the csee, vol.7, no.37, p. 2009-2016. [4] zeng d.l., yang t.t., cheng x, et al (2010). application of data mining methods in real-time plant-level load optimization allocation. proceedings of the csee, vol.11, no.30, p. 109-114. [5] jin x.z.,liu y.,zhao w.j.,yu j (2022). prediction of so_2 mass concentration at the outlet of thermal power plants based on mrmr and ma-relm. journal of chinese society of power engineering, vol.7, no.42, p.664-676. [6] zheng t.x., he j., zhang l.b (2020). lstm neural networkbased combustion timing estimation for hybrid fuel hcci engines under complex operating conditions. chinese journal of scientific instrument, vol.10, no.41, p.100-110. [7] opri i, victor-eduard c , norior m , et al (2020). parametric optimization of the thermodynamic cycle design for supercritical steam power plants. energy conversion and management, no.208, p. 112587. [8] liu y, li q, duan x, zhang y, yang z, che d (2018). thermodynamic analysis of a modified system for a 1000 mw single reheat ultra-supercritical thermal power plant. energy, no.145, p. 25–37.r frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 50 research on character recognition technology based on deep learning daodong xiang wenzhou polytechnic, wenzhou, 325035, china abstract: in the security field, it is necessary to extract the information of each camera in real time. however, due to various reasons, each camera may have wrong shooting time, location and other information during the use process. if it cannot be found in time, it will bring great hidden danger to the security. this research based on crnn depth learning algorithm to detect and recognize the text information on these pictures, and the results can effectively improve the accuracy of recognition. keywords: deep learning; character recognition technology; complex background. 1. introduction ocr technology has a wide range of application scenarios. in many scenarios, there are requirements for text detection or character recognition, and there are more and more application scenarios for character recognition in natural scenarios. due to the diversity, complexity and many interference factors of text in natural scenes, it is still difficult to accurately detect and recognize text, which is also a current research hotspot. in the field of security, it is necessary to extract the information of each camera in real time. however, due to various reasons, the camera may have wrong shooting time, location and other information during the use process. if it cannot be found in time, it will bring great hidden dangers to the security. traditional ocr still stays on image processing and artificial feature extraction methods. in recent years, with the rapid development of image processing technology, especially the emergence of deep learning and convolutional neural networks, more and more traditional methods have been replaced by methods based on deep learning. this paper uses crnn depth learning algorithm to detect and recognize characters on complex background images in specific application scenarios to improve character recognition rate. 2. text features in complex background (1) diversity of texts different from text with regular font and neat arrangement in document images, text in complex backgrounds may have completely different fonts, colors, proportions and directions even in the same scene. (2) complexity of the background in natural scenes, the background in images and videos can be very complex. elements such as logos and tags are actually indistinguishable from real text, so it is easy to cause confusion and errors. (3) many interferences factor various interference factors, such as noise, blurring, distortion, low resolution, uneven illumination and partial occlusion, may lead to the failure of text detection and recognition. 3. deep learning method ocr identification process: ocr recognition preprocessing: graying (if it is a color image), noise reduction, binarization, character segmentation and normalization. after binarization, there are only two colors left in the image, namely black and white. one is the image background, and the other is the text to be recognized; noise reduction is very important at this stage, and the quality of noise reduction algorithm has a great impact on feature extraction. character segmentation is to divide the characters in the image into single characters one character at a time. if the text line is slanted, it is often necessary to correct the slant. normalization is to normalize the text image of a single medium to the same ruler. (2) feature extraction and dimension reduction: features are the key information used to identify characters, and each different character can be distinguished from other characters through features. for numbers and english letters, this feature extraction is relatively easy, because there are only 10 numbers and 52 english letters, all of which are small character sets. for chinese characters, feature extraction is difficult, because first of all, chinese characters are large character sets. in the national standard, there are 3755 first level chinese characters that are most commonly used; the second chinese character has a complex structure and many similar characters. after determining which feature to use, depending on the situation, it is also possible to reduce the dimension of the feature. this situation is that if the dimension of the feature is too high, the efficiency of the classifier will be greatly affected. in order to improve the recognition rate, it is often necessary to reduce the dimension. this process is also very important. it is necessary to reduce the dimension and make the feature vector after reducing the dimension retain enough information. (3) classifier design, training and actual recognition: the classifier is used for recognition, that is, for the second step, extract features from a text image to the classifier, and the classifier will classify it to tell you which text this feature should be recognized. (4) ocr recognition post-processing: post-processing is used to optimize the classification results. first, sometimes the classification of the classifier is not completely correct. for example, for the recognition of chinese characters, it is easy to recognize a character as a similar character because of 51 the existence of similar characters in chinese characters. this problem can be solved in post-processing, for example, the language model is used for correction. if the classifier identifies "where" as "where to store", it will find that "where to store" is wrong through the language model, and then correct it. second, ocr recognizes images that often have a large number of characters, and these characters are stored in complex situations such as typesetting and font size. in postprocessing, you can try to format the recognition results, such as arranging them according to the typesetting in the image. the system flow of traditional ocr technology is basically shown in the figure 1. figure 1. traditional ocr technology with the continuous development of deep learning technology, the traditional ocr technology framework is ignored. in the field of computer vision, convolutional neural networks are used to do research on ocr technology, and the recognition rate is very high, the effect is very good. you don't need to spend a lot of time designing character features. in ocr system based on deep learning, neural network model is used as feature extractor and classifier. the input is character image, and the output is recognition result, so the whole workflow becomes very simple. the typical neural network structure is shown in figure 2. figure 2. typical neural network structure neural network (nns) is an algorithm mathematical model that imitates the behavior characteristics of animal neural networks and conducts distributed parallel information processing. this kind of network relies on the complexity of the system, and achieves the purpose of processing information by adjusting the interconnection between a large number of internal nodes. the purpose of neural network design is to try to write a general network model, and then train against the data, so as to continuously improve the parameters in the model, and finally achieve the output results meet the expectations. common neural networks are as follows: feedforward neural network a unidirectional multilayer structure is adopted. each layer contains several neurons. the neurons in the same layer are not connected with each other, and the information between layers is transmitted only in one direction. the first layer is called the input layer. the last layer is the output layer. the middle layer is the hidden layer, referred to as the hidden layer. the hidden layer can be one layer. it can also be multi-layer. convolution neural network: the convolutional neural network is composed of one or more convolution layers and the top full connection layer (corresponding to the classical neural network), as well as the associated weight and pooling layer. this structure enables the convolutional neural network to use the two-dimensional structure of input data. compared with other deep learning structures, convolutional neural network can give better results in image and speech recognition. cyclic neural network rnn is a neural network used to process sequence data. it introduces structural units with "memory" property. besides this input, the calculation also includes the last calculation result. 4. crnn model structure crnn is a convolutional recurrent neural network structure, which is used to solve image-based sequence recognition problems, especially scene character recognition problems. crnn network realizes indefinite length verification, combines cnn and rnn network structures, uses bidirectional lstm cyclic network for timing training, and finally introduces ctc loss function to realize end-to-end indefinite length sequence recognition the network structure consists of three parts, from bottom to top as figure 3. (1) convolutional layer. the function is to extract feature sequences from input images. (2) cycle layer. the function is to predict the label (real value) distribution of the feature sequence obtained from the convolution layer. (3) transcription layer. the function is to convert the label distribution obtained from the loop layer into the final recognition result through de integration and other operations. figure 3. crnn network structure from: https://zhuanlan.zhihu.com/p/43534801 5. experimental process 1)collection of data sets the pictures in this study are from real-time photos taken by cameras installed at different points. through sorting out the collected data, we found that the most prone to errors were the irregular arrangement of characters and the lack of characters. 2)dataset extension preprocess the real background texture material. for image data, expand the training data by rotating, converting, and distorting the image, and train the model on the extended data set. 3)model construction build a basic cnn network. in the training process, first y 1 52 use the standard cnn network to extract the features of the text image, then use blstm to fuse the feature vectors to extract the context features of the character sequence, then obtain the probability distribution of each column of features, and finally predict the text sequence through the transcription layer (ctc). 4)model training the specific model training process is as follows: a) zoom the input image to 32 * w * 3 b) use cnn to extract the image convolution feature, and the size is 1 * w/4 * 512. c) extract sequence features from lstm through the above input to obtain w/4 * n posterior probability matrix d) utilize ctc loss to realize one-to-one correspondence between labels and outputs for training. 6. conclusion limited by traditional computer vision algorithms, traditional ocr only performs well on regular printed documents, such as high-quality scanned documents. because traditional ocr often relies on complex process optimization and manual design to adapt to scenarios, the scenarios have poor universality, and in different business scenarios, a lot of manual fine-tuning is often required to adapt to differences; under complex scenes, the performance and accuracy of character recognition are not ideal. text recognition for images in natural scenes is much more difficult than text recognition in conventional scanned document images, because the form of text presentation in natural scenes is very complex and irregular. crnn model is trained to solve the problem that some chinese cannot be recognized, reduce the recognition error rate of some characters caused by background interference. references [1] zhang tingting. based on tesseract_ research on ocr character recognition system [d]. nanjing: nanjing university of posts and telecommunications, 2020. [2] wang yiwen. research on the application of deep convolution neural network in ocr [d]. chengdu: university of electronic science and technology of china, 2018. [3] wang yang, li zhendong, yang guanci. research on the application of ocr character recognition based on deep learning in the banking industry [j]. computer application research, 2020. [4] zhao shanshan. design and implementation of image form data recognition system based on ocr technology[d]. nanjing: southeast university, 2020. [5] zeng yue, ma mingdong. research on character recognition based on tesseract_ocr [j]. computer technology and development, 2021. [6] xiao jian. learning based ocr character recognition [j]. the computer age, 2018. [7] han ping, liu zexu. an improved method of x-ray baggage image enhancement based on gray level grouping [j]. journal of civil aviation university of china, 2011, 29 (4): 2326. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 81 the benefits and challenges of chatgpt: an overview jianyang deng1, *, yijia lin2 1 bloco china sociedade unipessoal limitada, macao, china 2 faculty of finance, city university of macau, macao, china * corresponding author: jianyang deng (email: ryan.y.deng@gmail.com) abstract: this paper provides an overview of chatgpt, a natural language processing (nlp) system developed by open ai. it discusses the features of chatgpt, its benefits, and its challenges. the paper also provides an analysis of the potential applications of chatgpt and its limitations. the paper concludes that chatgpt is a powerful nlp system that can generate human-like conversations, but it has some challenges that must be addressed. keywords: artificial intelligence; natural language processing; chatgpt; gpt-3; machine learning; deep learning. 1. introduction artificial intelligence (ai) is a rapidly growing field of computer science that focuses on creating intelligent machines that can think and act like humans. ai has been used in a variety of applications, from medical diagnosis to autonomous vehicles. moreover, ai can even be used with another frontier technology, internet of things (iot) [1], and compose a new compound technology, aiot (artificial intelligence of things). one of the most promising ai technologies is chatgpt, a natural language processing (nlp) system that can generate human-like conversations. this paper will provide an overview of chatgpt, its features, benefits, and challenges. 2. definition of artificial intelligence 2.1. what is artificial intelligence? ai is a branch of computer science that focuses on creating intelligent machines that can think and act like humans. ai systems are designed to learn from their environment and make decisions based on the data they receive. ai can be used to solve complex problems, such as medical diagnosis, autonomous vehicles, and natural language processing. moreover, it can also help to reduce the initial and operational costs of information systems, electrical systems [2], and customer service [3]. 2.2. artificial intelligence development history the history of ai has been around for centuries, since the ancient greeks first speculated about the potential of creating intelligent machines. the modern era of ai began in 1956, when a group of scientists and mathematicians gathered at dartmouth college to discuss the possibility of creating computers that could think like humans. since then, ai has continued to rapidly advance, with breakthroughs in machine learning, natural language processing, and robotics. today, ai is being used in many aspects of our lives, from healthcare and finance to retail and transportation. ai is changing how we interact with technology and how we live our lives. 2.3. types of artificial intelligence there are several types of ai, including machine learning, deep learning, and natural language processing. machine learning is a type of ai that uses algorithms to learn from data and make predictions. deep learning is a type of machine learning that uses neural networks [4] to process data. natural language processing (nlp) is a type of ai that uses algorithms to understand and generate human-like conversations. 2.3.1. machine learning over the past 10 years, machine learning has been particularly successful as a form of ai. unlike traditional ai, machine learning does not require experts to provide it with knowledge. it instead uses a given task and a large data set to detect patterns and learn how to best achieve the desired outcome. this data-driven approach is often referred to as "data-driven predictions" and is also known as knowledge discovery from data. additionally, its success is attributed to the increase of available data which can be used to train the machines. nowadays, machine learning is so widespread that it is often mistaken for ai in general. related terms include data mining, big data and profiling. data mining is the process of discovering patterns from large data sets [5], while big data refers to analyzing those large data sets. profiling, on the other hand, uses automated data processing to create profiles used to make decisions about people. 2.3.2. natural language processing neural networks are a type of machine learning system that are designed to mimic the structure of the human brain. they are made up of a series of interconnected units called nodes, which are organized into layers. the input layer receives data, which is then processed by the hidden layers before being outputted at the output layer. each connection between nodes has a weight value, which determines the strength of the connection. the inputs are multiplied by the weights and summed at each node, and the resulting value is transformed by an activation function, which is often a sigmoid function, tanh, or relu. these functions are used because they have a mathematically convenient derivative, making it easier to compute the error delta with respect to individual weights. 3. overview of chatgpt 3.1. what is chatgpt? chatgpt is a natural language processing (nlp) system 82 developed by openai. it is designed to generate human-like conversations by understanding the context of a conversation and generating appropriate responses. chatgpt is based on a deep learning model called gpt-3, which is trained on a large dataset of conversations. 3.2. features of chatgpt chatgpt has several features that make it a powerful nlp system. it is able to understand the context of a conversation and generate appropriate responses. it can also generate responses in multiple languages, including english, spanish, french, and german. additionally, chatgpt is able to generate responses in different styles, such as formal, informal, and humorous. 4. benefits of chatgpt 4.1. increased efficiency chatgpt can help increase efficiency by automating conversations. this can save time and resources, as it eliminates the need for manual conversations. additionally, chatgpt can generate responses quickly, allowing for faster conversations. with chatgpt, businesses can quickly and accurately answer customer queries, freeing up resources and providing a more personalized customer experience. unlike traditional ai solutions, chatgpt is powered by a large-scale pre-trained language model, which enables it to quickly and accurately understand customer questions and generate natural-sounding responses. chatgpt's advanced nlp technology is unparalleled in its ability to provide businesses with a comprehensive, personalized customer experience. this technology has helped numerous businesses improve their customer service and increase their efficiency, allowing them to focus on more important tasks and further grow their business. 4.2. improved accuracy chatgpt can generate more accurate responses than manual conversations. this is because it is trained on a large dataset of conversations, allowing it to understand the context of a conversation and generate appropriate responses. the chatgpt improved accuracy (cga) model is a powerful natural language processing (nlp) system that utilizes a deep learning-based artificial intelligence (ai) architecture to produce accurate and meaningful conversations. by utilizing a pre-trained model from openai's gpt-3, cga is able to generate realistic and engaging conversations based on given input. cga's accuracy and generative capabilities are further enhanced by its ability to learn from its own mistakes, allowing it to adapt to new contexts and produce more accurate results. cga has been tested in many domains, including chatbot conversations, customer service conversations, and automated customer support. recent research has shown that cga has achieved an impressive level of accuracy and generative capabilities, outperforming other popular nlp models in terms of accuracy, coherence, and readability. 4.3. cost savings chatgpt is a novel language generation model developed by openai that has the potential to significantly reduce costs for businesses that rely on customer service chatbots. one of the key benefits of chatgpt is its ability to generate humanlike responses in real-time, which can help to reduce the need for costly human customer service representatives. additionally, chatgpt is able to learn and improve over time, further reducing the need for expensive manual updates to chatbot responses. these features make chatgpt an attractive solution for businesses looking to improve the efficiency and effectiveness of their customer service operations. 5. challenges of chatgpt 5.1. security concerns as with any advanced machine learning system, chatgpt raises potential security concerns. one major concern is the risk of adversarial attacks, in which an attacker attempts to manipulate the model by providing malicious inputs that cause it to produce incorrect or undesirable outputs. another concern is the potential for chatgpt to be used to spread misinformation or propaganda, particularly if it is integrated into platforms that have a wide reach such as social media. additionally, chatgpt's ability to generate human-like text raises the risk of impersonation and identity theft. it is important for businesses and organizations to carefully consider these risks and implement appropriate measures to mitigate them when using chatgpt or similar technologies. 5.2. limited capabilities although chatgpt is a powerful language generation model, it does have certain limitations. one major limitation is that it is only able to generate text based on the input provided to it, and it does not have access to external information or the ability to browse the internet. this means that it is unable to provide accurate or up-to-date information on a wide range of topics, and it may not be able to generate responses to complex or unconventional questions. another limitation is that chatgpt is trained on a large dataset of human language, and as a result it may produce responses that contain biased or offensive language. it is important for users of chatgpt to be aware of these limitations and to use the model appropriately. 6. conclusion in conclusion, chatgpt is a powerful nlp system that can generate human-like conversations. it has several benefits, such as increased efficiency, improved accuracy, and cost savings. however, it also has some challenges, such as security concerns and limited capabilities. despite these challenges, chatgpt is a promising ai technology that can be used to automate conversations and generate more accurate responses. acknowledgment i would like to express my sincere gratitude to my family for their patience and support throughout the writing of this paper. moreover, i would like to thank my friends and colleagues for their valuable feedback and suggestions. references [1] j. deng, c. -s. lam, m. -c. wong, l. wang, s. -w. sin and r. paulo martins, "a power quality indexes measurement system platform with remote alarm notification," iecon 2018 44th annual conference of the ieee industrial electronics society, 2018, pp. 3461-3465 83 [2] l. wang, y. pang, c. -s. lam, j. -y. deng and m. -c. wong, "design and analysis of single-phase adaptive passive part coupling hybrid active power filter (hapf)," iecon 2018 44th annual conference of the ieee industrial electronics society, 2018, pp. 3615-3620 [3] daqar, m. a. a., & smoudy, a. k. (2019). the role of artificial intelligence on enhancing customer experience. international review of management and marketing, 9(4), 22. [4] j. deng, c. -s. lam, m. -c. wong, s. -w. sin and r. paulo martins "instantaneous power quality indices detection under frequency deviated environment." iet science, measurement & technology 13.8 (2019), pp. 1111-1121 [5] han, pei, and kamber 2011, p. 33. see also frawley et al. 1992, who describe data mining as "the nontrivial extraction of implicit, previously unknown, and potentially useful information from data." frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 56 research on intelligent detection system for predicting membrane pollution mengyu zhang *, chunqing li college of computer and software, tiangong university, tianjin 300387, china * corresponding author: mengyu zhang (email: 1635779932@qq.com) abstract: membrane bioreactor (mbr) is a new sewage treatment system that organically combines membrane separation technology and biological treatment technology. the key problem restricting the development of mbr is membrane pollution. this paper summarizes the main causes of membrane pollution and common treatment methods, and puts forward a new method of membrane pollution prevention intelligent detection system. the intelligent detection system can be divided into four modules: data acquisition module, real-time data transmission module, online prediction module and real-time display module, which are used to monitor the actual situation of sewage treatment, thus reducing membrane pollution and improving. keywords: mbr; membrane pollution; intelligent detection system; partial least squares method. 1. introduction mbr (membrane bio-reactor) is a new type of wastewater treatment system that organically combines membrane separation technology and biological treatment technology [1-3]. a key factor that restricts the development of mbr is membrane pollution. membrane pollution directly leads to the decline of membrane flux (referring to the amount of fluid passing through unit membrane area in unit time), which greatly shortens the service time of membrane, resulting in the decline of mbr performance and the increase of operating power. 2. prevention and control methods of membrane pollution 2.1. membrane pollution influence parameters membrane fouling is a key factor affecting mbr efficiency, and membrane flux is an important indicator of membrane fouling. the decline of membrane flux is affected by many factors, including sludge particle size, sludge concentration, soluble microorganisms, suspended solids in mixture and water pressure. the main influencing parameters of membrane flux are as follows: (1) sludge concentration one of the most critical factors for the decline of membrane flux is the sludge concentration. the membrane pollution is negatively correlated with the sludge concentration index. when the sludge concentration is low, the adsorption capacity of sludge to organic matters decreases, the deposition of organic matters on the membrane surface increases, and the membrane pollution increases [4]. (2) sludge particle size the particle size of sludge is also an important factor that determines the membrane pollution, which is negatively correlated with the particle size of sludge [5]. when the particle size of sludge is small, it is easy to immerse in the membrane surface. after many times of deposition, the resistance of filter cake layer will increase and the membrane pollution will increase. (3) soluble microorganism soluble microorganisms have a negative correlation with membrane pollution. compared with extracellular polymers, soluble microorganisms are easier to accumulate in mbr. with the increase of soluble microbial concentration, membrane pollution is more serious. (4) sludge viscosity sludge viscosity is positively correlated with membrane fouling. tao [6] and others believe that the increase of sludge eps production will increase the viscosity of activated sludge, resulting in serious membrane pollution. (5) zeta potential of sludge zeta potential of sludge is an important parameter to characterize sludge electrification performance, and membrane fouling is negatively correlated with zeta potential of sludge [7]. (6) hydrophilicity and hydrophobicity between membranes the hydrophilicity and hydrophobicity between membranes is an important factor affecting membrane fouling, which is negatively correlated with the hydrophilicity and hydrophobicity between membranes. 2.2. common control methods the key factor causing membrane pollution is membrane flux, so the prevention and control of membrane pollution are mostly carried out around solving the problem of membrane flux. among them, chemical cleaning and physical cleaning are the most widely used. physical cleaning includes online air cleaning and online backwash. this is a relatively simple cleaning method [8,9]. the existing equipment blower and backwash pump are used for direct cleaning. if the physical cleaning effect is not good, chemical cleaning should be used. chemical cleaning is to add chemicals for cleaning, acidic agents (hydrochloric acid, sulfuric acid, citric acid, etc.) for organic pollution and alkaline agents (sodium hypochlorite, caustic soda, etc.) for inorganic pollution are better than physical cleaning [10]. 3. intelligent detection system for me-mbrane pollution 3.1. intelligent detection system settings the intelligent detection system is used for online 57 monitoring of membrane permeability in a real sewage treatment plant using mbr technology [11]. the mbr sewage treatment process includes anaerobic tank, anoxic tank and aerobic tank. first of all, pre-treatment is carried out to screen and precipitate the pollutants in mbr. the biological reaction tank includes anaerobic tank, anoxic tank and aerobic tank. on the basis of the mbr system, the mbr system is equipped with a collection sensor and mixer for process variables to ensure the full mixing of the mixture full mixing of the mixture. acknowledgment. the data of water treatment can be obtained by connecting the intelligent detection system with sensors. the intelligent detection system consists of four parts: data acquisition module, real-time data transmission module, online prediction module and real-time display module. the data acquisition module is used to obtain the value of process variables from the sensor. the real-time data transmission module is used to transfer data from the sensor to the local programmable logic controller (plc). due to its small size and convenient installation, the protocol converter is used as the communication channel of the data transmission module. the online prediction module aims to predict the pollution through the membrane flux based on soft computing [12-15]. the real-time display module has an extremely effective role, allowing the system administrator to monitor the membrane pollution status online and take appropriate actions. 3.2. plsr parameter selection plsr (partial least squares regression) is a linear regression modeling method, which can make a richer and more detailed interpretation of the model [16] this paper selects plsr method to screen variables, with the purpose of selecting the factors that have the strongest impact on the output parameters and screening out the factors that have the smallest impact on the output parameters, so as to reduce the dimension of the data set, reduce the calculation amount and improve the accuracy of membrane pollution detection[1618]. (1) preprocess the analysis variables to obtain the standardized order of magnitude. ui=xwi , vi = yci (1) x=∑ ui n i=1 pi t+e,y=∑ vi n i=1 qi t+g (2) in formula (3-1), and are the eigenvectors of the largest eigenvalues of the symmetric matrices x and y, and the first pair of principal components of x and y are calculated according to the eigenvectors of the largest eigenvalues. regression modeling of principal components of x and y according to formula (3-2) (2) the linear regression equation is constructed after the internal relationship is established through plsr. the linear regression equation between and is shown in equations (3-3) and (3-4), where is the regression coefficient between and. u^i = uiti (3) bi = ui tbi ti tti (4) (3) the predicted fitting value of the new sample is obtained, and the number of extracted components is determined by the cross-degree criterion. y^j ∝ = xjb ∝ + c∝ (5) qh 2 = ∑ (yj − y^i h)2h j=1 ∑ (yj − y^i h−1)2h j=1 (6) the prediction fitting value formula of the new sample j (j=1,2...... m) based on all samples is shown in formula (3-5), where is the process vector of sample j, is the regression coefficient variable, and is the offset. the final number of extracted components is determined by the cross-validity criterion according to formula (3-6), where h is the extracted fraction. when<0.075, the model meets the accuracy requirements, the algorithm will be stopped. 4. conclusion membrane bioreactor has been widely used to treat wastewater from wastewater treatment plants [19]. in the application of sewage treatment, rapid and accurate membrane flux prediction can monitor the situation of sewage treatment in real time, monitor the change of mbr in advance, and timely replace or clean the membrane when the membrane flux decreases, which can better predict the performance of mbr sewage treatment [20]. the intelligent detection system used in this paper can monitor the conditions of various parameters in mbr in real time, and can predict the situation of membrane pollution in advance. in addition, the system is cheap, with light calculation burden, and can be widely used acknowledgment the research was supported by the national natural science foundation of china (51378358) and the national natural science foundation of china (50808130). references [1] ming, feng, tay, et al. the feasibility of nanofiltration membrane bioreactor (nf-mbr)+ reverse osmosis (ro) process for water reclamation: comparison with ultrafiltration membrane bioreactor (uf-mbr)+ro process[j]. water research a journal of the international water association, 2018. [2] jiang z , gao h , wu l , et al. purification and recycling of municipal wastewater based on mbr process[j]. international journal of global energy issues, 2022, 44. [3] palharim p h , lastre-acosta a m , josé carlos mierzwa, et al. influence of low and high dosages of methyl and propyl parabens on membrane bioreactor (mbr) performance[j]. separation science and technology, 2021:1-11. [4] she q , wang r , fane a , et al. membrane fouling in osmotically driven membrane processes: a review[j]. journal of membrane science, 2016, 499:201-233. [5] yifeng j,shengbing h,jianmeng c. improved performance of membrane bioreactor by sludge ozonation for reduction of excess sludge production[j]. journal of donghua university(english edition):171-176. [6] mustafa a a , furkan a m , cicekalan b , et al. primary and a-sludge treatment by anaerobic membrane bioreactors in view of energy-positive wastewater treatment plants[j]. bioresource technology: biomass, bioenergy, biowastes, conversion technologies, biotransformations, production technologies, 2022:351 [7] tao y x , chun-qing l i , hua s u . prediction of mbr membrane pollution based on improved pso and fuzzy rbf neural network[j]. computer engineering & software, 2018. 58 [8] yang m , xie d , ma x , et al. mesophilic condition is more conducive to methane production yield and tylosin removal on tylosin fermentation dreg anaerobic digestion[j]. bioresource technology, 2021(2):125806. [9] mlc a , wn b , nbs c , et al. sludge fractionation as a method to study and predict fouling in mbr systems. 2018. [10] jin l , yu d , dan w . performance of membrane bioreactor (mbr) process treating wastewater containing different content of seawater[j]. environmental engineering & management journal, 2011, 10(7):887-891. [11] grbi l , drueta s , maua g , et al. coastal water quality prediction based on machine learning with feature interpretation and spatio-temporal analysis:, 10.48550/arxiv.2107.03230[p]. 2021. [12] li w , li c , wang t . application of machine learning algorithms in mbr simulation under big data platform[j]. water practice and technology, 2020, 15(4):1238-1247. [13] norouzi h , bazargan j . using the linear muskingum method and the particle swarm optimization (pso) algorithm for calculating the depth of the rivers flood. 2019. [14] li w , li c , wang t . application of machine learning algorithms in mbr simulation under big data platform[j]. water practice and technology, 2020, 15(4):1238-1247. [15] alfredo bermúdez, ulloa s b , jl ferrín, et al. a high order projection method for low mach number flows[j]. 2018. [16] yeo w s , saptoro a , kumar p . development of adaptive soft sensor using locally weighted kernel partial least square model[j]. chemical product & process modeling, 2017, 12. [17] wan s y , saptoro a , kumar p . missing data treatment for locally weighted partial least square‐based modelling: a comparative study[j]. asia‐pacific journal of chemical engineering, 2020(3). [18] sahbeni g . a plsr model to predict soil salinity using sentinel-2 msi data[j]. de gruyter open access, 2021(1). [19] chen f , chen c , chen c , et al. application of plsr in rapid detection of glucose in sheep serum[j]. optik international journal for light and electron optics, 2020, 224(suppl_1):165734. [20] zhao t , lo c t , qian k . a neural-network based ddos detection system using hadoop and hbase[c]// 2015 ieee 17th international conference on high performance computing and communications (hpcc), 2015 ieee 7th international symposium on cyberspace safety and security (css) and 2015 ieee 12th international conf on embedded software and systems (icess). ieee, 2015. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 12 crowd counting based on context-aware and multi scale feature fusion guoli zhang tiangong university, tianjin 300387, china abstract: crowd counting plays an important role in public security. estimating the number of people in an image with congested crowd accurately is a challenging task. the crowd counting method based on fully convolutional network can perform well in crowd image with complex scene. in this paper, to address the counting problems of occlusion,background clutter and perspective effect, we proposed a simple but effective method called context-aware multi scale fusion network(cmf net).the cmf net applied vgg network as backbone to extract coarse features. then, three context-aware multi-scale fusion modules (cmfm) are adopted. each cmfm consist of multi-scale feature extraction module (mem) and context-aware feature extraction module (cem). in addition, we propose adaptively dense connection to promoted information transmission in the counting network. experiments on four datasets demonstrate that our network achieves competitive and effective results. keywords: crowd counting; deep learning; computer vision; attention mechanism; feature fusion. 1. introduction with the development of urbanization, a large number of congested crowd scenes have been appeared in large city. and it hides many safety hazards. in this year,29nd october 2022, over 150 people dead after stampede at halloween event in seoul, south korea. therefore, researching of crowd counting is extremely important in intelligent surveillance, disaster management and social distance monitoring. in figure 1, we shown the crowd scenes with different density. figure 1. crowd scenes with different density level traditional crowd counting method based on object detection [1] is not suitable for highly congested scene. inspired by the success of deep convolutional networks, varieties of crowd counting method based on cnn have been proposed. these networks usually adopt an encoder-decoder structure, and generated the predicted density map. due to perspective effect of different camera viewpoint, the scale of people in the image varies dramatically. and counting in an image also has other problems, such as occlusion, illumination changes, background noises and clutter. to solve these difficulties, mcnn [2] adopt a multi-column cnn network to capture scale-aware features with different receptive fields. cp-cnn [3] designed a context-aware pyramid network to combine the local and global features. csr-net[4] employed a deeper single-column network, it adopted dilated six convolutional layers to further enlarge receptive fields.[5] analyzed the impact of the wrong predictions on background regions in crowd counting. in summary, we analyzed that the context information, enlarging the receptive fields and multi-scale feature extraction are the keys to solve the problems of crowd counting. in this paper, the contributions of our work are as follows: we proposed a single-column and multi-branch structure based on dilated convolutional layers with different rates to extract multi-scale features. it can solve the problem of perspective effect. and we proposed adaptively dense connection to promote the information transmission. we applied attention mechanism to capture context-aware features. this context information can effectively handle the large scenes variations among the crowd images. we introduced a novel crowd counting network (cmf net) by end-to-end structure. extensive experiments on four datasets demonstrate that our network is effective and competitive to handle the problem of perspective effect. 2. proposed method in this section, we firstly described the overall network of our cmf net in figure 2. and then we have to introduce the detailed information about multi-scale feature extraction module (msm), context feature extraction module (cfm) and adaptively dense connection. 2.1. overview crowd counting task is regarded as a density map regression problem from an image. we adopted the first 10 layers of vgg16[6] networks as the backbone of the cmf net because of it can balance feature extraction efficiency and computational complexity. due to avoid overfitting and the number of dataset imagers is not sufficient, we adopted transfer learning on imagenet dataset of classification task to pre-train vgg16 network. the backbone’s output resolution is 1/8 size of original input image. the output feature of image i are generated by: f =𝑣 ℱ (𝐼)𝑣𝑔𝑔 (1) then, we applied context-aware multi-scale fusion 13 modules (cmfm) to capture multi-scale features and context information. subsequently, we enhanced the resolution of the feature map by up sampling with the factor of 2. we repeated this procedure for 3 times and use adaptively dense connections to increase information transmission. finally, two dilated and one kernel size of 1*1 convolutional layer as back end to generate a density map of input image. 2.2. context-aware multi-scale fusion module due to perspective effect, the people scale in one image change dramatically. and the scenes in training set differ from one another. [7] proved that context information is helpful for crowd counting task. therefore, fusing the multi scale features and context information is the main solution of the problem. we proposed context-aware multi-scale fusion module (cmfm), it consist of multi-scale feature extraction module (mem) and context-aware feature extraction module (cem). at last, we fused these features with residual connection, element-wise product and addition. the description of cmfm in figure 3. 2.2.1. multi-scale feature extraction module (mem) inspired by aspp [8], we designed a multi branch pyramid structure with aurous convolution layers to capture multi scale features. each module has four parallel dilated convolutional layers with different dilation rates. the output feature of mem contains multi scale information of crowd image. then, to balance the counting efficiency and the number of computational parameters, we adopted the way of cascade to fuse pyramid features. 2.2.2. context-aware feature extraction module (cem) we utilized attention mechanism to extract the contextaware information. this pixel-wise context information based on attention can highlight the foreground information of people’s head and suppress the noise of background region. making the network pay more attention to the crowd region. the cem consist of channel attention branch and space attention branch. we devided the cbam figure 2. the architecture of our proposed cmf net. the convolution layers are designed as conv (input channels, output channels, kernel size, padding, dilation rate) network [9] to get the two branches. and combined them in parallel way. the attention masks generated by cem produced the multi-scale feature from the mem. at last, we applied residual connection and element-wise addition to fuse context-aware features and original feature map. the procedure can be formulated as follows: 𝑀𝑐(𝐹𝑖𝑛) = 𝜎 (𝑀𝐿𝑃(𝐴𝑣𝑔𝑃𝑜𝑜𝑙(𝐹𝑖𝑛)) + 𝑀𝐿𝑃(𝑀𝑎𝑥𝑃𝑜𝑜𝑙(𝐹𝑖𝑛))) (2) 𝑀𝑠(𝐹𝑖𝑛) = 𝜎(𝑓7×7([𝐴𝑣𝑔𝑃𝑜𝑜𝑙(𝐹𝑖𝑛); 𝑀𝑎𝑥𝑃𝑜𝑜𝑙(𝐹𝑖𝑛)])) (3) fout = mc × fms + ms × fms + fin (4) where 𝑀𝑐(𝐹𝑖𝑛) represents the channel-wise attention weights generated by channel attention branch of cem and 𝑀𝑠(𝐹𝑖𝑛) represents the spatial attention weights. mlp is the abbreviation of multi-layer perceptron. σ denotes sigmoid function. 𝑓7×7 represent the convolutional layer with the kernel size of 7×7.𝐹𝑖𝑛 ,𝐹𝑚𝑠,𝐹𝑜𝑢𝑡denotes the input feature map, multi-scale feature and the output feature map of the whole cmfm respectively. 2.3. adaptively dense connection the decoder of cmf net adopted gradually up sample strategy. thus, common dense connection [10] is not suitable for our network. we designed a refine block to up sample and refine the low-resolution feature map. then, we combined the refine block and dense connection as adaptively dense connection. the detailed description of adaptively dense connection is in figure 4. it is helpful for the back propagation during the training and enhance the information transmission, thereby we can apply deeper network. 2.4. loss function we use euclidean distance loss as the loss function of our network to measure the pixel-wise difference between the predicted density map and the ground truth density map, the description of loss function are as follows: l(xi, θ) = 1 2n ∑ ||f(xi, θ) − di||2 2n i=1 (5) where n represents the number of training images. xi is the input image. θ are the parameters of our network? f(xi, θ) represents the predicted density map and the di represents the ground truth density map. figure 3. the architecture of cmfm. the cam and sam represent the channel attention module (eq.2.) and the spatial attention module (eq.3.). figure 4. this is the description of our adaptively dense connection 3. experiments in this section, firstly we introduced the evaluation metrics. then, we described our implementation details. at last, we compared our network to other functions 3.1. evaluation metrics consistent with the mainstream methods, we adopted mean absolute error (mae) and mean square error (mse) to evaluate the performance of our network, which are defined as: mae = 1 n ∑ |ci pre − ci gt | n i=1 14 and mse = √ 1 𝑁 ∑(𝐶𝑖 𝑝𝑟𝑒 − 𝐶𝑖 𝑔𝑡 )2 𝑁 𝑖=1 where n is the number of images. the c_i^pre represent the predicted number of people in the i-th image. and the c_i^gt is the ground truth number of crowd people. 3.2. implementation details in the training stage of our experiment, we set the learning rate at 0.00001 and adopt adam optimizer. in our approach, the size of input feature is arbitrary. we set the batch size to 1 for the datasets that have arbitrary size images. and we adopted the batch size of 4 for the shanghai tech_ part_ b dataset with fixed size images. for each dataset, we applied 300 epochs training our model. we use pytorch1.7 as deep learning framework to implement our method. nvidia 3090 gpu is the hardware platform of our experiment. 3.3. experimental comparison we test our network on three publicly dataset: shanghaies, ucf-cc-50 and ucf-qnrf. the summarization of datasets as shown in table 1. and the comparison with other experiments are as shown in table 2. and in table 2, denotes there is no experimental data in original paper. among these datasets, we summarized that shanghaies and ucf-qnrf have a medium-level density crowd distribution. ucf-cc-50 dataset has the largest average number of people in the images. shanghaies has a relatively sparse crowd density distribution. table 1 display the comparison among these networks. in summary, our cmf net has a good performance for sparse and medium-level density scenes. 3.4. ablation study in this section, we analyzed the effectiveness of each module of our network. we have ablation study on shanghaies dataset. the experimental comparisons are in table 3. table 1. the datasets summarization datasets resolution train set test set max min avg sha arbitrary 300 182 3,139 33 501 shb 1024*768 400 316 578 9 123 ucf50 arbitrary 50 50 4,543 94 1,279 qnrf arbitrary 1201 334 12,865 49 815 table 2. the datasets summarization method shanghaitech_a shanghaitech_b ucf-cc-50 ucf-qnrf mae mse mae mse mae mse mae mse mcnn 110.2 173.2 26.4 41.3 377.6 509.1 277 426 mscnn 83.8 127.4 17.7 30.2 363.7 468.4 swichcnn 90.4 135.0 21.6 33.4 318.1 439.2 228.0 445.0 csrnet 68.2 115.0 10.6 16.0 266.1 397.5 120.3 208.5 lsc-cnn 66.4 117.0 8.1 12.7 225.6 302.7 120.5 218.2 mdcount 84.2 130.7 11.8 19.15 103.1 158.1 111.3 203 ligmsa 76.6 121.4 10.9 17.5 231.5 339.7 ours 65.2 110.3 8.2 11.9 166.3 285.7 110.7 201.3 table 3. the effects of each modules shanghaitech_a mae mse backbone 71.1 121.4 backbone+cmfm(mem) 70.3 119.0 backbone+cmfm(mem+cem) 69.1 118.7 backbone+cmfm*2 68.2 116.1 backbone+cmfm*3 66.9 114.0 backbone+cmfm*3+adaptively dense connection 65.2 110.3 the results shown the modules we proposed are effective for crowd counting task. 4. conclusion in this paper, we present a crowd counting architecture named cmf net. to solve the problem of perspective effect, we proposed multi-scale feature extraction module and fused context information. we adopted adaptively dense connect to further promote information transmission. the results of extensive experiments shown our cmf net achieves competitive performance in accuracy and robustness. references [1] dollar p, wojek c, schiele b and perona p 2012 pedestrian detection: an evaluation of the state of the art ieee transactions on pattern analysis and machine intelligence 34(4) pp 743–761. [2] zhang y, zhou d, chen s, gao s and ma y 2016 single-image crowd counting via multi-column convolutional neural network. proceedings of the ieee conference on computer vision and pattern recognition pp 589–597. [3] sindagi a and patel m 2017 generating high-quality crowd density maps using contextual pyramid cnns ieee international conference on computer vision (iccv) pp 1879–1888. [4] [4] li y, zhang x and chen d 2018 csrnet: dilated convolutional neural networks for understanding the highly congested scenes proceedings of the ieee conference on computer vision and pattern recognition pp 1091-1100. [5] davide m, bing s, rahul r v, joseph t 2021 understanding the impact of mistakes on background regions in crowd counting proceedings of the ieee/cvf winter conference on applications of computer vision (wacv), 2021, pp. 16501659. [6] karen s and andrew z 2014 very deep convolutional networks for large-scale image recognition computer vision and pattern recognition (cs.cv) arxiv:1409.1556. [7] weizhe l, mathieu s and pascal f 2019 context-aware crowd counting proceedings of the ieee/cvf conference on computer vision and pattern recognition (cvpr) pp 50995108. [8] liang-chieh c, george p, iasonas k, kevin m and alan l y 2017 deeplab: semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs ieee transactions on pattern analysis and machine intelligence, 2017, 40(4): 834-848. 15 [9] sanghyun w, jongchan p, joon-young l and in s k 2018 cbam: convolutional block attention module proceedings of the european conference on computer vision (eccv), pp. 3-19. [10] gao h, zhuang l, laurens van der m and kilian q. w 2017 densely connected convolutional networks proceedings of the ieee conference on computer vision and pattern recognition (cvpr) pp. 4700-4708. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 3, 2022 13 smart home design based on alibaba cloud zhigang lu, jian hu, tao niu, yonggang zuo anhui industry polytechnic, tongling, china. abstract: with the continuous progress of science and technology, the pace of social informatization is also accelerating, people's demand for a safe, comfortable and controllable intelligent home environment is growing. in this paper, we design a iot based on ali cloud platform control system of smart home solutions, choose stm32 microcontroller as the main control unit, ali as a hardware device, a time server and related sensors for home fire alarm, intelligent entrance guard, infrared detection, temperature and humidity detection display, light intensity, and other functions. the esp8266 module is used as the wireless communication module to realize the data communication between hardware and software. a wechat small program is designed as the upper computer of the user terminal to realize the intelligent management of the user terminal for home. users can check the running status of related devices at home at any time in the wechat mini program, such as temperature and humidity, smoke status, and whether someone has invaded. keywords: internet of things; alibaba cloud; wechat applet. 1. introduction with the continuous development of communication technology, iot related technologies and applications have been rapidly developed in the past few years. internet of things (iot) is the interconnection of things and things. it uses computer technology, wireless sensor technology, rfid radio frequency identification technology, etc., based on the internet, to achieve the "communication" between people and things, things and things. the application of internet of things technology in smart home control system aims to connect electrical appliances and living facilities in the home together to achieve video surveillance, intelligent anti-theft, intelligent lighting, intelligent electrical control, intelligent door and window control, intelligent audio-visual system control and other functions .users can achieve remote realtime control of lights, curtains and appliances at home through computers, tablets and smart phones. the system is simple, practical, easy to operate and easy to maintain, and it can monitor the home environment and remotely operate some devices through the human-computer interaction interface, which has certain practical value. 2. overall design of the system the architecture of iot can be divided into perception layer, network layer (transport layer) and application layer . the perception layer is used to sense and collect all kinds of information in the physical world, and uses the communication module to realize the connection between the physical entity and the network. this system uses infrared sensor, temperature sensor, smoke sensor and flame sensor to collect environmental information. in addition, also connected to the buzzer, fans, lights and other electrical equipment, used to simulate remote control. when the data collected by the sensor is greater than the threshold set in the hardware program, the buzzer rings the alarm. the network layer is used to complete the transmission, routing and control of information. it is the intermediary between the sensing layer and the application layer, and is responsible for receiving the data of the sensing layer and transmitting the data to the application layer. in this system, esp8266 module is used as the wireless communication module to send the data collected by hardware to aliyun platform for processing. the application layer is the remote terminal, this design uses the mobile phone wechat small program as the remote terminal to achieve remote control. the application layer is connected through the wifi hotspot to obtain the data information of the perception layer of aliyun server. the app can display the data information collected by the sensor, namely the current temperature, smoke concentration, and whether flame is detected. at the same time, the wechat small program can also realize the remote control of electrical equipment, such as buzzer, fan, lamp, etc., so as to realize the home safety protection management function. the overall block diagram of the system is shown in figure 1. the system is composed of four parts: main controller, sensor module, wireless communication module and cloud server. the user clicks on the small program side, and the web page sends corresponding requests to the cloud server background. the cloud server background combined with the communication background sends instructions to the main controller, which processes the instructions from the server and sends them to the node. the node controls the relay according to the instructions to complete the lighting control. the master controller sends instructions to the sensor node every once in a while, to request sensor data, and uploads it to the server. the mini program side periodically refreshes sensor information. stm32 temperature and humidity detection light intensity detection smoke detection rfid access control detection infrared obstacle detection temperature and humidity display door lock control smoke alarm device temperature and humidity regulation obstacle alarm device mobile phone and computer oled display power signal transmission and reception wifi signal reception and upload figure 1. overall block diagram of the system 14 3. system function realization the system realizes the functions of temperature and humidity detection display and temperature regulation, light intensity detection and temperature regulation, fire alarm, access control switch, wechat small program terminal control and information acquisition. the intelligent terminal mainly realizes three functions: data collection of smart home environment factors, data uploading cloud platform, and response to control instructions of host computer. the system uses the stm32 chip development board, and realizes the data acquisition of temperature and humidity detection and light intensity detection through external sensors. the data is uploaded through the esp8266 wi-fi module, and the master controller sends the switch signal to the relay to realize the opening and closing state of the relay control terminal equipment. 3.1. main controller low power consumption, low design cost and efficient and compact instruction set are important indicators for smart home control system to select the main control core processor. based on the actual situation, this system adopts a 32-bit microcontroller stm32f103c8t6 chip based on arm cortex-m.stm32f103c8t6 is embedded with flash program memory and has a capacity of 64kb.its low power consumption, low voltage, need voltage range 2v~3.6v;its working environment requirements are relatively loose, the working temperature range is -40°c~85°c, the system clock can be up to 72mhz, can be widely used in complex climate region. 3.2. temperature and humidity detection and temperature control function the core of the temperature and humidity detection circuit is the dht11 digital temperature and humidity sensor. dht11 temperature and humidity sensor is composed of two parts: digital acquisition module and temperature and humidity sensor module. due to its stable structure and calibrated digital signal technology, dht11 digital temperature and humidity sensor has high stability. the sensor part includes a humidity sensing element and a temperature measuring device, which is connected with a single chip microcomputer. it has strong anti-interference ability and fast response, so it has a very high cost performance. dht11 uses 4 needle single row packaging, external circuit is simple, convenient connection, and his compact size, low power consumption makes it more suitable for intelligent home music now, does not take up space, long time use will not cause a lot of power consumption. dht11 communication process, the bus is at a high level, the bus issued to wait to receive signal instruction, pull the low level, waiting for dht11 response, when the low level duration is greater than 18us, to meet the length of time dht11 received the signal, dht11 began to receive the host signal, when the host began to receive the signal, after the host sends the start signal, it waits for about 30us and reads the feedback signal from dht11. after the host sends the start signal, it can switch to the input mode, that is, output the high level, and then the bus pulls the high level by the external pull up resistor [5-7]. in the initial stage, the bus is low, dht11 sends a request response signal first, and then the bus will pull the bus up by 80us as a response. at this time, dht11 begins to prepare to send data, and every bit sends response signal in the 50us low level time slot. if the read signal is high, dht11 will not respond. at this time, it is necessary to check whether the circuit is correct. when all the data are sent, dht11 bus will be pulled down by 50us, and then the pull up resistor of the bus will enter the idle state and wait for the next signal. this system collects temperature data and air humidity data by measuring, and outputs digital information to the processor. after collecting the data through the sensor, the temperature and humidity information is displayed on the display screen after signal processing. the system is also equipped with an automatic cooling device. when the temperature is higher than the set value, the electric fan is automatically turned on to cool down, and the fan speed is adjusted with the temperature. the system can monitor the indoor temperature and humidity in real time and start the electric fan to cool down when the temperature is higher than 26 ℃. when the temperature is higher than 26 ℃, the fan has a low wind speed. when the temperature is higher than 28 ℃, the fan speed increases to medium wind speed. when the temperature is higher than 30 ° c, the wind speed is high, and the fan runs at full power and drops temperature. start bus pull up host delay 40us slave sends 80us low level read data data inspection end host pull down delay 18us whether the slave responds to the signal slave sends 80us high level n y figure 2. flow chart of temperature and humidity detection 3.3. flame smoke detection and alarm function the flame smoke detection part is composed of far-infrared flame sensor and mq-2 gas smoke sensor. the far-infrared flame sensor can detect infrared light in the wavelength range of 700 ~ 1 000 nm, and the detection angle is 60°. when the wavelength of infrared light is near 880 nm, the sensitivity is the highest. the far-infrared flame probe converts the intensity change of external infrared light into the current change, which is reflected as the value change in the range of 0 ~ 255 through a/d converter. the stronger the external infrared light, the smaller the value. the weaker the infrared light, the larger the value. send the value to stm32 to alarm 15 according to the set value. the alarm device of the system uses the buzzer to simulate the alarm, the buzzer uses low level trigger mode, through the program can be set the buzzer sound time and frequency, when the detection of flame, gas leakage or other combustible gas, the system automatically alarms (buzzer and alarm light). when encountering open fire or combustible gas, the buzzer will sound and the alarm light will flash, so as to effectively warn the home gas leakage and dangerous fire source, and bring safety protection for home life. start initialization collect smoke value wireless transmission read the numerical abnormal smoke concentration display end information alarm y n figure 3. flow chart of smoke alarm 3.4. light intensity detection this design selects the illumination intensity gy-30 detection module, its chip is bh1750fvi illumination sensor.bh1750fvi is a new 16-bit digital light intensity sensor, which can be applied to monitor the change of light intensity in a large range of places, and the accuracy of light intensity is relatively high, which meets the needs of the system. figure 4-3 shows the gy-30 detection module used in the system. the gy-30 detection module communicates with the master controller using the standard i 2 c bus protocol. firstly, the master controller will send the starting signal. then, it sends 8 bits of address data, the last bit of which is 1, indicating the read command. finally, the reply signal of bh1750fvi is read. after the final data byte is sent, the master controller generates the end signal and the data is transmitted. the data collection steps of bh1750fvi sensor are shown in the figure below start initialization collect illumination value wireless transmission read the numerical value is too large display end turn off the lights and draw the curtains y n figure 4. flow chart of illumination detection 3.5. rfid access control function rfid access control system identifies objects with electronic tags, and the access control system uses rfid readers to identify electronic tags. if the electronic tag matches the set value, it is regarded as a successful match and the door lock is opened. if it cannot be matched correctly, the door lock status remains unchanged. infrared detection automatic door opening function uses infrared obstacle avoidance sensor to detect the arrival of personnel, upload the data to the main controller stm32, control the door switch. infrared obstacle avoidance sensor is mainly composed of infrared transmitter, infrared receiver and potentiometer. according to the reflection characteristics of the object, if there is no obstacle, the infrared radiation will be weakened and disappear with its propagation distance; if there is an obstacle, when the obstacle is encountered, the ray is reflected and received by the infrared receiver, triggering the signal to change. wireless communication module: esp8266-12f is used as the wi-fi communication module. esp8266 is a low power and high integration wi-fi chip produced by lexin company, which supports 802. 11 b /g /n wireless standard, built-in tcp /ip protocol stack. itself can host programs to perform work independently; can also be carried from the machine to the host, execute the instructions of the host, play the role of wi-fi adapter, esp8266 support uart, spi, i2c, gpio and other communication interfaces. 4. small program terminal data display and control function this system uses ali cloud to build mqtt iot cloud server as the system server. through wireless wifi and terminal app, it can send instructions to the stm32 main controller to control household appliances, such as lights, tvs and electronic door locks, etc. it can also obtain the current weather conditions in real time to remind users to collect clothes when it rains. as shown in the figure below. stm32 esp8266 wifi module sens or cont rolle r dis play alibaba cloud ecs wechat applet client device side figure 5. architecture diagram of iot 4.1. wechat applet design wechat applet is a kind of application developed by tencent company without download and installation can be used, it realizes the dream of application within reach, users can open the application by scanning or searching, but also a convenient application development. small program programming using html+css+js such a combination, where wxml is used to describe the structure of the current page, wxss is used to describe the appearance of the page, js through is used to deal with the page and user interaction. 16 figure 6. wechat applet interface 5. conclusion based on the internet of things technology, this paper designs and implements a multi-functional smart home security monitoring system, which integrates the functions of home fire prevention, indoor temperature and humidity detection and regulation, rfid access control and wireless control, and will provide a more comfortable, convenient and safe experience for modern home life. it is believed that with the development of internet of things technology and the advent of 5g era, combined with cloud computing, big data and other technologies, the intelligent home system will be fully realized, and the internet of things technology will also better provide a more comfortable experience for modern home life. acknowledgments this paper is the research result of the hybrid teaching research project (2021jyxm0209) of anhui industry polytechnic on nc machining technology. supported by the provincial quality engineering project "research on hybrid teaching of numerical control processing technology" (2021jyxm0209) of colleges and universities in anhui province, the project leader niu tao gave relevant guidance to the research content of this paper. references [1] belley c, gaboury s, bouchard b, et al. an efficient and inexpensive method for activity recognition within a smart home based on load signatures of appliances [j]. pervasive and mobile computing, 2014, 12(12) : 58-78. [2] xu c y, zheng x, xiong x m. he design and implementation of a low cost and high security smart home system based on wi-fi and ssl technologies [j].journal of physics: conference series, 2017, 806(1) : 12. [3] chen haiming, cui li, xie kaibin. a comparativestudy on architecture and implementation methodologiesof internet of things. chinese journal of computers,2013, 36(1): 169-187. [4] lin tao, ye feng, wang qiang, etc. city lightingcloud platform and application of iot[j]. zhaoming gongcheng xuebao, 2014, 17(5): 53-59. [5] lin tao, ye feng, wang qiang, etc. city lightingcloud platform and application of iot[j]. zhaoming gongcheng xuebao, 2014, 17(5): 53-59. [6] wang yuanzhuo, jin xiaolong, chen xueqi. networkbig data: present and future[j]. chinese journal ofcomputers, 2013, 369(6): 1125-1138. [7] wang teng. design and implementation of the widecolor gamut and intellitgent illuminating controlsystem based on bigbee[d]. qing dao: oceanuniversity of china, 2014. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 35 hybrid attention fusion in dense crowd counting suyu han* college of computer science & technology, qingdao university, qingdao 266071, shandong, china * corresponding author: email: mail.hsy@qq.com. abstract: one of appealing approaches to guiding deep parameter optimization, is attentional supervision, which inspires intelligence in complex networks at a fraction of the cost, but there is still room for improvement. first, the real dense scene with varying scales and uneven density distribution of human heads, the density map cannot be clearly expressed. second, the heavily occluded areas are extremely similar to the complex background, which further aggravates the counting error. therefore, we propose a dual-track attention network that distinguishes between global and local information, which is responsible for the target overlap and background confusion problems, respectively, and finally converges and normalizes with the feature map to transform the multi-channel attention map into a single-channel density map. meanwhile the heterogeneous pyramid design alleviates the distress of scale variation and density dissimilarity. experiments on several official datasets prove the effectiveness of the scheme to enhance key information and overcome confounding factors. keywords: crowd counting; attention fusion; softmax algorithm; density map. 1. introduction dense crowd counting is defined as estimating the number of people in an image or video clip, generally using heads as the counting unit. in the density map estimation strategy, each pixel point represents the probability of this location being the center of the head, thus reducing the counting task to the accumulation of probabilities. however, in real scenarios, a robust counting model requires strong generalization ability to external disturbances such as noisy background, scale variation, mutual occlusion, perspective distortion, etc. traditional counting networks rely on multi-column architectures to extract features at different scales while focusing on valuable visual information based on attention mechanisms. 1.1. multi-scale feature extraction strategy this strategy emphasizes that targets at different scales need to be perceived by perceptual fields of different sizes, which is generally implemented using a multi-column convolutional architecture. mcnn [1] first uses a threecolumn network architecture to extract multi-scale features to accommodate scale variations due to different camera angles. inspired by mcnn [1], switching-cnn [2] retains the multicolumn mode, adds a classifier to select the best branch suitable for the current scale, and then adaptively fuse the multi-scale information. further, csrnet [3] adapts a dilated convolutional layer to increase the receptive field as an alternative to the pooling operations, but it tends to lead to grid effects, further leading to local information loss. sanet [4] sets inception layout in the encoder to extract multi-scale features and adds transposed convolution in the decoder to generate high-resolution density maps. 1.2. attention mechanism guidance strategy attention mechanism is activated by the sigmoid function, which directs the model to focus on regions where the signal response is obvious and suppresses background noise, thus acting as a top-level supervision. asnet [5] considers the density of different regions in an image varies greatly, leading to heterogeneous counting performance, and therefore proposes density attention networks to provide multi-scale attention masks for convolutional extraction units. hanet [6] utilizes progressive embedding of scale-context fusion channel attention with spatial attention, without considering that there are differences in the supervised objects of attention in the local and global cases. ranet [7] emphasizes on attention optimisation, using two modules to handle global attention and local attention separately, and then finally fusing them based on the interdependencies between features, but the dependencies are difficult to determine. recognizing that it is often difficult to generate accurate attention maps directly, cfanet [8] turns to a coarse-to-fine progressive attention mechanism through two branches, the crowd region identifier (crr) and the density level estimator (dle). 2. proposed method 2.1. the main network structure this paper aims to establish a crowd counting framework that is suitable for dense scenes. the architecture of the proposed method is illustrated in figure 1. it includes a primary feature extractor taken from the vgg-16 [9] model as the backbone, two heterogeneous pyramid modules acting on global and local information encoding, respectively, and dual-track stacking to obtain the hybrid features, activated to get attention and then fused with the multi-channel feature map to obtain the final predicted density map. the local information encoding stage is a shallow network, capable of exploiting more fine-grained feature information and thus filtering complex backgrounds with other non-target entities. a four-branch pyramidal architecture is specifically used, with increasing convolutional kernel size from top to bottom and progressively larger perceptual fields. the global information encoding stage has a deeper layer of network with enhanced nonlinearity, fuller perceptual field, and richer semantic information. it is used to deal with the dense occlusion of human head and has good learning ability for irregular density distribution as well. to reduce the parameter overhead, a three-way merge is used, and the filter size is also chosen among 1 1 , 3 3 , and 5 5 . 36 figure 1. overall architecture of the proposed network the dual-track features are merged and split in two again. in the top-side pathway, the probability distribution between [0,1] is generated via relu and sigmoid activation functions in turn, i.e., hybrid attention. and in the bottom-side pathway, two 33 convolution kernels are used to reform the feature information first, and then 11 convolution is used to adjust it to the exact same size as the hybrid attention, i.e., the multichannel feature map. for the fusion strategy, we introduce the softmax function, which converts the multi-channel attention map into a single-channel density map, a move that eliminates the need for the network to resort to costly and poorly robust attention labels. in detail, the hybrid attention is normalized by softmax and each pixel can learn the dynamic weight of this location in all channel layers. then, it is multiplied with the multi-channel feature maps pairwise, and finally, all channels are summed vertically to obtain the final prediction map of fused attention to features, denoted by 1 h w pref   . ( )( ) , , , 1 1 1i j c pre att mul k i j k i h f softmax f f j w=   =      (1) 2.2. loss function in this paper, we choose the mean absolute error (mae) to measure the pixel-level error values between the final prediction map and the labels, denoted by prel . ( ) 2 2 1 1 ; n gt pre i i i l p x g n = =  − (2) where n is the number of images in a training batch, ix denotes the current training image,  is a set of learnable parameters, so ( ; )ip x  represents the prediction map for it, and gt ig refers to its ground-truth density map. 3. experiments and results analysis 3.1. experimental detail to ensure the experimental authority, four official datasets, shanghaitech(a&b) [1], ucf_cc_50 [10], and ucf-qnrf [11], are used in this paper. among them, the ucf_cc_50 dataset has a limited number of samples, and we follow the official recommendation of 5-fold cross-validation for testing. we generate training labels by blurring each head annotation with a gaussian function. in detail, for crowdsparse datasets, such as shanghaitech part b, we use fixedsize kernels, while for other datasets with denser scenes, geometric adaptive kernel based on the nearest neighbor algorithm is utilized. except for primary feature extractor, the parameters of the subsequent layers are randomly initialized by a gaussian distribution with a mean of 0 and a standard deviation of 0.01. for training details, we choose the adam optimizer to retrain the model, with an initial learning rate of 1e-4, halved every 100 rounds. there are two mainstream metrics for evaluating the performance in crowd counting task: mean absolute error (mae) and mean squared error (mse). they are defined as follows. 1 1 n i i i mae p g n = = − (3) 21 1 n i in i mse p g = = − (4) 3.2. comparison experiment we demonstrate the effectiveness of the proposed method on four official datasets, and the experimental results are shown in table 1 (the best performance is indicted by bold and the second best is underlined). in the shanghaitech part_a dataset, our mae is 0.33% ahead of hanet; for the ucf_cc_50 dataset, it outperforms the asnet result by 4.5%, while the mse is 2.59% ahead. also, in the ucfqnrf dataset, we improve the mse metric by 1.03%. to visually compare the effectiveness of the proposed method with ranet, we select the representative samples from each dataset for counting tests, as shown in figure 2. further, to observe the overall prediction effect of the two on shanghaitech part_a dataset, we aggregate the pre-gt information for the entire sample in this dataset and plot it as a scatter diagram with regression lines, the results of which are shown in figure 3, where the red auxiliary line y=x indicates the ideal case of 100% accuracy in counting. qualitatively, the closeness of the blue regression line to the auxiliary line y=x is positively correlated with the quality of the prediction; quantitatively, the closer the coefficient of determination 2r of the regression line is to 1, the lower the overall error fluctuation is. 37 table 1. comparison with different methods on four challenging datasets method part_a part_b ucf_cc_50 ucf-qnrf mae mse mae mse mae mse mae mse bl[12] 62.8 101.8 7.7 12.7 229.3 308.2 88.7 154.8 ranet[7] 59.4 102 7.9 12.9 239.8 319.4 111 190 asnet[5] 57.78 90.13 174.84 251.63 91.59 159.71 libranet[13] 55.9 97.1 7.3 11.3 181.2 262.2 88.1 143.7 amsnet[14] 56.7 93.4 6.7 10.2 208.4 297.3 101.8 163.2 uot[15] 58.1 95.9 6.5 10.2 83.3 142.3 urc[16] 68.2 115 10.6 16 293.99 443.09 128.13 218.05 dkpnet[17] 55.6 91 6.6 10.9 81.4 147.2 hanet[6] 54.9 91.2 6.8 11.5 195.2 268.6 98 179 d2c[18] 59.6 100.7 6.7 10.7 221.5 300.7 84.8 145.6 ours 54.72 93.76 7.12 12.86 166.97 245.12 83.02 140.84 input ranet gt sh an gh a it e ch a sh an gh a it e ch b u c f_ c c _ 5 0 u c fq n r f count:1309.83 count:1229.57 count:1213 count:122.35 count:116.02 count:115 ours figure 2. visual comparison of different methods figure 3. scatter plot vs. regression line for different methods 4. conclusion in this paper, we dissect the current problems faced by dense crowd counting, including noisy background, mutual occlusion and variable scale. a dual-track network is designed, using heterogeneous pyramid modules to obtain global and local features respectively, which are transformed into hybrid attention based on the softmax algorithm and fused with highresolution feature maps to effectively deal with the problem of responsible target overlap and background confusion, on the other hand, the pyramid paradigm itself has strong learning capability for variable scales. experiments show that this strategy is effective and has more stable performance. 38 references [1] zhang y, zhou d, chen s, et al. single-image crowd counting via multi-column convolutional neural network[c] //proceedings of the ieee conference on computer vision and pattern recognition. 2016: 589-597. [2] babu sam d, surya s, venkatesh babu r. switching convolutional neural network for crowd counting[c]// proceedings of the ieee conference on computer vision and pattern recognition. 2017: 5744-5752. [3] li y, zhang x, chen d. csrnet: dilated convolutional neural networks for understanding the highly congested scenes[c]//proceedings of the ieee conference on computer vision and pattern recognition. 2018: 1091-1100. [4] cao x, wang z, zhao y, et al. scale aggregation network for accurate and efficient crowd counting[c]//proceedings of the european conference on computer vision (eccv). 2018: 734750. [5] jiang x, zhang l, xu m, et al. attention scaling for crowd counting[c]//proceedings of the ieee/cvf conference on computer vision and pattern recognition. 2020: 4706-4715. [6] wang f, sang j, wu z, et al. hybrid attention network based on progressive embedding scale-context for crowd counting[j]. information sciences, 2022, 591: 306-318. [7] zhang a, shen j, xiao z, et al. relational attention network for crowd counting[c]//proceedings of the ieee/cvf international conference on computer vision. 2019: 6788-6797. [8] rong l, li c. coarse-and fine-grained attention network with background-aware loss for crowd density map estimation[c]//proceedings of the ieee/cvf winter conference on applications of computer vision. 2021: 36753684. [9] simonyan k, zisserman a. very deep convolutional networks for large-scale image recognition[j]. arxiv preprint arxiv:1409.1556, 2014. [10] idrees h, saleemi i, seibert c, et al. multi-source multi-scale counting in extremely dense crowd images[c]//proceedings of the ieee conference on computer vision and pattern recognition. 2013: 2547-2554. [11] idrees h, tayyab m, athrey k, et al. composition loss for counting, density map estimation and localization in dense crowds[c]//proceedings of the european conference on computer vision (eccv). 2018: 532-546. [12] ma z, wei x, hong x, et al. bayesian loss for crowd count estimation with point supervision[c]//proceedings of the ieee/cvf international conference on computer vision. 2019: 6142-6151. [13] liu l, lu h, zou h, et al. weighing counts: sequential crowd counting by reinforcement learning[c]//european conference on computer vision. springer, cham, 2020: 164-181. [14] hu y, jiang x, liu x, et al. nas-count: counting-by-density with neural architecture search[c]//european conference on computer vision. springer, cham, 2020: 747-766. [15] ma z, wei x, hong x, et al. learning to count via unbalanced optimal transport[c]//proceedings of the aaai conference on artificial intelligence. 2021, 35(3): 2319-2327. [16] xu y, zhong z, lian d, et al. crowd counting with partial annotations in an image[c]//proceedings of the ieee/cvf international conference on computer vision. 2021: 1557015579. [17] chen b, yan z, li k, et al. variational attention: propagating domain-specific knowledge for multi-domain learning in crowd counting[c]//proceedings of the ieee/cvf international conference on computer vision. 2021: 1606516075. [18] cheng j, xiong h, cao z, et al. decoupled two-stage crowd counting and beyond[j]. ieee transactions on image processing, 2021, 30: 2862-2875. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 84 application of ecological planting and breeding mode in guangxi based on internet plus fei chen, dichen guan school of nanning university, guangxi 530000, china abstract: with the arrival of the internet plus era, various industries are constantly exploring how to use the advantages of internet plus to improve production efficiency and economic benefits. in the field of agriculture, the ecological planting and breeding model has received increasing attention and promotion in guangxi due to its environmentally friendly, healthy and safe characteristics. the article will take internet plus as the background to build a scientific planting and breeding ecological model, discuss the application of the ecological planting and breeding model of "enterprise+ breeding farm+ farmers" in mashan county, guangxi, and put forward development suggestions for the challenges facing the model. strengthening the organic combination of ecological planting and breeding model and internet technology can further exert its advantages and promote the sustainable development of ecological environment and economy, it is of positive significance for promoting the development of the planting and breeding industry in poverty-stricken areas and carrying out poverty alleviation work. keywords: internet plus; ecological breeding; breeding mode. 1. overview of ecological breeding models with the arrival of the internet plus era and the rapid development of information technology, a variety of digital, intelligent and internet based products and services are emerging, which has brought huge transformation opportunities to the agricultural industry. the traditional planting and breeding model faces many challenges, and the ecological planting and breeding model under the background of internet plus has become a new solution, especially for the current plight of the planting and breeding industry of poor rural households, which can achieve more accurate, efficient and sustainable development. the ecological breeding model is a new breeding model based on natural resources, guided by ecosystem services, fully utilizing natural ecosystems, achieving natural recycling, and vigorously promoting natural and pollution-free healthy food. it not only has broad market prospects, but also meets people's environmental and health needs. the application of ecological planting and breeding mode in the context of internet plus will be more convenient and efficient. there are two main ways of this model: one is to add livestock and poultry breeding in the planting to form a production chain; the second is to realize waste utilization in breeding, forming a cycle chain. 2. development in the context of internet plus 2.1. online sales of agricultural products under the background of internet +, ecological farming model can directly sell breeding products to customers through its website, wechat mall, mini program, taobao store and other channels, so as to create a "pollution-free, natural and healthy" image and attract consumers. at the same time, through data analysis, we can have an in-depth understanding of consumer needs and develop breeding products that are more in line with consumer preferences. 2.2. e-commerce platform sales e-commerce platforms are another channel for promoting aquaculture products. farmers can supply takeout platforms with healthy and delicious aquaculture products for diners. through the delivery platform, farmers can seize the market, increase product sales and brand awareness. 2.3. using intelligent devices to improve efficiency under the background of internet plus, farmers can monitor the ecological planting and breeding mode through the installation of intelligent devices, so as to understand a series of factors such as poultry conditions, environmental temperature, water quality and so on, so as to carefully manage the planting and breeding process. at the same time, farmers can also remotely control equipment such as water pumps, feed machines, and temperature controllers through intelligent devices, thereby saving human resources. 3. application of ecological planting and breeding models in guangxi region 3.1. background of mashan county, guangxi guangxi is a region with a large population, developed agriculture and animal husbandry, and also a province with a relatively good ecological environment. under the background of internet plus, the ecological planting and breeding model in guangxi has been widely applied and promoted. the ecological planting and breeding model in guangxi is a comprehensive agricultural production model that integrates various agricultural formats such as planting, aquaculture, aquaculture, and fruit planting to form an agricultural production chain, achieve resource recycling, and protect the ecological environment. by introducing intelligent equipment, the chicken farming project has achieved an automated and intelligent feeding process, which not only improves feeding efficiency, but also significantly reduces chicken farming costs and reduces 85 environmental pollution. at the same time, the local government actively organizes technical training for farmers to enable them to master advanced chicken farming techniques and management methods, and improve their chicken farming quality. the government also provides financial and technical support to local villagers, encourages and guides them to participate in chicken farming projects, and increases their sources of income. 3.2. analysis of ecological planting and breeding models in mashan county the pilot project of mashan county is a county under the jurisdiction of nanning city, guangxi zhuang autonomous region, and is one of the poverty-stricken areas. in order to achieve targeted poverty alleviation, mashan county has adopted models such as combining planting and breeding, and extending the industrial chain. by developing industries such as characteristic agriculture and animal husbandry, it helps impoverished households increase their income. mashan county is rich in agricultural resources, with highquality arable land and lush forest resources. the main crops include rice, vegetables, fruits, tea, etc. the project has designed and constructed a new ecological agriculture mode "chicken-corn-grain" interactive organic planting and breeding mode, which is suitable for guangxi mashan county. the chicken farm uses geographical advantages and internet plus+internet of things technology to achieve intelligent ecological breeding. it operates in the form of "enterprise + farm + farmer", carries out unified breeding through the company, and covers farmers through demonstration farms to drive small-scale farms in the breeding link, realize the participation of farmers in aquaculture. by adopting a model of self-cultivation by the company and farmhouse farming, and at the same time, purchasing corn and other grains grown by impoverished farmers as chicken feed. implementing scientific breeding throughout the process, resource recycling, and ensuring antibiotic free, healthy breeding with vaccines as the main ingredient and local chinese herbal medicine as a supplement has saved most of the breeding costs for impoverished households. mashan county intelligent ecological chicken farming is an intelligent chicken farming project targeting rural areas, aimed at improving the efficiency and quality of rural chicken farming by introducing advanced intelligent equipment and scientific chicken management methods, helping villagers increase profits and improve living conditions, and establishing a scientific breeding ecosystem. fig. 1 ecological model of planting and breeding in mashan county from the perspective of the farming mode of poor households under the background of internet +, this paper studies and analyzes the scientific and technological advantages of the internet, targeted poverty alleviation policies, modern ecological aquaculture and other aspects. combined with the existing problems of the poor households in the planting and breeding industry, this paper puts forward the solution of using internet + technology to carry out precise planting and breeding for the poor households. specific measures include: 3.2.1. establish a planting and breeding service platform for targeted poverty alleviation internet technology is used to build a planting and breeding service platform for poor households, so as to realize information sharing, precise service, interactive communication, management and monitoring. through the establishment of an information database of poor households, the platform implements graded and classified poverty alleviation and accurately implements poverty alleviation policies. scientific and technological consulting services, marketing channel models, logistics and other service modules have been established to promote the development of large-scale and modern farming in poor households. 3.2.2. promote intelligent breeding technology intelligent upgrade of the existing planting and breeding technology, through the application of sensors, machine vision and other technical means to achieve real-time monitoring, automatic regulation, effectively improve production efficiency and quality. at the same time, big data analysis, artificial intelligence and other technologies are used to analyze and forecast information such as product quality and market demand, so as to adjust production layout in advance, effectively reduce production costs and improve the income of poor households. each chicken in the farm has anklet or pedometer, on the one hand, every time the chicken vaccinates or test is recorded, can be viewed by scanning the bar code, on the other hand, for each chicken steps, the pedometer can feed back the data to the calculation center, when most of the steps above the threshold can be listed. 3.2.3. improve management capability and quality with the advantage of internet plus technology, china has established a standardized and modern breeding management system, provided training and guidance to poor households, improved their management ability and quality, and helped them achieve both quality and efficiency improvement. at the same time, the establishment of food safety traceability system, strict control of product quality and safety, enhance brand image and market competitiveness. 3.2.4. establish an online sales platform complete the establishment of wechat public account and small program, and select mashan county and several surrounding cities to realize the information release function of agricultural products market. complete the initial product promotion plan, and select more than 60% of the businesses in the breeding base and surrounding markets to follow and use. the online platform allows breeding bases to publish relevant information and consumers to buy the ingredients they need. consumers can also observe the product online at any time breeding and distribution progress. 3.3. problems of ecological breeding model in mashan county although the ecological breeding model in mashan county 86 has achieved some results, there are still some deficiencies, which need to be further improved and perfected. here are some possible problems and ways to improve them: environmental standards are difficult to achieve: ecological farming models need to follow high environmental standards, strictly control the use of pesticides and fertilizers in the production process, and adopt recycling measures to reduce the impact on the environment. however, in practice, due to technical and management deficiencies, there are still some production and processing links cannot keep up with the ecological standards, resulting in environmental protection standards are difficult to achieve. high cost: a large amount of capital needs to be invested to realize the ecological farming mode, including the transformation of the ecological environment, training of management personnel, etc., and the production cost is also high. due to the poor capital turnover, it is difficult for many poor households to buy breeding equipment or expand the scale. high requirements for breeding technology: ecological breeding mode requires farmers to have higher technical level and industrial quality. in breeding industry, the application of new technology and new varieties is crucial to improve breeding efficiency and yield. 3.4. suggestions for the development of ecological planting and breeding models in guangxi combining intelligent ecological chicken farming with cooperative adoption models to achieve the intelligence of chicken farming models and the joint construction of community ecology. in terms of cooperative adoption, chicken farming cooperatives can cooperate with local communities, where community residents raise funds to jointly raise broilers in the farm and negotiate a sharing plan with the cooperative. community residents can adopt chickens through predetermined methods and participate in the process of raising chickens, fully experiencing the joy of participation and sharing. the combination of intelligent breeding and cooperative adoption models in chicken farming cooperatives can improve chicken farming efficiency, reduce costs, increase profits, and promote community development, guide residents to form a consumption community, and jointly build a shared community. the in-depth development of the " enterprise + farm + farmer " model can include the following steps: enterprises or companies as the main body, invest or cooperate in agricultural production, processing, sales and other businesses; as grassroots entities, farmers participate in agricultural production and sales activities by joining cooperatives or directly collaborating with companies, increasing their income and sense of gain. in this model, companies and cooperatives play a role in integrating resources and markets, planning production and sales, establishing unified breeding standards to ensure product quality, helping farmers improve production efficiency and reduce production costs, while also obtaining better market positioning and profit returns. farmers can participate in industrial production, improve agricultural production levels, increase income and employment opportunities. 4. summary the ecological planting and breeding model in mashan county, guangxi is a poverty alleviation model with practical significance and social responsibility, which has been well applied and shows broad development prospects. on the one hand, this model has lower initial investment and risk, making it easier for impoverished households to participate and accept, effectively increasing their income, and achieving gradual poverty alleviation towards the market. on the other hand, utilizing the resources of enterprises and governments to form a joint force can improve the development efficiency of the industry. of course, this model also has some problems and challenges, such as technical and management issues in the breeding process, uncertainty in market demand and sales channels. overall, this planting and breeding model has positive significance for promoting the development of the planting and breeding industry and poverty alleviation work in poverty-stricken areas. it can be used for reference and extended to other poverty-stricken areas to achieve poverty alleviation and sustainable development of the local economy for impoverished households. acknowledgements practical research on precision planting and breeding model of poor households based on internet plus +2019ky0922; computer communication and networks +2020szsfk08. references [1] wang xia. ecological chicken breeding and management technology [j] animal husbandry and veterinary science (electronic version), 2022 (16). [2] lei shifu. key points of ecological chicken farming technology under the forest [j] animal husbandry and veterinary science (electronic version), 2022 (04). [3] liu jinxiu. key points of ecological chicken breeding and management technology [j] contemporary livestock and poultry breeding industry, 2019 (09). [4] chen wei, zhou huaifeng. preliminary study on the cooperative income increase model for rural left behind elderly in poor areas: taking rongyan ecological breeding professional cooperative in mashan county, guangxi as an example [j]. southern rural, 2016,32 (05). frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 106 review of research on vehicle routing problem and related algorithms jingru ding shanghai university, shanghai 200444, china abstract: this paper briefly introduces the relevant theories and wide applications of vehicle routing problem, and then summarizes some common exact algorithms and heuristic algorithms for solving the vehicle routing problem. finally, two algorithms are summarized for solving the vehicle routing problem of different scales. for the vehicle routing problem of smaller scale, the exact algorithm can directly solve the exact optimal solution of the problem; however, the vehicle routing problem with large scale is generally solved by heuristic algorithm. keywords: vehicle routing problem; exact algorithm; heuristic algorithm. 1. introduction vehicle routing problem (vrp) was first proposed by two scientists dantzing and ramser in 1959. it is an np-hard problem. the vrp problem has been widely concerned by scholars since it was proposed. the vrp problem can be described as: a group of fleets provide distribution services for a group of customers with distribution needs to meet certain distribution goals. the vehicle starts from the distribution center and needs to return to the distribution center after completing the distribution task. in the process of distribution, vehicles also need to comply with constraints such as time window, vehicle capacity limit, etc. vehicle routing problem is one of the most basic problems in network optimization problems. this kind of problem has a wide range of application scenarios in life. it is often used in the scenarios such as the route planning of goods distribution vehicles of express logistics enterprises, the establishment of bus routes, and the scheduling of air and railway schedules. because of its wide range of application scenarios, it also has great development value in economy. according to practical applications, scholars have proposed many variants for vehicle routing problems. the algorithms used to solve vehicle routing problems are generally divided into two types: exact algorithms and heuristic algorithms. 2. variants of vehicle routing problem with the continuous development of real logistics, the basic vehicle routing problem is not enough to meet all needs. therefore, scholars put forward different types of vehicle routing problems according to different customer needs. for various types of vehicle routing problems, the mathematical models established are very different, and the solution methods are also different. according to different research objects in vehicle routing problems, vehicle routing problems are simply divided into the following categories. (1) vehicle routing problem with time windows vrp with time windows is the most common variant of the vehicle routing problem. in the actual distribution process, because customers have a variety of needs for time, the vehicle routing problem with time windows is generated. the vehicle must be within the time window when serving customers. (2) capacitated vehicle routing problem the vehicle routing problem with capacity constraints is a variant of the vehicle routing problem derived from the reality. in cvrp, the customer's demand is known, while the vehicle's loading capacity has an upper limit. the vehicle starts from the distribution center and serves the customer points in the distribution network. during the distribution process, the vehicle's loading capacity is required to not exceed the upper limit of the vehicle's capacity. (3) multi-vehicle vehicle routing problem in the research of vehicle routing problem, most of the vehicles from the distribution center are assumed to be homogeneous, that is, the single-vehicle vehicle routing problem (homogeneous vrp). in this problem, the vehicle model is the same, the capacity is the same, and the fuel consumption per kilometer is the same. controlling the vehicle model variable is conducive to the study of other factors. when considering the distribution situation of the actual logistics distribution network, according to the different nature of the goods, such as the size, weight, and the need for refrigeration, there are also differences in the distribution vehicle models, so the vehicle routing problem of multiple models also has its research significance. (4) multi-depot vehicle routing problem mdvrp is a variant of the basic vrp. the basic vrp has only one distribution center. vehicles start from the distribution center to serve customers, and return to the distribution center after completing the distribution service. in order to reduce the distribution cost and optimize the distribution path, mdvrp is proposed based on the vrp problem of a single distribution center. according to the distribution of customer locations and the demand of customer points, the location of distribution centers and the distribution of goods are determined. (5) open vehicle routing problem the traditional vehicle routing problem is generally closed vehicle routing problem, that is, the vehicle needs to return to the distribution center after completing the distribution service from the distribution center. for self-operated logistics enterprises such as jd, closed vrp is generally used. nowadays, third-party logistics is becoming more and more developed, and there is no restriction to return the vehicles to the distribution center after delivery. this kind of problem is ovrp. 107 (6) dynamic vehicle routing problem in the basic vrp problem, it is assumed that the customer needs are known in advance and the information is static. in the actual logistics network, customer demand is unknown and changing, and distribution road conditions are also nonstatic. for example, the delivery of takeout is a typical dvrp problem. the customer order information is constantly updated, and the distribution road conditions are also constantly changing. therefore, the complexity of dvrp problem is far greater than that of static vrp problem. 3. the exact algorithm for vehicle routing problem (1) branch-and-bound, (b&b) this algorithm applies the branch method to solve integer programming and mixed integer programming problems. for the original large problem that is difficult to solve, it can be divided into smaller and smaller sub-problems to solve. branching is to divide the feasible solution set into smaller subsets, and then generate new sub-problems. the optimal solution is obtained by solving the linear relaxation of these problems by simplex method. the search process is to define the optimal solution of the subset, and discard the subproblem when its boundary does not contain the optimal solution of the original problem. when all nodes of the search tree are processed, the algorithm stops. (2) branch-and-cut, (b&c) this algorithm includes three types of combination technologies: automatic problem preprocessing, cutting plane generation and intelligent branch and bound technology. automatic problem preprocessing includes checking the formulas provided by users to find fixed variables, eliminate redundant constraints and tighten constraints. the generation of cutting plane can reduce the feasible region of linear relaxation without eliminating the feasible solution. (3) branch-and-price, (b&p) the principle of b&p is similar to that of b&c, but b&p focuses more on column generation. the pricing sub-problem is the separation problem of dual linear programming, which is used to identify the column to enter the base. if such a column is found, the linear programming will be re-optimized, otherwise it will branch. you can combine b&p and b&c, the so-called branch-and-cut-and-price (bcp), to obtain a more stringent lower bound. (4) dynamic programming, (dp) dp aims to find the optimal strategy for the whole problem. it can divide the problem into multiple stages, and each stage needs a decision strategy. dp needs to formulate appropriate recursive relations for each individual problem. the solution process starts from the last step and moves forward step by step to find the optimal strategy at this stage each time, until the optimal strategy is found from the initial stage of the problem and the optimal solution of the whole problem is generated. 4. the heuristics algorithm for vehicle routing problem (1) genetic algorithm the algorithm simulates the mechanism of biological evolution to construct solutions. the general process of genetic algorithm mainly includes: encoding and decoding, generating initial population, computing fitness, selection, crossover, mutation, etc. the main idea of genetic algorithm is to simulate the evolution process of "natural selection, survival of the fittest" in nature. after defining the coding scheme of the problem in advance, the genetic algorithm first codes a solution of the problem, and uses a random number to initialize the population. after decoding the solution, use the customized fitness function to calculate the fitness of each individual. the fitness selection function is used to select the corresponding individuals with better fitness and generate new offspring after crossing and mutation. this process will always produce individuals suitable for fitness selection function until the end condition of iteration is reached. the whole iterative process of the algorithm is like the process of natural evolution and selection. (2) simulated annealing algorithm the algorithm mainly simulates the process of physical annealing, which is a process of high temperature solid melting material cooling and then re-solidifying from liquid to crystalline solid. in the process of annealing, if the temperature drops too fast, it may lead to the formation of an amorphous solid structure with high internal atomic energy. at this time, in the optimization problem, it is equivalent to obtaining the local optimal solution of the problem. if the rate of temperature drop is appropriate, the atoms in the crystalline solid can be arranged in order to form a low energy, stable and regular crystalline solid structure. at this time, in the optimization problem, it is equivalent to obtaining the global optimal solution of the problem. therefore, introducing this process into the field of combinatorial optimization, the simulated annealing algorithm needs a good annealing process to make the solution gradually orderly in the process of cooling to avoid falling into the local optimal solution. (3) tabu search algorithm when all the neighborhoods are non-improved solutions, ts can accept the non-improved solution to jump out of the local optimum, and replace the current solution when finding a better neighborhood. when the local optimal solution is reached, ts continues to search by selecting the candidate solution that is worse than the current solution. ts introduces the concept of tabu table to avoid the cycle. tabu table is used to record the tabu movement. the movement into the tabu table is prohibited within the number of cycles of the tabu length to avoid falling into the cycle. the tabu can be removed after the number of cycles of the tabu length. (4) iterated local search algorithm ils is a simple and effective meta-heuristic method. the local search algorithm can be used for the initial solution until the local optimum is reached, and then the local search can be restarted to disturb the previous solution. through this perturbation, the local optimum can be skipped. when the conditions to be met are met, the new solution can be accepted as the current solution. the perturbation operator can be regarded as a large random shift of the current solution. the operator should retain part of the solution and strongly interfere with the other part of the solution to generate a new solution. (5) variable neighborhood search algorithm vns continues to explore the neighborhood of the current solution, and will accept the new solution only when it is improved. this way can ensure that the current solution is the optimal solution and has the hope of obtaining a better solution. the main cycle of vns consists of three stages: concussion, local search and movement. the goal of oscillation is to perturb the solution to obtain the starting point of local search. systematic increase of neighborhood 108 selection can increase the diversity of solutions. (6) particle swarm optimization algorithm pso simulates the social behavior and movement of natural organisms, such as bird habitat and fish clustering. in each iteration, a particle moves from one position to another in the decision space, making optimal use of the cooperation between particles, and the success of some particles will affect the behavior of their peers. each particle adjusts its position to the global optimum in turn according to two conditions: the best position for its access and the best position for group access. the particle neighborhood defines the degree of communication between particles. the use of large neighborhood can strengthen the search for the global optimal solution, and the use of small neighborhood can strengthen the diversity of search space. 5. conclusion the vehicle routing problem has always been the research focus of scholars at home and abroad. through continuous theoretical research, various variants and mathematical models have been derived. in order to solve these problems, new algorithms have also been proposed. the mathematical model of vehicle routing problem is a 0-1 mixed integer programming model, so solving a vehicle routing problem is essentially solving a mixed integer programming model. at present, there are many methods to solve this kind of mixed integer programming problem, which are generally divided into two methods: precise algorithm and heuristic algorithm. the precise algorithm can directly solve the exact optimal solution of the problem, but it can only be used to solve the vehicle routing problem with a small scale; for large-scale problems, it is usually difficult to find the optimal solution of the problem in a certain time by precise algorithms, so the precise algorithms cannot be applied to solve a class of largescale vehicle routing problems. the heuristic algorithm can be divided into single scheme meta-heuristic algorithm, population-based meta-heuristic algorithm and hybrid heuristic algorithm according to its source. it can solve the vehicle routing problem of a larger scale of examples in a certain time, but it may not be able to obtain the optimal solution of the problem, and in many cases, it can only obtain the approximate feasible solution of the problem. references [1] dantzig g b, ramser j h. the truck dispatching problem[j]. management science,1959, 6(1):80-91. [2] letchford a n, lysgaard j, eglese r w. a branch-and-cut algorithm for the capacitated open vehicle routing problem[j]. journal of the operational research society, 2007, 58(12): 1642-1651. [3] letchford a n, lysgaard j, eglese r w. a branch-and-cut algorithm for the capacitated open vehicle routing problem[j]. journal of the operational research society, 2007, 58(12): 1642-1651. [4] wu z, zhang j. a branch-and-price algorithm for two-echelon electric vehicle routing problem[j]. complex & intelligent systems, 2021: 1-16. [5] bellman r. dynamic programming[m]. oxford univ. press, 1957. [6] holland j. adaptation in natural and artificial systems: an introductory analysis with application to biology[j]. control & artificial intelligence, 1975. [7] holland j. adaptation in natural and artificial systems: an introductory analysis with application to biology[j]. control & artificial intelligence, 1975. [8] tang, elise. a tabu search heuristic for the team orienteering problem[j]. computers & operations research,2005,32 (6):1379-1407. [9] vansteenwegen p, souffriau w, berghe g v, et al. a guided local search metaheuristic for the team orienteering problem[j]. european journal of operational research,2009,196(1):118-127. [10] archetti c, hertz a, speranza m g. metaheuristics for the team orienteering problem[j]. journal of heuristics,2007,13(1):4976. [11] muthuswamy s, lam s s. discrete particle swarm optimization for the team orienteering problem[j]. memetic computing,2011,3(4):287-303. https://shu-primo.hosted.exlibrisgroup.com.cn/primo-explore/fulldisplay?docid=tn_cdi_gale_infotracacademiconefile_a132255644&context=pc&vid=shu&lang=zh_cn&search_scope=default_scope&adaptor=primo_central_multiple_fe&tab=default_tab&query=any,contains,a%20tabu%20search%20heuristic%20for%20the%20team%20orienteering%20problem&offset=0 https://shu-primo.hosted.exlibrisgroup.com.cn/primo-explore/fulldisplay?docid=tn_cdi_gale_infotracacademiconefile_a132255644&context=pc&vid=shu&lang=zh_cn&search_scope=default_scope&adaptor=primo_central_multiple_fe&tab=default_tab&query=any,contains,a%20tabu%20search%20heuristic%20for%20the%20team%20orienteering%20problem&offset=0 https://shu-primo.hosted.exlibrisgroup.com.cn/primo-explore/fulldisplay?docid=tn_cdi_gale_infotracacademiconefile_a350825920&context=pc&vid=shu&lang=zh_cn&search_scope=default_scope&adaptor=primo_central_multiple_fe&tab=default_tab&query=any,contains,a%20guided%20local%20search%20metaheuristic%20for%20the%20team%20orienteering%20problem&offset=0 https://shu-primo.hosted.exlibrisgroup.com.cn/primo-explore/fulldisplay?docid=tn_cdi_gale_infotracacademiconefile_a350825920&context=pc&vid=shu&lang=zh_cn&search_scope=default_scope&adaptor=primo_central_multiple_fe&tab=default_tab&query=any,contains,a%20guided%20local%20search%20metaheuristic%20for%20the%20team%20orienteering%20problem&offset=0 https://shu-primo.hosted.exlibrisgroup.com.cn/primo-explore/fulldisplay?docid=tn_cdi_gale_infotracacademiconefile_a157183557&context=pc&vid=shu&lang=zh_cn&search_scope=default_scope&adaptor=primo_central_multiple_fe&tab=default_tab&query=any,contains,metaheuristics%20for%20the%20team%20orienteering%20problem&offset=0 https://shu-primo.hosted.exlibrisgroup.com.cn/primo-explore/fulldisplay?docid=tn_cdi_gale_infotracacademiconefile_a157183557&context=pc&vid=shu&lang=zh_cn&search_scope=default_scope&adaptor=primo_central_multiple_fe&tab=default_tab&query=any,contains,metaheuristics%20for%20the%20team%20orienteering%20problem&offset=0 https://shu-primo.hosted.exlibrisgroup.com.cn/primo-explore/fulldisplay?docid=tn_cdi_crossref_primary_10_1007_s12293_011_0071_x&context=pc&vid=shu&lang=zh_cn&search_scope=default_scope&adaptor=primo_central_multiple_fe&tab=default_tab&query=any,contains,discrete%20particle%20swarm%20optimization%20for%20the%20orienteering%20problem&offset=0 https://shu-primo.hosted.exlibrisgroup.com.cn/primo-explore/fulldisplay?docid=tn_cdi_crossref_primary_10_1007_s12293_011_0071_x&context=pc&vid=shu&lang=zh_cn&search_scope=default_scope&adaptor=primo_central_multiple_fe&tab=default_tab&query=any,contains,discrete%20particle%20swarm%20optimization%20for%20the%20orienteering%20problem&offset=0 frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 1, 2022 82 graph convolution network recommender rystem with feature embedding zhengtian luo school of southwest minzu university, chengdu 610000, china. abstract: recommender system has become one of the most important parts of information services on the internet today the model based on graph neural network has been proved to be a very effective method in collaborative filtering recommender system [1,15]. however, the recommender system based on graph network usually only uses the interactive relationship between users and items, and their feature information is often not used effectively. in this work, we combine the use of feature information with graph convolutional network to design a new recommendation algorithm, graph convolution network recommender system with feature embedding, gcnfe. tests on the movie lens and last-fm datasets show that the new model performs better than previous models in most cases. keywords: graph neural network; recommender system; collaborative filtering. 1. introduction with the rapid development of the internet era, information technology not only brings convenience to people, but also brings some troubles to people's life, especially the information overload caused by data explosion. as an information filtering system, recommender system can not only effectively solve the problem of information overload, but also has certain practical significance for promoting production and improving the quality of life. the recommender system realizes user group feature matching by learning large-scale group data, so as to help users effectively identify the content of interest from massive data [2]. these days, web applications including social software, ecommerce, search engines, news portals, etc. almost every service that provides content to users is equipped with a recommender system. the core task of recommender system is to predict whether the user will interact with the item, so as to provide the item more in line with the user's preference to the user. as such, collaborative filtering (cf), which focuses on exploiting the past user-item interactions to achieve the prediction, remains to be a fundamental task towards effective personalized recommendation. such a recommender system generally finds users who are similar to the target user by learning the interaction records between users and items, and looks for items that the target user may be interested in from their interaction records. graph neural network (gnn) is an emerging framework that uses deep learning to directly learn graph structure data in recent years. its excellent performance has attracted scholars' high attention and in-depth exploration. by formulating certain strategies on the nodes and edges of the graph, gnn transforms the graph structure data into a normative and standard representation, and inputs it into a variety of different neural networks for training. it has achieved excellent results in such tasks as node classification, edge information dissemination and graph clustering. in recent years, gnn has demonstrated its potential in the field of recommendation, graph neural networks have become the new state-of-the-art approach of recommender systems. in this paper, we design a collaborative filtering recommendation model based on graph neural network, and integrate feature information into the user embedding, so as to obtain better results. 2. related work generally speaking, collaborative filtering recommender systems have two ways to calculate the similarity between users and items. one is through the characteristics and labels of users or items themselves, and the other is through their interaction records. classical models using the first method include factorization machines (fm) [3], neural fm(nfm)[4], logistic regression(lr)[5] and so on. lr converts the recommended problem into a dichotomous classification problem similar to click-through-rate prediction (ctr prediction), converts various features into feature vectors, and inputs the logistic regression model to obtain a predicted ctr. then it sorts the results according to the predicted ctr. on the basis of lr, fm model adds the crossover of second-order features into the model to obtain the hidden vectors of corresponding features by training each dimension feature, and the weight of features is obtained by inner product operation between hidden vectors. nfm uses neural networks to replace the second-order implicit vector crossover operation in fm, which makes nfm more expressive. go without saying, these models are also often used in clickthrough-rate prediction tasks. the second method is the mainstream of collaborative filtering recommender system. for how to calculate similarity through interactive records, scholars have different methods, such as clustering [6], markov decision processes (mdp) [7], matrix factorization [8] and so on. in the graph network recommender system, the mainstream method is still based on matrix factorization to calculate the similarity. the matrix factorization algorithm generates an implicit vector for each user and each item, then calculates the similarity score between vectors of the user and the candidate items, and finally generates the recommendation list from high to low. the implicit vectors of users and items are obtained by decomposing user-item interaction matrix or rating matrix. as shown in figure 1, we decompose a user 83 rating matrix into a users’ embedding matrix and an items’ embedding matrix of vector length 2. that's where the name matrix factorization comes from. figure 1. an illustration of matrix factorization because gnn contains the topological structure of the data, these structures can help the model to generate higher quality hidden vectors, so that the graph network recommender system (gnn-recsys) has a better effect. graph network recommender system needs to obtain information from neighbor nodes to generate hidden vectors. when the degree of a node is very high, this operation will require a lot of computation, which makes it difficult for the model to obtain higher-order information. graph-sage [9] solves this problem by randomly sampling the neighbor nodes of a node, and obtains the information of higher-order neighbors by random walk. ngcf[10] chooses to change the aggregation information of nodes. each node transmits information to its neighbors. after several rounds of transmission, each node will have the information of its higher-order neighbors. the authors of lightgcn[11] believe that ngcf contains too many redundant operations inherited from graph convolution in the propagation of information, which can achieve better results when these operations are removed. most of these models are trained using only historical interaction information, ignoring user and project characteristics. there are also scholars trying to use information from users and projects themselves. for example, graphrec[12] introduces the user's social network graph, while kgat[13] uses the feature information of some projects in the form of knowledge graph, but the effect is not particularly ideal. 3. model considering that introducing user and project information into the model may improve the effect of the model, we propose the gcnfe model. similar to the general graph network recommender system, our model is also divided into three parts: embedding layer, propagation layer and prediction layer. we mainly consider introducing user and project information in the embedding stage, and the approximate structure of the model is shown in figure 2. figure 2. an illustration of gcnfe model architecture 3.1. embedding layer in the embedding layer, we generate a random vector for each user and project, and then connect the features of the user and project with their vectors after one-hot encoding. since the vectors of users and items need to have the same length in the final prediction layer, a part of their vectors will be used to complement the length, as shown in equations (1) and (2): 𝑒𝑢1 (0) = 𝑒𝑟𝑎𝑛𝑑𝑜𝑚||𝑒𝑢1′𝑠 𝑓𝑒𝑎𝑡𝑢𝑟𝑒||𝑒𝑝𝑎𝑑𝑑𝑖𝑛𝑔1 (1) 𝑒𝑖3 (0) = 𝑒𝑟𝑎𝑛𝑑𝑜𝑚||𝑒𝑝𝑎𝑑𝑑𝑖𝑛𝑔2||𝑒𝑖3′𝑠 𝑓𝑒𝑎𝑡𝑢𝑟𝑒 (2) in the equations, 𝑒𝑢1′𝑠 𝑓𝑒𝑎𝑡𝑢𝑟𝑒 and 𝑒𝑖3′𝑠 𝑓𝑒𝑎𝑡𝑢𝑟𝑒 are the vectors obtained by transforming the feature of the user and the item, and 𝑒𝑝𝑎𝑑𝑑𝑖𝑛𝑔1, 𝑒𝑝𝑎𝑑𝑑𝑖𝑛𝑔2 are used to complement the length of the embeddings. the embedding lengths of 𝑒𝑢1′𝑠 𝑓𝑒𝑎𝑡𝑢𝑟𝑒 and 𝑒𝑝𝑎𝑑𝑑𝑖𝑛𝑔2 are equal, and the embedding lengths of 𝑒𝑖3′𝑠 𝑓𝑒𝑎𝑡𝑢𝑟𝑒 and 𝑒𝑝𝑎𝑑𝑑𝑖𝑛𝑔1 are equal. 3.2. propagation layers in the propagation layer, nodes will aggregate information about their neighbors and higher-order neighbors through message propagation. let's take figure 3 as an example. figure 3. a subgraph the user-item interaction graph suppose we want to make a prediction for u1 and i3. in the first-layer propagation, u1 and i3 will aggregate the information of their first-order neighbors, as shown in equations (3) and (4) : 𝑒𝑢1 (1) = ∑ 1 √|𝑁𝑢1|√|𝑁𝑖|𝑖∈𝑁𝑢1 𝑒𝑖 (0) (3) 𝑒𝑖3 (1) = ∑ 1 √|𝑁𝑖3|√|𝑁𝑢|𝑢∈𝑁𝑖3 𝑒𝑢 (0) (4) in the equations, 1 √|𝑁𝑖|√|𝑁𝑢| is inherited from the symmetric normalization operation in the graph convolutional network, |𝑁𝑖| and |𝑁𝑢| represents the degree of the project and user node, respectively. after a layer of propagation and aggregation, all nodes will get the information of their neighbor nodes. after another aggregation, they can get the information of their secondorder neighbors from the neighbor nodes. after several aggregation, they can get the information of their higher-order neighbors. the equations for the k-layer aggregation is shown in (5) and (6) : 𝑒𝑢 (𝑘) = ∑ 1 √|𝑁𝑢|√|𝑁𝑖|𝑖∈𝑁𝑢 𝑒𝑖 (𝑘−1) (5) 𝑒𝑖 (𝑘) = ∑ 1 √|𝑁𝑖|√|𝑁𝑢|𝑢∈𝑁𝑖 𝑒𝑢 (𝑘−1) (6) after k layer, a total of k+1 embeddings including the 0th layer will be obtained. we will sum them and take the average as the final embedding. again, using u1 and i3 as example, the results are shown in equations (7) and (8): 84 𝑒𝑢1 ∗ = ∑ 𝑒𝑢1 (𝑘) 𝐾+1 𝐾 𝑘=0 (7) 𝑒𝑖3 ∗ = ∑ 𝑒𝑖3 (𝑘) 𝐾+1 𝐾 𝑘=0 (8) 3.3. model prediction in the prediction layer, we conduct the inner product operation between the vectors of users and items, and the result is used as the score of recommendation ranking.the results are shown in equations (9) : 𝑦𝑢1,𝑖3 = 𝑒𝑢1 ∗ 𝑇𝑒𝑖3 ∗ (9) 3.4. model training during training, we choose bayesian personalized ranking (bpr) loss[14] as our loss function, as shown in equation (10) : loss = ∑ − ln σ(yu,i − yu,j) + λ||θ||2 (u,i,j)∈o (10) where o = {(u, i, j)|(u, i) ∈ r+, (u, j) ∈ r-} denotes the pairwise training data, r+ indicates the observed interactions, and ris the unobserved interactions; σ(∙) is the sigmoid function; θ denotes all trainable model parameters, and λ controls the l2 regularization strength to prevent overfitting. bpr loss has been intensively used in recommender systems. it takes into account the relative order between observed and unobserved user-item interactions. to be more specifically, bpr assumes that observed interactions (which are more reflective of user preferences) should be assigned higher predictive values than unobserved interactions. 4. experiment and results we first introduce several data sets used in the experiment in section 4.1, then introduce several methods of comparison with our model in section 4.2, introduce the setting of some hyperparameters in the experiment in section 4.3, and finally show the experimental comparison results. 4.1. dataset we used three datasets for our experiment: table1. statistics of the datasets dataset #users #items #interactions sparsity ml-100k 944 1,683 100,000 93.71% ml-1m 6041 3,707 1,000,209 95.53% last-fm 993 107,296 18,498,005 82.64% moivelens[19]: moivelens dataset is a very commonly used dataset in recommender system research. it was collected by researchers from the moivelens website and contains anonymous user ratings of movies, user attributes and information about movies. the moivelens-100k (ml100k) dataset contains 100,000 scores, and the moivelens1m (ml-1m) contains 1 million scores. although the two data sets were collected and curated by the same organization, there is no duplication of data in them. last-fm[20]:the music recommendation dataset, published by lastfm, contains four years' worth of listening records from about 1,000 anonymous users, as well as user, song and artist attributes. it’s collected from last.fm online music systems. 4.2. compared methods we compare our proposed model with the following models: bprmf [14] optimizes the bpr loss to learn the latent representations for users and items with matrix factorization (mf) framework. one of the classic models in recommender system. neumf [16] replaces the dot product in mf model with a multi-layer perceptron to learn the match function of users and items. ngcf[10] uses methods in gcn to extract information from the bipartite graph of user items, trains the model with this information to generate vectors of user items, and then uses these embeddings to make predictions. lightgcn[11] has a similar structure with ngcf, but some operations inherited from gcn are simplified, which not only improves the training speed of the model, but also achieves better results. 4.3. experimental settings evaluation metrics for each user in the test set, we treat all the items that the user has not interacted with as the negative items. then each method outputs the user’s preference scores over all the items, except the positive ones used in the training set. to evaluate the effectiveness of top-k recommendation and preference ranking, we adopt two widely-used evaluation protocols [10, 17]: recall@k and ndcg@k. by default, we set k = 10. other settings we implement the proposed model and all the baselines with recbole [18], which is a unified opensource framework to develop and reproduce recommendation algorithms. in training, we randomly select 80% of interactions as training data and 10% of interactions as validation data. the remaining 10% interactions are used for performance comparison. we uniformly sample one negative item for each positive instance to form the training set. to ensure a fair comparison, we optimize all the methods with adam optimizer and carefully search the hyper-parameters of all the baselines. 4.4. result table 2. the comparison of overall performance among gcnfe and competing methods our experimental results are shown in table 2. it can be seen that our model has the best effect in most cases, only slightly inferior to ngcf model on ml-100k dataset. this shows that we can improve the training effect of the model by introducing more information into the model in the vector embedding layer. 85 5. conclusion we propose a new graph network recommender system model, gcnfe. in the vector embedding stage, user information is encoded by one-hot and combined with randomly generated user embeddings and item embeddings, so that the model can obtain more information. we compared our model with the other four models on ml-100k, ml-1m and last-fm datasets, and proved the effectiveness of our model. references [1] gao c , zheng y , li n , et al. graph neural networks for recommender systems: challenges, methods, and directions[j]. 2021. [2] resnick p, varian h r. recommender systems [j]. commun acm, 1997, 40(3): 56–58. [3] s. rendle. factorization machines[c]. 2010 ieee international conference on data mining, 2010. [4] he x , chua t s . neural factorization machines for sparse predictive analytics[c]// acm. acm, 2017:355-364. [5] richardson, matthew, dominowska, et al. predicting clicks: estimating the click-through rate for new ads[c]// the 16th international conference. acm, 2007. [6] gao m, cao f y, huang j z. a cross cluster-based collaborative filtering method for recommendation[c]. 2013 ieee international conference on information and automation, 2013: 447-452. [7] shani g, brafman r i, heckerman d. an mdp-based recommender system [j]. journal of machine learning research, 2005, 6: 1265-1295. [8] koren y , bell r , volinsky c . matrix factorization techniques for recommender systems[j]. computer, 2009, 42(8):30-37. [9] hamilton w l , ying r , leskovec j . inductive representation learning on large graphs[c]// 2017. [10] wang x , he x , wang m , et al. neural graph collaborative filtering[j]. acm, 2019. [11] he x , deng k , wang x , et al. lightgcn: simplifying and powering graph convolution network for recommendation[c]// sigir '20: the 43rd international acm sigir conference on research and development in information retrieval. acm, 2020. [12] fan w , yao m , li q , et al. graph neural networks for social recommendation[j]. 2019. [13] wang x , he x , cao y , et al. kgat: knowledge graph attention network for recommendation[c]// knowledge discovery and data mining. acm, 2019. [14] s rendle, c freudenthaler, z gantner, et al. bpr: bayesian personalized ranking from implicit feedback[c]// uai 2009, proceedings of the twenty-fifth conference on uncertainty in artificial intelligence, montreal, qc, canada, june 18-21, 2009. auai press, 2009. [15] wu s , sun f , zhang w , et al. graph neural networks in recommender systems: a survey[j]. 2020. [16] he x , liao l , zhang h , et al. neural collaborative filtering[j]. international world wide web conferences steering committee, 2017. [17] yang j h , chen c m , wang c j , et al. hop-rec: high-order proximity for implicit recommendation[c]// the 12th acm conference. acm, 2018. [18] zhao w x , mu s , hou y , et al. recbole: towards a unified, comprehensive and efficient framework for recommendation algorithms[c]. proceedings of the 30th acm international conference on information & knowledge management, 2021. [19] f, maxwell, harper, et al. the movielens datasets: history and context[j]. acm transactions on interactive intelligent systems, 2015. [20] henning v , reichelt j . mendeley a last.fm for research?[c]// escience, 2008. escience '08. ieee fourth international conference on. ieee, 2009. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 16 mmc circulating current suppression strategy based on improved quasi-pr control guangjie fu *, zhiwei lu school of electrical information engineering, northeast petroleum university, daqing, china * corresponding author: guangjie fu (email: fgjmhw@163.com) abstract: the internal circulation of modularized multilevel converter will affect waveform quality and increase system loss. in this paper, the basic principle and topological structure of mmc as well as the causes of the internal circulation are briefly analyzed. a method of harmonic component extraction based on the second-order generalized integrator and the suppression strategy of mmc circulation based on feedforward compensation quasi-proportional resonant control are proposed. the feasibility of this strategy is verified in matlab/simulink, and the simulation results show that the circulation and capacitor voltage fluctuation are controlled within a reasonable range. keywords: mmc circulating current suppression strategy; improved quasi-pr control. 1. introduction with the rapid development of power electronics technology, modular multilevel converter mmc has become the mainstream high-voltage flexible dc transmission topology [1-2]. with the characteristics of modularization, low harmonics and low loss, mmc can independently control active power and reactive power and is widely used in photovoltaic, wind power grid-connected and isolated island power supply [3-5]. however, the partial pressure of submodules is not balanced during operation, which will generate interphase circulation between the three phase bridge arms. interphase circulation will distort the current waveform of the bridge arm, reduce the operating efficiency of the converter, increase the system loss, and even affect the operating stability of the system. therefore, effective circulation suppression strategies must be adopted to eliminate circulation. at present, circulation suppression strategies are mainly divided into passive circulation suppression and active circulation suppression. the passive circulation suppression strategy mainly reduces the amplitude of the circulation by increasing the series reactance value of the bridge arm. however, the circulation suppression effect of this method is limited, and the frequency response speed of the system will be reduced. active circulation suppression is mainly to add additional controllers to the circulation equivalent model, and use feedback to track the given reference value to achieve the suppression of harmonic components [6]. the circulation controller based on pi control is proposed in literature [7]. this control strategy has been widely used in the field of flexible dc transmission, but this method requires phase-tophase decoupling and coordinate transformation, and the control system design is complex, and only applies to threephase systems. literature [8] proposes a circulation suppression strategy based on the combination of multiple pr controllers, which overcomes the shortcoming that a single pr controller cannot suppress higher order even harmonics. however, the bandwidth of the controller is narrow, and the resonant frequency is easily offset, which affects the stability of the system. literature [9] proposes a harmonic suppression strategy of quasi-pr controller, which increases the phase angle margin and bandwidth, but fails to suppress higherorder even harmonics. to solve these problems, this paper proposes an improved quasi-pr control mmc circulation suppression strategy, which does not require phase decoupling and coordinate transformation, and simplifies the control system design. in addition, this strategy can suppress not only the double frequency component in the circulation, but also the higher order even harmonic component. 2. topology and mathematical model of mmc the simplified topology of mmc is shown in figure 1. each phase is composed of two identical upper and lower bridge arms, and a single bridge arm is cascaded by n identical submodules. 𝐿0 is the equivalent inductance of the bridge arm, 𝐿𝑠 is the current limiting inductance, and r is the equivalent resistance of the line. 𝑢𝑝𝑗, 𝑖𝑝𝑗, 𝑢𝑛𝑗, 𝑖𝑛𝑗 (j=a, b, c) are the voltage and current instantaneous values of the upper and lower bridge arms in each phase, respectively. 𝑢𝑠𝑗 and 𝑖𝑠𝑗 are grid side voltage and current, respectively. 𝑢𝑑𝑐 indicates the dc side voltage. the common submodule is usually the half-bridge submodule, which consists of 2 igbts, 2 diodes in reverse parallel, and dc capacitance. the module has three working states: input, excision and lock. by controlling the trigger pulse, the input or removal of the submodule is realized, so that the output voltage of the submodule is the capacitor voltage 𝑈𝑐 or 0. by controlling the number of submodules input into the upper and lower bridge arm, the output of level n+1 is realized. 17 smn sm2 sm1 sm2 sm1 sm2 sm1 smnsmn smn sm1 sm2 smn sm1 sm2 smn sm1 sm2 sau sl sr pau nau pai pcipbi nai nbi nci ai bi ci 0l 0r 0r 0l a b c dci o o 2 dcu − 2 dcu + smi smu cu sm figure 1. mmc single-ended simplified equivalent circuit according to the simplified topology of mmc, kirchhoff's voltage law can be obtained: 0 0 0 0 1 2 1 2 pj dc pj jo pj pj dc nj jo nj di u u u l r i dt di u u u l r i dt  = + + +    = − + +  (1) in the formula, 𝑢𝑗𝑜 is the ac side voltage of each phase output; add the two formulas in formula (1) to obtain: 0 ( ) 2 2 2 2 pj nj pj nj pj njdc u u di di i iu l r dt dt + + − = + + (2) according to kirchhoff's current law, the upper and lower bridge arm currents of each phase are: 2 2 sj pj zj sj nj zj i i i i i i  = +   = −  (3) in the formula, 𝑖𝑧𝑗 is the j phase circulation; from formula (3), the expression of j phase interphase circulation can be deduced as follows: 2 pj nj zj i i i + = (4) by substituting formula (2) into formula (4), we can get: 0 2 2 pj nj zjdc zj u u diu l ri dt + − = + (5) as can be seen from formula (5), the size of circulation is determined by the difference between the sum of dc voltage and the voltage of the upper and lower bridge arms. 2.1. circulation suppression there is a difference between the dc voltage and the sum of the upper and lower bridge arm voltage, which is fundamentally due to the unbalanced voltage equalization of the submodules, resulting in the circulation inside the mmc. when the mmc operates in an ideal condition, the voltage of each phase submodule remains balanced at all times, and the capacitor voltage of each submodule is 𝑈𝑐=𝑈𝑑𝑐/n. however, in actual operating conditions, due to the impossibility of completely consistent bridge arm parameters and the slight difference in the turn-on time of each igbt, the capacitor voltage value of each sub-module has a certain deviation, and the dc voltage generated by each phase unit is difficult to keep consistent, so there is a circulation between each phase unit. literature[10] obtained the expression of internal circulation according to energy conservation on both sides of the system: ( )a 2 2 2 sin 2 3 2 sin 2 3 3 2 sin 2 3 3 dc z f dc zb f dc zc f i i i t i i i t i i i t            + +        + − +             + + +       (6) in the formula, 𝐼𝑑𝑐 is the dc current component; 𝐼2𝑓 is the peak value of double frequency circulation. 𝜑 is the phase angle of circulation? according to formula (6), the circulation components mainly contain dc components and frequency-double negative sequence components. in addition, the circulation also contains a small amount of higher-order even wave components. the dc component of the circulation is used to exchange active power between the submodule and the system. ac even harmonic component increases the circulation amplitude and directly affects the energy storage of submodules. therefore, the double frequency and higher order even harmonic components in the circulation need to be eliminated by reasonable control methods. 2.2. harmonic extraction method based on second order generalized integrator 2.2.1. harmonic extraction method based on second order generalized integrator. in this paper, the harmonic component of circulation is extracted based on the combination of second order generalized integrator and dc integrator. as shown in figure 2, the double frequency angular frequency of 𝜔ℎ is 200π. the generalized second-order integrator is analyzed: ( ) 2 2 2 / 1 / h h hh s s ss    = −− (7) when s=𝜔0 =200π, the double frequency component in formula (2) is infinite after the circulation 𝑖𝑧𝑗 passes through the second order generalized integrator, so the double frequency component can be extracted from the circulation because the energy of double frequency is large. then, by making the difference between the double frequency component and the circulation through the negative feedback, the dc component and the higher order even harmonic component are obtained. then through the dc integrator, because the dc integrator can only pass through the dc component, other high-order even harmonic components are filtered out; after a negative feedback difference with the original loop flow, the double frequency and higher order even harmonic components 𝑖2𝑧𝑗 in the loop are obtained. 18 figure 2. extraction method of circulating harmonic components 2.2.2. quasi-pr controller design compared with pi controller, ideal pr controller does not need phase decoupling and coordinate transformation, can track ac signal without static error, and has almost no attenuation at the resonant point. however, the ideal pr controller has narrow bandwidth, poor resistance to frequency changes, poor stability and low robustness. in this paper, a quasi-pr controller with better performance is adopted, which enlarges the bandwidth and improves the performance against frequency disturbance while maintaining high gain of resonant points. it is suitable for both single-phase and threephase mmcs. its transfer function is: ( ) 2 2 0 2 s = 2 r c p c k s g k s s    + + + (8) in the formula, 𝑘𝑝 and 𝑘𝑟 are proportionality coefficient and resonance coefficient respectively; 𝜔0 and 𝜔𝑐 are resonant frequency and cutoff frequency respectively. different from pr controller, the gain of quasi-pr controller at resonant point is no longer infinite, and the size is 𝑘𝑝+𝑘𝑟. the design of 𝑘𝑝 and 𝑘𝑟 has an important impact on the dynamic performance and stability of the system [11]. therefore, an mmc circulation suppression structure based on pr controller can be designed, as shown in figure 3. figure 3. structure block diagram of quasi-pr controller 2.2.3. design of quasi-pr controller with feedforward compensation in addition to a large number of double frequency components, there are also a small number of higher orders even harmonic components. a single quasi-pr controller can only suppress the double frequency component; although the combination of multiple quasi-pr controllers can suppress some even harmonic components of higher order, the control is relatively complicated. in this paper, a quasi-pr controller with feedforward compensation is adopted to eliminate the influence of submodule capacitance voltage on system disturbance from the source. figure 4 shows the structure of a quasi-pr controller with feedforward compensation. figure 4. structure block diagram of quasi-pr controller with feed-forward compensation according to figure 4, the output transfer function under disturbed 𝑣ℎ𝑘 can be obtained: ( ) ( ) ( ) ( ) ( ) ( ) ( ) 1 1 1 pr n n pr n g s g s g s g s n s g s g s  +   = + (9) in the formula, 𝐺1(𝑠) = 1/(𝐿𝑠 + 1) ; 𝐺𝑃𝑅(𝑠) is quasi pr controller; 𝐺𝑛(𝑠) is feedforward compensation; 𝑁(𝑠) is the perturbed part. the error under disturbance is expressed as: ( ) ( )ne s g s= − (10) in order to eliminate the influence of perturbation, 𝐸(𝑠) = 0 is required, and it can be concluded that: ( ) ( ) 2 2 0 2 2 0 2 2 c n p p r c p s s g s k s k k s k     + + = − + + + (11) in order to simplify calculation, steady-state analysis of disturbance is carried out. at this time, it is advisable to: ( ) 1 n p g s k = − (12) 3. simulation verification in order to verify the effectiveness of the circulation suppression method, a simulation model of 11-level modular multilevel converter was built on the matlab/simulink simulation platform, and the nearest level approximation modulation strategy was adopted. the main simulation parameters are shown in table 1. table 1. simulation parameters parameter name numerical value mmc number of submodules of the bridge arm 10 submodule capacitance value /mf 2.5 bridge arm inductance value /mh 3 submodule capacitor voltage initial value /v 2000 frequency /hz 50 dc side voltage /kv 20 taking the a-phase of the mmc model as an example, figure 5 shows the a-phase circulation before and after the circulation suppression. before the circulation suppression, the circulation stabilized around -320~720a, and after the circulation suppression was put in for 0.05s, the circulation stabilized around 180a with small fluctuations. it can be seen that the circulation inhibition effect is obvious. 19 0 0.05 0.1 0.15 0.2 time/s -400 -200 0 200 400 600 800 a -p h a se c ir cu la ti o n /a figure 5. a-phase circulation before and after circulation suppression 1600 1800 2000 2200 2400 0 0.05 0.1 0.15 0.2 time/s 1600 1800 2000 2200 2400 v o lt a g e/ a v o lt a g e/ a figure 6. the circulation suppresses the front and rear a-phase bridge arm currents -1000 -500 0 500 1000 1500 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 time/s -1000 -500 0 500 1000 1500 v o lt a g e/ a figure 7. a-phase upper and lower bridge arm submodules figure. 6 and figure. 7 show the upper and lower bridge arm current and submodule capacitor voltage waveforms of phase a respectively. there are obvious double frequency distortion before adding circulation suppression. figure. 8 and figure. 9 respectively show the current harmonic analysis of the upper and lower a-phase bridge arms before and after circulation suppression. the waveform distortion rate decreases from 125.69% to 2.68%, and the double frequency component and even harmonic component significantly decrease. figure 8. harmonic analysis of upper bridge arm current before circulation suppression figure 9. harmonic analysis of upper bridge arm current in a phase after circulation suppression 4. conclusion aiming at the interphase circulation caused by the voltage unbalance of mmc submodules, this paper proposes a method to extract harmonic components based on the combination of generalized integrator and dc integrator, which solves the problem that the harmonic components obtained by indirect calculation are not accurate enough. a feedforward link is added to the quasi-pr controller to solve the problem that a single quasi-pr controller cannot suppress the high order even harmonics and the complex control system of multiple quasi-pr controllers. the correctness and effectiveness of the proposed control strategy are verified by simulation. references [1] lv jing, cai xu, zhang zhankui, chi yongning. impedance modeling and stability analysis of offshore wind farm grid-connected by mmc-hvdc [j]. proceedings of the csee,2016,36(14):3771-3781. [2] nami a., liang j., dijkhuizen f. et al. modular multilevel converters for hvdc applications: review on converter cells and functionalities[j]. ieee transactions on power electronics, 2015, 30(1): 18-36. [3] xu zheng, xue yinglin, zhang zheren. key technologies and prospects of high-capacity overhead flexible dc transmission [j]. proceedings of the csee,2014,34(29):50515062. [4] ma weimin, wu fangjie, yang yiming, zhang tao. current situation and application prospect analysis of flexible dc transmission technology [j]. high voltage technology,2014,40(08):2429-2439. [5] tang guangfu, he zhiyuan, pang hui. research, application and development of flexible dc transmission engineering technology [j]. automation of electric power systems,2013,37(15):3-14. 20 [6] lin qiang. study on harmonic analysis and control strategy of flexible dc transmission mmc [d]. shenyang university of technology,2021. [7] information on http://www.weld.labs.gov.cn tu qingrui, xu zheng, guan minyuan, zheng xiang, zhang jing. design of modularized multilevel converter circulation suppression controller [j]. automation of electric power systems,2010,34(18):57-61+83. [8] xie peiwei, yang cong. a strategy for suppressing mmc circulation based on proportional resonance (pr) control [j]. journal of ship electric technology,2019,39(02):41-44. [9] liu zhouzhou, forward together. control and circulation suppression strategy of mmc-hvdc based on quasi-pr controller [j]. journal of electric power systems and automation,2016,28(11):70-75. [10] tu qingrui, xu zheng, zheng xiang, guan minyuan. internal circulation mechanism analysis of modular multilevel converter dc transmission [j]. high voltage technology,2010,36(02):547-552. [11] zhou juan, zhang yong, geng yiwen, wu xiaojie. improved pr control of four-bridge active power filter in static coordinate system [j]. proceedings of the csee,2012,32(06):113-120. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 1, 2023 56 vehicle target detection algorithm based on yolov5 xing he college of electrical engineering, southwest minzu university. chengdu, sichuan 610041, china abstract: with the rapid advancement of automobile manufacturing technology and the intensification of competition among automobile brands, the development of autonomous driving has been pushed to the forefront of automobile development, which causes approximately $650 billion in losses due to traffic accidents worldwide every year. for in the complex vehicle target scene, because of its many vehicle targets, dense targets often exist between the occlusion, overlap, a variety of different weather reasons, rain, fog, sunny days, etc. resulting in obstruction of the field of view, and the vehicle camera often intercepted images mostly exist blurred, ghosting and other problems, making the vehicle target detection for detailed feature extraction requirements are high, the detection accuracy is often difficult to meet the requirements, proposed based on yolov5s vehicle target detection algorithm is proposed. acmix attention mechanism is introduced to make the model achieve the purpose of expanding the target perception field, adaptively focusing on different target regions, and capturing more information features, etc. the test shows that the accuracy of the model increases by 1.1% on a subset of bdd100k data set after improvement. the accuracy of the improved model increased by 1.1% on the subset of bdd100k dataset and by 1.2% on the pascal voc2007 general dataset. keywords: yolov5s; acmix; deep learning. 1. introduction machine learning class algorithms were the first deep learning algorithms, and in 2000, the svm algorithm was proposed by osuna [1], which aims to find a reasonable curve or a plane to segment the binary objects perfectly; in 2001, jones[2] proposed the vj algorithm. in 2004, the sift[3] algorithm was refined to preserve the robustness of the size and rotation variations of the features extracted from the image; these were the early target detection algorithms. 2013, girshick et al. in the network, the candidate regions (region proposals) in the image are obtained by selective search, and then the candidate regions are input to the convolutional neural network (cnn) to extract features, and finally the svm completes the region classification. however, r-cnn uses selection search also generates a large number of redundant candidate regions, which lowers the detection speed of the model[4] . the spp-net model was introduced in 2015 by k. ho et al. this model solves the subsequent problems caused by images with inconsistent sizes of candidate regions, and it can accept any size of image input into the convolutional neural network to perform convolutional operation on the whole image, eliminating the redundant computation of each region. in addition spp-net also adds spp pooling behind the convolutional network, which makes the feature maps of different sizes converted to fixed size size. however, the classifier of spp-net is still an svm, which cannot be trained end-to-end, so a large number of pixels need to be stored. in addition, it is difficult to adjust the whole convolutional neural network by adding spp-net, resulting in the convolutional neural network is not well used in practical applications 2015 girshick et al.[6]borrowed the practice of global feature extraction of feature maps in sppnet, and improved on the basis of r-cnn to propose fast r-cnn, which solved the problem of cumbersome training of r-cnn and each training stage being independent of each other, and secondly solved the problem of requiring consistent input image size, and finally replaced the original svm classifier with softmax. faster rcnn[7] compared with fast r-cnn, its biggest innovation is to abandon the use of selective search network and use region proposal network (rpn) as a replacement. the rpn, as the core network of faster r-cnn, uses a fully convolutional layer instead of a fully connected layer. its biggest advantage is that it can automatically learn to distinguish the foreground and background of the image during candidate region extraction by the algorithm to extract valid candidate regions and avoid generating candidate regions with negative samples, thus reducing the number of candidate regions. the yolo (you only look once) series is one of the representative works of single-stage target detection methods. single-stage target detection does not have the process of finding candidate regions, and its can be unified into a regression problem. compared with, for example, the faster r-cnn algorithm, yolo can better distinguish the foreground and background of an image by this way, and the detection speed is faster. however, the yolov1[8] algorithm requires a fixed size of the input image, and when the input image is divided into a grid, each grid can only predict a single object, and when multiple objects appear inside the same grid, the nms algorithm will be used to merge, filter, and delete the bounding box, and finally leave the bounding box with the highest confidence, which will lead to the target increase of missed detection rate. later, scholars improved yolo, and there are yolov2 version, yolov3 version, yolov4 version, etc. redmon [9] et al. proposed the yolov2 algorithm to address the shortcomings of yolo, which improves on yolo in three main aspects. the first aspect is that yolov2 adopts the darknet-19 network as the backbone network, mainly using 3 × 3 convolution and 1 × 1 convolution, and discards the dropout network and adds a batch normalization after each convolution, which not only accelerates the convergence speed of the model in the training phase, but also effectively reduces the possibility of overfitting the model. the second aspect is the use of convolutional layers instead 57 of fully connected layers in yolo, which reduces the sensitivity of the network structure to the size of the input image, and thus allows multi-scale training by changing the size of the image, and then fine-tuning the initial classification network with a high-resolution classifier, which can reach 448×448 in yolov2. the third aspect is the introduction of the anchors box in the idea of anchors box is introduced in prediction, and the direct regression method is improved by introducing anchors box. compared with the yolo algorithm, the yolov2 algorithm has all improved performance in detection speed and detection accuracy, but the yolov2 algorithm is still poor in detecting small targets in images. yolov3 [10] makes improvements on the basis of yolov2 and has better performance. the yolov3 algorithm uses darknet53 network in the feature extraction part, and its structure is referred to the residual network, and layerhopping connections are made in different network layers to fuse deep and shallow features, which increases the depth of the network layers and not only reduces the loss of feature information between feature layers in the convolution process this not only reduces the loss of feature information during the convolution process, but also reduces the number of parameters and the amount of operations, and improves the detection speed. in addition, yolov3 uses a similar operation to fpn network in the detection process, after upsampling the shallow features, 1×1 convolution is performed, and then the two feature maps are summed to complete a feature fusion. after repeated such top-down feature fusion three feature maps of different sizes are obtained. using multi-scale prediction, the target is predicted on three different sizes of feature maps. in addition, for label classification, yolov2 uses the softmax function, but when the target of the detected image has more than one category, the softmax function will only output the prediction type of a certain category, so softmax is not suitable for multi-category label prediction. yolov3 uses an independent logistic classifier instead of softmax to compensate for this drawback. the classifier will assign a certain threshold range to each category, and when the resulting data is within a certain threshold range, it corresponds to a certain category prediction. compared with the yolov2 algorithm, yolov3 greatly improves the detection accuracy with guaranteed speed. yolov4[11], as an enhanced version of yolov3, has made some changes in the network structure to address the shortcomings of yolov3. yolov4 divides the whole network into three parts, including backbone, neck and head, to make the overall structure of the network clearer, and yolov4 adopts the idea of sppnet to increase the perceptual field by adding a spp layer after yolov4 adopts the idea of sppnet to increase the perceptual field, adding an spp layer after backbone, which actually adopts different size of pool_size and strides to realize the feature output of different perceptual fields. 2. yolov5 framework yolov5 contains four versions: yolov5s, yolov5m, yolov5x, and yolov5l. because yolov5s has the smallest model structure, the smallest number of parameters, and the fastest running speed among the four versions, this paper selects yolov5s as its backbone network, and the overall framework of yolov5s is shown in the following figure, which can be distinguished into three parts backbone, neck, and head. figure 1. yolov5s structure diagram backbone is the backbone network of the model, and the focus module is removed after v6.0. yolov5 adopts the same mosaic data enhancement as yolov4, i.e., four images are randomly selected from the original image for stitching, which can prevent data overfitting and reduce the local loss caused by data sampling. the cross-stage localization (csp) module is used in yolov5. there are two designs in yolov5, csp1_x structure and csp2_x structure, the former contains n residual structure to solve the degradation problem of deep network, the latter mainly connects neck part to fuse the semantic information of high level with the location information of bottom level, the output has 3 different sizes of probe head, the generated prediction frame is nms suppressed to save the higher confidence prediction frames. 3. hybrid self-attention mechanism (acmix) the acmix hybrid attention mechanism [12] combines the advantages of both traditional convolutional and selfattentive mechanisms. the former uses an aggregation function over the local receptive field based on convolutional filter weights, which are shared throughout the network structure to obtain indispensable inductive bias with its inherent properties. the latter uses a weighted averaging operation based on the input feature context, and the attention weights are dynamically calculated by the similarity function between neighboring pixel pairs, so as to expand the perceptual field of the network model, focus on different target regions adaptively, capture more information features, etc. figure 2. acmix hybrid self-attention structure 58 traditional convolution and self-attention modules actually share the same operation when projecting input feature maps by 1×1 convolution, and these two operations take up the main computational overhead. based on this idea, the acmix hybrid self-attention mechanism is mainly divided into two stages, as shown in the figure, in the first stage, the input tensor of h×w×c is projected in three 1×1 convolutions and reshaped into n to obtain an intermediate feature set containing 3n feature maps, and in the second stage, for the self-attention module, acmix aggregates the intermediate features into n groups, each containing three feature maps, each from 1 × 1 convolution, and the corresponding feature maps denote query, key and value, respectively, following the traditional multi-headed self-attention model, as shown in equation (1) 𝑔𝑖𝑗 = 𝑁 || 𝑙 = 1 (∑ 𝐴(𝑞𝑖𝑗 (𝑙) , 𝑘𝑎𝑏 (𝑙) )𝑉𝑎𝑏 (𝑙) 𝑎,𝑏∈𝑁𝑘(𝑖,𝑗)) ) (1) where𝑔𝑖𝑗 denotes the projection tensor corresponding to pixel (i, j), || denotes the concatenation of n attention head outputs, and𝑁𝑘(𝑖,𝑗) denotes the local region of pixel space centered at (i, j) ranging over k𝐴(𝑞𝑖𝑗 (𝑙) , 𝑘𝑎𝑏 (𝑙) ) corresponding to𝑁𝑘(𝑖,𝑗) the attentional power of the features within weight, the size of the attention weight assigned to value depends on the matching similarity between query and key, if the similarity is higher, the size of the weight assigned is consequently larger and vice versa; for the traditional convolutional path, the convolution with a convolutional kernel of k as shown in equation (2) (3) is connected by a lightweight fully connected layer to obtain k^2 feature maps, generated by moving and aggregating the features, shown in equation xx, to process the input features in a convolutional manner and collect information from the local receiver domain as in the traditional receiver domain. 𝑔𝑖𝑗 (𝑝,𝑞) = 𝑆ℎ𝑖𝑓𝑡(�̃�𝑖𝑗 (𝑝,𝑞) , 𝑝 − [ 𝑘 2 , 𝑞 − [ 𝑘 2 ]]) (2) 𝑔 𝑖𝑗=∑ 𝑔𝑖𝑗 (𝑝,𝑞) 𝑝,𝑞 (3) finally, the two paths of the conventional convolution and the self-attentive module are summed, and the intensity is controlled by the two learnable scalars 𝛼, 𝛽 controlled by equation 4 𝐹𝑜𝑢𝑡=𝛼𝐹𝑎𝑡𝑡 + 𝛽𝐹𝑐𝑜𝑛𝑣 (4) where 𝐹𝑜𝑢𝑡 denotes the final path output of the acmix module, and 𝐹𝑎𝑡𝑡 denotes the path output of the second-stage self-attentive module branch, and 𝐹𝑐𝑜𝑛𝑣 denotes the path output of the branch of the second-stage convolution module, and the intensity controllable scalar𝛼, 𝛽 range from 0 to 1. in this paper, the learnable scalar 𝛼, 𝛽 values are 1. 4. experimental results and analysis 4.1. data set the dataset used for the experiment is bdd10k, a subset of bdd100k released by the university of california, berkeley, which is the largest and most diverse autonomous driving dataset to date. this experimental dataset contains a total of 10,000 images, with a total of 10 categories of vehicles, buses, pedestrians, bicycles, trucks, motorcycles, etc. it is divided into a training set, a test set, and a validation set according to 7:2:1. an example of the dataset is shown in fig 3. figure 3. example data set diagram 4.2. training environment the experimental platform on which this experiment is based is shown in table 1 table .1 experimental platform environment parameters configuration cpu gpu r7-5800h 3060 framework cuda experimentalplatform language batch-size workers pytorch 1.8.1 11.1 vscode python 3.8.1 4 8 the experimental algorithm is based on cuda 11.1 and pytorch version 1.8.1. the hyperparameters are batch-size=4, initial learning rate10−3 , epoch=100, and the input image size is 640×640. 4.3. experimental results and analysis in this paper, we compare the detection results of the original yolov5 baseline model and the improved yolov5 network model on the bdd10k and pascal voc2007 59 datasets as shown in table 2 table .2 experimental results model test set map@.5(%) map@.5:.0.95(%) yolov5 yolov5acmix yolov5 bdd10k voc2007 50.7 51.8 84.7 26.8 27.3 65.1 yolov5acmix 85.9 65.3 important evaluation indicators in target detection are average precision (ap) and mean average precision (map), which are calculated as follows. 𝐴𝑃 = ∫ 𝑃(𝑅)𝑑𝑅 1 0 (5) 𝑚𝐴𝑃 = (∑ 𝐴𝑃𝑐 𝑛 𝑐=1 )/𝑛 (6) where p is the precision rate, which indicates the proportion of true positive samples to predicted positive samples; r is the recall rate, which indicates the proportion of true positive samples to actual positive samples; c is the predicted category; and n is the number of categories. map@.5 denotes the average precision of a class when the iou confidence of the confusion matrix takes the value of 0.5. map@.5:.0.95 indicates map map the thresholds range from 0.5 to 0.95, and the mean value of map at a step size of 0.05. the improved algorithm and yolov5 various algorithm metrics can be seen from table 4-2 that the improved algorithm increased map@.5 by 1.1% and map@.5:.0.95 by 0.5% on bdd10k data, and its map@.0.5 increased by 1.2% on pascal voc2007 dataset, the effect comparison graph is shown in fig figure 4. (a) improved mode (b) yolov5 model 5. conclusion in this paper, we introduce the network structure of yolov5s and the acmix hybrid attention mechanism, based on the yolov5 backbone network, add the hybrid attention mechanism acmix into the network, and simulate the model in the bdd10k and voc2007 datasets. the experiments show that the improved yolov5 model has improved the accuracy of the original model and the detection capability of small targets is greatly improved. acknowledgments funding: this research was funded by the southwest minzu university graduate innovative re-search project grant no.(yb2022812) references [1] osuna e, freund r, girosit f. training support vector machines: an application to face detection[c]. ieee computer society conference on computer vision & pattern recognition, san juan, pr, usa, 1997: 130-136. [2] viola p, jones m. rapid object detection using a boosted cascade of simple features[c]. ieee computer society conference on computer vision and pattern recognition, kauai, hi, usa, 2001: 511-518. [3] lowe d. distinctive image features from scale-invariant key points[j]. international journal of computer vision, 2004, 60 (2): 91-110. [4] girshick r, donahue j, darrell t, et a1. rich feature hierarchies for accurate object detection andsemantic segmentation[c]. ieee conference on computer vision and pattem recognition, 2014: 580-587 [5] he k, zhang x, ren s, et al. spatial pyramid pooling in deep convolutional networks for visual recognition[j]. ieee transactions on pattern analysis and machine intelligence, 2015, 37(9):1904-1916. [6] girshick r. fast r-cnn [c]. ieee international conference on computer vision, 2015: 1440-1448 [7] ren s, he k, girshick r, et al. faster r-cnn: towards real time object detection with region proposal networks[j]. ieee transactions on pattern analysis and machine intelligence, 2017, 39(6): 1137-1149. [8] redmon j, divvala s, girshick r and farhadi a. 2016. you only look once: unified, real-time object detection / / proceedings of 2016 ieee conference on computer vision and pattern recognition. las vegas, usa: ieee: 779-788 [doi: 10. 1109 / cvpr. 2016. 91]. [9] redmon j, farhadi a. yolo9000: better, faster, stronger[c]// ieee conference on computer vision & pattern recognition. ieee, 2017:6517-6525 [10] redmon j, farhadi a. yolov3: an incremental improvement[j]. arxiv e-prints, 2018. [11] bochkovskiy a, wang c y and mark liao h y. 2020. yolov4: optimal speed and accuracy of object detection [ eb / ol]. [2020-04-23]. https: / / arxiv. org / pdf / 2004. 10934. pd [12] pan x r, ge c j, lu r, et al. on the integration of selfattention and convolution [c]//proceedings of 2022 ieee/cvf conference on computer vision and patternrecognition. washington d. c., usa: ieee press, 2022: 805-815. mailto:map@.5:.0.95表示map mailto:map@.5:.0.95表示map frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 89 research on high reliable multimode wireless communication technology for uav xuan huang1, 2, hongping shen1, 2, binhui liu1, 2, xiaojun yin3 and qi peng1, 2, * 1 ceprei, guangzhou, china 2 key laboratory of miit for intelligent products testing and reliability, guangzhou, china 3sz dji technology co., ltd, shenzhen, china abstract: high definition image transmission and remote control are typical applications of uavs, which has spawned a large number of new scenes. this paper proposes a multimode wireless communication method and image transmission strategy for uav based on the integration of public network and private network. by building at least two wireless communication links including public network and private network, the image data is encoded after obtaining its channel parameters, and the encoded image data is sent through the two links. the experimental results show that the proposed method improves the reliability and efficiency of data transmission. keywords: uav; wireless communication; dual link; high definition image transmission. 1. introduction with the development of wireless communication technology, unmanned aerial vehicle (uav) intelligent networking applications such as high-definition image transmission and remote control are gradually emerging [1-2], which are widely used in emergency rescue, agricultural plant protection, urban mapping, electric power inspection, logistics and transportation and other fields. at present, the wireless communication link between uav and remote controller or ground station is mainly realized based on pointto-point private communication mode, such as lightbridge and ocusync built by dji based on software radio. due to the limitations of radio management laws and regulations, private wireless communication systems still need to use lowfrequency unauthorized frequency bands, which may be interfered by other co-frequency equipment, and cannot seek radio protection, and can only provide local area network coverage in a small range. therefore, using a single wireless communication method is difficult to meet the growing requirements of users for multiple performance indicators such as delay, image transmission quality and communication reliability, and the user experience is not good. in order to solve the above problems, this paper proposes a multimode wireless communication method for uavs, which constructs at least two wireless communication links including at least one public network communication link to improve the reliability and efficiency of data transmission. this method first obtains the channel parameters of these established wireless communication links, then encodes the image data collected by the uav platform according to the channel parameters, and sends the encoded image data to the ground station or remote controller through the two wireless communication links. 2. analysis of multimode communication link in the multimode wireless communication strategy, the first wireless communication link can be a public network communication link, the second wireless communication link can be a private network communication link, and the second wireless communication link can be a public network communication link. (1) public network communication link [4-5] public network communication link is a wireless communication link based on public network communication, including but not limited to 4g communication, 5g communication, 6g communication, etc. china mobile and china radio and television share and build a 5g network in 700mhz, 2.6ghz and 4.9ghz frequency band, with 700mhz for wide area coverage, 2.6ghz for hot spot coverage and 4.9ghz for indoor coverage. china telecom and china unicom share and build a 5g network in the 2.1ghz and 3.5ghz frequency band. with the development of 5g technology, it is possible for uavs to connect cellular networks to achieve low latency and high reliability remote control and high-definition image transmission [6-8]. in 2018, china telecom and huawei realized the real-time transmission of 360-degree panoramic 4k high-definition video of uav based on end-to-end 5g network in shenzhen for the first time. in 2020, china mobile, together with dji and other uav enterprises, carried out ultra-remote control of the uav in shenzhen at the chengdu command center based on the 5g network, and send back ultra-remote high-definition images in real time. (2) private network communication link private network communication link is a wireless communication link based on private communication, including but not limited to lightbridge and ocusync based on software radio. lightbridge is a dedicated communication link technology independently developed by dji, which can achieve 720p hd transmission and display with almost "zero delay", and the distance can usually reach more than 2 kilometers, or even more than 5 kilometers in the open and non-interference situation. both lightbridge and wi-fi use the 2.4ghz frequency band, but lightbridge technology uses one-way image data transmission, similar to the data transmission form of the tv broadcasting tower located at a high place. there is no need to "shake hands" before establishing a connection. ocusync has the same video transmission capability as 90 lightbridge, but has stronger reliability and stability. ocusync can detect nearby interference and automatically switch the 2.4g or 5.8g frequency band. in addition, it also supports multi-device interconnection, and can connect up to two remote controllers and two flight glasses at the same time. 3. design and implementation of wireless communication strategy flow based on dual-link backup in order to improve the reliability and efficiency of data transmission between uav and remote controller, based on multimode wireless communication system, this paper proposes a multimode wireless communication strategy and method based on dual-link backup of public and private network communication. firstly, the channel parameters of at least two established wireless communication links are obtained through the communication processing module on uav. the established wireless communication link includes at least one public network communication link. secondly, the image data collected by the uav platform is encoded according to the target channel parameters, and the encoded image data is sent to the remote controller or ground station through two wireless communication links to achieve signal backup. 3.1. acquisition of channel parameters and determination of target channel parameters for the convenience of description, without losing generality, we take the dual-link wireless communication as an example, and call the two wireless communication links the first link and the second link respectively. at least one of the first link and the second link is a public network communication link. the process of acquisition of the channel parameters and determination of the target channel parameters includes the following two parts: (1) acquisition of channel parameters. the channel parameters of the first link and the second link are obtained through the communication processing module on the uav, including any of the channel bandwidth and the received signal-to-noise ratio. (2) determination of target channel parameters. the communication processing module on the uav compares and judges the channel parameters of the first link and the second link, and determines the smaller one as the target channel parameter. that is, if the channel bandwidth or received signal-to-noise ratio of the first link is less than the channel bandwidth or received signal-to-noise ratio of the second link, the channel parameters of the first link are determined as the target channel parameters, otherwise the channel parameters of the second link are determined as the target channel parameters. this method enables both the first link and the second link to transmit the encoded image data after encoding the image data based on the target channel parameters, so as to reduce the congestion of the communication link. 3.2. image coding scheme based on target channel parameters after the target channel parameters are determined, the image data will be encoded according to the target channel parameters to obtain the target image data. the image coding scheme based on target channel parameters includes the following steps: (1) determine the target coding rate according to the target channel parameters; (2) the image data is encoded according to the target coding rate to obtain the target image data. the mapping relationship between channel parameters and coding rate is stored in the uav platform communication system. according to the mapping relationship and the target channel parameters, the target coding rate can be quickly determined. in general, the mapping relationship follows the principle of "the larger the channel parameter, the larger the coding rate, and the smaller the channel parameter, the smaller the coding rate". the mapping relationship can be set based on the actual situation. by dynamically adjusting the target coding rate through the target channel parameters, the bandwidth utilization of wireless communication links can be improved. 3.3. image data transmission based on multiple packets in the image data transmission stage, the basic process of wireless communication strategy based on dual-link backup is to send the target image data to the remote controller or ground station through two wireless communication links at the same time. the remote controller or ground station decodes the target image data after receiving the target image data encoded by two channels, and de-redundant the decoded image data, then display or store the image data after the deredundancy. the core of the strategy of wireless communication based on dual-link backup is the segmentation, backup, verification and the dynamic feedback adjustment of the target image data. 3.3.1. segmentation of target image data first, the target image data is segmented to obtain multiple data packets, and multiple data packets are sent to the terminal equipment through the first link and the second link at the same time to avoid retransmission of the entire target image data caused by byte loss during transmission. if the data packets transmitted by one link are lost or wrong, and the data packets transmitted by the other link are correct, the correct data packets can be used to recover the complete image data. it greatly improves the reliability and efficiency of data transmission. the methods of segmentation proposed in this paper include target bit number method, double bit number method and byte order method. segmentation based on target bit number method in this method, the communication system of uav stores the mapping relationship between the channel parameters and the packet bit number. according to the mapping relationship and the obtained target channel parameters, the target bit number of the packet can be determined. the target image data is divided into multiple data packets according to the target bit number. each data packet carries a crc check code, and the terminal equipment can verify the received data packet through the crc check code. as shown in the figure below, the target image data is divided into packet queue 11, including 6 packets, and each packet carries crc check code. when the first link transmits these six data packets, if the third data packet is lost or an error occurs, there is no third data packet in the packet queue 12 received by the remote controller or the ground station. when the second link transmits these six data packets, if the fifth 91 data packet is lost or an error occurs, there is no fifth data packet in the packet queue 13 received by the remote controller or the ground station. at this time, after the remote controller or ground station receives the data packet, it can recover the queue 11 from the queue 12 and the queue 13 to ensure the reliability of data transmission. fig.1 schematic diagram of segmentation and transmission based on target bit number method segmentation based on double bit number method in this method, the first bit number is determined according to the first link channel parameters, and the target image data is segmented according to the first bit number to obtain multiple first data packets. the second bit number is determined according to the channel parameters of the second link, and the target image data is subcontracted according to the second bit number to obtain multiple second data packets. then send multiple first data packets to the remote controller or ground station through the first link, meanwhile send multiple second data packets to the remote controller or ground station through the second link. the first bit number and the second bit number can be the same or different. in case of data error, the remote controller or ground station will determine the data location to be recovered according to their respective bit number. segmentation based on byte order method similar to the double bit number method, the coding transmission strategy of breaking the whole into parts can also be implemented based on the byte order method. in this method, the packet size is completely determined by the two wireless communication links. for example, the first link constructs a data packet per 1000 bytes, and the second link constructs a data packet per 4000 bytes. the remote controller or ground station can recover the original data by byte order. for example, if the data between the 1000th byte and the 2000th byte transmitted by the first link is received incorrectly, the corresponding data between the first byte and the 4000th byte transmitted by the second link can be used to recover. 3.3.2. transmission and verification strategy in the above description of segmentation method, the transmission strategy is that the first link and the second link transmit the same data content, only the size or number of data packets are different. with this transmission strategy, data can be backed up. for wrong data packets, data packets from another link can be used for recovery. in fact, the segmentation methods listed above can also adopt different data content transmission strategies. partial transmission strategy after the target image data is segmented and multiple data packets are obtained, we can adopt the strategy of multiple data packets partial transmission. that is, send the first part of the multiple data packets to the remote controller or ground station through the first link, and send the second part of the multiple data packets except the first part through the second link. the number of packets in the first part and the number of packets in the second part can be the same or different. as shown in the figure below, the target image data is divided into data packet queue 20, which includes 6 data packets (packet 1 to packet 6), and each packet carries crc check code. transmitting the first part of the queue 20, including packet 1 to packet 3, through the first link. and the second part of the queue 20 is transmitted through the second link, including data packet 4 to data packet 6. fig.2 schematic diagram of partial transmission strategy exchange and transmission of multiple data packets on the other hand, after transmitting the first part and the second part of the data packets, the second part of the data packets is sent to the remote controller or the ground station through the first link, and the first part of the data packets is sent through the second link. through this step, the exchange and transmission of the data packets can be realized, and the reliability of data transmission can be improved. as shown in the figure below, at t0, the uav platform divides the target image data into six data packets. at t1, the first transmission begins. the first link sends data packets 1 to 3 to the remote controller or ground station, and the second link sends data packets 4 to 6. after transmission, the second transmission begins. the first link sends packet 4 to packet 6 to the remote controller or ground station, and the second link sends packet 1 to packet 3. at t2, the remote controller or ground station receives the data sent by the first link and the second link. because the transmission delay of the two links is different, t2 is subject to the longest transmission delay. if there is no packet loss in the transmission process, then at t2, the remote controller or ground station can receive six complete data packets sent by the two links within the time of receiving only three data packets in the aforementioned transmission scheme. fig.3 schematic diagram of exchange and transmission of multiple data packets if there is packet loss during the first transmission, it indicates that the channel quality of the link with packet loss is not high or there is interference. assuming that the first link does not successfully transmit packet 2, and during the second transmission, the first link and the second link exchange the 92 order of the transmitted packets. that is, packet 2 will be transmitted on the second link. in a short time, the interference will not change too dramatically. therefore, the probability of the second link successfully transmitting packet 2 will increase, so that the remote controller or ground station can receive the complete 6 packets sent by the two links. in the worst case, when the data packets of the two links are transmitted at t4, the remote controller or the ground station can receive six complete data packets. transmission strategy based on verification and feedback in addition to adopting the above multiple data packets exchange and transmission strategy, we can also determine whether data packets exchange or error data packet retransmission is required through verification and feedback. on the one hand, a packet exchange strategy based on verification is designed to improve the reliability of data transmission and save link resources. first, obtain the feedback information sent by the remote controller or the ground station, and determine whether the transmitted data packets have errors according to the feedback information. if the feedback information carries an error tag, it can be determined that the transmitted data packets have an error, and then the data packet exchange is carried out, that is, the second part of the multiple data packets is sent through the first link, and the first part is sent through the second link. if the feedback information does not carry an error tag, it can be determined that the transmitted data packets have no error, and no packet exchange is required. on the other hand, a packet error retransmission strategy based on verification is designed to further improve the reliability and efficiency of data transmission. first, obtain the feedback information sent by the remote controller or the ground station, and determine whether the transmitted data packets have errors according to the feedback information. if there is an error in the transmitted data packets, determine the data packet to be retransmitted from multiple data packets according to the feedback information. if the data packet to be retransmitted is in the first part of the multiple data packets, retransmit the data packet through the second link. if the data packet to be retransmitted is in the second part, the data packet is retransmitted through the first link. for example, as shown in the figure below, at t0, the uav platform divides the target image data into six data packets. at t1, the first transmission begins, that is, the first link sends data packets 1 to 3 to the remote controller or ground station, and the second link sends data packets 4 to 6. at t2, the remote controller or ground station receives the data sent by the first link and the second link. because the transmission delay of the two links is different, t2 is subject to the longest transmission delay. at t3, the remote controller or ground station sends feedback information to the uav platform. through the feedback information, it can be seen that the data packet 2 transmitted by the first link has not been received, and requests retransmission. after receiving the feedback, the uav platform retransmits packet 2 on the second link. at t4, the remote controller or the ground station receives the retransmitted data packet 2 and recovers six complete data packets. fig.4 schematic diagram of transmission strategy based on verification and feedback 4. conclusion in this paper, a multimode wireless communication method of uav based on public and private network integration and an image transmission strategy based on dual-link backup are proposed. this method can effectively improve the reliability and efficiency of uav data transmission. based on this strategy and method, we will improve the link switching and adaptive image coding schemes in different scenarios to further improve the image transmission reliability. acknowledgements this paper was supported by the national key research and development program of china (no.2019yfb1804202), 2022 industrial technology basic public service platform project of china (no.2022-228-219), science and technology project of guangzhou (no.202102020855). references [1] chang li, jinxia cheng, guang yang and jiang yu, “development and application of 5g uav low-altitude digital”, mobile communications, 2019, vol. 43 (9), p47-52. [2] min wang, shudao zhou, zimu wen and yun jia, “the study of uav wireless image adaptive transmission”, proceedings of 2nd international conference on communication technology, 2015. [3] rui chen, zhiyuan li, yufang chen and wei zhang, “application of point-to-point protocol in uav image transmission link”, electronic technology and software engineering, 2021, vol. (09), p13-17. [4] mingliang niu, “research on transmission themes for unmanned aerial vehicles under 5g network”, beijing university of posts and telecommunications, 2019. [5] wei tong, “research on application scene of 5g new air interface technology in networked uav”, telecom power technology, 2019, vol. 36 (4), p212-213. [6] hu li, lin ma, juan di, junfeng yuan and hanqing wang, “application research of transmission line ubiquitous inspection technology via 5g uav”, computer science and application, 2020, vol. 10 (8), p1518-1525. [7] rajesh gupta, sudeep tanwar and neeraj kumar, “blockchain and 5g integrated softwarized uav network management: architecture, solutions, and challenges”, physical communication, 2021, vol. 47 (8), p1-13. [8] rizwana shahzadi, mudassar ali, humayun zubair khan and muhammad naeem, “uav assisted 5g and beyond wireless networks: a survey”, journal of network and computer applications, 2021, vol. 189 (9), p1-20. 93 [9] carolyn j. swinney and john c. woods, “the effect of realworld interference on cnn feature extraction and machine learning classification of unmanned aerial systems”, aerospace, 2021, vol. 8 (7), p1-18. [10] peiming li, zhonghao lyu, yuan fang and jie xu, “resource allocation for multi-cell cooperative integrated sensing and communication with uavs”. journal of signal processing, 2022, vol. 38 (8), p1592-1600. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 101 a lightweight neural network for palm vein recognition sifeng luo, xi huang* college of photonic and electronic engineering, fujian normal university, fuzhou, 350007, china * corresponding author: xi huang abstract: due to the advantages of lightweight networks such as efficiency, portability, and fast inference, we propose a palm vein recognition network based on lightweight neural networks. the network consists of three stages combining blocks of shufflenetv2, blocks of mobilenetv3, and mbconv of efficientnet. the number of each stage in the network is chosen based on the baseline parameters and computational effort, and the expansion factors are re-analyzed and selected. the performance of the proposed network is compared to the baseline with a 16.78% reduction in error rate and a 10.91% compression of parameters. the experimental results show that the proposed palm vein recognition network is effective, which can potentially contribute to the development of more accurate, portable and reliable biometric systems. keywords: plam vein; lightweight neural network; attention mechanism. 1. introduction with the rapid development of technology, there are not only traditional identification technologies in the field of recognition, but also some more convenient biometric technologies. palm vein recognition is a modern biometricbased technology that uses the unique vein pattern in the palm of the hand as a means of personal identification. unlike most biometric technologies, palm veins are stable, unique, not particularly sensitive to external conditions, and have high user acceptance and high anti-counterfeiting capabilities. palm vein recognition has a wide range of application scenarios, such as banking, finance, healthcare, government agencies, etc. in the financial industry, palm vein recognition can be used in atm machines, mobile payment and other scenarios. in the medical field, palm vein recognition can be used for the management of electronic medical records and the control of medical equipment. in government agencies, palm vein recognition can be used for id card processing and public security and other fields. the traditional designs of palm vein feature extraction and recognition are summarized into 3 ways. the first one is based on structural features, where geometric features (angular features and point features) of veins are extracted. such as ladoux p o et al.[1] extracted point features by scale invariant feature transform (sift) for recognition. the second one is based on texture features, where the palm vein images are used as texture images from which texture features are extracted. for example, g k o michael et al.[2] extracted the main texture features of veins by radom transform combined with discrete cosine transformation (dct) and matched them with euclidean distance. the third is a subspace-based approach, which views the vein image as a high-dimensional matrix and uses a downscaling into a lowdimensional one for recognition in the low-dimensional space. such as j g wang et al.[3] used pca algorithm to downscale the image and then used local hold projection (lpp) algorithm to extract the palm vein image features. since the traditional method requires the researcher to design the corresponding algorithm for feature extraction based on experience and by studying the image's own features. with the proposed convolutional neural network (cnn) with extremely powerful image feature extraction, the research no longer needs to design features manually. tarawneh et al.[4] used pre-trained cnns such as alexnet, vgg-16 and vgg-19 for palm vein image feature extraction. jiashu lou et al.[5] used the cnn with vgg-16 fused attention mechanism as a feature extraction network on infrared palm vein dataset. palm vein recognition using deep learning process may lead to longer computation time and higher storage footprint for resource limited devices. so the classical convolutional neural network is no longer suitable for this scenario. it is crucial to choose a more suitable lightweight neural network. in this paper, we re-analyze the principles of each block structure of the classical lightweight model and design a lightweight network model suitable for the scenario of palm vein recognition applications by combining various effective modules, further optimizing each parameter of the network to obtain better results than the baseline model on the casia dataset. 2. related theory 2.1. palm vein recognition the current basic process of palm vein recognition: image preprocessing, image feature extraction and recognition. since the hemoglobin in the palm veins absorbs nir light better than the surrounding tissue, the light reflected back from the palm is received by the image sensor and the palm veins can be observed by an optical imaging system. most palm vein images are obtained by illuminating the palm with near-infrared (nir) light from 720 to 1100 nm. in order to improve the accuracy and stability of recognition, the acquired images are pre-processed. the main purpose of preprocessing is to remove noise and interference from the image while extracting the features of the palm vein. feature extraction is the core step of palm vein recognition, which aims to extract the feature vector of palm vein from the preprocessed image. the features of palm veins include distribution, density, shape, length and width of blood vessels. after feature extraction, the extracted feature vectors need to be matched with the existing feature library to determine the 102 identity of the input image. the matching methods include euclidean distance, cosine similarity, support vector machine and cnn. among them, convolutional neural networks are increasingly used in palm vein recognition. 2.2. lightweight convolution neural network lightweight convolutional neural networks (lcnns) have a relatively small number of parameters and low computational complexity compared to traditional deep neural networks. this type of network is designed to obtain fast and efficient performance with limited hardware resources. their low computational requirements make them ideal for devices with limited resources, such as smartphones, embedded systems, and internet of things (iot) devices. and they also have low memory and storage requirements, making them easier to deploy and maintain in edge computing or other iot scenarios again. however, one of the main drawbacks of lightweight neural networks compared to traditional deep neural networks is their lower accuracy. therefore, the trade-off between model size, complexity, and accuracy must be carefully considered when choosing the right model for a particular task. despite these limitations, lightweight neural networks have many applications, including image classification, object detection, and semantic segmentation. low power consumption, realtime performance and small model sizes are critical in specific scenarios. they can also be used in collaborative learning systems, where multiple lightweight models can be trained and combined to achieve higher accuracy. to achieve high performance with fewer parameters, lcnns use a variety of techniques. the mobilenets[7] network family introduces depthwise-separable convolution as a module to significantly reduce computational costs and model complexity. the depthwise convolution within the struct operates independently on each channel of the input image, with no parameter sharing between channels, and substantially reducing the total number of model parameters. the subsequent point convolution subsequently allows for increased information exchange and combination between channels, enabling enhanced network expressivity while mitigating overfitting concerns. due to its superior performance and efficiency, depthwise separable convolution has been widely adopted as a standard for the development of subsequent lightweight neural network models. shufflenetv2 introduces the shuffle-block module, which leverages group convolution and channel shuffling techniques to enhance the feature representation while reducing the model complexity. specifically, the shuffle-block first applies group convolution to partition the input feature map into multiple subgroups, and then conducts channel blending to mix the outputs of different subgroups for facilitating inter-group information interaction and alleviating the problem of information silos. finally, point convolution is performed to fuse the mixed channel features and obtain the final output. this module exhibits robustness against noise and outliers by promoting cross-group information exchange via channel shuffling. the mbconv module proposed by efficientnet uses the swish function as the activation function and the se module after deep convolution to obtain better network performance, unlike the block of mobilenetv3. the experimental results are obtained by reprogramming and integrating these powerful modules to obtain better experimental results in palm vein recognition applications. 2.3. attention mechanism attention mechanism has become a powerful technique in deep learning to improve model performance by selectively focusing on different parts of the input data, effectively capturing the most relevant information and ignoring the irrelevant information. in palm vein recognition, the attention mechanism can be used to capture the most informative features in the palm vein image, thus improving recognition accuracy. the attention mechanism allows the model to learn which parts of the input data are most relevant to the task at hand and to selectively weigh these parts when making predictions. this approach is particularly useful in cases where the input data contains a lot of noise or irrelevant information, as is often the case with palm vein images. the module designed based on the attention mechanism can be widely used in various neural networks to optimize the network feature extraction capability and increase the model performance with a small number of model parameters yet. there are several different ways to implement attention mechanisms in deep learning models, but the most common approach is to use a soft attention mechanism, which computes a set of attention weights for each feature in the input data. these attention weights are then used to weight the feature representations before making predictions. the squeeze-and-excitation (se)[9] module mentioned in this paper is a module for enhanced feature representation in convolutional neural networks. as shown in the right part of figure 3, the se module consists of two parts: squeeze and excitation. in the squeeze phase, the se module compresses the features of each channel individually by a global pooling operation to extract the global statistics of the channel features. in the excitation phase, unlike the original se which uses a fully connected layer operation, mobilenetv3's se uses two 1x1 convolutional layers instead, with the latter layer generating a channel attention vector via an h-sigmoid activation function. by introducing the se module, the network can more effectively exploit the interdependencies and correlations between channels, thus improving the discriminative and expressive power of the features, and thereby improving the performance of the network. 3. proposed approach in this study, the basic process of palm vein recognition system is implemented to extract the captured palm vein images with roi and then perform image enhancement. for feature recognition, a palm vein recognition method based on a lightweight neural network is proposed, which is a recombination of classical and efficient lightweight modules. this subsection focuses on the image enhancement part and the principles of each lightweight module needed to design the network. 3.1. image preprocessing the training data used for the experiments in this paper are derived from the casia dataset. the casia dataset is a global database, collected and published by the institute of automation, chinese academy of sciences, containing 7200 palm images from 100 volunteers, with 6 images per palm sample, take simultaneously using 6 electromagnetic spectra. the goal of this dataset is to increase sample diversity within categories and to improve accuracy by capturing palm vein images using a stable device. five spectra in the 460 nm, 630 nm, 700 nm, 850 nm, and 940 nm bands are used to capture 103 in the dataset, where the palm images obtained by capturing in the 850 nm and 940 nm spectra contain relatively clear vein images that can be used as a palm vein library. (a) original grayscale image (b) roi image (c)adapt ive histogram equalizatio n (d) retinex (e) gabor fig. 1 roi and different enhancement images in this paper, the widely used tangent positioning method is used in selecting the roi positioning method to correct the palm deflection direction through the gap between the fingers, and the obtained graph is shown in fig. 1(b). when enhancing roi images, as shown in fig. 1(c) for the image after adaptive histogram equalization enhancement, the image is divided into local regions and then the histogram equalization is applied to each local region. fig. 1(d) shows the retinex enhanced image by decomposing the image at multiple scales and then performing brightness enhancement at different scales. fig. 1(e) shows the gabor enhancement map obtained by filtering in different directions and frequencies through gabor filters. since the adaptive enhancement and retinex enhancement methods may over-enhance the brightness and contrast of the image, resulting in increased image distortion and noise. in contrast, the gabor filter performs well in texture analysis and feature extraction, capturing texture information and edge information in the image and generating an image with high contrast and sharpness, which can better present the features of the palm vein image. finally, the gabor-enhanced image is selected as the input image for palm vein recognition. 3.2. design network the purpose of designing the network in this paper is to be able to extract useful features when processing palm vein images, while keeping the network lightweight and efficient. in order to design a suitable lightweight network and to minimize repetitive work, the optimal network is selected as the baseline by filtering among the classical lightweight networks. the final network, called palmnet, is obtained by optimizing again on the basis of the baseline. specifically, this network uses several classical convolutional blocks, such as the mobilenetv3 block, shufflenetv2 block and efficientnet-lite single layer in fig. 2, to improve the feature extraction capability of the network and reduce the computational effort. the block of shufflenet in fig. 2(a) splits the input feature map into two parts with adjacent channels and performs the operation separately. one part uses depth-separable convolution for feature acquisition, and the output is stitched with the other part to obtain a new feature map that is the same size as the input. in order to achieve information exchange between the two groups after segmentation, the new output feature map is subjected to channel rearrangement. this design of rearrangement after segmentation allows the information in the network to be more fully exchanged and transmitted, improving the diversity of features and the expressiveness of the network.as in fig. 2(b) the block of mobilenetv3 is constructed using a module of deeply separable convolutional layers, placing the se module at the last point of the module and then using residual connections, which improves the network and alleviates the problem of gradient disappearance while keeping the computational effort low. the mbconv module is shown in figure 2(c), which is proposed and adopted by efficientne. unlike the mobilenetv3 module which is placed in point convolution, where the number of channels is reduced and then the attention module is used after the number of channels is reduced, the mbconv module places the se module after the deep convolution and uses a special activation function internally to improve the network performance while maintaining high efficiency. fig. 2 different network blocks in addition, a global average pooling layer and a fully connected layer are added to the network to integrate and classify features. the global average pooling layer averages the features of each channel to obtain a feature vector with a fixed size. the fully connected layer then maps this feature vector to a 1024-dimensional feature space and finally outputs a probability value used to determine whether the palm veins match or not. fig. 3 a detailed view of palmnet by reprogramming those three important lightweight modules, the palmnet is designed as in fig. 3. input the palm 104 vein grayscale map into the network, scale the feature map size slowly and gradually increase the number of channels. this processing helps to improve the perceptual field of the network, and also reduces the number of parameters and improves the computational efficiency of the network. as the feature map is gradually scaled down, the network can better capture the details and texture information of the palm vein image, while the increase in the number of channels helps to improve the expressiveness of the network. stage2 and stage3 contain se modules that can further improve the robustness and accuracy of the network. most of the hyperparameters in the network are re-explored to be more lightweight than the baseline network and obtain g better performance in palm vein recognition. 4. experimental results and analysis 4.1. detail of the experiment to ensure the fairness of the experiments, the experiments are conducted based on pytorch, using rtx3060, using the casia dataset containing 850 nm, and the dataset is primitively augmented using luminance enhancement, contrast enhancement, and rotation, and the obtained palm vein training set contained 4750 and the test set contained 1185. the optimizer uses adam, the loss function uses cross entropy loss. epoch, batchsize, learning rate and weight decay are set to 1500, 32, 0.0001 and 0.0005 respectively. 4.2. ablation and results of experimental in designing a suitable network for vein recognition, the first step is to start from a classical neural network, using the same training method and data, as can be seen in table 1, shufflenetv2 gives the best results. for example, palmnet0.5x2413 means that the palmnet with a width factor of 0.5 contains 2 shufflenet-blocks, 4 mobilenetv3 blocks, 1 mbconv, and the expansion factor is set to 3. table 1. results of experimental model top-1 acc(%) params(m) flops(m) mobilenetv1-0.5x 95.19 0.92 153.06 mobilenetv2-0.5x 95.53 0.71 97.90 mobilenetv3_small 94.18 1.48 59.45 shufflenetv2-0.5x 96.96 0.55 37.46 palmnet-0.5x 97.47 0.49 43.40 palmnet-1.0x 97.89 1.37 192.77 palmnet-2.0x 99.07 4.47 765.12 palmnet-0.5x2223 96.20 0.56 37.67 palmnet-0.5x4223 97.05 0.56 40.11 palmnet-0.5x6223 96.46 0.56 42.56 palmnet-0.5x2323 97.63 0.58 43.09 palmnet-0.5x2313 95.95 0.46 37.98 palmnet-0.5x2413 97.47 0.49 43.40 palmnet-0.5x2412 96.80 0.44 34.11 palmnet-0.5x2411 96.20 0.39 24.83 with shufflenetv2 as the target, the initial network is set up to perform a trade-off between parameters and computational effort. the initial network, like the baseline, divides the network into three stages. in order to obtain smaller parameters for the network, the options for the stages with smaller parameters are directly selected and the control variable method is used in these options. the performance metrics obtained for the networks with subscripts [2,2,2,3] to [6,2,2,3] in table 1 can be found that the number of first stages cannot exceed 4. fixing the number of first stages to 2, the best two options are chosen to obtain the best performing options [2,3,2] and [2,4,1], respectively, and the second option is chosen after a trade-off between the number of parameters, the amount of computation and the accuracy. when designing the palm vein recognition network, the expansion factor of the se module in mobilenetv3-block and mbconv, as well as the number of expansion layers used for the first time within these two modules, were set to 3. for fairness, different sizes of expansion factors are set for the last three data in table 1, respectively. it can be seen that the expansion factor layer correlation, the larger the expansion factor the better the effect may be, due to the number of covariates. due to the limitation of the number of parameters, 3 is finally chosen as the expansion factor of the feature extraction network. 5. conclusion in this paper, a palm vein recognition network with three stages is designed using a combination of block of shufflenet, block of mobilenetv3, and mbconv of efficientnet. the number of stages and expansion factors of the network are chosen based on the parameters and computational effort of the baseline. the proposed network achieves better performance compared to the baseline. this work demonstrates the effectiveness of combining different block structures when designing palm vein recognition networks and the importance of carefully selecting network parameters to optimize feature recognition performance. the accuracy and efficiency of the proposed method for palm vein recognition is improved. since this paper is only experimented and validated on a closed set dataset, future optimization work will be performed on an open set dataset to validate again. references [1] ladoux p o, rosenberger c, dorizzi b. palm vein verification system based on sift matching, advances in biometrics: third international conference, icb 2009, alghero, italy, june 2-5, 2009. p.1290-1298. [2] michael g k o, connie t, hoe l s, et al. design and implementation of a contactless palm vein recognition system, the 1st symposium on information and communication technology. 2010, p. 92-99. [3] wang j g, yau w y, suwandy a, et al. person recognition by fusing palmprint and palm vein images based on “laplacianpalm” representation. pattern recognition, 2008, 41(5), p. 1514-1527. [4] tarawneh a s, chetverikov d, hassanat a b. pilot comparative study of different deep features for palmprint identification in low-quality images. arxiv preprint arxiv:1804.04602, 2018. [5] lou j, wang b. palm vein recognition via multi-task loss function and attention layer. arxiv preprint arxiv:2211.05970, 2022. 105 [6] watanabe m. palm vein authentication in advances in biometrics. heidelberg,germany: springer-verlag,2008, p. 75-88. [7] howard a, sandler m, chu g, et al. searching for mobilenetv3, proceedings of the ieee/cvf international conference on computer vision. 2019, p. 1314-1324. [8] ma n, zhang x, zheng h t, et al. shufflenet v2: practical guidelines for efficient cnn architecture design, proceedings of the european conference on computer vision (eccv). 2018, p. 116-131. [9] tan m, le q. efficientnetv2: smaller models and faster training, international conference on machine learning. pmlr, 2021, p. 10096-10106. [10] ma n, zhang x, zheng h t, et al. shufflenet v2: practical guidelines for efficient cnn architecture design, proceedings of the european conference on computer vision (eccv). 2018, p. 116-131. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 123 research on algorithm of video analysis system based on text error correction jinjin wang*, yang qin, jiahao shi, jiachen luo, guo huang, jiaqi lu school of information engineering, yancheng teachers university, yancheng, 224000, china * corresponding author: jinjin wang (email: wangjj@yctu.edu.cn) abstract: when making a video, if the video has a language organization error, it needs to be re-recorded. it is not possible to remove inappropriate or unnatural pronunciation parts of the recording more effectively. in response to this problem, this paper studies the speech extraction, error correction and synthesis of video, which is divided into three parts: (1) speech segmentation and speech-to-text of video; (2) text recognition error correction; (3) text-to-speech and video speech synthesis. for the first part, we applied the staged and efficient algorithm based on (bayesian information criterion) bic & (statistical mean euclidean distance) medist to segment the video voice, and then, the segmented audio is subtracted to reduce noise, and finally converted to text using the iflytek interface. for the second part, we apply the (double automatic error correction) daec algorithm to text error correction. for the third part, we use the (improved chinese realtime voice cloning) i-zhrtvc for text-to-speech. then merge the voice into the video. the simulation result shows that the staged and efficient algorithm based on bic & medist, which accurately segmented by sentences, can identify audio with dialect accents, and has high accuracy in translating to text, up to an average of 95.8%. daec algorithm has a high error correction rate. the audio prosody accuracy after synthesis is high. zvtow text-to-speech (mean opinion score) mos up to 4.5. keywords: speech segmentation; text recognition error correction; text-to-speech; video speech synthesis. 1. introduction and related work at present, the courseware content and artificial voice in the online recording of educational videos often appear as a whole, and when the video needs to be processed, more professional multimedia tools and teams are often required to complete the processing. what knowledge points need to be explained for how long, how long do you need to code demonstration cases, whether the language organization is reasonable, there is no more effective tool to assist the analysis, and often the recorder often re-records after the language organization error, and cannot more effectively remove the inappropriate or unnatural pronunciation part of the recording. therefore, video analysis schemes based on text error correction have become a research hotspot.chen lijiang et al. [1] studied the synthesis of speech with corresponding text and egg signals, and obtained a mel cepstral distortion (mcd) of 5.877 and an average opinion score (mos) of 3.87 based on the improved tacotron-2 model, and achieved an improvement of 0.42 with a relatively small model size. a fine-grained fundamental frequency modification method is proposed, which adjusts the fundamental frequency according to the egg signal. compared with the unmodified method, the mcd is lower at 5.781 and the mos is higher at 3.94.jinsong zhang et al. [2] studied robust tone recognition based on multi-level core framework; the contribution of tone information to pinyin-to-text conversion, based on mutual information to find tones depends on information phonemes. these studies and their results are applicable and instructive for the development of tone processing techniques in chinese capt techniques. a. mouchtaris et al. [3] address the more general problem of multichannel audio synthesis by extending the model used for the recomposition problem, namely how to fully synthesize a multichannel recording from a particular stereo or mono recording, by adapting the recomposition transformation parameters to the statistical properties of the record that we wish to enhance. when a particular model is applied to a different context (speaker, language, or channel), this parameter adaptation is similar to task adaptation used in speech recognition. mahmut emilianerman et al. [4] proposes a method of audio file segmentation that attempts to alleviate the problem of different individuals having different durations for the same utterance. a method for determining the maximum cross-correlation value between two audio files and a subsequent automatic segmentation method are described in order to extract two valid sound samples of target consonants, with the aim of preprocessing the audio file and feeding the evenly trimmed audio samples to a computerized ssd screening system. dabbabi karim et al. [5] propose an optimized audio classification and segmentation algorithm for dividing stacked audio streams into 10 main audio types based on their content. they tested knn, svm and gasom algorithms on two audio classification systems. in the first system using gasom algorithm and leave-one verification technique, the average accuracy of music/ambient sound discrimination reached 99.17%. compared with knn and svm algorithms, gasom algorithm always achieves the best performance results. 2. video analysis 2.1. speech segmentation and speech-to-text of video in terms of audio segmentation, we applied the staged and efficient algorithm based on bic & medist to segment the video voice. firstly, the audio separated from the video is subjected to spectral reduction and noise reduction processing; then, the noise-reduced speech is segmented in stages; finally, call iflytek interface, complete voice-to-text. 124 figure 1. the process of staged efficient algorithms based on bic and medist 2.2. text recognition error correction in this part, we use the daec algorithm to correct the text. first, automatic error correction is performed on the converted text (manual error correction is also supported); then, the corrected text is audited, including hot word frequency audit, video (and corresponding voice and text) modification (editing) times and location audit, video upload and video editing number proportion audit, etc. finally, the audit results are visualized in the developed teaching video voice extraction and audit system. as shown in figure 2. figure 2. the daec algorithm video voice text audit solution model input: the input embeddings of the entire model framework are composed of the addition and embedding of word embedding, position embedding, and segment embedding of each character in the text sentence. therefore, it can be seen that the input of the model framework of the whole method is actually the same as the general input form of the daec algorithm. 𝑒𝑖 = 𝑤𝑜𝑟𝑑 𝑒𝑚𝑏𝑒𝑑𝑑𝑖𝑛𝑔(𝑒𝑖) + 𝑝𝑜𝑠𝑖𝑡𝑖𝑜𝑛 𝑒𝑚𝑏𝑒𝑑𝑑𝑖𝑛𝑔(𝑥𝑖) + 𝑠𝑒𝑔𝑚𝑒𝑛𝑡 𝑒𝑚𝑏𝑒𝑑𝑑𝑖𝑛𝑔(𝑥𝑖) (1) detection network: the detection network in the daec algorithm framework is essentially a bidirectional gru model (bi-gru). the bi-gru model encodes each text sequence forward and backward, and then merges the hidden state of the forward coding of the last hidden layer chinese the sequence horizontally with the hidden state of reverse encoding, and the calculation process of the bi-gru model is as follows: ℎ𝑖 𝑑⃗⃗ ⃗⃗ = 𝐺𝑅𝑈(ℎ𝑖−1 𝑑⃗⃗ ⃗⃗ ⃗⃗ ⃗⃗ , 𝑒𝑖) (2) ℎ𝑖 𝑑⃖⃗ ⃗⃗⃗ = gru(ℎ𝑖+1 𝑑⃖⃗ ⃗⃗⃗⃗ ⃗⃗⃗, 𝑒𝑖) (3) ℎ𝑖 𝑑 = [ℎ𝑖 𝑑⃗⃗ ⃗⃗ ; ℎ𝑖 𝑑⃖⃗ ⃗⃗⃗] (4) ℎ𝑖 𝑑is the hidden state of the embedded ei of the character i in the text sequence in the last hidden layer after being calculated by the bi-gru model? the number of hidden layer dimensions of the reference bi-gru model is set to 256, and the number of hidden layer output dimensions after bidirectional encoding is 512. the hid calculated by the bigru model is then fed into two fully connected layers. loss function: as shown in the following schema, ℒ𝑑 represents the cross-entropy loss calculated by the final output value of the detection network of the error detection network; ℒ𝑐 represents the cross-entropy loss calculated for the output value after the error correction network. ℒ𝑑 = −∑log𝑃𝑑(𝑔𝑖|𝑋) 𝑛 𝑖=1 (5) ℒ𝑐 = −∑log𝑃𝑐(𝑦𝑖|𝑋) 𝑛 𝑖=1 (6) the loss function of the whole daec algorithm is composed of the loss function of the detection network of the error detection network and the loss function of the error correction network correction network: ℒ = λ ∙ ℒ𝑐 + (1 − λ ) ∙ ℒ𝑑 (7) the above equation is the loss function representation of daec algorithm. in the formula, 1−λ and λ are the linear combination coefficients of the loss function of the detection network and the loss function of the correction network, that is, the linear combination of the respective loss functions of the two networks is the total loss function of the final softmasked bert model. 2.3. text-to-speech and video speech synthesis in this part, we use the i-zhrtvc for text-to-speech. then merge the voice into the video. the prototype is zhrtvc, using machine learning algorithms, zhvoice is the chinese speech corpus, the voice is clearer and more natural, including 8 open source datasets, 3200 speakers, 900 hours of speech, 13 million words. large corpus splicing speech synthesis system based on statistical rules ultra-largescale sound library production: corpus design; soundbank recording; fine segmentation; prosodic callouts; the sound quality is good, the difference in sound quality of recording synthesis is small, and the naturalness of normal sentences is good. the zhvoice corpus can be used to train the base model of speech cloning. ge2e_pretrained_iwater.pt: a speech encoder model trained with chinese open-source speech corpus. mel-spectrogram: vocoder the process of i-zhrtvc for text-to-speech and merge the voice into the video as shown in figure 3. first obtain the text that needs to be replaced; then, the text-to-speech encoder retrained based on the fusion data_aishell dataset automatically converts text into speech (and also supports manual recording of speech). then, the converted voice is normalized and integrated with the original voice intensity, prosody and duration. finally, the fused audio is merged with the silent video to get the corrected video. figure 3. the process of i-zhrtvc for text-to-speech and merge the voice into the video 3. experiment and result analysis 3.1. experimental results of the staged and efficient algorithm based on bic & medist compared with traditional bic audio segmentation 125 algorithm,the staged and efficient algorithm based on bic & medist is proposed in this paper. which discards the glr (general likelihood) comparable distance calculation formulas such as (kullback-leibler)kl, etc., use the statistical mean euclidean distance medist, combined with the local maximum selection and significance detection. then use the bic method to confirm the candidate segmentation points. the test results show that this method not only improves the overall audio segmentation speed to a large extent, it is 400 times higher than the traditional bic method, and the deletion error rate mdr is reduced by 15.1%. the insertion error rate far is slightly reduced, which greatly improves the accuracy of text-to-text conversion after speech extraction. audio split point insertion error (fa) means that a split point that does not actually exist is detected; audio split point deletion error (md) means that a split point that actually exists is not detected. fa (false alarms rate) and mdr (missed detection rate) are defined as follows: 𝐹𝐴𝑅 = 𝐹𝐴 𝐴𝐶𝑃+𝐹𝐴 × 100% (8) 𝑀𝐷𝑅 = 𝑀𝐷 𝐴𝐶𝑃 × 100% (9) among them, acp (actual changing points) represents the real audio split point. similarly, we can define the total error score es (error score) es = far + mdr (10) the specific algorithm comparison chart is shown in the figure 4. figure 4. the specific algorithm comparison table 1. accuracy comparison of speech extraction algorithms total number of test cases speechtospeech error rate <10% speechto-speech error rate <5% speechto-speech error rate <3% new design speech extraction algorithm 28 100% 92.80% 89.20% traditional speech extraction algorithms 29 36% 10.70% 0.00% in terms of speech-to-text noise reduction in speech extraction, by analyzing the audio and processing the audio through fft (fast fourier transform), noise estimation and amplitude quadratic calculation are performed to achieve spectral reduction, which can not only noise reduction, it also has a certain ability to recognize some audio with dialect accents except mandarin chinese. after 20,000 audio tests, we concluded that the audio after noise reduction can have an average recognition accuracy of 95.8%, which can improve the accuracy of text conversion. combining the above two points and testing a set of java videos (28), compared with the traditional algorithm, the new algorithm can extract language with an accuracy of 95.8%. there is no error in converting most audio segments to speech, and the error rate in a small number of use cases can also be controlled below 20%. however, based on the traditional speech extraction algorithm, there are large errors in the speech extraction of audio segments with high noise or audio segments with low segmentation accuracy, and the correct rate is only 35.3%. the test results are shown in table 1. 3.2. experimental results of the daec algorithm the video voice text audit scheme corrected by daec algorithm has a high error correction rate. in 20000 text error correction tests, the correct rate of normal text and spoken text of the new double error correction method has increased by 10.8% and 15.3% respectively compared with bert, and by 0.7% and 2.0% respectively compared with baidu, as shown in table 2. table 2. comparison of algorithms normal text error correction rate correctness rate of more spoken texts daec 98.30% 96.60% baidu 97.60% 94.60% bert 77.50% 81.30% 3.3. experimental results of i-zhrtvc based on the innovative zhrtvc algorithm, this paer retrained with chinese data from 400 people in data_aishell, and in vocoder, mel-spectrogram generated by synthesistrained models was used instead of the original griffin-lim. in addition to the realization of automatic text-to-speech (tts), the improved algorithm also improves the prosody accuracy by 15% compared with the previous pyttsx, and the mos value reaches 4.5. the mos calculation formula is as follows: mos = ∑ ∑ 𝑆𝑖𝑗 𝑁 𝑖=1 𝑀 𝑗=1 𝑀 (11) by collecting the 100 use cases outlined, compared with the traditional pyttsx speech-to-speech algorithm, the newly designed text-to-speech pronunciation accuracy can reach 95%, most of the use cases pronunciation standards are coordinated with prosody, a small number of prosody and pronunciation errors, and a few use cases have large deviations. based on the traditional pyttsx to speech algorithm, the algorithm has a large error in the prosody results of long or complex text-to-speech. as shown in table 3. table 3. i-zhrtvc vs. pyttsx pronunciation, prosody, dictionary accuracy comparison results total number of test cases pronunciation accuracy prosodic accuracy dictionary accuracy i-zhrtvc 100 95% 85% 83% pyttsx 100 87% 70% 80% in addition, our team's i-zhrtvc algorithm with reference to zhrtvc can achieve a mos value (voice quality evaluation index) of 4.5, as shown in table 4. by properly training the gmw vocoder, it sounds very natural, and the dbplus 126 algorithm is used to level the average db of the audio, and the audio time is used a. speed is the same duration as the original audio, sounds complete without obvious abnormal rhythmic ups and downs, is relatively clear and smooth, and is easier to understand, reaching the quality of people's ordinary conversations, and listeners are willing to accept it. table 4. comparison table of mos values of various mainstream tts algorithms name i-zhrtvc gtts pyttsx win32com mos 4.5 4.2 3.8 4.0 4. conclusion this paper studies video analysis based on text error correction from three aspects: speech segmentation and speech to text, text recognition and error correction, text to speech and video speech synthesis. bayesian information criterion bic and statistical mean euclidean distance will be used. medist's phased efficient algorithm, daec algorithm and i-zhrtvc algorithm are applied to video analysis research based on text error correction. experiments show that the video analysis scheme based on text error correction proposed and designed in this paper has high efficiency and accuracy. references [1] chen lijiang,ren jie,chen pengfei,mao xia,zhao qi. limited text speech synthesis with electroglottograph based on bilstm and modified tacotron-2[j]. applied intelligence,2022,52(13). [2] jin-song zhang & wen cao center for studies of chinese as a second language college of information sciences beijing language university no. 15, road xueyuan, haidian, beijing 100083, p. r. china. tone information processing for chinese automatic speech recognition and a discussion of its application to computer aided pronunciation training. [3] a. mouchtaris,s.s. narayanan,c. kyriakakis. multichannel audio synthesis by subband-based spectral conversion and parameter adaptation[j]. ieee/acm transactions on audio speech and language processing,2005,13(2). [4] mahmut emilian-erman,nicola stelian,stoicu-tivadar vasile. cross-correlation based automated segmentation of audio samples.[j]. studies in health technology and informatics,2020,272. [5] dabbabi karim,cherif adnen,hajji salah. an optimization of audio classification and segmentation using gasom algorithm[j]. international journal of advanced computer science and applications (ijacsa),2018,9. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 66 research on lovelorn emotion recognition based on ernie tiny yuxin huang school of computing and data science, xiamen university malaysia, selangor darul ehsan, sepang 43900, malaysia swe1909470@xmu.edu.my abstract: topics related to sentiment classification and emotion recognition are an important part of the natural language processing research field and can be used to analyze users' sentiment tendencies towards brands, understand the public's attitudes and opinions on public opinion events, and detect users' mental health, among others. past research has usually been based on positive and negative emotions or multi-categorized emotions such as happiness, anger and sadness, while there has been little research on the recognition of the specific emotion of lovelorn. this study aims to identify the lovelorn emotion in text, using deep learning pretrained model ernir tiny to train a dataset consisting of 5008 pieces of chinese lovelorn emotion text crawled from social media platform weibo and 4998 pieces of ordinary text extracted from existing available dataset. and finally, it was proved that ernie tiny performs well in classifying whether a text contains lovelorn emotion or not, with f1 score of 0.941929, precision score of 0.942300 and recall score of 0.941928 obtained on the test set. keywords: ernie tiny; lovelorn emotion; emotion recognition. 1. introduction sentiment analysis is an attractive and valuable task in the discipline of natural language processing, which is the process of analyzing, processing, generalizing and reasoning about text with sentiment, focusing on people's emotional attitudes toward various entities, including products, organizations, events, etc. according to the granularity of the analyzed object, it can be divided into document, sentence and aspect level. sentiment analysis plays an important role in many fields, for example, movie reviews can be used to analyze whether users rate movies positively or negatively; sentiment tendency of users towards attributes such as price and usefulness of products can be mined in product review texts. in addition, sentiment analysis is also important in the field of mental health, which can understand the psychological needs of users and provide emotional support and treatment. there are a large number of emotionally charged texts on social media platforms, including the lovelorn emotion, but there has been little research on this specific emotion. this study focuses on detecting the emotion of love loss in texts, which can identify whether lovelorn emotion is contained from any text, helping heterosexual dating platforms to identify potential target users of love loss and advertise their dating software accordingly. while social media software can also cooperate with platforms that provide psychological therapy, to implement emotional care for these users and push them information that helps to get out of negative emotions, so that the target group can face lovelorn emotions in a healthier state of mind, showing the humanistic care of the organization. 2. literature review detecting emotions with natural language processing techniques is one of the applications of artificial intelligence in mental health. to address the problem that traditional machine learning models fail to effectively focus on some features in sentiment analysis tasks, the deep learning model lstm was used by chen et al. to extract and classify users' emotional features and applied to the scenario of postpartum depression screening. the role of emoticons was also considered by extracting features and modeling, and good results were achieved in general agreement with the edinburgh postpartum depression scale. the study significantly reduces the length of sentiment screening and served as a good reference for document-level emotion classification tasks in specific domains. liu, shi and jiang used the (bsc + rfs)-fs, wec-fs model proposed by the optimal classification model fusing single and multidimensional features to identify posts with suicidal ideation (including the stress of love loss) in social media, and the results demonstrated that an appropriate combination strategy and the selection of a targeted classification model contributed to the improvement of suicidal ideation detection rate. traditional sentiment analysis techniques include supervised methods, such as support vector machines, maximum entropy, plain bayes and other supervised machine learning methods, and unsupervised methods, including methods based on sentiment lexicon, syntactic analysis and syntactic patterns. the lexicon-based methods mainly use a series of sentiment lexicons and rules developed for paragraph disassembly and syntactic analysis of texts to calculate sentiment values, and finally use the sentiment values as a basis for judging the sentiment tendency of texts. most of the machine learning-based methods treat this problem as a classification problem, manually labeling the training text, structuring the text content, and inputting it to the algorithm for training and learning, and classifying the target sentiment into positive and negative categories to judge the sentiment polarity. these early methods are relatively simple and have good results for some related tasks. however, sentiment lexicon-based approaches lack semantic associations between contexts, and the training of machine learning models relies on the quality of annotated datasets, 67 which require high quality feature construction and selection, and therefore have limitations. with the popularity of deep learning, the application of deep learning architectures in sentiment analysis tasks has become a very popular research topic in recent years, using multilayer neural networks to learn features and extract them automatically, overcoming many of the problems of traditional classification techniques. a large number of sentiment analysis studies based on deep learning (e.g., convolutional neural networks cnn, recurrent neural networks rnn, long-short term memory networks lstm, etc.) have emerged and obtained state-of-the-art results in many tasks of sentiment classification. kim discussed that fine-tuning task-specific word vectors in a cnn model can improve performance. with the performance of pre-trained word vectors on sentence classification tasks, it is demonstrated that simple single-layer cnn models with less hyperparameter tuning and static word vectors can achieve better performance on multiple benchmarks, optimizing tasks including sentiment analysis and problem classification. tang, qin, and liu used the idea of memory network for aspect-level sentiment analysis, constructed the memory by context information, introduced attention to capture the important information in the sentiment tendency of different aspects, and achieve great results on the experimental dataset, which was simpler and faster to compute than the neural network models such as rnn and lstm. in addition, the research demonstrated that combining content information and location information to learn context weight was a more suitable method for aspect-level sentiment analysis, and the multi-layer computational unit can learn more abstractive information, which can improve the model performance. an attention-based bi-directional cnn-rnn depth model (abcdm) was proposed by basiri et al. for sentiment analysis. by using two independent bidirectional lstm and gru layers, temporal information in both directions was considered to extract context. also, the attention mechanism was applied in the output of the model's bidirectional layers to emphasize contributions of different words, achieving sota results on the twitter dataset. the bert+attention model proposed by wang and tong improved the bert pre-training model by introducing an attention mechanism and weighting key features to analyze the emotions expressed on microblogs during the epidemic, and obtained higher accuracy than the textcnn, bilstm and the bilstm+attention model. 3. research methodology 3.1. ernie tiny model ernie tiny, proposed by baidu, is obtained by compressing ernie 2.0 base model through the method of model structure compression and model distillation, using 3layer transformer structure, which significantly improves the prediction speed by 4 times and can quickly land the project. and ernie 2.0 consists of two parts, transformer encoder and task embedding, which improves the masking strategy and corpus on the basis of bert, making it more suitable for chinese sentiment classification tasks. (1) transformer encoder consistent with several pre-trained models such as bert, the ernie 2.0 model also uses a 12-layer transformer as encoder. unlike bert, the transformer encoding layer of bert is used in the first 6 layers, but in the 7th custom knowledge fusion layer bertlayermix, the aligned entity vector and the denominator vector are summed for the first time and transmitted to the knowledge encoding module and the text encoding module, respectively, and in the remaining 5 custom knowledge encoding layers bertlayer, the entity sequence and the text sequence, which have been fused with both information, are encoded using the self-attention mechanism, respectively. transformer captures the contextual information of each token in a text sequence by self-attention and generates contextual representation embeddings. for a given sequence, the starting position is a predefined separator [cls]; for tasks where the input is multi-segment, the different segments are separated by a predefined [sep]. (2) task embedding the task embedding in the model is used to apply different tasks, and each task id has its own specific task embedding, which is input to the model along with token embedding, position embedding and sentence embedding. in the finetuning phase, task ids can be selected to initialize the model. and the sentence loss and token loss are used as the loss function. the structure of ernie 2.0 model is shown in figure 1. figure 1. ernie 2.0 model structure (3) model distillation ernie tiny compresses the pre-trained model through a progressive distillation framework using four stages of distillation, including general-enhanced distillation, where the student model receives augmented knowledge from finetuned teachers and generalization capability is improved. task-adaptive distillation smooths the transition through designed learning objectives. figure 2 shows the model distillation work flow of ernie tiny. figure 2. workflow of ernie tiny based on previous studies, it can be seen that deep learning models, especially pre-trained models like bert, have superior results for sentiment classification tasks. at the same time, there are fewer studies on the psychological emotion analysis for the emotion of lost love, so this paper focuses on 68 the study of the recognition of the lovelorn emotion using deep learning model. 3.2. experiment 3.2.1. data preparation and processing the first step was to obtain the data. since there was no readily available textual dataset for love loss, a web crawler program was written to crawl the comments of articles about "love loss", "regret of youth" and other related words on chinese social media platforms weibo. then data cleaning was performed, using python to remove the empty and duplicate lines in the comments, and then manually filter the comments that are not related to the emotion of lost love, and finally got 5008 pieces of text with the emotion of lovelorn, and set the label to 1, which means it contains the emotion of lost love. the next step was merging the data. the comments from the existing general weibo sentiment seven-category comment dataset ocemotion [10], which is not specific to any topic, was extracted and merged with the lost love sentiment text into a csv file. since ordinary comments may also contain comments related to love loss, 4998 comments under the "happiness" sentiment tag were selected as nonlove-loss sentiment data, and the tag was set to 0, resulting in a dichotomous (lovelorn and normal) weibo sentiment dataset. the sample comments were translated into english, as shown in table 1. finally, the dataset was divided. the training set, validation set and test set were divided according to 8:1:1 and the data were randomly shuffled, making the data of different categories as uniformly distributed as possible. table 1. sample review text text label (1: lovelorn; 0: normal) no more, he said he doesn't love me anymore. 1 i said the breakup, but why do i miss him so much, and also sad, i seem to have lost him. 1 eight years, how can i give up. you are so good, so good that i want to spend my life with you. but i was disqualified. i'm lost, i don't want to go the rest of the way. 1 today go out to play so cool ah, both wind and sun and sun uv weak. 0 happiness is not about having more, but about thinking less. 0 wake up and find that can still stay in bed! 0 3.2.2. build and train model after processing the data into a format acceptable to the model, using paddlehub, a pre-training model management and migration learning tool, the pre-trained model ernie tiny was loaded and the text was processed using the model's built-in tokenizer. next, the adamw optimizer was selected as the optimization strategy for pretrained model ernie tiny, setting the learning rate and using the model default parameters. then run the configuration to control the finetuning of the training task, specify the training and validation sets of the model, and configure the training parameters such as the number of training epochs, batch size, etc. 4. result discussion in this experiment, adamw was chosen as the optimizer of the pre-trained model to solve the problem of l2 regularization failure in the adam optimizer [11]. finally, the test set was evaluated with macro f1-score, precision (p), and recall (r) metrics which are the common indexes used in classification tasks. f1 value is the harmonized average of p and r values, and macro f1 score directly calculate the average of f1 values for each category. the precision is the percentage of samples with positive true values among all samples with positive predicted values, and the recall is the percentage of samples with positive predicted values among all samples with positive true values. the final test score results were obtained as shown in table 2, with f1 score, precision score and recall score of 0.941929, 0.942300 and 0.941928 respectively. it can be seen that ernie tiny model can accurately identify and classify the emotions of lovelorn, and get satisfying results. table 2. evaluation index result f1-score precision recall 0.941929 0.942300 0.941928 5. conclusion in this study, the basic architecture and principles of the deep learning model ernie tiny were introduced. three approaches to sentiment classification (sentiment lexiconbased approach, machine learning based approach and deep learning approach) were explored. in order to address the problem that few existing sentiment analysis studies detect love loss emotion texts, the author crawled love loss emotion texts on the social media platform weibo, combined with normal sentiment reviews as dataset, and the ernie tiny model was trained to recognize lovelorn emotion texts, which can effectively classify texts containing love-loss emotion from ordinary non-love-loss texts, and finally achieve satisfactory results. on the one hand, this study contributes to the work on emotion perception in digital mental health treatment solutions, reflecting the important value of sentiment analysis in this area and having valuable social significance. on the other hand, since punctuation marks may also contain some enhanced emotions, and the number of training texts is not very large, future work is to consider the role of punctuation marks into the problem of sentiment analysis with more training data, further improve the accuracy of sentiment classification. references [1] chen, y., zhou, b., zhang, w., gong, w., & sun, g. (2018). sentiment analysis based on deep learning and its application in screening for perinatal depression. 2018 ieee third international conference on data science in cyberspace (dsc). https://doi.org/10.1109/dsc.2018.00073 [2] liu, j., shi, m., & jiang, h. (2022). detecting suicidal ideation in social media: an ensemble method based on feature fusion. international journal of environmental research and public health, 19(13), 8197. doi:10.3390/ijerph19138197 [3] zhang, l., wang, s., & liu, b. (2018). deep learning for sentiment analysis: a survey. cornell university arxiv. https://doi.org/10.48550/arxiv.1801.07883 [4] kim, y. (2014). convolutional neural networks for sentence classification. proceedings of the 2014 conference on 69 empirical methods in natural language processing (emnlp). doi:10.3115/v1/d14-1181 [5] tang, d., qin, b., & liu, t. (2016). aspect level sentiment classification with deep memory network. proceedings of the 2016 conference on empirical methods in natural language processing. https://doi.org/10.18653/v1/d16-1021 [6] basiri, m. e., nemati, s., abdar, m., cambria, e., & acharya, u. r. (2021). abcdm: an attention-based bidirectional cnnrnn deep model for sentiment analysis. future generation computer systems, 115, 279-294. doi:10.1016 / j.future.2020.08.005 [7] wang, x., & tong, y. (2021). application of bert+attention model in emotion recognition of metizens during epidemic period. journal of physics: conference series, 1982(1), 012102. doi:10.1088/1742-6596/1982/1/012102 [8] sun, y., wang, s., li, y., feng, s., tian, h., wu, h., & wang, h. (2020). ernie 2.0: a continual pre-training framework for language understanding. proceedings of the aaai conference on artificial intelligence, 34(05), 8968-8975. doi:10.1609/aaai.v34i05.6428 [9] su, w., chen, x., feng, s., liu, j., liu, w., sun, y., . . . wang, h. (2021). ernie-tiny: a progressive distillation framework for pretrained transformer compression. arxiv: computation and language. [10] li, m., long, y., lu, q., & li, w. (2016). emotion corpus construction based on selection from hashtags. language resources and evaluation, 1845–1849. [11] loshchilov, i., & hutter, f. (2018). decoupled weight decay regularization. international conference on learning representations. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 42 application of improved dv-hop algorithm in wireless sensor network jiaowu cai1, liangyu li1, zhijun zhang2 1 college of information engineering zhongshan polytechnic, zhongshan 528400, china 2 jiangxi coal industry group co., ltd, pingxiang 337000, china abstract: to improve the problem of inaccurate wireless sensor network positioning algorithm of dv-hop node is proposed. firstly, the optimization scheme of the anchor nodes is completed by calculating the triangle area of the anchor nodes. furthermore, the particle group optimization algorithm combines the genetic chaotic particle group theory, and finally, the improved particle group algorithm is used to correct the node position obtained by the dv-hop algorithm. the simulation experiments show that improving the dv-hop algorithm compared with the traditional d v-hop algorithm to monitor the underground leakage accident position more accurately. keywords: particle swarm algorithm; genetic algorithm; dv-hop; wireless sensor network. 1. introduction with the development of wireless communication technology, wireless sensor network (wsn) is increasingly used in coal mines.among dv-hop[1-2]as a no-need ranging and positioning algorithm, it is very suitable for wsn node positioning under the mine. many optimization algorithms have been improved to reduce localization error and improve localization accuracy [3-7]. document [3] the ant colony particle swarm algorithm is introduced into the unknown node computation stage of the dv-hop algorithm to improve the localization accuracy. document [4] the problem of collinear anchor nodes is removed by using the angle comparison principle of the multilateral measurement method. document [5] the frog algorithm is introduced to solve the average per hop distance, thus reducing the node localization error and making it closer to the actual value. these algorithms contribute to some extent to optimize the performance of the dv-hop algorithm, but they still have shortcomings. based on the dv-hop positioning algorithm, an anchor node optimization method avoids the problem that the nodes cannot be located, and proposes a dv-hop improvement scheme based on the genetic chaotic particle swarm algorithm to reduce the average positioning error of downhole distribution network faults and improve the positioning accuracy. 2. analysis and improvement of the dv-hop algorithm 2.1. dv-hop algorithm the dv-hop algorithm process is located as follows: step 1 anchor node will its own information (id, coordinates, anchor receiving information node jump) through the flood, the initial value of jump is set to 0, each critical point received the information and update the minimum jump, and jump number plus 1, and continue to forward to the neighbor node, this rule to obtain the unknown node from each anchor node minimum jump value. step 2 takes the jumps of other anchor nodes and the average distance per jump of the anchor node is calculated according to eq. (1). 𝑑𝑖𝑠𝑎 = ∑ √(𝑥𝑖−𝑥𝑗)2+(𝑦𝑖−𝑦𝑗)2 𝑖≠𝑗 ∑ ℎ𝑐𝑖𝑗𝑖≠𝑗 (1) in this eq.: (𝑥𝑖 , 𝑦𝑖) and (𝑥𝑗 , 𝑦𝑗) are the coordinates of anchor nodes 𝑖 and𝑗 .ℎ𝑐𝑖𝑗 is the minimum number of jumps between anchor node 𝑖 and node𝑗. step 3: using the three-sided measurement method, the distance between the unknown node a0 and the anchor nodes a1, a2, and a3, as shown in figure 1, is calculated by eq.(2). { √(𝑥1 − 𝑥)2 + (𝑦1 − 𝑦)2 = 𝑑1 √(𝑥2 − 𝑥)2 + (𝑦2 − 𝑦)2 = 𝑑2 √(𝑥3 − 𝑥)2 + (𝑦3 − 𝑦)2 = 𝑑3 (2) figure 1. schematic diagram of the trilateral measurement method convert eq. (2) to the format of eq. ax =p:             −− −− −− = −− )()( )()( )()( 11 22 11 kkkk kk kk yyxx yyxx yyxx a  (3) 𝑋 = [ 𝑥 𝑦] 4)               −+−+− −+−+− −+−+− = −−= 2 1 222 1 22 1 2 2 222 2 22 2 2 1 222 1 22 1 2 1 kkkkkk kkk kkk ddyyxx ddyyxx ddyyxx p  (5) 43 using least squares estimation: 𝑋 = (𝐴𝑇𝐴)−1𝐴𝑇𝑃 (6) 2.2. deficiency of the d v-hop algorithm (1) the topological relationship of anchor nodes will directly affect the positioning accuracy of wireless sensor nodes. figure 2 shows the distribution of wireless sensor nodes in the underground coal mine power grid [8]. due to the long and narrow geographical environment of the underground coal mine, the sensors in the distribution network cannot meet the requirements of uniform layout during installation, which will produce the sensor node collinear or approximate collinear situation, neither of which can achieve the node positioning. therefore, the removal of collinearity and the selection of suitable anchor nodes becomes a key problem. figure 2. distribution diagram of wireless sensors in underground coal mine power grid in the dv-hop algorithm, the average distance often errors with the actual value due to the influence of environment and communication. and once the error occurs, it will be cumulative to affect the subsequent calculation, and eventually lead to greater calculation errors. therefore, the calculation error must be reduced by correcting for the unknown node coordinates. 3. improvement of the dv-hop algorithm 3.1. anchor node preferred scheme in this paper, the area of anchor node by calculating whether the anchor node is collinear:𝑆𝑛 𝑆𝑛 = | 𝑥𝑖 𝑦𝑖 1 𝑥𝑗 𝑦𝑗 1 𝑥𝑘 𝑦𝑘 1 | (7) assume that (𝑥𝑖 , 𝑦𝑖) , (𝑥𝑗 , 𝑦𝑗) and (𝑥𝑘 , 𝑦𝑘) are the coordinates of 3 anchor nodes randomly distributed,𝑆𝑛is the triangle area composed of anchor nodes.if 0 ≤ 𝑆𝑛 ≤ 𝛿, then these three anchor nodes are considered to be in an approximate line, so another anchor nodes are needed to assist in positioning. 3.2. particle swarm optimization dv-hop the particle swarm optimization algorithm pso (particle swarm optimization) shows its unique advantages in handling optimization problems due to its excellent global search performance and fast convergence ability [9]. pso starts from the random solution, for the 𝑛 -dimensional optimization problem, randomly generates the initial population of 𝑚 particles, and substitutes the flight speed 𝑉𝑖 and position 𝑋𝑖 of the 𝑖 th particle into the optimization objective function to obtain the fitness value. after updating 𝑉𝑖 and location 𝑋𝑖 and iteration, the optimal solution is found. the optimal solution obtained by the 𝑖 th particle search is recorded as 𝑝𝑖 , and the current optimal solution obtained by particle swarm search is recorded as 𝑝𝑏 , and 𝑉𝑖 and 𝑋𝑖 are updated by using eq. (8) and eq. (9). 𝑋𝑖𝑛(𝑘 + 1) = 𝑋𝑖𝑛(𝑘) + 𝑉𝑖𝑛(𝑘 + 1) (8) 𝑉𝑖𝑛(𝑘 + 1) = 𝜔𝑉𝑖𝑛(𝑘) + 𝑐1𝑟1(𝑃𝑖𝑛 − 𝑋𝑖𝑛(𝑘)) + 𝑐2𝑟2(𝑃𝑏𝑛 − 𝑋𝑖𝑛(𝑘)) (9) in the equation, 𝑐1 and 𝑐2 are shrinkage factors, and 𝜔 is inertia weight. 3.3. genetic chaos particle swarm algorithm this paper presents a genetic chaos particle swarm algorithm called gcpso (genetic chaos particle swarm optimization) by introducing the chaos principle and the dynamic weight adaptive regulation method. 3.3.1. genetic algorithm the genetic algorithm ga (genetic algorithm) is a development law that simulates the continuous evolution of living organisms in nature [10]. in this paper, a new generation of elites is formed by introducing the crossover and variation of ga algorithm in the pso algorithm, and finally the optimal solution of the optimization problem is obtained. (1) select the crossover select 𝑁 even individuals, then pair the selected individuals in pairs, perform cross operation, and generate offspring particles. suppose that particle 𝑎 and particle 𝑏 are selected for cross operation, and the corresponding positions 𝑋𝑎(𝑡) and 𝑋𝑏(𝑡) are replaced by the following descendants: 𝑋1 𝑘 = 𝑟𝑋1 𝑘 + (1 − 𝑟)𝑋2 𝑘 (10) 𝑋2 𝑘 = 𝑟𝑋2 𝑘 + (1 − 𝑟)𝑋2 𝑘 (11) corresponding speed: 𝑉1 𝑘 = 𝑟𝑉1 𝑘 + (1 − 𝑟)𝑉2 𝑘 (12) 𝑉2 𝑘 = 𝑟𝑉2 𝑘 + (1 − 𝑟)𝑉1 𝑘 (13) 2) variant operation after crossing particles with probability 𝑃 , perform the following mutation operations: 𝑥𝑖 𝑘+1 = { 𝑥𝑖 𝑘 + 𝑐𝑖 𝑖𝑓 𝑓𝑖𝑡𝑛𝑒𝑠𝑠(𝑥𝑖 𝑘 + 𝑐𝑖) > 𝑓𝑖𝑡𝑛𝑒𝑠𝑠(𝑥𝑖 𝑘) 𝑥𝑖 𝑘 𝑜𝑡ℎ𝑒𝑟𝑠 14) 𝑉𝑖 𝑘+1 = 𝑉𝑖 𝑘 (15) in the equation, 𝑐𝑖 is the interval [𝑥𝐿 − 𝑥𝑖 𝑘, 𝑥𝑈 − 𝑥𝑖 𝑘] uniformly distributed random number, 𝑥𝐿 and 𝑥𝑈 are the upper and lower limits of search respectively. 3.3.2. adaptive parameter adjustment chaos is a nonlinear motion which is very sensitive to initial conditions and can traverse all states. in this paper, the chaos principle is used to optimize the velocity 𝑉𝑖 and position 𝑋𝑖 of particles by adaptively adjusting the parameters of particle swarm optimization algorithm. create a chaotic sequence as follows: 𝛽𝑘+1 = 𝜆𝛽𝑘(1 − 𝛽𝑘) (16) when 𝜆 = 4, the system will enter into a chaotic state, and the chaotic variable 𝛽𝑡(𝑡 = 1,2, ⋯ ) will traverse all the states in the system without repetition. after that, 𝑟1 and 44 𝑟2 are dynamically adjusted to generate an excellent population, and then lead the particles to the optimal solution through equations (8) and (9). chaotic optimization is as follows: { 𝑟𝑖 𝑘+1 = 4.0 × 𝑟𝑖 𝑘(1 − 𝑟𝑖) 𝑟𝑖 𝑘 ∈ (0,1), 𝑖 = 1,2 (17) inertial weights 𝜔 play a role in maintaining algorithmic balance in optimization. this paper chooses the dynamic weight adjustment method, and the weight update eq. is: 𝜔(𝑘) = 𝜔𝑚𝑎𝑥 − (𝜔𝑚𝑎𝑥 −𝜔𝑚𝑖𝑛 )×𝑘 𝑘𝑚𝑎𝑥 (18) in the equation, 𝜔𝑚𝑎𝑥 and 𝜔𝑚𝑖𝑛 are the upper and lower limits of inertia weight; 𝑘 is the current iteration number; 𝑘𝑚𝑎𝑥 is the maximum number of iterations. 3.4. dv-hop improvement based on genetic chaos particles dv-hop algorithm (gcpso-hop) and dv-hop algorithm based on genetic chaos particle swarm algorithm have the same communication energy consumption, but gcpso-hop algorithm has slightly more computing energy consumption than dv-hop algorithm. since the energy consumption of the wireless sensor network is mainly generated by the communication energy consumption, so the energy consumption of the gcpso-hop positioning algorithm meets the application conditions. this paper targets 𝑓𝑖 as the minimum localization error: 𝑓𝑖 = ∑ 𝑑𝑘 − √(𝑥 − 𝑥𝑖) 2 + (𝑦 − 𝑦𝑖)2𝑛 𝑖=1 (19) in the equation, (𝑥, 𝑦) is the coordinate of the unknown node, (𝑥𝑖 , 𝑦𝑖) is the coordinate of the anchor node, and 𝑑𝑘 is the actual measured distance. the fitness function is: the fitness function is: 𝑓𝑖𝑡𝑛𝑒𝑠𝑠(𝑥) = ∑ 𝛼𝑖𝑓𝑖(𝑥, 𝑦)𝑛 𝑖=1 (20) in the equation, 𝛼𝑖a is the inverse ratio of the number of hops of unknown node and anchor node 𝑖; 𝑛 is the number of unknown nodes. in this paper, we use the gcpso algorithm to correct the coordinates of unknown nodes found in the later part of the dv-hop algorithm. the specific optimization steps are as follows: step 1 the average hop distance 𝑑𝑖𝑠𝑎 and the minimum hop number ℎ𝑐𝑖𝑗 are obtained through step 1 and step 2 of the dv hop algorithm. step 2 initialize particle swarm. initialize particle velocity 𝑉𝑖 and position 𝑋𝑖, and set the number of iterations 𝑘 = 0. step 3 calculate the fitness value 𝑓𝑖𝑡𝑛𝑒𝑠𝑠 according to equation (20). step 4 compare the fitness of each particle. the individual optimal solution in the group is set as 𝑃𝑖 , and the global optimal solution is set as 𝑃𝑏 . step 5 update the velocity 𝑉𝑖 and position 𝑋𝑖 of particles according to formula (8) and formula (9). step 6 determine whether the algorithm is terminated. if the maximum number of iterations is reached, the optimal solution will be output; otherwise, go to step 7. step 7 randomly select 𝑀 individuals according to the fitness value, and perform cross operation on them to obtain 𝑀 new individuals. step 8 perform mutation operation on all individuals, select 𝑁 individuals with high fitness from 𝑀 + 𝑁 to enter the next generation, and return to step 3. 4. experimental simulation and results analysis to verify the effectiveness of the improved algorithm, sensor nodes are randomly generated in a simulation region of 100 m×100 m. simulation experiments using matlab for gcpso-hop, dv-hop, ga-hop and posho, and analyze the results were analyzed. the absolute positioning error is: 𝑒 = √(𝑥 − 𝑥𝑒)2 + (𝑦 − 𝑦𝑒)2 (21) relative definition error is: �̂�𝑒𝑟𝑟 = ∑ 𝑒𝑒𝑟𝑟 𝑛 1 𝑅 (22) in the equation, (𝑥, 𝑦) is the actual coordinate of the unknown node, (𝑥𝑒 , 𝑦𝑒) is the estimated coordinate, and 𝑅 is the communication radius. set 𝑐1 = 𝑐2 = 2.0 , 𝜔𝑚𝑎𝑥 = 0.9, 𝜔𝑚𝑖𝑛 = 0.4, genetic crossover probability 𝑃 = 0.85, population size of each generation 𝑁 = 40 , and iteration number 𝑘 = 200. communication radius. setting, genetic crossing probabilities, size of the population per generation, number of iterations. because the coal mine underground roadway is narrow and slender and the open space is limited. in order to reduce the error of the node communication, reducing the distance between the deployment paving nodes and adding the redundant nodes is adopted to ensure the communication between the nodes. in addition, a denser single-chain deployment mode is adopted in the narrow width lanes to ensure the communication quality between nodes. in order to test the performance of this algorithm, the experimental platform of simulated zigbee wireless sensor distribution network is built. a schematic diagram of the experimental platform is shown in figure 3. the power supply is a threephase current source, the single-phase output current is 1 a~100 a, the isolation transformer ratio is 1:1, r is the protection resistance, a, b and c are three-phase upper current sensors. once the circuit in the grid ground fault, the three-phase line loses balance will appear zero order component. after the signal adjustment circuit, the 0~3.3v voltage signal is output, and then converted into a digital signal by the a / d converter, and ultimately conducive to the zigbee wireless technology transmission to the terminal. table 1 shows the zero-order current of the measured alignment lines. figure 3. schematic diagram of the experimental platform structure figure 4 is a random distribution plot of the nodes. the asterisk is the unknown node, and the cross symbol is the anchor node. at this time, the anchor node is approximately collinear with the underground coal mine. figure 5 shows the 45 localization effect of undetecting collinearity and excluding colollinearity. as shown in figure 5 (a) and figure 5 (b), the localization effect after excluding collinearity scheme is better, which can effectively reduce the average localization error of nodes. table 1. zero-order current error of transmission line measured by wireless sensor network order number line zeroorder current / a wsn detects zero-order current / a error /% 1 1.00 1.03 3.00 2 3.00 3.14 4.67 3 5.00 5.24 4.80 4 7.00 7.36 5.14 5 9.00 9.58 6.44 6 11.00 10.46 4.91 7 13.00 13.46 3.54 8 15.00 15.63 4.20 9 17.00 16.60 2.35 10 19.00 18.71 1.53 11 20.00 20.85 4.25 average error 4.08 figure 4. random distribution of the nodes figure 5. excluded the localization mean error comparison before and after being approximately collinear figure 6 shows the change curve of the average total number of anchor nodes between 5% and 35%. it can be seen from the figure that the average localization error of the four localization algorithms is constantly decreasing as the proportion of anchor nodes increases, and the localization performance of the gcpso-hop algorithm shows obvious advantages. at the anchor node ratio of 35%, the gcpsohop algorithm has the smallest average localization error and was 11.16% lower than dv-hop. it show that gcpso-hop algorithm can improve node localization accuracy and reduce localization error. figure 7 shows the relationship of the average localization error with the number of nodes with the same proportion of anchor nodes. as the number of nodes increases, the average localization error all decreases and gradually stabilizes. the average localization error of both the ga-hop algorithm and the pso-hop algorithm was smaller than that of the dv-hop algorithm, but it did not reach the optimization. since the gcpso-hop algorithm is more accurate on the location correction obtained from the localization, the average localization error is smaller. figure 6. the average localization error changes with the proportion of the anchor nodes figure 7. changes of the average localization error with the number of nodes figure 8. average localization error along with the node communication radius relationship for a more comprehensive analysis of the performance of the gapso-hop algorithm. figure 8 shows the average localization error change curve of the nodes at different communication radii when the anchor node ratio is 20%. it can be seen from the simulation results that when r hours as the communication radius increases, the average localization error begins to decrease. for example, at r = 10 m, the average localization error of the nodes of the gcpso-hop algorithm was reduced by 23.8% compared with that of the dv-hop algorithm. when r is greater than 35m, although the connectivity change of the network increases the localization error as the communication radius increases. but then the gapso-hop algorithm is still 46 the best of all the algorithms. to verify the effectiveness and accuracy of the gcpso-hop algorithm, six positioning nodes were selected in the underground coal mine for the validation experiment, and the experimental data are shown in table 2. in table 2, the actual coordinates of nodes are (𝑥, 𝑦) and the measured coordinates are (𝑥𝑒 , 𝑦𝑒) . from the actual measurement results, we can see that the gcpso-hop algorithm is closer to the actual value than other algorithms, and thus has smaller localization error and higher accuracy. table 2. actual measurement results 5. conclusion an improved dv-hop algorithm is proposed for the identification of underground leakage accidents. firstly, through the anchor node optimization scheme, the defect of the anchor node combination is avoided. on the basis of the particle swarm optimization algorithm, a genetic chaotic particle swarm optimization algorithm (gcpso) is proposed to correct the estimated position of dv-hop. experimental simulations show that gcpso-hop algorithm has a better optimization effect than dv-hop algorithm in reducing the average positioning error and improving the positioning accuracy, which proves the feasibility and effectiveness of gcpso-hop algorithm in the underground safety supervision process in coal mines. acknowledgements the scientific research project "intelligent clothes dryer based on wireless sensor network" of zhongshan polytechnic in 2022 (project no.: kyb2204). references [1] debessu y g,wu h c .modified turbo decoder for location in single-frequency networks[c]/ /ieee international symposium on bmsb,2012:1-5. [2] stone, jia chuanjiang, liang huanhuan.improved wireless sensor network dv-hop positioning algorithm [j] journal of sensing technology, 2011,24 (1): 83-87. [3] ye rong, zhao lingkai. wireless sensor network positioning algorithm based on ant colony particle mixture [j]. computer measurement and control, 2011,19 (3): 732-735. [4] li yahong, feng donghua. location algorithm based on the internet of things [j]. computer measurement and control, 2012,20 (11): 2916-2918. [5] ge yu, wang xueping, liang jing. dv-hop localization improvement based on frog algorithm [j]. computer applications, 2011,31 (4): 922-925. [6] yi t t,fang z y,li r x .rmadv-hop :an improved dv-hop localization algorithm[c]/ /proceedings of the 2010 seventh international conference on information technology :new generation , las vegas , nevada , 2010:939-943. [7] jiang yusheng, feng yanhe. a new dv-hop localization algorithm [j]. journal of sensing technology, 2010,23 (12): 1815-1819. [8] wang chaonan, ding enjie, zhou qiang, et al. application of wireless sensor network [j]. journal of computer-aided design and graphics, 2007,19 (3): 392-397. [9] chen xingzhou, liao minghong, lin jianhua. improvement of node localization of wireless sensor network based on particle swarm optimization [j]. computer application, 2010,30 (7): 1736-1738. [10] side exuberant, zeng jing. research on non-ranging node localization algorithm based onquantum genetic algorithm [j]. computer application and software, 2013,30 (2): 180-183. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 3, 2022 21 a survey of knowledge tracking based on deep learning juwei dao* college of information, yunnan normal university, kunming,650000, china. * corresponding author: email: 804079054@qq.com. abstract: in order to fully understand the research status in the field of knowledge tracking based on deep learning in china, this paper uses citespace visualization analysis software to conduct visualization analysis and text analysis on 118 literatures with the theme of "knowledge tracking based on deep learning" included in cnki from 2012 to 2022. the results show that "artificial intelligence", "intelligent education", "deep learning" and "big data" are the research hotspots of knowledge tracking based on deep learning in china. the correlation between its frontier research and the development of the times rose rapidly from 2017 to 2021. in the future research, researchers should focus on the optimization of the model, the application of basic research and the practical application of the research results. keywords: knowledge tracking; deep learning; citespace. 1. introduction the popularization of education informatization has led to massive educational data generated by online education plaorms, which makes it difficult for educators to track the knowledge status of each student and provide personalized learning guidance. moreover, the types of knowledge in the online learning system are complex, and students need to search and retrieve from various redundant information by themselves, which leads to the diversification of learning resources and learning paths, but not necessarily effective. therefore, it is necessary to use scientific methods to analyze and excavate pertinently (4). knowledge tracing (kt) is a powerful tool to realize online wisdom education, which can personalize the effective learning path for students, and track the current knowledge state of students according to their answers, so as to realize individualized teaching (6). in view of its great significance to education, knowledge tracking has been widely used in industry-related online education plaorms. based on citespace software, this study studies the field of knowledge tracking based on deep learning in the past two decades, and understands the development of knowledge tracking based on deep learning by analyzing keyword cooccurrence and research preface. the existing problems and the future development direction of the research are discussed and prospected. 2. data sources and research methods 2.1. data sources the data in this paper comes from china national knowledge infrastructure (cnki), the search method is keyword search, the time range is from 2002 to 2022, the carrier form is "journal", the source categories are: sci source journals, ei source journals, peking university core, chinese social sciences citation index (cssci). firstly, the two keywords of "deep learning" and "knowledge tracking" were jointly searched, and 118 articles were found (the deadline of data retrieval was june 26, 2022). after removing the duplicate articles, 118 articles were obtained for research. 2.2. research methods this paper uses literature research method and citespace (version 5. 8 r3) software to analyze. citespace is an information visualization software developed by chen chaomei[3]of drexel university in the united states using java language, which is mainly based on co-citation analysis theory and routing network algorithm, and can help researchers quickly mine key information from a large number of literatures. the software is suitable for multivariate, time-sharing and dynamic complex network analysis, and is widely used to analyze the co-citation relationship among academic papers, journals and authors, and to map scientific knowledge. in this study, the publication annual trend chart in cnki and citespace software were used to conduct visual analysis and text analysis of the literature. firstly, check the annual trend chart of the selected literature published in cnki, and explain the literature published in the past 20 years based on deep learning knowledge tracking. secondly, the research samples are exported in refworks format, and the citespace visualization software is used to draw and quantitatively analyze the visual atlas of the literature on knowledge tracking based on deep learning, and the keyword cooccurrence map, time zone map and emergent word map of knowledge tracking based on deep learning in the past 20 years are obtained. according to the results of this text analysis, the research hotspots and evolution trends of knowledge tracking based on deep learning in china are summarized. 3. research results and analysis 3.1. analysis of the time of issuing documents through the statistics of the number of relevant literatures published in each time period, it is helpful to understand the degree of concern and trend in the research field. the annual publication of knowledge tracking based on deep learning in china is as follows:figure as shown. from the annual change of the number of publications, we can see that although the references of knowledge tracking 22 based on in-depth learning can be traced back a long way, from the global research point of view, the focus of knowledge tracking in 2015 began to shift from the traditional probability model to in-depth learning. piech (c. piech) et al. [4] of stanford university first introduced the long shortterm memory (lstm), a variant of recurrent neural network, into the knowledge tracking task, and proposed the first deep knowledge tracking model. in 2016, he published the first chinese research results in related fields in china. figure 1.annual changes in the number of papers on knowledge tracking based on deep learning from 2002 to 2022 from 2016 to 2018, the domestic research in this field is really concerned, the research heat is not high enough, and the number of articles is very small, with only two articles per year in 2016 and 2017, and four in 2018. however, since 2018, the heat in this field has increased greatly, and the number of articles has begun to rise rapidly. since 2020, affected by the covid-19 epidemic, online education has reached an unprecedented scale. how to effectively provide personalized learning services while carrying out large-scale online education has become an urgent and important demand. knowledge tracking has become an important example to meet this need [5], during which research results have increased almost exponentially, and still maintain a rapid growth trend today. neural networks based on deep learning have been proved to be able to achieve certain results in performance, and are far superior to traditional algorithms. the deep network randomly samples from the massive student data on the its platform as training data samples. with the increase of student practice records, the original samples lack real-time and cannot track the knowledge growth of students in time. faced with the increasing number of students' learning records, how to extract representative practice records, how to use enhanced sampling to strengthen the training process of deep learning network, how to collect data sets, and how to enhance data samples are also the main problems faced by knowledge tracking algorithms based on deep learning. 3.2. research hotspots of knowledge tracking based on deep learning figure 2. keyword co-occurrence map of knowledge tracking research based on deep learning in china from 2012 to 2022 keyword co-occurrence analysis is a high-level summary of common words or noun phrases appearing in the literature to determine the relationship between topics in the discipline represented by the research literature data. the co-occurrence analysis of keywords is helpful to understand the research hotspots in this field. the scientific knowledge map of keyword co-occurrence in knowledge tracking research based on deep learning in china is shown in figure 2, with 148 nodes and 299 links. from the keyword co-occurrence graph, we can see that the two largest keyword nodes are "deep learning" and "knowledge tracking", which are the keywords used in searching literature, and it is also very reasonable to be the largest node. as a new field with rapid development in the past decade, deep learning has attracted more and more researchers' attention. it has obvious advantages over shallow models in feature extraction and modeling. deep learning is good at mining more and more abstract feature representations from the original input data, and these representations have good generalization ability. it overcomes some problems that were considered difficult to solve in artificial intelligence in the past. knowledge tracking refers to the use of computer models to automatically measure students ‘knowledge level and judge students' mastery of knowledge according to the interaction records between students and exercises, which is characterized by automation and personalization. many researchers pay attention to the powerful feature extraction ability of deep learning and apply it to the field of knowledge tracing, which is called deep learning-based knowledge tracing or deep learning-based knowledge tracing (dlkt). compared with the traditional machine learning model, knowledge tracking based on deep learning does not require manually labeled knowledge component (kc) information, and can capture more complex knowledge representations of students, and can also discover and utilize the association information between kcs. at present [6], the research of knowledge tracking based on deep learning has become a hot topic in the field of knowledge tracking. in addition, the larger and more relevant nodes are: "wisdom education", "artificial intelligence", "knowledge diagnosis" and so on. as an important part of intelligent education, knowledge tracking has been widely studied and applied in the fields of artificial intelligence tutoring system, distance education and online teaching platform. it can personalize effective learning paths for students and track the current state of knowledge mastery of students according to their answers, so as to further realize individualized teaching and personalized teaching, which is of great significance to wisdom education. according to the different modeling methods, the existing knowledge tracking models can be divided into two categories: traditional machine learning methods and deep learning methods. bayesian knowledge pursuit [7] (bayesian knowledge tracing, bkt) and additive factor model (afm) [8] are two representative models in traditional machine learning methods. they have been widely used to assess the knowledge level of learners in intelligent tutoring systems. however, since 2015, knowledge tracking based on deep learning has become the "main force" of knowledge tracking research. the reason is that the rapid development of artificial intelligence technology and in-depth learning in recent years has led to the enabling education of artificial intelligence and 23 promoted the rapid development of knowledge tracking applications. since the introduction of deep learning into knowledge tracking, knowledge tracking has developed by leaps and bounds, and more and more emerging intelligent technologies have been integrated into knowledge tracking, which provides new ideas and opportunities for further promoting the development of intelligent education. figure 3. keyword co-occurrence map of knowledge tracking research based on deep learning in china from 2012 to 2022 after clustering the scientific knowledge map of keyword co-occurrence, the keyword cluster map is obtained as shown in figure 3. there are six categories in total, which are sorted according to the number of nodes contained in each category: "sao method", "knowledge tracking", "target tracking", "learning emotion", and "machine learning" and "incremental learning". the full name of sao is subject-action-boject, which is an important semantic recognition structure in the field of natural language processing. it can deeply explore the evolution and composition relationship between technology topics, so as to identify potentially related technology innovation combinations. [9] there are many evidences in psychological research that show that learners' learning emotions are influenced by learners' knowledge and goals, and are closely related to learners' learning outcomes. early studies used learners' emotions to predict learning outcomes, with the aim of trying to explain human behavior in the learning process by understanding human emotional and cognitive processes. [10] learner’s affective state is accompanied by learning behavior, and learning emotions may systematically affect the way learners process learning materials. in the process of teaching, educators intervene in the negative emotions of learners in time and help students maintain the positive emotions of learners, so that learners will be more likely to achieve their learning goals successfully. the main difference between incremental learning and batch learning is the way the trained model treats new input data. the incremental learning model learns directly on the basis of the existing model. the batch learning model needs to abandon the existing model and re-learn the new data together with the old data. [11] 3.3. research development stage and future research space in order to analyze the academic frontier information of knowledge tracking research based on deep learning in china, the emergent word map of artificial intelligence applied to teaching management and evaluation is derived through citespace software. figures shown, there are 11 emergent words under the theme of artificial intelligence applied to teaching management and evaluation. according to the chronological order of the beginning of the emergent words, they are "semantic mining", "concept", "graph convolution", "sao method", 'patent analysis',' intelligent education ', "artificial intelligence",'exercise recommendation', 'target tracking','target detection 'and'cognitive diagnosis'. figure4. emergent word map of knowledge tracking research based on deep learning in china from 2012 to 2022 as can be seen from figure 3, the emergent words in the knowledge tracking study based on deep learning can be roughly divided into three categories. the first category is the emergent words that appeared before 2015 and ended in 2015, including "semantic mining", "concept", "graph convolution", "sao method" and "patent analysis". the second category is the emergent words whose outbreak duration is between 2018 and 2020, including "artificial intelligence", "exercise recommendation" and "target tracking". the third category is the keywords that broke out after 2020 and continue to be popular to this day, including "target detection" and "cognitive diagnosis". figure 5. keyword co-occurrence time zone of knowledge tracking research based on deep learning in china it can be seen from figure 4 that the key words of "deep learning", "knowledge tracking" and "wisdom education" can be traced back to a long time ago, and the research results accumulated by predecessors have provided many advanced ideas and methods for the research in this field. since the domestic research on knowledge tracking based on in-depth learning was officially launched in 2016, the early domestic attention in this field has focused on semantic analysis, hot spot tracking, incremental learning, reinforcement learning, etc. after 2019, the technical methods and ideas concerned in this field have changed. it turns more to target tracking, target detection, knowledge mapping, cognitive diagnosis and so on. in the last year's research, new concerns have emergedprivacy protection and traceability. from the above change process, it can be seen that the technical focus in the field of knowledge tracking based on 24 deep learning has changed rapidly. in just a few years, many research teams have adopted more than ten different technical orientations to optimize the existing deep learning knowledge tracking model and put forward a variety of new answers. at the guiding ideology level, there has also been a great change, from the initial focus on the excavation of knowledge content itself to the later gradual shift to focus on the learning process of students, the pursuit of in-depth learning knowledge tracking model and the organic combination of online learning platform, the integration of more humanized design, to the recent start of technology. more attention should be paid to the protection of students ‘privacy in the practical application of this technology. this transformation also echoes the historical process of our cognitive development from objectivism to humanism. the realization of technology is important, but we cannot ignore that technology serves people and should be people-oriented. 4. conclusion as an important part of intelligent education, knowledge tracking has been widely studied and applied in the fields of artificial intelligence tutoring system, distance education and online teaching platform. however, knowledge tracking based on deep learning is a new idea that has just been born and has flourished in recent years. many different researchers around the world have built new models or optimized existing models from different entry points, providing rich theoretical research for knowledge tracking based on deep learning. at present, there are still various problems in knowledge tracking based on deep learning: (1) from the data level, there are problems of interdisciplinary and imbalance in knowledge tracking; (2) from the model level, there are problems of systematization and standardization in knowledge tracking; (3) from the decision-making level, knowledge tracking has problems of weak interpretation and poor transfer ability; (4) from the perspective of application, knowledge has the problems of unclear practice path and field bias. based on this, this paper puts forward the following suggestions: (1) introduce fuzzy logic to model the uncertainty of knowledge quantification in different disciplines, so as to carry out knowledge tracking based on fuzzy logic architecture, integrate small sample intelligent learning techniques such as transfer learning, and enhance the ability of knowledge tracking to deal with small samples and imbalance, so as to enhance the applicability of knowledge tracking; (2) comprehensive use of pedagogy, psychology, computer and other multi-disciplinary knowledge, top-down design of a unified theoretical system from the top, referring to learner modeling standards, learning system architecture and service interfaces, and using software engineering methods to develop knowledge tracking architecture and interface standards; (3) introducing an interpretable machine learning method to explain the decision of knowledge tracking, fusing domain knowledge such as pedagogy, psychology and the like as the explanation support of the decision, introducing an adaptive learning mechanism, and constructing a knowledge tracking method with strong transfer capability through domain adaptation; (4) through empirical research, knowledge tracking is applied to the real intelligent environment to explore the effective application path of knowledge tracking, using intelligent data enhancement technology to eliminate the impact of bias, and combining with multi-modal analysis method to build a multiknowledge tracking model, so as to build a universal knowledge tracking model. references [1] bakhshinategh b, zaiane o r, elatia s, et al. educational data mining applications and tasks: a survey of the last 10 years[j]. education and information technologies, 2018, 23: 537-553. [2] zeng fanzhi, xu luqian, zhou yan, et al. review of knowledge tracing model for wisdom education [j]. computer science and exploration: 1-27. [3] chaomei. chen. citespace ii: detecting and visualizing emerging trends and transient patterns in scientific literature[j]. journal of the american society for information science and technology,2006,3(57):359-377. [4] piech c, et al. deep knowledge tracing [c]// cortes c,et al. proceedings of the 28th international conference on neural information processing systems. cambridge: mit press,2015:503-513. [5] wang zhifeng, xiong shasha, zuo mingzhang, et al. knowledge tracking from the perspective of wisdom education: current situation, framework and trend [j]. journal of distance education, 2021, 39 (5): 45-54. [6] piech c,spencer j,huang j, et al. deep knowledge tracing[j].computer science,2015,3(3):19-23. [7] rowe j p,lester j c.modeling user knowledge with dynamic bayesian networks in interactive narrative environments[c]//aaai conference on artificial intelligence &interactive digital entertainment,2010. [8] schodde t,bergmann k,kopp s.adaptive robot language tutoring based on bayesian knowledge tracing and predictive decision-making[c]//proceedings of the2017 acm/ieee international conference on human-robot interaction,2017:128-136. [9] ma t,zhou x,liu j,etal.combining topic modeling and sao semantic analysis to identify technological opportunities of emerging technologies[j].technological forecasting and social change,2021,173:121159. [10] alepis e,virvou m,kabassi k.mobile education: towards affective bi-modal interaction for adaptivity [j]. international journal of interactive mobile technologies,2009,3(2):51-56. [11] liu peilei. research on social media hotspot detection and tracking technology [d]. national university of defense technology, 2016. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 59 three-dimensional positioning based on toa combining acoustic signal and optical signal run zhang key laboratory of electronic and information engineering (southwest minzu university), state ethnic affairs commission, college of electronic and information, southwest minzu university, chengdu, china. abstract: in recent decades, the massive depletion of the earth's terrestrial resources has turned people's attention to the ocean, so many underwater technologies have emerged and developed rapidly with the comprehensive progress of human science. since the toa positioning algorithm only needs a synchronous time source, the application of the toa positioning algorithm by the traditional underwater wireless sensor system network is very common. underwater positioning technology uses underwater sensor network (uwsn) to locate unknown nodes, which can be divided into underwater acoustic communication positioning and water optical communication positioning according to different transmission channels. the characteristics of underwater acoustic communication and water optical communication determine that the former has better accuracy in long-distance transmission, and the latter has better accuracy in short-range positioning. in this paper, the weight coefficients of sound and light are set separately to obtain the distance cut-off values of sound and light channels. the distance demarcation value can be changed according to the actual environment and needs. we will set the threshold of the impact factor of the underwater environment to ensure that the accuracy error caused by environmental losses is minimized. the reasonable arrangement of uwsn's anchor nodes will maximize energy savings. simulation results show that the proposed method makes reasonable use of the advantages of acoustic signal and optical signal, and obtains more accurate positioning results after setting the threshold. keywords: uwsn; toa; los; acoustic signal; optical signal; anchor node arrangement. 1. introduction underwater wireless localization has been drawing much attention for many years because of the security of ocean environment and the popularity of wireless smart sensor networks (wssn). due to the localization accuracy plays a key role in underwater wireless localization,so many practical localization methods was put forward,such as time of arrival (toa)–, time difference of arrival (tdoa),, received signal strength (rss)–,angle of arrival (aoa), ,and hybrid localization–. in an outdoor environment,the unknown node (un) can be located with highly accuracy from the global positioning system (gps),or from beidou navigation satellite system.in the underwater environment, gps cannot be applied to these land-based devices due to the shadow effect of water. therefore, underwater wireless sensor networks can be well used for locating unknown nodes. the specific positioning method needs to be based on the hardware facilities and positioning environment of the wireless sensor network, for example, using the angle of arrival a0a method, the node needs to be equipped with a special antenna array; the arrival time toa or arrival time difference tdoa method only requires the node to be equipped with a clock system with a certain accuracy. this will help improve the positioning accuracy of unknown nodes.in this paper, we will study the underwater positioning of toa, and the main innovations are as follows: 1) set a threshold for the dynamic factors of the underwater environment, the anchor node is detected, and when the environmental impact factor is greater than this threshold, the positioning process is not carried out. 2)take advantage of the advantages and disadvantages of acoustic signals and optical signals, complement them, and obtain higher accuracy beyond this distance value. 3)according to the nature of underwater influencing factors, reasonably set the position of the anchor node. 2. problem overview in this section, we propose a problem to improve the positioning accuracy of the toa positioning algorithm combining acoustic and optical signals in underwater wireless sensor networks, and to rationally arrange nodes in the underwater environment where los dynamically changes. given that existing wireless sensor network (wsn) localization methods will be based on the toa method, the following discussion will first focus on toa optimization, and then will discuss localization in los environments. fig.1 schematic diagram of spatial positioning first, given four non-coplanar anchor nodes in threedimensional space, an unknown node to be located. use a matrix to calculate the coordinates of unknown nodes. supposing that four points a, b, c and d are known in the space, and their coordinates are (x1, y1, z1), (x2, y2, z3), (x3, y3, z3), (x4, y4, z4). the coordinates of unknown node p are: (x, y, z), and the distances from p to the four points are d1, d2, d3, d4, as shown in figure 1. according to the distance 60 formula, the following equations can be obtained: { (x1 − x)2 + (y1 − y)2 + (z1 − z)2 = d12 (x2 − x)2 + (y2 − y)2 + (z2 − z)2 = d22 (x3 − x)2 + (y3 − y)2 + (z3 − z)2 = d32 (x3 − x)2 + (y3 − y)2 + (z3 − z)2 = d32 (1) arranging (1)and can get: { x2 − 2x1 ∗ x + y2 − 2y1 ∗ y + z2 − 2z1 ∗ z = d12 − x12 − y12 − z12 x2 − 2x2 ∗ x + y2 − 2y2 ∗ y + z2 − 2z2 ∗ z = d22 − x22 − y22 − z22 x2 − 2x3 ∗ x + y2 − 2y3 ∗ y + z2 − 2z3 ∗ z = d32 − x32 − y32 − z32 x2 − 2x4 ∗ x + y2 − 2y4 ∗ y + z2 − 2z4 ∗ z = d42 − x42 − y42 − z42 (2) the third-order difference of the equation is used to eliminate the higher-order term to obtain the following firstorder equation: { 2x(x2 − x1) + 2y(y2 − y1) + 2z(z2 − z1) = d12 − d22 + x22 − x12 + y22 − y12 + z22 − z12 2x(x3 − x1) + 2y(y3 − y1) + 2z(z3 − z1) = d12 − d32 + x32 − x12 + y32 − y12 + z32 − z12 2x(x4 − x1) + 2y(y4 − y1) + 2z(z4 − z1) = d12 − d42 + x42 − x12 + y42 − y12 + z42 − z12 (3) the equation is expressed in matrix form: ac=b a =[ 2(x2 − x1) 2(x3 − x1) 2(x4 − x1) 2(y2 − y1) 2(y3 − y1) 2(y4 − y1) 2(z2 − z1) 2(z3 − z1) 2(z4 − z1) ] (4) c = 𝑋 𝑌 𝑍 (5) b = d12 − d22 + x22 − x12 + y22 − y12 + z22 − z1 d12 − d32 + x32 − x12 + y32 − y12 + z32 − z12 d12 − d32 + x32 − x12 + y32 − y12 + z32 − z12 (6) the equation can be written as: c = a-1b (7) 3. toa based distance measurements toa(time-of-arrival) positioning is a distance-based positioning method, which can be used to locate unknown nodes by multiplying the arrival time of the signal by the propagation speed to obtain the distance. without considering the error, only four non-coplanar anchor nodes are needed in the three-dimensional space to calculate the target position. without losing generality, it is assumed that the start time of each source ranging is 0, and the time signal from the ith anchor node is received at time ti, which means that ti is a toa measurement. the relationship between distance and time is as follows-: di = ti * c, i=1,2,3,…n (8) where ti is the time of the signal from the anchor node to the un,di is the calculated distance from the un to the ith anchor node,c is the speed of the signal under water.the calculation process of un coordinates is shown in step a. 4. acoustic and optical hybrid based distance measurements 4.1. acoustic we set the received signal of the underwater acoustic channel as: xri(t) = a sin(2πfact + φi + φwi + φ0) + wi(t) (9) where i represents four non coplanar anchor nodes that have been successfully positioned, a represents the amplitude of the received signal, φi represents the phase shift due to interference noise, φwi represents the phase uncertainty, and wi(t) is a gaussian zero mean random noise. the attenuation of underwater acoustic signal strength is related to various factors, which will affect the amplitude and frequency of the acoustic signal. the acoustic signal strength is written as: 10 log10 ( a0 a )2= k · 10 log10 d + d · 10 log10α (10) where k represents the geometric diffusion factor, which is usually between 1 and 2, d represents the distance between the anchor node and the un, α represents the underwater acoustic absorption coefficient, and the value of α is usually calculated by thorp's formula, : 10 log10 α = 0.1fac2 1+fac2 + 40fac2 4100+fac2 +2.75×10-4×fac2+0.003 (11) 4.2. optical underwater optical communication systems employ directly detectable intensity modulation (im/dd), which uses an on–off keying (ook) in the physical layer. the initial simulations will be done in the los environment, which will save us from having to talk about light in the presence of obstacles.the radiant intensity of light underwater can be expressed as,: is(d, φ)=p m+1 2𝜋d2cos m φ (12) where d is the angle between the optical path direction of the anchor node and the vertical direction, d is the distance between the anchor node and the un, m is the lambert’s modulus of the beam effect of the anchor node, p is the average optical power, where m is expressed as,: m= − 𝑙𝑛 2 ln(cosφ1/2) (13) fig.2 main parameters of the optical link model let aeff be the effective area of the un receiving the incident light radiation,and which is expressed as: a eff(ψ) = f(ψ)ar cos ψ, |ψ| ≤ ψc (14) where ar is the un area, ψ is the incident angle and f(ψ) is the light concentrator gain given by: f(ψ) = { n2 sin2ψc , if |ψ| ≤ c 0 , if|ψ| > c (15) where ψc is the half-angle field of view (fov) of the optical detector, and n is the refractive index of the seawater. since the attenuation of light underwater is mainly absorption, in order to accurately determine the position of the un, we set the absorption coefficient as: lch = exp(−kad) (16) where ka is the diffuse attenuation coefficient. using (15), (17), and (19), the received optical signal strength in db at the un side can be calculated as: pow = 10 log10(isa efflch) + ξ (17) where ξ is the average value of noise (in db) generated by natural light underwater. 5. improvement of toa in underwater un positioning, acoustic positioning is often used due to the limitations of the scale of the simulated 61 environment and energy saving. however, considering the advantages of underwater optical communication such as high speed, high bandwidth, and high security, its advantages in short-range communication are very significant. therefore, considering the underwater situation of sound and light, we evaluate the advantages of sound and light in distance dd, that is, when the positioning distance d is greater than dd, the redundant sound part d (d-dd) uses acoustic communication data, and the range from 0 to dd uses optical communication data, combined with sound and light to locate unknown nodes. in the following simulation, we will carry out the process of obtaining dd by this method several times, and extend the data to the general case, that is, save the dd data obtained by each anchor node using optical communication, which greatly saves energy consumption. table 1. hybrid acoustic/optical algorithm 1: locate an un and use optical communication first 2: if localization distance d<=dd 3: notify that the acoustic communication does not need positioning, obtain the optical communication distance d, and the positioning of the anchor node is completed 4: end if 5: if d>dd 6: notification acoustic communication positioning, then d=dd+dacoustic; 7: end if 6. simulation in this section, we will simulate the underwater positioning algorithm on the matlab platform and simulate the localization problem of the toa algorithm in the underwater los environment, as shown in figure 3: fig.3 los simulation environment figure 3 shows the anchor node arrangement in an underwater los environment. place four anchor nodes at the four corners of the water surface in three-dimensional space, and one anchor node in the center of the bottom. such a sensor network system arrangement will effectively overcome the characteristics of underwater environment loss, that is, the underwater environment due to salinity, temperature and other factors, the deeper the loss of the signal, the greater the loss. therefore, such an anchor node arrangement will also be a major innovation in this paper. first, we will simulate the distance critical values of acoustic and optical signals during positioning, and the simulation results are shown in figure 4: fig.4 determination of acousto-optic distance we believe that the opposite properties of underwater sound and light will create a distance equilibrium point. we believe that the cost and benefit of acousto-optic positioning are almost the same in the distance balance point after the judgment is completed, and this balance point will also be regarded as the critical point of acousto-optic combination. as can be seen in the simulation results shown in figure 4, the simulation result obtained is 98m, and this distance value can be changed according to the actual environmental requirements. taking advantage of the combination of acoustic signal and optical signal, the positioning simulation of toa algorithm is carried out, and the results are shown in figure5: fig.5 hybrid acoustic/optical localization it can be seen from figure 5 that the positioning accuracy of the toa positioning algorithm after the combined acoustooptic signal is higher than that of a single communication channel after the obtained distance value. 7. conclusion underwater wireless sensor network positioning system using toa positioning algorithm mostly uses acoustic signals for signal transmission, and acoustic and optical signals have their own disadvantages, so the advantages and disadvantages of the two complement each other, and better positioning accuracy can be obtained than a single signal. at the same time, in the setting of the underwater environment, this paper also considers the influence factor of the underwater environment, that is, if the impact factor is too large, the signal loss is large, which will seriously affect the positioning accuracy, and such influence parameters need to be monitored. we have made reasonable settings for the positioning system in three-dimensional space, which greatly reduces the use of anchor nodes and energy consumption. simulation proves that the proposed algorithm has good positioning accuracy. in the future, we will consider anchor node placement and simulation in the nlos environment. 62 references [1] g. wang, h. chen, y. li, and n. ansari, “nlos error mitigation for toa-based localization via convex relaxation,” ieee trans. wireless commun., vol. 13, no. 8, pp. 4119–4131, aug. 2014. [2] s. j. zhang, s. gao, g. wang, and y. li, “robust nlos error mitigation method for toa-based localization via second order cone relaxation,” ieee commun. lett., vol. 19, no. 12, pp. 2210–2213, dec. 2015. [3] s. gao, f. zhang, and g. wang, “nlos error mitigation for toa-based source localization with unknown transmission time,” ieee sensors j., vol. 17, no. 12, pp. 3605–3606, jun. 2017. [4] k. kowalczyk, e. a. p. habets, w. kellermann, and p. a. naylor, “blind system identifification using sparse learning for tdoa estimation of room reflflections,” ieee signal process. lett., vol. 20, no. 7, pp. 653–656, jul. 2013. [5] f. nesta and m. omologo, “generalized state coherence transform for multidimensional tdoa estimation of multiple sources,” ieee trans. audio, speech, language process., vol. 20, no. 1, pp. 246–260, jan. 2012. [6] g. wang and k. yang, “a new approach to sensor node localization using rss measurements in wireless sensor networks,” ieee trans. wireless commun., vol. 10, no. 5, pp. 1389–1395, may 2011. [7] g. wang, h. chen, y. li, and m. jin, “on received-signalstrength based localization with unknown transmit power and path loss exponent,” ieee wireless commun. lett., vol. 1, no. 5, pp. 536–539, oct. 2012. [8] r. w. ouyang, a. k.-s. wong, and c.-t. lea, “received signal strength-based wireless localization via semidefifinite programming: noncooperative and cooperative schemes,” ieee trans. veh. technol., vol. 59, no. 3, pp. 1307–1318, mar. 2010. [9] s. tomic, m. beko, r. dinis, and v. lipovac, “rss-based localization in wireless sensor networks using socp relaxation,” in proc. ieee spawc, jun. 2013, pp. 749–753. [10] s. tomic, m. beko, and r. dinis, “rss-based localization in wireless sensor networks using convex relaxation: noncooperative and cooperative schemes,” ieee trans. veh. technol., vol. 64, no. 5, pp. 2037–2050, may 2015. [11] s. xu and k. doˇgançay, “optimal sensor placement for 3-d angle-ofarrival target localization,” ieee trans. aerosp. electron. syst., vol. 53, no. 3, pp. 1196–1211, jun. 2017. [12] s. xu and k. doˇgançay, “optimal sensor deployment for 3d aoa target localization,” in proc. icassp, apr. 2015, pp. 2544 – 2548. [13] a. bahillo et al., “hybrid rss-rtt localization scheme for indoor wireless networks,” eurasip j. adv. signal process., vol. 2010, no. 1, p. 126082, mar. 2010. [14] u. hatthasin, s. thainimit, k. vibhatavanij, n. premasathian, and d. worasawate, “the use of rtof and rss for a one base station rfid system,” int. j. comput. sci. netw. secur., vol. 10, no. 7, pp. 862–865, jul. 2010. [15] m. w. khan, n. salman, a. h. kemp, and l. mihaylova, “localisation of sensor nodes with hybrid measurements in wireless sensor networks,” sensors, vol. 16, no. 7, p. 1143, jul. 2016. [16] k. yu, “3-d localization error analysis in wireless networks,” ieee trans. wireless commun., vol. 6, no. 10, pp. 3472– 3481, oct. 2007. [17] f. l. piccolo, “a new cooperative localization method for umts cellular networks,” in proc. ieee glob. telecommun. conf., new orleans, la, usa, nov./dec. 2008, pp. 1–5. [18] a. irish et al., “demo: shadowmaps, the urban phone tracking system,” proc. 20th annu. int. conf. mobile comput. netw., 2014, pp. 283–286. [19] b. thorbjornsen et al., “radio frequency (rf) time-of-flflight ranging for wireless sensor networks,” meas. sci. technol., vol. 21, no. 3, 2010. [20] sa-e, s.; chamchoy, m.; promwong, s, " study on propagation path loss and performance for fixed broadband wimax", ieee conferences, 2007. [21] d. zhang, i. n’doye, t. ballal, t. y. al-naffouri, m.-s. alouini, and t.-m. laleg-kirati, ‘‘localization and tracking control using hybrid acoustic–optical communication for autonomous underwater vehicles,’’ ieee internet things j., vol. 7, no. 10, pp. 10048–10060, oct. 2020, doi: 10.1109/jiot.2020.2995799. [22] j. gurerrero, j. torres, v. creuze, and a. chemori, “adaptive disturbance observer for trajectory tracking control of underwater vehicles,” ocean eng., vol. 200, mar. 2020, art. no. 107080. [23] m. j. bocus, d. agrafifiotis, and a. doufexi, “real-time video transmission using massive mimo in an underwater acoustic channel,” in proc. ieee wireless commun. netw. conf., barcelona, spain, 2018, pp. 1–6. [24] m. c. domingo, “overview of channel models for underwater wireless communication networks,” phys. commun., vol. 1, no. 3, pp. 163–182, 2008. [25] z. ghassemlooy, w. popoola, and s. rajbhandari, optical wireless communications: system and channel modelling with matlab, 1st ed. berlin, germany: crc press, 2012. [26] z. ghassemlooy, w. popoola, and s. rajbhandari, optical wireless communications: system and channel modelling with matlab, 1st ed. berlin, germany: crc press, 2012. [27] t. c. shen, r. j. drost, c. c. davis, and b. m. sadler, “design of dual-link (wide-and narrow-beam) led communication systems,” opt. exp., vol. 22, no. 9, pp. 11107–11118, 2014. [28] c. mobley, light and water: radiative transfer in natural waters. new york, ny, usa: academic, 1994. [29] z. ghassemlooy, w. popoola, and s. rajbhandari, optical wireless communications: system and channel modelling with matlab, 1st ed. berlin, germany: crc press, 2012. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 114 a side-channel analysis on the tale yalan wang *, zhen wu school of cyberspace security, chengdu university of information technology, cheng du, 610225, china * corresponding author: yalan wang (email: wang__yl2023@163.com) abstract: lattice-based cryptography, as an active branch of post-quantum cryptography (pqc), has received extensive attention from side-channel analysis (sca) researchers in recent years. the tale is a candidate for china's post-quantum project, which aims to standardize cryptographic systems from attacks from quantum and classical computers. although tale relies on the theory of quantum-lattice resistance, practical implementations still have the vulnerability of side-channel analysis (sca). in side-channel analysis (sca), template attack is considered to be the most effective analysis method, and traditional template analysis are now gradually being replaced by machine learning-based template attack due to low computational efficiency. in this paper, the tale is analyzed for vulnerability, feature extraction is performed for the leakage information of vulnerable points, and a template attack method based on multilayer perceptron (mlp) is used to attack vulnerable points. keywords: post-quantum cryptography; lattice-based cryptography; side-channel analysis; tale; multilayer perceptron. 1. introduction in 1994, peter shor proposed a cracking algorithm, which theoretically proved that this algorithm can solve problems such as discrete logarithms and large integer factorization in polynomial time [1]. this means that once a practical quantum computer appears, the algorithm can be used to crack traditional public-key cryptography such as rsa and elgamal. in order to prevent the deployment of quantum computers from causing irreversible damage to the current cryptosystem. at present, countries are actively promoting the development of post-quantum cryptography standards, and in 2019 china held a call for calls for post-quantum cryptography competitions, which is a preliminary round for china's post-quantum cryptography standard development. among the various types of post-quantum cryptography proposed so far, lattice-based cryptography stands out for various reasons, tale as a public key cryptosystem based on lattice theory, has the characteristics of anti-quantum attack in theory, but the security of the password needs to be proved in addition to theoretical security, but also needs to consider the security of the specific implementation of the algorithm, that is, physical security. side-channel attacks can use the time, power consumption, electromagnetic and other information leaked by the cryptographic algorithm when running on the cryptographic chip to analyze and recover the key or encrypted information, which is the main threat to the physical security of cryptography. traditional side-channel analysis include spa, cpa, dpa, template attack, and timing attack, and with the rapid development of machine learning techniques, support vector machines, random forests, and neural networks are increasingly used to improve sidechannel efficiency. 1.1. related works in recent years, there have been a lot of research on the side channel analysis (sca) of lattice ciphers, and pessl et al. proposed a single trace attack scheme for ntt in kyber, and a template attack was carried out on the arm cortex m4 microcontroller for the kyber implementation optimized for constant time, and the key was obtained by constructing 213 templates [2]. zhuang xu et al. [3] also targeted kyber for selective ciphertext attacks, by constructing special ciphertext, information related to the key can be observed from electromagnetic leakage, so as to obtain the key. ravi et al. [4] targeted round5, frodo, new hope and other lattice cipher algorithms by selecting ciphertext attacks on electromagnetic information leaked in error correction codes and fo transformations. amiet et al. [5] reported at the 2020 pqc international conference on simple energy analysis (spa) and differential energy analysis (dpa) for message coding in newhope. 1.2. contributions in this paper, we propose a side channel analysis method for ind-cca tale kem. we use a multi-layer perceptronbased template attack for message recovery. the problems such as inefficiency and complexity of template construction in traditional template attacks are avoided. we present the following points: 1) we perform a leak point analysis of tale theoretically to collect the leaked electromagnetic information in the device under test, and also perform a leak analysis of the leak point. 2) we experimentally attacked the leaked information. first, the extraction of feature points was determined; then the optimal parameters of the model were determined. 1.3. organization the rest of this paper is organized as follows. in section 2, we provide an introduction to the tale algorithm and the template attack. background. in section 3, we perform leakage analysis as well as data collection for tale. in section 4, we perform the mlp-based template attack on tale. in section 5, conclusions are drawn and future research directions are proposed. 2. preliminaries 2.1. tale tale is a lattice based public key cryptographic, the algorithm is based on the learning with error problem on rings (rlwe) [6], which is an acceleration of the earlier learning with error (lwe) scheme [7]. rlwe-based cryptosystems 115 require a smaller key size than that of lwe. in addition to the reduced key size, the computation is also sped up. the samples of rlwe are distributed over the ring, and the commonly used ring is the integer ring 𝑅𝑞 = ℤ𝑞[𝑥]/(𝑥𝑛 + 1). there are two mechanisms of the tale algorithm namely the pke scheme based on ind-cpa security and the kem scheme based on ind-cca2 security, and this paper focuses on the kem. the kem is based on the ind-cpa secure pke through the classic fujisaki-okamoto transform, the kem is design ed to establish a shared secret between the two communicat ing parties, if an attacker exploits the vulnerability of kem to successfully obtain the shared temporary session key, can eavesdrop on all communications encrypted with this key. the kem is shown in algorithm 1, where both hand g are hash functions. in algorithm2, where kntt is a fast number theory transformation and ikntt is its inverse transformation. 𝐸𝑛𝑐𝑜𝑑𝑒 represents the message encoding and compress represents the compression function. 2.2. template attack in 1996, researchers discovered the side channel leakage problem in cryptographic chips and published papers publicly in conferences and journals. in 1996, kocher et al. proposed timing attacks [8], in 1997, boneh et al. proposed fault injection [9], and in 1998, kocher et al. proposed energy analysis attacks [10]. energy analysis attacks are mainly classified into simple power analysis (spa), correlated power analysis (cpa) [11], and differential power analysis (dpa)[12]. in 2002, chari et.al proposed the template attack, which obtains the secret information hidden in the leakage curve by modeling the statistical properties of the random variables in the leakage curve using discriminant analysis [13]. template attack has been considered as the most effective side channel analysis method since it was proposed. the steps of the template attack include two stages: template construction and template matching. 1) template construction if the length of subkey information is kbits, a 2k templa te is constructed for each subkey. the template consists of a mean vector t and a covariance matrix cα .let 𝑛 power traces correspond to 𝑚 sampling points, i.e., 𝑇𝑖1 ,𝑇𝑖2 ,...,𝑇𝑖𝑚 (1 ≤ 𝑖 ≤ 𝑛 ) form a matrix 𝑇𝑛×𝑚 . thus, an t distribution consists of tuples of the form t =< 1 𝑛 ∑ 𝑇𝑖1 n 𝑖=1 , 1 𝑛 ∑ 𝑇𝑖2 n 𝑖=1 , . . . , 1 𝑛 ∑ 𝑇𝑖𝑚 n 𝑖=1 > (1) because the power traces correspond to the same operational procedure, the difference between the sample and the sample mean is done to obtain the corresponding noise vector matrix as nn×m = [ t11 − t1 ⋯ t1m − tm t21 − t1 . . . t2m − tm ⋮ ⋯ ⋮ tn1 − t1 ⋯ tnm − tm] (2) each row in nn×m forms a noise vector for each power trace, and each column is the change in noise amplitude (random variable) at one time, using cov(x, y) to denote the covariance of the random variables x and y . thus, an cα distribution consists of a matrix of the form 𝐶𝛼 = [ 𝑐𝑜𝑣(𝑁1, 𝑁1) ⋯ 𝑐𝑜𝑣(𝑁1, 𝑁𝑚) 𝑐𝑜𝑣(𝑁2, 𝑁1) . . . 𝑐𝑜𝑣(𝑁2, 𝑁𝑚) ⋮ ⋯ ⋮ 𝑐𝑜𝑣(𝑁𝑚, 𝑁1) ⋯ 𝑐𝑜𝑣(𝑁𝑚, 𝑁𝑚)] (3) 2) template matching the plaintext p used in the template construction is encrypted and the corresponding leakage curve t‘ is collected with the same device and compared with the constructed template. the probability of matching t‘ with template < t, cα > is 𝑃(𝑇‘| < t, 𝐶𝛼 >) = 1 √2𝜋𝑚|𝐶| 𝑒𝑥𝑝 (− 1 2 (𝑇‘ − t)𝑇𝐶−1(𝑇‘ − t)) (4) 2.3. multilayer perceptron-based template attack the traditional template attack relies on multivariate gaussian distribution modeling, which is computationally inefficient when dealing with multidimensional data and may generate singular matrices, resulting in problems such as inverse covariance matrices. in order to overcome the inefficiency of traditional template attacks, researchers have proposed machine learning-based side channel analysis, which is essentially the process of building classifiers to match data, similar to the template attack process. the current models that apply machine learning to template attacks include support vector machines, random forests, and neural networks. multilayer perceptron (mlp), also called deep neural network (dnn) as a model in neural networks, is also often used for template attack. 3. vulnerability and leakage analysis 3.1. analysis of vulnerability points the shared key in algorithm 1 is directly related to the hash function, the parameter 𝑲 and the ciphertext 𝒄 . the hash function is a pseudo-random, the parameter and the ciphertext are related to the message 𝑚 and the public key. among them, the hash functions all use 𝑠ℎ𝑎𝑘𝑒256 , 𝑲 and 𝒄 are related to the message and the public key 𝑝𝑘, which is public in the algorithm 1 𝑇𝐴𝐿𝐸. 𝐶𝐶𝐴. 𝐸𝑛𝑐𝑎𝑝𝑠(𝑝𝑘) 1: 𝒎 ← 𝑈({0,1}1024) 2:𝒎 = 𝐻𝛾(𝑚) 3:𝑲 ∥ 𝒅 ← 𝐺𝛾+𝜅(𝒎 ∥ 𝐻𝜅(𝑝𝑘)) 4:𝒄 ← 𝑇𝐴𝐿𝐸. 𝐶𝑃𝐴. 𝐸𝑛𝑐(𝑝𝑘,𝒎, 𝒅) 5:𝐬𝐬 ← 𝐻𝛾(𝑲 ∥ 𝐻𝜅(𝒄)) 6:𝒓𝒆𝒕𝒖𝒓𝒏(𝒄, 𝒔𝒔) algorithm 2 𝑇𝐴𝐿𝐸. 𝐶𝑃𝐴. 𝐸𝑛𝑐(𝑝𝑘,𝑚, 𝑑) 1: 𝒂 ← 𝐵𝑛 𝑘 (𝑠𝑒𝑒𝑑𝑎) 2: 𝒚, 𝒆𝟏, 𝒆𝟐 ← 𝐵𝑛 𝑘(𝒅) 3: ŷ ← 𝐾𝑁𝑇𝑇(𝒚) 4: 𝒄𝟎 ← 𝒂 ∘ ŷ + 𝒆𝟏 5: 𝒄 ← 𝐼𝐾𝑁𝑇𝑇(𝒃 ∘ ŷ) + ê 6: 𝒄𝟏 ← 𝒄𝟎 + 𝐸𝑛𝑐𝑜𝑑𝑒(𝒎 ⊕ 𝒄) 7: 𝒄𝟐 ← 𝑐𝑜𝑚𝑝𝑟𝑒𝑠𝑠(𝒄) 8: 𝒓𝒆𝒕𝒖𝒓𝒏 (𝒄𝟏||𝒄𝟐) 116 public key cryptosystem. therefore, if the message 𝑚 is recovered successfully, the shared key in the kem can be obtained. in algorithm 1 and algorithm 2 the message 𝑚 is directly involved in the hash operation as well as the message encoding, the hash operation process is complex and the implementation of side channel analysis is diffcult, while the message encoding process is simple, the whole process does not involve variables, and the attack feasibility is high. the message encoding process is shown in algorithm 3. the encoding is the conversion of the message byte into message bit, with each message bit having only two cases, 0x00 or 0x01. and the difference in hamming weight between the two cases is 1. to get the correct message classification, a template is created for each message bit, and the probability of being able to trace the corresponding template is calculated, and then the template with the highest probability is selected as the value for each message bit. 3.2. leakage analysis in this paper, stm32f1 board is used to execute algorithm 1, and an oscilloscope, em probe and inspector are used to collect and process the signals. in the signal collection process, to avoid excessive noise affecting the experimental results, the em probe is used to detect the best leakage position of the chip during the execution of algorithm 1, and the detection results are shown in figure 1, where the red area is the maximum leakage point. move the probe position to the best leakage point using an oscilloscope and inspector to collect the signal, where the sampling frequency is 500mhz and the trigger voltage is 2.0v, and the message encoding area after the initial processing curve is shown in figure 2. figure 1. em scanning situation to ensure that the acquisition curve can be experimented, a leakage analysis of the curve is required. nicv is a leakage analysis method based on normalized inter-class variance, which can be used to input only public information such as plaintext or ciphertext for leakage detection, and can also be used to test the efficiency of leakage models, the quality of energy traces [14]. taking the first byte as an example, the leakage analysis of the energy trace using nicv is shown in figure 3. figure 2. message encoding area figure 3. nicv leakage from fig. 3, it can be seen that the leakage interval of the first byte is roughly 1500-2900 in the sample range of 04000 with a peak around 0.35, thus proving the leakage of the message encoding process described in 3.1. 4. experiment 4.1. attack description if there are 𝑛 power traces, the message is 𝑀∗ = 𝑎𝑟𝑔𝑚𝑎𝑥𝑚 ∏ 𝑀𝐿𝑃(𝑒𝑖|𝑐𝑜𝑚𝑏(𝑚))𝑛 𝑖=1 (5) in equation 5, 𝑀∗ represents the correct message, 𝑒 is the energy trace curve, 𝑐𝑜𝑚𝑏(𝑚) is the intermediate value, and 𝑀𝐿𝑃(𝑒𝑖|𝑐𝑜𝑚𝑏(𝑚)) is used as the classifier probability model of the training process. from equation 5, it is clear that the training effect of the multilayer perceptron plays a decisive role if a better attack effect is to be obtained. to measure the goodness of the model, this paper uses the classification accuracy of the model training as the data classification ability of the model and uses the guess entropy to measure the final effect of the multi-layer perceptron template-based attack. 4.2. experimental environment and data set in this paper, we build a multilayer perceptron network model based on python tensorflow2.0, and conduct training and attack on gpu server. the experimental data set are collected using the curves in section 3.1, and the initial collected curves are in .trs format, and we need to convert the trs files to h5 files for the convenience of conducting experiments. a total of 56000 curves were collected for this experiment, of which 46000 were used for training and 10000 were used as attack curves. 4.3. experimental analysis in this subsection, to obtain the best multilayer perceptron model, the experiment will be divided into two steps: 1) algorithm 3 𝐸𝑛𝑐𝑜𝑑𝑒(𝑚, 𝑐) 1: 𝑓𝑜𝑟 𝑖 = 0 . . .128 𝑑𝑜 2: 𝑓𝑜𝑟 𝑗 = 0 . . .7 𝑑𝑜 3: 𝑡 = 𝑚[𝑖] ≫ 𝑗 & 0𝑥01 4 𝑐𝑜𝑒𝑓𝑓[𝑖 ∗ 8 + 𝑗] = (𝑡 ⊕ (𝑐 & 0𝑥01))&0𝑥01 5: 𝑒𝑛𝑑 𝑓𝑜𝑟 6: 𝑒𝑛𝑑 𝑓𝑜𝑟 7: 𝑟𝑒𝑡𝑢𝑟𝑛 𝑐𝑜𝑒𝑓𝑓[] 117 determining the extraction method and size of feature points; 2) determining the number of mlp hidden layers and the activation function. 1) determining the extraction method and size of feature points in this part, in order to evaluate the influence of feature point extraction method and size on the experimental effect. tentatively, the structure of the multilayer perceptron is set as follows: the hidden layer is 3 layers, the neuron size of each layer is 64, the activation function uses relu, the number of training rounds epochs is 100, and the batch size is 1300. firstly, in order to verify the effect of the feature extraction method on the training effect of the multilayer perceptron model, the feature extraction algorithms selected in this paper are sost [15], nicv, and pca [16]. table 1. effectiveness of attacks based on feature extraction methods train set attack accuracy entropy sost 46000 1 78.8% 4.1 nicv 46000 1 80.7% 3.7 pca 46000 1 83.2% 3.1 the classification accuracy and guess entropy obtained when template attacks are performed with different feature algorithms for extracting feature points are given in table 1. when using pca to extract feature points, the highest classification accuracy and the smallest guess entropy of the attack are obtained, so in the subsequent experiments, pca principal component analysis will be used to extract feature points for the experimental data. in the extraction of feature points, in addition to the way of feature extraction will have an impact on the experimental results, if too few feature points are extracted, effective information will be filtered, and too much invalid information will interfere with the experimental results. table 2 below gives the attack classification accuracy and guess entropy at different pca sizes, and it can be seen that the attack effect is best when the number of feature points extracted using pca is 128. table 2. effectiveness of pca-based attacks methods train set attack accuracy entropy 64 46000 1 84.7% 2.7 128 46000 1 85.1% 2.5 200 46000 1 84.5% 2.9 256 46000 1 83.2% 3.1 2) determining hidden layers and activation function the number of hidden layers, the number of neurons, and the activation function are the basic structure of the multilayer perceptron. in order to determine the best multilayer perceptron model for the tale algorithm side channel attack, the number of neurons is set to 32 and the number of layers and activation function are experimented separately. from figure 4, it can be seen that when using different layers, the best results are obtained when the hidden layer is 3. figure 5 shows the experimental results under different activation functions, and it can be seen that for the three activation functions the effects are not very different, and the effect of selu is slightly better than the remaining two functions. for the tale algorithm, the best results are obtained when the number of hidden layers of the multilayer perceptron model is 3 and the activation function is selu. figure 4. effect of hidden layer on mlp model figure 5. effect of activation function on mlp model 5. conclusion to address the problem of side channel information leakage during the implementation of tale kem on stm32 board, this paper theoretically analyzes the vulnerability points on the tale algorithm and proves the existence of leakage points by analyzing the leakage of the vulnerability points. in order to be able to recover the messages generated randomly by the implementation, an unused feature extraction method is used for effective information extraction and combined with a multilayer perceptron model for template attack. the experimental results show that using pca to extract feature points is better than other methods, and the number of hidden layers and neurons in the multilayer perceptron has a greater impact on the experimental results. in future research, we will work on finding better models to improve the classification accuracy and reduce the guess entropy. acknowledgment this work was supported in part by the sichuan science and technology program (no. 2021zyd0011) references [1] shor pw. polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. siam review, society for industrial and applied mathematics, 1999,41(2):303–332. [2] pessl p, primas r. more practical single-trace attacks on the number theoretic transform. in: schwabe p, thériault n, eds. proc. of the progress in cryptology—latincrypt 2019. cham: springer int’l publishing, 2019. 130–149. [3] z. xu, o. pemberton, s. s. roy, d. oswald, w. yao and z. zheng, "magnifying side-channel leakage of lattice-based cryptosystems with chosen ciphertexts: the case study of kyber," in ieee transactions on computers, vol. 71, no. 9, pp. 2163-2176, 1 sept. 2022, doi: 10.1109/tc.2021.3122997. 118 [4] ravi p, roy ss, chattopadhyay a, bhasin s. generic sidechannel attacks on cca-secure lattice-based pke and kems. iacr trans. on cryptographic hardware and embedded systems, 2020, 2019: 307-335. [5] amiet d, curiger a, leuenberger l, et al. defeating newhope with a single trace[c]//international conference on postquantum. [6] lyubashevsky v, peikert c, regev o. on ideal lattices and learning with errors over rings. in: gilbert h, ed. proc. of the advances in cryptology-eurocrypt 2010. berlin, heidelberg: springer-verlag, 2010. 1-23. [7] mathan sa, koedinger kr. fostering the intelligent novice: learning from errors with metacognitive tutoring. educational psychologist, routledge, 2005, 40(4): 257-265. [doi:10.1207/s15326985ep4004_7]. [8] kocher p. timing attacks on implementations of diffiehellman,rsa, dss, and other systems[c]ll advances in cryptology—crypto 1996, lncs 1109,1996: 104-113. [9] boneh d, demillo r a, lipton r j.on the importance of checking cryptographic protocols forfaults[c] /l advances in cryptology—eurocrypt 1997, lncs 1233,1997:37-51. [10] kocher p, jaffe j, jun b. differential power analysis[c] /l advances in cryptology—crypto1999, lncs 1666, 1999: 388-397. [11] brier e, clavier c, olivier f. correlation power analysis with a leakage model[m]/ / joye m, quisquater j.cryptographic hardware and embedded systems-ches 2004. berlin, germany: springer, 2004: 16-29. [12] kocher p, jaffe j, jun b, et al. introduction to differential power analysis and related attacks[j].journal of cryptographic engineering, 2011, 1(1) : 5-27. [13] chari s, rao jr, rohatgi p. template attacks. in: kaliski bs, koççetin k, paar c, eds. proc. of the cryptographic hardware and embedded systems-ches 2002. berlin, heidelberg: springer-verlag, 2003. 13-28. [14] s. bhasin, j. -l. danger, s. guilley and z. najm, "nicv: normalized inter-class variance for detection of side-channel leakage," 2014 international symposium on electromagnetic compatibility, tokyo, tokyo, japan, 2014, pp. 310-313. [15] gierlichs, b., lemke-rust, k., paar, c. (2006). templates vs. stochastic methods. in: goubin, l., matsui, m. (eds) cryptographic hardware and embedded systems ches 2006. ches 2006. lecture notes in computer science, vol 4249. springer, berlin, heidelberg. https://doi.org/10.1007/11894063_2. [16] archambeau, c., peeters, e., standaert, f.x., quisquater, j.j. (2006). template attacks in principal subspaces. in: goubin, l., matsui, m. (eds) cryptographic hardware and embedded systems ches 2006. ches 2006. lecture notes in computer science, vol 4249. springer, berlin, heidelberg. https://doi.org/10.1007/11894063_1. http://dx.doi.org/10.1207/s15326985ep4004_7 frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 84 research on the defense mechanism based on fdia in smart grid ronghua yi * department of computer science, north china electric power university, baoding 07100, hebei china abstract: with the extensive application of communication and information technology in power grid, the physical fusion system of power information develops rapidly, which makes the realization of every link in smart power grid rely on the support of information network. although smart grid information can greatly enhance the performance of the power system, it also brings new security risks to the power system. fdia (false data injection attacks), as one of the most harmful attacks to the stability of the power system, has attracted the attention of information security researchers. therefore, this paper aims at the defense mechanism of power grid fdia to discuss the protection strategy of power grid information security. keywords: power information physical fusion system; power system stability; fdia defense mechanism. 1. introduction in recent years, attacks on smart grid through network and sabotage have occurred from time to time. as an important critical infrastructure, most countries are paying more and more attention to the information security of smart grid, and china has also included it in the national security strategy. in this paper, we analyze the threats to smart grid from the perspective of grid system security, and then summarize the attack methods and defense strategies of the typical attack form false data injection. information security consists of five basic requirements: information integrity, confidentiality, non-repudiation, availability and controllability. the domestic smart grid information security research mainly involves transmission grid information security, distribution grid information security, power monitoring system and energy management system information security, power enterprise information security, substation information security and power consumption information collection system information security . according to the basic attributes of information security, attacks on power grids can be divided into three categories in addition to physical damage: confidentiality attacks, availability attacks and integrity attacks. confidentiality attack is an attacker who performs unauthorized access or eavesdrops on the confidential information and data of the power system. availability attacks affect the stable operation of the power system by blocking the measurement data or control commands, which may lead to catastrophic consequences for the power system without effective control. abdallah farraj et al studied the effects of denial of service attacks (dosa) and communication delays on the transient stability of the smart grid, and proposed a delay adaptive design using parametric feedback linearization (pfl) control feature. as for the integrity attack, it is by the attacker to tamper with the content of control or measurement signals, which can seriously affect the reliability and security of the grid. false data injection attacks (fdia) is a typical integrity attack because of its covert nature and potential danger, which can affect the analysis and decision making of the upper control center and cause serious consequences, and is one of the high threat attacks on the power system. in this paper, we summarize the key issues and research status of fdia construction, detection and defense mechanisms. 2. fdia principle and process analysis 2.1. fdia principle the principle of fdia can be expressed using the dc current equation for power system operation. 𝑧 = 𝐻𝑥 + 𝑒 (1) where 𝑧 is the quantity measurement, 𝐻 is the measurement jacobi matrix, 𝑥 is the state quantity to be estimated, and 𝑒 is the measurement error. the state estimation is based on redundant measurements, of which the measurements may contain spurious data, which requires data detection to ensure the reliability of the state estimation results. to eliminate the influence of bad data on state estimation, residual-based spurious data detection methods are widely used. the expression of the residuals is given by 𝑟 = 𝑧 − 𝐻(�̂�) (2) the basis for detecting false data is: ‖𝑟‖ < 𝜏, 𝜏 is the threshold value for judgment, if ‖𝑟‖ < 𝜏, then the system can be considered as not containing false data, otherwise the corresponding false data should be eliminated and the state estimation should be performed again until it passes the false data detection. however, if the attacker uses 𝑎 = [𝑎1, 𝑎2, … , 𝑎𝑚]𝑇 to represent the false data vector injected in the volume measurement. the actual measurement becomes 𝑧𝑏𝑎𝑑 = 𝑧 + 𝑎 , at which point the estimated state variable also becomes 𝑥𝑏𝑎𝑑 = 𝑥 + 𝑐 , where c denotes the error vector introduced in the state variable due to the injection of the a vector. at this point the expression for the residuals also becomes ‖𝑟‖ = ‖𝑧𝑏𝑎𝑑 − 𝐻𝑥𝑏𝑎𝑑‖ = ‖𝑧 + 𝑎 − 𝐻(�̂� + 𝑐)‖ = ‖𝑧 − 𝐻(�̂�) + 𝑎 − 𝐻𝑐‖ (3) obviously, when 𝑎 = 𝐻𝑐 , ‖𝑟‖ = ‖𝑧𝑏𝑎𝑑 − 𝐻𝑥𝑏𝑎𝑑‖ = 𝑧 − 𝐻(�̂�) . at this point, the residual-based bad data detection method is unable to detect the false data, and the attacker is able to change the quantity measurement and state change quantity at will, which seriously endangers the security stability of the power system. false data injection attacks can be divided into many categories depending on the variant type, such as load 85 redistribution attacks that tamper with the load sent from power plants to control centers and branch currents, blind false data injection attacks that are data-driven by principal component analysis of the power system, topology attacks that can achieve state maintenance by only having local topology information and related measurement information of a specific attack line, and so on. 2.2. fdia process analysis in addition to a series of physical devices such as generators, transformers, circuit breakers, etc., the cyber physical system (cps) also contains heterogeneous intelligent terminal devices such as remote terminal unit (rtu), synchronous phase measurement unit (pmu), etc., which realize the information collection and sensing of the power system. as shown in figure 1, from the attacker's point of view, fdia can be conducted for two aspects of the communication sensing network and power control system of the power cps. figure .1 fdia attack location (1) the first step of the false data injection attack for the communication sensing network is to obtain the accessibility of the information side of the power information physical fusion system, and the intrusion process is usually realized during the data collection and transmission process. when the data is transmitted over the communication link, based on the principle of intrusion, it can be mainly divided into interaction and implantation system, where the interaction includes attacks such as masquerade, bypass control, man-in-themiddle and interception replay, and the implantation system includes attacks such as virus trojan, trapdoor and service spoofing. for the prevention of fdia on the power grid during communication, information security can be ensured by means of encryption technology and digital signature authentication, such as luo zhao et al introduced the domestic sm2 cryptosystem instead of the rsa algorithm of the original public key cryptosystem, and designed a power grid information security support platform based on the national secret sm2, which is based on elliptic curve cryptography (ecc). sm2 cryptography system is an encryption algorithm based on elliptic curve cryptography (ecc), which is more efficient than rsa algorithm, and it can ensure the integrity and confidentiality of measurement information in the communication process to a certain extent. in the data acquisition process, fdia can mainly target remote terminal units and synchronous phase measurement units. for example, an attacker can use the gps vulnerability in the pmu to conduct a time synchronization attack and forge gps signals to flood the correct data. when an attacker successfully injects the incorrect data into the information layer, he can achieve the goal of manipulating the physical processes of the power based on the full knowledge of the power system operation, control and protection operations.kumar et al a novel ecc-based authentication protocol (eccauth) aims to preserve the demand response in sg systems. compared to existing proposals that use only device-to-device communication in the local domain for authentication, the proposed protocol supports dynamic sg device authentication and uc addition in the sg environment at any time in both local and global domains. (2) when an attacker targets fdia as a power control system, first of all, we all know that sensor measurement data in the grid is not completely accurate, and naturally bad data can be caused by accidental factors such as device failure, sensor offset, incorrect connection, and communication interference. these inaccurate data are transmitted to the state estimator in the control system (e.g., energy management system ems), and the estimated real-time system state is contaminated. so in order to remove such accidental random bad data, the largest normalized residual (lnr) can be mainly used for detection, but if an attacker is familiar with the power system topology and state estimation algorithm, he can tamper with the measurement matrix by hijacking and distorting the output of the sensors, thus destroying the integrity of the state estimator. then he can, like the fdia principle described in the previous section, elaborate false data to satisfy the line topology and tide constraints, avoid bad data identification, improve the success rate, and subsequently lead to control decision failures. 3. fdia impact analysis on the system fdi attack is a great threat to the power system due to its stealthy nature, which can lead to serious consequences such as system load shedding, line overload, and disruption of the power market. for different power businesses, fdia has a huge impact on the system not only in terms of security control, but also in terms of economic dispatch. 3.1. fdia's impact on economic scheduling in fdia with the objective of financial gain, the attacker can falsify the system unit output plan or load forecast data, thus causing the system to misjudge the constraints of load balance, unit operation and grid security, and ultimately increasing the system energy consumption and equipment losses. when the attacker aims to gain economic benefits, he can falsify the line blockage level to profit from the tariff difference or theft in the power market. xie l et al simulated the attacker to exploit the flaw of malicious data detection algorithm to falsify two line blockages for virtual bidding against ieee14 node system by simulation and finally gained $6.0/mwh economic arbitrage. this has a huge harmful impact on the economic efficiency of both grid companies. meanwhile, in the power demand response auction activity, malicious users can participate in the auction activity by faking the identity of legitimate users, and malicious bidding can lead to the demand response auction cannot be carried out smoothly. 3.2. impact of fdia on security control in terms of power system security control, the consequences of the attack can be divided into the impact on system observability and controllability and the impact on security stability. if fdia fails to evade bad data detection, the tampered quantity measurements will be rejected as bad data, thus causing a certain area of the system to be unobservable, resulting in the power system dispatch control center not being able to grasp the actual operating status of the unobservable area in a timely manner, thus triggering subsequent system operation risks. supervisory control and data acquisition supervisory control and data acquisition control center/energy management system state estimation adverse data detection economic dispatch accident analysis optimal power flow collecting realtime information data feedback control remote terminal remote terminal power flow power flow electricity network fdia attacker 86 when fdia successfully interferes with the estimated value of the quantity measurement, for example, by falsifying the node voltage magnitude over the limit, it may lead to load shedding or even system voltage collapse; by falsifying the line overload, it may lead to line fault and change of power topology. 4. fdia defense mechanism principle and defense scheme 4.1. principle of fdia defense mechanism the power cps contains a large number of power primary equipment, communication equipment and information processing and control equipment. since the power primary equipment side is a time-varying continuous system, while the information side is a discrete system and information changes are triggered by events, the spatio-temporal characteristics and description methods of the two are essentially different in terms of the principles of fdia defense mechanism. qi wang et al analyzed the spatiotemporal dimensions of the power information-physical fusion system and studied the defense mechanisms according to different dimensions, and provided an insightful overview of the fdia attack and defense means in the power cps. (1) in the temporal dimension, taking the analysis of power business data as an example, the sampling frequency and delay requirements of the data are different due to the different sources and business importance of the data, so the redundancy and reasonableness of the measurement data from different sources and time scales need to be verified, the interrelationships between the data are explored, the wrong data are eliminated by mutual verification, the data quality is improved, and the information security defense mechanism of multiple time scales is formed. (2) in the spatial dimension, it is necessary to ensure the confidentiality, integrity and availability of information space on the one hand, and the stability of power space voltage, frequency, load supply and other indicators on the other. it is necessary to establish the correlation matching rules of both operational characteristics through the cross-space propagation mechanism of risk from information to physical for collaborative defense. based on the above defense mechanism principles, we need to establish a defense system covering the whole process of transient, steady-state and mediumand long-term dynamics in time, and a multi-layer defense architecture containing power layer, information layer and coupling layer in space, so as to establish a multi-dimensional synergistic defense model in time and space. the power cps network security protection process is an evolving and dynamic process that requires a cyclical process of security management, implementation, deployment and evaluation. the division of the organizational structure of the power cps in turn explores the principle of each layer's defense means against fdia is also different. the basic principle of information layer defense is to identify the correctness of data protocols and logic based on information security knowledge; the principle of power layer defense is to identify the reasonableness of data content based on power expertise. the intersection of the two is in the control application equipment, which is the highest layer of the information infrastructure and contains the database and high-level business applications covering the flow of measurement and command data for the physical grid. fraudulent data injected at the information layer is collected in the control application, so ensuring the correctness of data content based on power knowledge is the last line of defense to prevent fdia from disrupting the physical grid. 4.2. analysis of fdia defense methods and existing defense schemes today's smart grid information-physical convergence system defense methods against fdia mainly contain detection and protection links. the protection method focuses on the planning of protection resources before the attack, and the detection method focuses on the identification of the attack behavior after the attack. the two types of links are usually applied in the initial stage of the attack, and if properly arranged, they can eliminate the attack in the nascent stage and minimize the impact of the attack, thus playing an important role in the overall defense process. 4.2.1. fdia-oriented detection methods and related program analysis detection methods focus on detecting the presence of erroneous data and can be broadly classified into two categories: model-based detection methods and data-driven detection methods. (1) model-based detection method this method models the smart grid by real-time measurements and by using static system data (e.g., system parameters and substation configuration). this detection method can be classified according to the operating conditions as a modeling detection method based on state estimation with quasi-static nature and a modeling detection method with trajectory prediction. from the state estimation-based detection method, the constructed quasi-static model assumes that the system state changes in a smooth and slow manner, and the transient response generated by the system is negligible and easy to construct. and through the continuous improvement of the state estimation algorithm by researchers, it contains residual detection method, quantitative mutation detection method, and quantitative correlation detection method, etc. dai wang et al is the simulation experiment conducted by the fdia method of detection based on state estimation, dai wang et al constructed a new fdi attack method -tolerable false data injection (tfdi). this attack exploits the tolerance of conventional detectors to observation errors and bypasses the conventional bad data detection. then a smart grid tfdi detection method based on extended distributed state estimation (edse) is proposed. the method uses a graph partitioning algorithm to decompose the power system into multiple subsystems, and the buses are divided into three groups: internal buses, boundary buses, and neighboring buses. each subsystem is extended outward, including adjacent buses and contact lines to make generate extended subsystems. and the se test and chi-squares test are used to detect whether each subsystem contains spurious data. after the simulation results show that the system using edse detection method detects tfdi with much higher accuracy and reduces the computational effort by more than 90%. the advantage of the detection method based on state estimation is that it utilizes proven algorithms, detects quickly, and also reduces the impact of general algorithms on detection accuracy. in addition to the above detection methods based on state estimation of the power system to build a quasi-static model there are also detection methods based on trajectory 87 prediction to build a dynamic model. because in the process of continuous dynamic operation of the power system, there is a strong spatio-temporal relationship between multiple state quantities. at this time, the quasi-static model is not suitable for use. therefore, trajectory analysis using historical data can be considered to predict the current state of the power grid and compare it with the current actual quantity measurements to analyze the areas in which may be under attack. this method can effectively detect various types of false data by predicting the distribution pattern of state variables based on the operation law of system state and historical database, and by matching the operation trajectory, but the high computational complexity and slow detection speed are not suitable for complex systems. (2) data-based detection method unlike the model-based detection algorithm, the databased detection algorithm is model-free. therefore, such fdi detection methods do not involve system parameters or models. yi wang et al proposed a data-centric paradigm to detect fdi attacks in large-scale smart grids. in this detection method, the margin setting algorithm (msa) is used to process large amounts of real-time data from large-scale smart grids. the simulation dataset for this literature is generated from a matlab/simulink model that uses a sixbus power system in a wams network. the real-world dataset is based on hourly data input from a synchronous phase volume network in texas. and two fdia attack schemes, replay attack and temporal attack, are investigated. the final experimental results show that the algorithm has higher accuracy and minimum error in detecting fdias than the traditional svm and ann algorithms. the significant advantages of this fdia detection method using artificial intelligence are the powerful computational power and clear framework. however, due to the complexity of the power system operation mechanism, the interpretability of this type of method is usually poor. 4.2.2. fdia-oriented protection methods and related program analysis due to the massive measurement and control data and complex operation mode of the power grid, the calculation of the impact of different combination types of attacks on the operation mode of the power system is very large, so it is difficult to meet the requirements of the decision time by using real-time decision making and real-time control. it is necessary to adopt the idea of offline decision making and online matching. before the attack, in the offline static analysis stage, the idea of planning is used to locate the critical area and analyze the attack-fault mapping relationship, so as to determine the decision table in advance; in the online matching decision stage, the idea of game is used to analyze the attack and defense behavior in advance, filter out the possible attack methods and determine the optimal defense strategy. chen yulin et al conducted a study on fdia defense under distributed cooperative control of microgrids. for the effect of constant value attack of fdi on distributed cooperative control, a distributed controller that can completely eliminate constant value attack is designed by using the property of constant value differentiation to zero. the method does not require the design of complex parameters to evaluate the trustworthiness of neighbor information, does not rely on additional estimators and communication networks, is able to completely eliminate the impact of the attack, and is highly practical as it can cope with all cases in which the distributed generator (dg) is attacked. the protection method can be found to provide great help for transient stability of power systems. qi wang et al proposed a two-layer defense model including detection and protection from the perspective of defense against fdia, where the upper layer model implements detection-based defense and the lower layer model implements protection-based defense. it uses the measurements within the phase measurement units (pmus) as the attack and defense targets, and quantifies the attack results using the load reduction caused by line failure. the measurement redundancy is enhanced using an extra-domain additional protection approach. the advantage of this approach is that game theory provides a more practical and sophisticated understanding of the game process between attackers and defenders. it not only analyzes the priority defense deployment in the grid from a holistic perspective, but also takes into account the opponent's choices to optimize its own offensive and defensive resource deployment as much as possible. 5. conclusion this paper presents a theoretical analysis of the attack process in terms of attack invasion methods, attack conditions, attack impacts, and defense aspects such as protection and detection, and introduces the fdia attack and defense mechanism for power cps. the analysis and summary of fdia for smart grid defense are based on several research cases. references [1] jie cheng,zhijie sang,wei hu,shulin zhang. smart grid information system security hazards and response strategies [j]. electrotechnical application,2020,39(04):99-102. [2] a.k.farraj, e.m.hammad, and d.kundur, “a cyber-physical control framework for transient stability in smart grids,” ieee trans. smart grid, vol.9 , no.2 , pp.1205-1215 , mar.2018. [3] jiwei tian,buhong wang . research progress and prospects of false data injection attack on smart grid [j]. cyberspace security,2019,10(09):73-84. [4] zhao luo,jihua xie,wei gu. development of a power grid information security support platform based on sm2 cryptosystem[j]. automation of electric power systems,2014,38(6):68-74. [5] n. kumar, g. s. aujla, a. k. das and m. conti, "eccauth: a secure authentication protocol for demand response management in a smart grid system," in ieee transactions on industrial informatics, vol. 15, no. 12, pp. 6572-6582, dec. 2019. [6] xie l, mo y l, sinopoli b. integrity data attacks in power market operations. ieee transactions on smart grid,2011,2(4):659−666. [7] qi wang,yi tang,ming ni. a review of research on false data injection attacks for power information physical systems [j]. ieee/caa journal of automatica sinica,2019,45(01):7283. [8] dai wang, xiaohong guan, ting liu, yun gu, chao shen, zhanbo xu. extended distributed state estimation: a detection method against tolerable false data injection attacks in smart grids[j]. energies,2014,7(3). 88 [9] wang, y., et al., a novel data analytical approach for false data injection cyber-physical attack mitigation in smart grids[j]. ieee access, 2017. 5: p. 26022-26033. [10] yulin chen,donglian qi ,zhenyu wang. distributed cooperative control of microgrids under false data injection attack [j]. automation of electric power systems,2021,45(05):97-103. [11] qi wang, wei tai, yi tang, ming ni, shi you. a two-layer game theoretical attack-defense model for a false data injection attack against power systems[j]. international journal of electrical power and energy systems,2019,104. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 16 compute offloading solution to maximize server rewards xiaochen zhu college of automation and electrical engineering, dalian jiaotong university, dalian 116028, china 15506598522@163.com abstract: with the development of the internet of things, cloud computing can no longer meet the demand, and edge computing emerges as the times require. as one of the most critical technologies in edge computing, computing offloading has been extensively studied. the research does not aim to minimize computing delay and energy consumption, but to maximize the reward of edge computing servers. considering the scenario of one mec server and multiple terminal devices, the target problem obtained is the two-dimensional 0-1 knapsack problem. in view of basic sine cosine algorithm is difficult to solve the discrete target offloading problem, the basic sca is improved to obtain isca, and the offloading problems with 6, 15 and 50 terminal devices are solved respectively, compared with other algorithms, the simulation results show that isca has better performance, better solving ability, it is not easy to fall into local optimum, and the convergence speed is also greatly improved compared with sca. keywords: edge computing; compute offloading; sine cosine algorithm(sca); mec server reward; knapsack problem. 1. introduction with the development of the internet of things and wireless communication technologies, a large number of intelligent application devices have emerged. in many application scenarios, intelligent iot terminal devices often need to run and process complex calculations and large amounts of data. however, most terminal devices are subject to physical constraints. due to the limitations of size and appearance design, it only has limited computing, storage and energy resources. the traditional cloud computing solution is to offload tasks with intensive computing and high energy consumption from the terminal to the cloud for processing, but at the same time, the transmission of tasks brings high latency which makes it difficult to meet the requirements of certain tasks, and edge computing emerges as the times require. edge computing is a supplement to cloud computing. edge servers are closer to the terminal, and cloud services are "sinked" to the edge of the network, which can solve the problems of long delay in computing offloading and occupying too many network resources in cloud computing. edge computing can be applied in autonomous driving, internet of things and industrial internet, and many other fields. with the continuous increase of user equipment and the increasing amount of computing tasks, how to use edge server nodes with limited resources to ensure the quality of service for end users has become a hot issue in edge computing. it is impossible to place all the tasks of the terminal in the edge server for processing. therefore, it is necessary to use a reasonable computing offloading strategy to offload some computing tasks to the edge or cloud, and computing offloading becomes a key problem. authors of elaborates the research status of computing offloading technology according to the goals of offloading decision, coarse-grained and finegrained offloading methods, and offloading methods under the cooperation of mec and device-to-device technology. the existing research results in this field are summarized. in order to meet the challenges, mobile edge computing deploys edge servers on the wlan side and offloads some computing-intensive tasks to edge servers, thereby shortening the distance between computing services and mobile devices, and powerful computing capabilities localize computing tasks and reduce data transmission cost becomes possible. literature proposes euagame, a game theory method that expresses the edge user allocation (eua) problem as a potential game, and designs a novel decentralized algorithm to find nash equilibrium in the game, as the eua problem solution. the work proposed joint downlink and uplink edge computing offloading and communication and computing resource allocation, and then transformed the offload optimization problem into minimizing the total delay time of the task while saving the energy consumption of mobile devices. authors of conducted research on the high-altitude balloons (habs) network scenario in mec, and proposed a federated learning algorithm based on support vector machine (svm) to determine user associations and optimize each user's service sequence and task assignment. most of the existing literature on compute offloading is discussed with the goal of minimizing the delay and energy consumption. this paper does not consider the delay and energy consumption, and focuses on the mec server to study how to make decisions to maximize the rewards of the server. 2. system model in this paper, we consider an edge computing scenario consisting of an mec server and multiple terminals. the computing resources and communication resources of the server are limited, and each terminal has different requirements for computing resources and communication resources. the size of computing resources is measured by the number of cpu cycles, and the number of communication resources is measured by the number of sub-channels. (c , b) represents the computing resources and communication resources of the mec server. tasks are indivisible, either executed locally or fully offloaded to the mec server for execution. (pi , qi) represent the computing resource and 17 communication resource requirements of the i-th terminal task, respectively. when the terminal wants to offload the task to the server, it needs to pay a certain reward to the server. due to the preference of the terminal to the server and other factors, the reward that each terminal is willing to pay is different. si represents the reward that the i-th terminal is willing to pay to the mec server. in this offloading scenario, the constraint of delay is not considered, and it is assumed that all terminals meet the general offloading conditions, that is, the offloading delay is smaller than the local execution delay. use the variable yi to indicate whether the i-th task is offloaded, yi=1 indicates offloading, and yi=0 indicates not. figure 1. system architecture 3. problem formulation the goal is to let the server reasonably select some terminals to obtain the maximum reward under the condition of limited resources. the total reward of the server is: 1 l i i i r y s = = (1) the target problem is described as: 1 max( ) l i i i r y s = = (2) s.t. 1 l i i i y p c =  (3) 1 l i i i y q b =  (4) the analysis shows that the objective optimization problem is a two-dimensional 0-1 knapsack problem. the method to solve the problem is discussed below. 4. algorithm to solve the target problem 4.1. dynamic programming dynamic programming is a more classical method for solving the knapsack problem. the implementation is as follows: v(l, ml, nl) indicates that the mec server has selected the maximum value obtained by the first l mobile terminals, ml indicates the remaining communication resources of the mec server at this time, and nl indicates the remaining computing resources of the server. supposing a choice is to be made on the l-th terminal, there are two cases for the l-th terminal: (1) when the resources required by the terminal are greater than the current remaining resources of the server, it is impossible for the server to select it for offloading. the total reward is the same as that of the options for the first l-1 terminals, i.e.v(l-1,ml,nl). (2) when the remaining resources of the server meet the needs of the terminal, assuming that offload is selected, the total reward is sl+v (l-1, ml-ql,nl-pl). if you choose not to offload, the reward is v (l-1, ml,nl). the final plan is determined according to the total reward of the two options. so, the state transition equation is: ( , , ) max{ ( 1, , ), ( 1, , )}j j j j j j j j jv j m n v j m n s v j m q n p= − + − − − the dynamic programming method can obtain the exact solution of the problem, but the time and space complexity of the algorithm is exponential, and the recursive algorithm will lead to solving the common sub-problem more than once, which can be achieved when the amount of data is small, but when the amount of problem data is large, the solution efficiency is very low and it takes a long time to calculate. although the heuristic algorithm cannot guarantee that the optimal solution can be obtained, the algorithm has low complexity and can obtain the sub-optimal or optimal solution of the problem with high efficiency, which meets the requirements of the offloading system for algorithm efficiency. 4.2. sine cosine algorithm the sine-cosine algorithm is a meta-heuristic algorithm based on the characteristics of the sine function and cosine function in mathematics. it uses the periodic oscillation of the trigonometric function to explore the optimal solution. by embedding random parameters and adaptive amplitude adjustment, it achieves a balance between global exploration and local exploitation. in sca, it is assumed that the population size is n, ddimensional solution space, and a set of random initial solutions is generated first. each iteration, the individual updates its position according to the following formula: 1 2 3 4 1 2 3 4 ( ) sin( ) | ( ) ( ) | 0.5 ( 1) ( ) cos( ) | ( ) ( ) | 0.5 d d d i id i d d d i i x t r r r p t x t r x t x t r r r p t x t r  +   −  + =  +   −  (5) ( )d ix t is the position of the d-th dimension of the i-th individual in the t-th generation; ( )dp t is the position of the d-th dimension of the optimal individual of the t-th generation; r2, r3, r4 are random numbers subject to different uniform distributions, r2∈[0, 2π], r3∈[0,2], r4∈[0,1]; r1 is a control parameter that balances the exploration and exploitation of sca by controlling the amplitude of the sine and cosine functions, it is adaptively adjusted by formula (6) 1 a r a t t = − (6) a is a constant, t is the maximum number of iterations, and t is the current number of iterations. 4.3. improved sine cosine algorithm like other intelligent optimization algorithms, the basic sine and cosine algorithm has shortcomings such as slow convergence speed and poor local exploitation ability. this paper adopts the improved sine and cosine algorithm to solve the target problem. ··· mec server 18 4.3.1. the nonlinear decreasing function adaptively adjusts the parameter r1 change r1 in a non-linear manner, and r1 is decremented using formula (7). the parameter r1 controls the search process of the algorithm. in sca, r1 decreases linearly in the entire algorithm iteration cycle. this reduction method is not flexible enough, which leads to a relatively rigid process from exploration to exploitation of the algorithm, and is out of balance in the face of many target problems. the algorithm will show the disadvantages of premature or too slow convergence. by changing the original linear decreasing strategy of r1, the improved sca algorithm has the stronger global exploration ability in the early stage of the iteration, and the reduction of r1 is relatively slow to ensure the full exploration of the algorithm; in the middle of the iteration, the algorithm transitions from exploration to exploitation at a relatively fast speed; by the end of the iteration, the descending curve of r1 will not be too steep, which better takes into account the exploitation of the algorithm. r1 adopts such a parameter adjustment scheme to better balance the global exploration and local exploitation of sca. 1 exp( 10 ( ) )bt r a t =  −  (7) figure 2. r1 reduction curve figure 2 is the reduction curve of r1 when a=2, b=5. 4.3.2. modify the location update formula the sine function sin(r2) and cosine function cos(r2) have the same probability of obtaining a positive value as that of obtaining a negative value, so the removal of the absolute value sign in formula (5) will not affect the overall position update, and it can be reduced the complexity of the algorithm, so the position update formula is rewritten as: 1 2 3 4 1 2 3 4 ( ) sin( ) ( ) ( ) 0.5 ( 1) ( ) cos( ) ( ) ( ) 0.5 d d d i id i d d d i i x t r r r p t x t r x t x t r r r p t x t r  +   −  + =  +   −  (8) 4.3.3. crossover strategy inspired by the chromosomal crossover in genetic algorithm, the crossover operation is introduced into isca. in each iteration, two individuals are randomly selected, and the selected two individuals are crossed according to the crossover ratio pc. crossover realizes the exchange of information between individuals and improves the diversity of the population. 4.3.4. discretization and greedy repair the optimization space of most intelligent optimization algorithms is continuous, which is suitable for solving numerical continuous optimization problems. the target problem of this research is a two-dimensional 0-1kp problem, which is a discrete problem. each dimension of the feasible solution can only take 1 or 0, so the continuous solution in the original algorithm needs to be converted into a discrete solution, that is, the individual should use binary coding. the continuous solution is transformed into a discrete solution in the following way: a candidate solution in the solution space is represented by an ordered vector pair (x, y), where x=(x1,x2,...,xd) is a d-dimensional real vector, represents a continuous solution, and y=(y1,y2,…,yd) is the corresponding binary vector, which is the candidate solution of the target problem. taking x∈[-s,s] as the continuous solution space of the problem to be sought, we take s=5; y∈ {0, 1} is the binary solution space corresponding to the target problem, and the encoding method of converting the continuous solution into the discrete solution is as follows : 1 sig( ) 0 sig( ) i i i if x rand y if x rand  =   (9) sig () is the sigmoid function, the expression is: 1 sig( ) 1 i i x x e− = + (10) rand∈(0,1) is a random number. when the intelligent optimization algorithm solves 0-1kp, there will be individuals that do not meet the constraints in the iterative process, and methods need to be used to repair these individuals. the abnormal individuals are transformed by the greedy repair method: the mobile terminals are arranged in ascending order of value density, and then the mobile terminals that request the mec server to be offloaded are discarded in order, that is, the abnormal individuals are checked in order, and the corresponding dimension 0 becomes 1 until the individual satisfies the constraints. 4.3.5. scout bee mutation strategy the scout bee strategy in the artificial bee colony algorithm, when the individual's continuous stay times n to a certain threshold g, still cannot find a better position, it indicates that they are trapped in a local optimum. the role of the observer bee will transform into a scout bee and a new location will be generated randomly. inspired by this, a mutation strategy of scout bees is proposed. when the number of consecutive times n that the individual position does not become better reaches g, the algorithm mutates it, that is, the original 0 in each dimension becomes 1, and 1 becomes 0. the mutation ratio is pb. 4.4. algorithm flow step1: initialization parameters, including population size n, space dimension d, number of consecutive stays n, threshold g, maximum number of iterations t, and constant a, b. step 2: randomly generate a binary population, and repair the individuals that do not meet the constraints. step 3: calculate the value density of each mobile terminal, and sort the mobile terminals according to the calculated value density. step4: calculate the target function value of each individual and record the global optimal solution. step5: calculate r1 according to formula (7). step6: update the position of the individual according to formula (8). step7: execute the crossover strategy. step8: execute the scout bee mutation strategy. step9: greedy repair. step10: update the global optimal solution. step11: is the termination condition met? if satisfied, 0 20 40 60 80 100 iteration 0 0.5 1 1.5 2 r1 linear nonlinear 19 output the optimal solution; otherwise, turn to step5. 5. simulation results and discussions 5.1. simulation environment the simulation was performed on a laptop with 64bit windows10 operating system, intel(r) core (tm) i7-6700hq cpu @ 2.6ghz processor, and 8g memory configuration. the simulation code was written and run with matlab r2020b. 5.2. problems and parameter settings table 1. parameters of each algorithm algorithm parameters sca a=2 isca a=2,b=5,g=4,pc=0.3,pb=0.1 pso w=0.9,c1=c2=1,vmax=6 ga cp=0.5,mp=0.1 the population size is n=90, the maximum number of iterations is t=100, and each algorithm runs independently for 50 times. particle swarm optimization (pso) prososed in and genetic algorithm (ga) are used as comparison algorithms. table 2. problem 1: 6 mobile terminals (the total amount of computing and communication resources of the mec server are respectively 80,20) terminal pay computing resource requirements wireless resource requirements 1 100 8 3 2 600 12 6 3 1200 13 4 4 2400 64 18 5 500 22 6 6 2000 41 4 5.3. results in table 6, the evaluation indicators include the average optimal value, standard deviation, worst value, best value and success rate obtained by running several algorithms independently for 50 times. among them, the average optimal value can reflect the solution accuracy and convergence speed of the algorithm, the standard deviation is an index to evaluate the stability and robustness of the algorithm, and the best value and the worst value represent the upper and lower limits of the algorithm’s ability to solve problems to a certain extent, the success rate reflects the execution efficiency of the algorithm to achieve the target result. according to table 6, from the average optimal value obtained by several algorithms, on the offloading problem with different numbers of terminals, isca obtains the largest average optimal value. compared with basic sca, isca has a significant convergence speed and solution accuracy. in terms of standard deviation, the standard deviation obtained by isca is the smallest among the three target problems. in contrast, the standard deviation of basic sca has a considerable gap, which greatly improves the stability of the algorithm; all of them have the ability to solve the problem and get the theoretical optimal value. from the worst value obtained by each algorithm solving 3 offloading problems independently for 50 times, the performance of basic sca is the worst, it’s worst value is the smallest, and the worst value of isca is the largest. isca is more capable of obtaining higher quality feasible solutions. for simple problems, that is, when the number of mobile terminals is small, several algorithms can obtain the optimal solution with a success rate higher than 90%, and the success rate of isca and ga directly reaches 100%. when the number of mobile terminals increases to 15, the success rate of each algorithm decreases, and when the number of mobile terminals is 50, the success rate further decreases, and the complexity of the target problem has a significant impact on the success rate of the algorithm. the success rate of isca is always the highest among several algorithms, and the reliability of solving the target problem is much better than that of sca. the success rate is not 0, and each algorithm has a certain ability to obtain the theoretical optimal solution. figure 3. convergence curves of problem 1 figure 4. convergence curves of problem 2 figure 5. convergence curves of problem 3 0 20 40 60 80 100 1000 1500 2000 2500 3000 3500 4000 r ew ar d iteration sca isca 0 20 40 60 80 100 1500 2000 2500 3000 3500 4000 r ew ar d iteration sca isca 0 20 40 60 80 100 6000 8000 10000 12000 14000 16000 18000 r ew ar d iteration sca isca 20 in the above convergence curve, the abscissa is the number of iterations, and the ordinate is the server reward. from the convergence curve of sca and isca, the convergence speed of isca is faster than that of sca. the ability of the algorithm to jump out of local optimum in late iterations is improved. table 3. problem 2: 15 mobile terminals (the total amount of computing and communication resources of the mec server are respectively 500,110) terminal pay computing resource requirements wireless resource requirements 1 100 8 3 2 220 24 6 3 90 13 4 4 400 80 20 5 300 70 20 6 400 80 30 7 205 45 8 8 120 15 3 9 160 28 12 10 580 90 14 11 400 130 40 12 140 32 6 13 100 20 3 14 1300 120 20 15 650 40 5 table 4. problem 3: 50 mobile terminals (the total amount of computing and communication resources of the mec server are respectively 800,650) terminal pay computing resource wireless resource terminal pay computing resource wireless resource 1 560 40 16 26 103 5 5 2 1125 91 92 27 215 10 10 3 300 10 41 28 81 8 6 4 620 30 16 29 91 2 4 5 2100 160 150 30 26 1 7 6 431 20 23 31 49 3 4 7 68 3 4 32 420 10 12 8 328 12 18 33 316 42 8 9 47 3 6 34 72 6 4 10 122 18 2 35 71 4 3 11 322 9 12 36 49 8 8 12 196 25 8 37 108 5 10 13 41 1 2 38 116 10 6 14 25 1 1 39 90 1 6 15 425 10 3 40 738 40 28 16 4260 280 200 41 1811 86 93 17 416 10 20 42 430 11 9 18 115 8 6 43 3060 120 30 19 82 1 2 44 215 8 22 20 22 1 1 45 58 3 33 21 631 49 70 46 296 32 36 22 132 8 9 47 620 28 45 23 420 21 22 48 418 13 13 24 86 6 4 49 47 2 2 25 42 1 1 50 81 4 2 in short, the optimization capability of isca has been greatly improved compared with the basic sca. when sca solves discrete computational offloading problems, it lacks the ability to jump out of the local optimum, and it is easy to stagnate, making it difficult to achieve the goal of finding a better solution. isca overcomes this deficiency very well. when solving the corresponding offloading problem, it can always jump out of the local optimum, the convergence speed is also improved, and it can approach the optimal solution at a faster speed. when the number of mobile terminals is small, the solution results of various algorithms are less different, they can solve the problem with a high success rate, while when the number of mobile terminals is large, the superior performance of isca can be more clearly reflected. table 5. computational results of deterministic algorithms problem dynamic programming greedy algorithm problem 1 3900 3800 problem 2 3965 3925 problem 3 16761 16590 21 table 6. comparison of heuristic algorithm results problem algorithm average optimum standard deviation best worst success rate /% problem1 sca 3886 85.738 3900 3300 96 isca 3900 0 3900 3900 100 pso 3898 14.142 3900 3800 98 ga 3900 0 3900 3900 100 problem 2 sca 3814.6 328.403 3965 2665 80 isca 3963.4 7.918 3965 3925 96 pso 3899 157.529 3965 3315 84 ga 3931.8 109.739 3965 3465 90 problem 3 sca 15595.5 1779.677 16761 12070 60 isca 16695.96 223.828 16761 15873 92 pso 16465.48 439.7 16761 15710 68 ga 16625.68 296.967 16761 15770 82 6. conclusion in this paper, we consider a computing offloading scenario of a mec server and multiple terminal devices, aiming at the maximum reward of the server, modeling the target problem as a knapsack problem, and improving the sine cosine algorithm to solve it without using the traditional solution method with high complexity. the computational offloading problem is solved with an improved sine cosine algorithm and compared with two classical heuristics. the simulation results show that when solving discrete offloading problems, the improved sine cosine algorithm has the best performance. in the results, the average optimal value and standard deviation of isca rank first among all algorithms. stability, solution speed, and solution success rate of isca are greatly improved over the basic sine sca. we’ll consider applying the isca other compute offloading scenarios in future work. references [1] liu s, liu l, tang j, et al. edge computing for autonomous driving: opportunities and challenges[j]. proceedings of the ieee, 2019, 107(8): 1697-1716. [2] premsankar g, di francesco m, taleb t. edge computing for the internet of things: a case study[j]. ieee internet of things journal, 2018, 5(2): 1275-1284. [3] li h, li x, xiong q, et al. edge computing enabling industrial internet: architecture, applications and challenges[j]. computer science, 2021, 48(1): 1-10. (in chinese) [4] zhang y, liang y, yin m,et al.survey on the methods of computation offloading in mobile edge computing [j]. chinese journal of computers,2021, 44(12):2406-2430.(in chinese) [5] lin l, liao x, jin h, et al. computation offloading toward edge computing[j]. proceedings of the ieee, 2019, 107(8): 15841607. [6] hu h, jin f, lang s. survey of research on computation offloading technology in mobile edge computing environment [j]. computer engineering and applications, 2021, 57(14):6074. (in chinese) [7] he q, cui g, zhang x, et al. a game-theoretical approach for user allocation in edge computing environment[j]. ieee transactions on parallel and distributed systems, 2019, 31(3): 515-529. [8] zheng j, gao l, wang h, et al. joint downlink and uplink edge computing offloading in ultra-dense hetnets [j]. mobile networks and applications, 2019, 24(5): 1452-1460. [9] wang s, chen m, yin c, et al. federated learning for task and resource allocation in wireless high-altitude balloon networks [j]. ieee internet of things journal, 2021, 8(24): 17460-17475. [10] abdel-basset m, mohamed r, mirjalili s. a binary equilibrium optimization algorithm for 0-1 knapsack problems [j]. computers & industrial engineering, 2021, 151: 106946. [11] mirjalili s. sca: a sine cosine algorithm for solving optimization problems[j]. knowledge-based systems, 2016, 96: 120-133. [12] mirjalili s. genetic algorithm[m]//evolutionary algorithms and neural networks. springer, cham, 2019: 43-55. [13] zhan s,wang l,zhang z,et al. noising methods with hybrid greedy repair operator for 0-1 knapsack problem [j]. memetic computing, 2020, 12(1): 37-50. [14] wang h, wang w, xiao s, et al. improving artificial bee colony algorithm using a new neighborhood selection mechanism [j]. information sciences, 2020, 527: 227-240. [15] wang f, zhang h, zhou a. a particle swarm optimization algorithm for mixed-variable optimization problems[j]. swarm and evolutionary computation, 2021, 60: 100808. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 1, 2023 124 research on reinforcement learning explainable strategies based on advantage saliency dandan yan* college of computer science and technology, qingdao university, qingdao, 266071, china * corresponding author email: 1554011273@qq.com abstract: deep reinforcement learning is increasingly being used in difficult environments with sparse rewards and highdimensional inputs, and it performs well, but its decision-making processes are largely unclear and difficult to explain to end users. saliency map methods explain an agent's behavior by highlighting state features relevant for the agent to take an action. in this paper, we use the perturbation-based saliency map method, propose the use of advantage function to replace the existing method of calculating state saliency, realize the combination of advantage function and perturbation-based saliency map. a saliency map is generated by noting the saliency of the dependent elements of the agent's chosen action in the atari game environment. experimental comparisons show that our method generates more accurate explanatory saliency maps. keywords: advantage function; explain ability; perturbation-based saliency. 1. introduction artificial intelligence technology (ai) has a wide range of applications in various fields such as retail, technology, healthcare, science, and many more. at present, artificial intelligence is more inclined to solve practical problems, complete complex tasks automatically, and perform as little human intervention as possible in the implementation process. although the efficiency and performance of ai continue to improve, the incomprehensibility reduces the practicality to a certain extent [1]. therefore, the transparency of the model is identified as the key to improving user trust and user acceptance of the model. given the importance of interpretability and the performance-transparency trade-off exhibited by ai models, where the more complex the model's internal functionality, the less clear it is about how a prediction or decision is made, a new field of research begins to emerge, referred to as "explainable artificial intelligence (xai)" [1]. the purpose of an xai system is to make human behavior more understandable by providing explanations, in the case of an ai model, explaining what it did and what happened next in terms of its capabilities, representing this information in a way that a human (non-expert) user can understand ability, which ultimately enables them to predict the behavior of the model. reinforcement learning (rl) is used to describe and solve the problem of agents learning strategies to maximize rewards or achieve specific goals in the process of interacting with the environment. in the process of interacting with the environment, certain states in the environment give positive or negative rewards to the agent, and the agent learns a policy based on these reward signals, a mapping between states and behaviors [2]. however, rl also faces the problem of lack of explain ability, which limits its application in safety-sensitive or high-risk areas, such as unmanned driving technology and intelligent assistance for the elderly and the disabled. in order to overcome this weakness of rl, a large number of studies on “explainable reinforcement learning (xrl)” have emerged. hence, xrl is a sub-problem of xai, which is used to enhance human understanding of models and optimize model performance. deep learning algorithms have achieved success in many areas, such as image classification [3], machine translation [4], image acquisition [5], etc., which belong to the salient application in the field of computer vision. visual saliency in the field of computer vision simulates the perception of the scene by the human visual system and extracts salient areas in the image (that is, areas of interest to humans) for image acquisition or classification. visual saliency associates the image content with the detection target, and marks the samples of the corresponding results in the image according to some salient areas in the image. its most notable feature is that the target in the image is known, which is different from the policy-based saliency mapping in deep reinforcement learning (drl). the models in drl support interaction with challenging environments with sparse rewards and noisy high-dimensional inputs, and perform well (e.g., atari games), but are often criticized as "black boxes". this also leads to the emergence of policy-based saliency mapping -policy saliency. policy saliency explains to humans the basis of the agent's choice and highlights the factors that have a great influence on the policy (selected action) in the state characteristics. in rl systems, it is often used to evaluate the internal representation and behaviour of the agent over multiple frames of the environment, rather than evaluating the importance of specific pixels in classifying images. except for the unknown target, the impact of the policy adopted by the agent on the target is also unknown. inspired by the saliency method in the visual field, saliency maps are used to explain the agent's behaviour in order to allow people to understand the reason why the agent takes actions. the saliency map method is divided into four types [6]: first, jacobian saliency. the gradient-based saliency mapping is extended to drl, and the output logits are calculated relative to the jacobian matrix of a bunch of images to obtain the importance of each pixel of the input image [7]. second, perturbation saliency. it perturbs a certain part of the original input image, and calculates the logit difference generated by the original image and the modified image, and then obtains a significant map [8]. third, object saliency. it performs directional masking for the object f in the image, then forms a perturbed image, detects the object in the input 125 image, and measures the importance of features by changing the q value of masked and unmasked objects [10]. fourth, attention saliency. it is more automated, using the attention mechanism to generate a saliency map [11]. in this work, we conduct research under the perturbationbased saliency mapping, and modify the saliency calculation based on previous work, such as greydanus et al. [8]utilize the difference of value function and policy vector between original state and perturbed state to generate saliency map, iyer et al. [10] compute a saliency map using the difference in action-value q(s,a) between the original state and the perturbed state and so on. we propose a new calculation method combined with the advantage function, using the difference of the advantage function value between the original state and the disturbed state to calculate the saliency of the state features. it visualizes the features of an agent taking a selected action by generating a saliency map. we use our method to explain the actions taken by an agent in atari games (breakout and space invaders), generating saliency maps. and it can be shown that the explanatory saliency maps generated by our method are more accurate compared with greydanus et al. and gupta et al., by the experimental comparison figures. the rest of this paper is organized as follows. the section 2 provides the relevant basic knowledge definition based on the perturbation saliency method and the advantage function and some related works. the method of calculating the significance and the definition of the formula in our paper will be discussed in the section 3. we perform experimental simulations of our problem in section 4, generating experimental comparison plots. finally, we conclude our paper and provide future work in section 5. 2. related work this paper focuses on a specific saliency mapping method in the field of computer vision—perturbation-based saliency mapping, and applies saliency mapping methods from this field to policy-based applications in rl. perturbation-based saliency mapping methods study the properties of dnns by perturbing the model's input and observing changes in the model's output. there are several advantages: first, observing the relationship between input-output is a natural and intuitive way to explore the class of black-box models; second, perturbation allows to analyze the model dynamically, instead of treating the model as an immutable object to study; finally, perturbation-based methods are generally applicable to any dnn, regardless of the model's architecture. therefore, the perturbation-based saliency mapping method is also one of the important methods to explain the reason why the agent executes the policy (takes action) in the reinforcement learning model. 2.1. perturbation-based saliency methods the idea of perturbation-based methods is to explore dnns by modifying some of the input information of the model, such as pixels in images, words in text, etc., and observing how the output of the model changes. observing changes in the output can indicate whether the corresponding part of the input is important to the interpretation, and a perturbation of an element is considered important if it changes the output significantly. for example, for image classification, the classifier may assign pictures to different categories due to changes that are invisible to the naked eye; for neural network prediction, as the performance improves, the understanding of the prediction process becomes more and more important. a general approach to explaining machine learning systems is called input attribution, so both gradient-based and perturbation-based methods are attribution methods [12]. the intended purpose of attribution methods is mainly to measure global importance, while the main difficulty is the combinatorial explosion. if it were to iterate over all input elements and all possible combinations of them and observe how each one changes the output, this would be impractical in practice due to enormous cost constraints. gradient-based attribution methods calculate the importance of elements by using model gradients, but tend to generate noise, especially in particularly large networks [13]. in addition, if the backpropagation algorithm is used, it needs to access the internal information of the model to generate the explanation, so it will be limited in use. perturbation-based attribution methods cover or remove images to measure whether the actual change is in line with the prediction. the main challenge is how to select a reasonable element group and apply the perturbation for testing within a reasonable time. a notable advantage of perturbation-based methods is "dynamicity", that is, while many other methods treat the model as a constant object of study, perturbation allows it to be interrogated repeatedly and hypotheses about it can be developed and tested dynamically. perturbation of images is performed by applying occlusion masks, blurring, or replacing parts of the image to remove or insert information. for example, if a picture contains a puppy, classify this picture, the prediction is +1 for the puppy, otherwise -1, if the image is disturbed, deleting the information related to the puppy should affect the output of the model, while for disturbances in other areas should not affect the original prediction results. so it should be noted that it is very difficult to choose a perturbation that does not add any new information but modifies the original information. therefore, the perturbation we choose in this paper is to partially cover the original image information without adding information. some works on the development of perturbation-based methods are as follows. the study of perturbation began with the pioneering work of zeiler and fergus [14], where a simple gray square mask was applied to an image, resulting in a change in the output of a classifier. the rise approach proposed in petsiuk et al. [15] empirically estimates importance by using a randomly masked version of the input image for model detection and obtaining the corresponding output. yang et al. [16] proposed the mfpp method, which divides the input image into multi-scale fragments, and then masks some of the fragments as perturbations to generate a saliency map. 2.2. advantage function the advantage function is the advantage of an action a relative to the average action in state s. from the perspective of quantitative relationship, it is the deviation of a random variable relative to the mean. in other words, the advantage function measures the plausibility of choosing a certain action in a certain state directly giving the difference between the chosen action and the mean of all possible actions. given an agent m, operating on a state space s, with a set of actions as, where s ∈ s, a policy π is formally a map from states to the probability of choosing each possible action. the value function of state s under policy π is the expected return that can be obtained from state s and following policy π, denoted as vπ (s). 126 and this state value function (namely v function) is just the most suitable form to measure the average performance of all possible actions in state s. similarly, define the action value function under the policy π, that is, in the current state s, after executing the action a, follow the expected reward that can be obtained by following the policy π, denoted as qπ(s,a). and this action value function (q function) is just the most suitable form to measure the performance of taking action a in state s. that is, the state-value function is defined as: 𝑉π(𝑠) = e[𝐺𝑡|𝑆𝑡 = 𝑠] = 𝐸π[∑ γ𝑘𝑅𝑡+𝑘+1 ∞ 𝑘=0 |𝑆𝑡 = 𝑠] (1) the action-value function is defined as: 𝑄π(𝑠, 𝑎) = 𝐸[𝐺𝑡|𝑆𝑡 = 𝑠, 𝐴𝑡 = 𝑎] = 𝐸π[∑ γ𝑘𝑅𝑡+𝑘+1 ∞ 𝑘=0 |𝑆𝑡 = 𝑠, 𝐴𝑡 = 𝑎] (2) where the following equations represent the recursive relationship based on bellman equation, state-value function and action-value function. in the formula, eπ represents the expected value of the random variable when the agent follows the policy π, t is the time step, γ is the discount factor, and r is the reward return. therefore, the advantage function represents the rationality of selecting an action a under state s . the definition of the advantage function is as follows: 𝐴π(𝑠, 𝑎) = 𝑄π(𝑠, 𝑎) − 𝑉π(𝑠) (3) use the difference between the action value function and the state value function to express the rationality of choosing action a in state s, that is, if the difference is greater than 0, which means that the selected action has an advantage on average and vice versa. using advantage functions is an extremely important policy for deep reinforcement learning, especially for policy-based learning. the advantage function is naturally compatible with the policy gradient algorithm, just like the followed formula of the policy gradient: 𝑔θ = 𝐸τ [∑ 𝑓𝑡=0 ∞ (𝑆𝑡 , 𝐴𝑡)∇θ 𝑙𝑜𝑔πθ(𝐴𝑡|𝑆𝑡)] (4) where the ∇θ𝑙𝑜𝑔πθ(𝐴𝑡|𝑆𝑡) part of the formula is the gradient direction of the logarithmic likelihood of taking action a in state s at time step t. if the parameter θ goes along this direction, the probability of choosing action a will be encouraged; on the contrary, if the parameter goes along the negative direction of the gradient, the probability of choosing action a will be reduced. therefore, in this paper, we also follow this idea when applying the advantage function to calculate the feature salience, which will be introduced in the section 3. some work in the paper using the advantage function is as follows. qi et al. [17] introduce the discrete normalized advantage function into dql, and separates the q-value function into a state value function and an advantage item, and uses the deterministic policy gradient descent (dpgd) algorithm to avoid the q-value of the action is calculated unnecessarily. wang et al. [7] use the advantage function for the dueling network architecture system proposed by himself, and promotes learning between different operations without changing the underlying reinforcement learning algorithm. 3. methodology in this work, our main research content is based on the agent (policy network) that has been trained, focusing on visually showing which characteristics the agent makes corresponding decisions in the input state, that is, hoping to explain the agent's decision to take a selected basis for the action. in the experiment, asynchronous advantage actorcritic (a3c) is used as the reinforcement learning framework of the agent, which can put actor-critic into multiple threads for synchronous training, and has achieved excellent performance in the atari environment [18]. therefore, we used a single dnn to evaluate the policy network and the critic network. the state is parameterized into a state feature f. for a single feature f ∈ f, the significance score score[f] is used to indicate the importance of the f-th feature of the state s on the agent's action a. in order to understand the decision-making information of the actions taken by the agent, we found that it is necessary to use the qπ (s, a) value of each time step t and the mean value vπ (s) of the action to construct and visualize the saliency map, which is inspired by previous work. 3.1. advantage function the relevant definition of the advantage function has been introduced in related work. in our paper, we use the advantage function when calculating the state feature salience score[f]. by observing the positive or negative value of the advantage function value of the state feature, we can judge the advantage change of the agent in the disturbed state and the original state when choosing the same action. if the value changes greatly, it means that the part of the pixel feature of gaussian blur is an important factor for the agent to select action a, and it should be marked obviously; otherwise, if the value of the advantage function has a small change, it indicates that part is not an important factor for the agent to choose action a, so it is not marked obviously. 3.2. perturbation-based saliency the outline of the perturbation-based saliency mapping method is as follows: first, for each feature f, the state s is perturbed to s'. for example, in an atari game, the input image is perturbed by adding a gaussian blur centered at the f-th pixel. second, the expected reward v(s) is obtained by querying the agent m in the original state s. similarly, the expected reward value v(s′) of agent m in the perturbed state s' is obtained. finally, calculate score[f] based on the difference between the original state and the disturbed state. below are some saliency measurement methods that work on perturbation-based saliency mapping. for example, greydanus et al. [8] exploit the difference in the value function or policy vector between the original state and the perturbed state to generate a saliency map. the formula for calculating the saliency measure is: 𝑆𝑐𝑜𝑟𝑒𝐺𝑟𝑒𝑦𝑑𝑎𝑛𝑢𝑠[𝑓] = 1 2 |𝑉(𝑠) − 𝑉(𝑠′)|2 (5) iyer et al. [10] compute a saliency map using the difference in action-value (q(s,a)) between the original state and the perturbed state. the formula is defined as follow: 𝑆𝑐𝑜𝑟𝑒𝐼𝑦𝑒𝑟[𝑓] = 𝑄(𝑠, �̂�) − 𝑄(𝑠′, �̂�) (6) gupta et al. [9] proposed specific and relevant feature attribution (sarfa). in the article, the score[f] is still calculated using the q value between the original state and the disturbed state, but two additional attributes are added: specificity and relevance. in our work, the method we propose to calculate the feature saliency score[f] is different. we start by querying the agent m chooses the expected reward value of action a in state s to get q(s, a), and obtains the mean value v(s) of all actions selected in state s, and then obtains the advantage function value aπ (s, a). similarly, the advantage function value aπ(s′,a) of the agent m choosing the same action a in the disturbed state s′ is obtained. finally, calculate the difference 127 between the advantage function value of the original state and the disturbance state to get score[f]. the specific calculation method is in section 3.3. 3.3. calculation of saliency combining the advantage function with the perturbationbased saliency mapping method, the input image is perturbed to change the input state to observe the behavior change of the agent. score[f] is calculated by calculating the difference between the advantage function value of the same action selected in the original state and the disturbed state, and judges whether to mark the disturbed state feature as saliency according to its value, and finally visualizes the important features for agent to take a selected action. in order to focus on the impact of changes on the agent's choice of action a, we are interested in whether the reward of a will change with the disturbance. as described in greydanus et al. [8], they directly use v(s) to obtain the reward value in state s, but do not pay attention to the effect of a specific action a, because they aggregate together the changes of all actions in state s. in our work, we focus on the effect of specific actions, q(s, a) is used to obtain the reward of the agent taking action a in state s. to focus on the specific actions taken, we normalize the values using the softmax over qvalues: 𝑞π(𝑠, 𝑎) = 𝑠𝑜𝑓𝑡𝑚𝑎𝑥(𝑄π(𝑠, 𝑎)) (7) introduced in the previous relevant sections, the advantage function is defined as aπ(s, a) = qπ (s, a) − vπ(s). for the first term, we use the standardized q-value qπ(s,a) to represent the expected reward value of agent m taking action a in state s. for the second term, the mean value of the rewards of all actions in the state s is calculated, so the advantage function is as follows: 𝐴π(𝑠, 𝑎) = 𝑞π(𝑠, 𝑎) − 1 |𝑎| ∑ 𝑞π(𝑠, 𝑎′) 𝑎′ (8) where the aπ(s,a) obtained by the formula represents the advantage value of following the policy π agent m to take action a relative to the average in the state s. the same way. the dominance function value aπ(s′,a) of the perturbed state s′ is calculated in the same way. to compute the saliency score[f], we use a vector ∆a denoting the relative dominance of the action a to be explained between the original state and the perturbed state. therefore, the higher the value of score[f], the more important the feature is for the agent to take action a, and the lower the value, it shows that the effect does not depend on the feature f very much. so ∆a is calculated as follows: δ𝐴 = 𝐴π(𝑠, 𝑎) − 𝐴π(𝑠′, 𝑎) (9) where each item of ∆a is a saliency score of a feature f. 4. experiment to show that our method produces more focused saliency maps than existing methods, we use atari (breakout and space invaders) as the experimental scene. these environments were chosen because each environment presented a different set of challenges, and deep reinforcement learning algorithms have previously been studied to far exceed human performance in these environments. 4.1. settings the input at each time step in our experiments is a preprocessed version of the current frame, which includes clipping the game space and normalizing the values to [0,1]. all of our atari agents share the same network architecture, with inputs processed by 4 convolutional layers, an lstm layer, and a fully connected layer of n+1 unit, where n is the dimensionality of the action space. for all our experiments, we only assume access to the agent's q(s,a) function. to show that our method generates saliency maps that are more focused than those generated by greydanus et al. and gupta et al., we compare two atari games (breakout and space invaders). (a) graydanus et al. (b) gupta et al. (c) ours figure 1. comparison results under breakout. 4.2. compare results in the game breakout, the main task is to bounce the ball by manipulating the baffle and destroy the bricks above it with the ball. previous work [9] pointed out that a strong breakout agent exploits a tunneling policy. during tunneling, the agent repeatedly points a ball at a certain area of the brick in order to break through it. this policy allows the agent to earn dense rewards by bouncing balls between surrounding walls and bricks. figure 1 shows the results, our method 128 accurately highlights the regions of the input image, focusing on the location more accurately. whereas the method of greydanus et al. highlights several regions in the input image that are not relevant for interpreting the actions taken by the agent. the region of interest of gupta et al. is also slightly messier than our method. in the game spaceinvaders, the main task is to control the turret to hit the aliens, and at the same time avoid the attacks of the aliens, but there will be three bunkers to provide protection. when there is no saliency map, it is noticeable through the game that the agent learns an aiming-like policy, but we are not sure whether it is shooting at dense clusters of enemies, or aiming at one of them as a single target. figure 2 shows the results of applying saliency mapping to this agent. we found that in our method, the agent pays more attention to the enemies in the front area directly in front of the muzzle, which is also easy to explain, the enemies in front are better to attack, and the danger is also greater. and the agent in our method also pays attention to the position of the cover, which makes it better protect itself from being killed. the method of greydanus et al. do not pay attention to the position of the bunker, only the enemy. the area of interest of gupta et al. is relatively less obvious. (a) graydanus et al. (b) gupta et al. (c) ours figure 2. comparison results under spaceinvaders. 5. conclusion in order to explain the factors that cause agents to perform actions in deep reinforcement learning, we combined the perturbation-based saliency method with the advantage function, calculated the advantage function value of the same action before and after the perturbed state, and visualized the results in the form of saliency map. compared with previous work, the effect of our experiment is more obvious. in future work, we will continue to work on using the advantage-based saliency-based interpretability method in more important applications, generating saliency maps so that nonprofessionals can better understand the basis for the agent to perform actions. the research can be extended to multi-agent systems, where the method of computing saliency is expected to play a better role in solving multi-agent problems. references [1] puiutta, erika, and eric msp veith. "explainable reinforcement learning: a survey." machine learning and knowledge extraction: 4th ifip tc 5, tc 12, wg 8.4, wg 8.9, wg 12.9 international cross-domain conference, cd-make 2020, dublin, ireland, august 25–28, 2020, proceedings 4. springer international publishing, 2020. [2] sutton, richard s., and andrew g. barto. introduction to reinforcement learning. vol. 135. cambridge: mit press, 1998. [3] affonso, carlos, et al. "deep learning for biological image classification." expert systems with applications 85 (2017): 114-122. [4] singh, shashi pal, et al. "machine translation using deep learning: an overview." 2017 international conference on computer, communications and electronics (comptelix). ieee, 2017. [5] you, quanzeng, et al. "image captioning with semantic attention." proceedings of the ieee conference on computer vision and pattern recognition. 2016. [6] atrey, akanksha, kaleigh clary, and david jensen. "exploratory not explanatory: counterfactual analysis of saliency maps for deep reinforcement learning." arxiv preprint arxiv:1912.05743 (2019). [7] wang, ziyu, et al. "dueling network architectures for deep reinforcement learning." international conference on machine learning. pmlr, 2016. [8] greydanus, samuel, et al. "visualizing and understanding atari agents." international conference on machine learning. pmlr, 2018. [9] gupta, piyush, et al. "explain your move: understanding agent actions using focused feature saliency." arxiv preprint arxiv:1912.12191 (2019). [10] iyer, rahul, et al. "transparency and explanation in deep reinforcement learning neural networks." proceedings of the 2018 aaai/acm conference on ai, ethics, and society. 2018. [11] mott, alexander, et al. "towards interpretable reinforcement learning using attention augmented agents." advances in neural information processing systems 32 (2019). [12] ivanovs, maksims, roberts kadikis, and kaspars ozols. "perturbation-based methods for explaining deep neural networks: a survey." pattern recognition letters 150 (2021): 228-234. 129 [13] khakzar, ashkan, et al. "improving feature attribution through input-specific network pruning." arxiv preprint arxiv:1911.11081 (2019). [14] zeiler, matthew d., and rob fergus. "visualizing and understanding convolutional networks." computer vision– eccv 2014: 13th european conference, zurich, switzerland, september 6-12, 2014, proceedings, part i 13. springer international publishing, 2014. [15] petsiuk, vitali, abir das, and kate saenko. "rise: randomized input sampling for explanation of black-box models." arxiv preprint arxiv:1806.07421 (2018). [16] yang, qing, et al. "mfpp: morphological fragmental perturbation pyramid for black-box model explanations." 2020 25th international conference on pattern recognition (icpr). ieee, 2021. [17] qi, chen, et al. "deep reinforcement learning with discrete normalized advantage functions for resource management in network slicing." ieee communications letters 23.8 (2019): 1337-1341. [18] mnih, volodymyr, et al. "asynchronous methods for deep reinforcement learning." international conference on machine learning. pmlr, 2016. [19] zahavy, tom, nir ben-zrihem, and shie mannor. "graying the black box: understanding dqns." international conference on machine learning. pmlr, 2016. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 133 a distributed streaming computing model management system shangyu zhao1, ping lin2 1 wenzhou polytechnic, wenzhou, china 2 zhejiang industry & trade vocational college, wenzhou, china abstract: iot big data has many dimensions, many business types and many customized requirements, and each business needs to be implemented using a stream computing model with a wide variety of stream computing models. this paper proposes a management method for streaming computing models, which can dynamically manage streaming computing models and achieve hot loading of streaming computing models. this makes it easier to manage computational models in a streaming computing cluster. keywords: distributed system; streaming compute; class loader. 1. introduction with the rapid development of iot big data, more and more front-end collection devices are producing huge amounts of iot data all the time [1]. this iot data flows like water into the data centre or business system, which then processes the iot data. the data centre or business system uses a stream computing model to process the iot big data, but there are many dimensions of iot big data, many types of business and many customized requirements, each business needs to use a stream computing model to implement, and there are many kinds of stream computing models. the current common streaming computing engines, such as flink and spark streaming [3], mostly adopt the manual online approach to install the streaming computing models on the computing nodes of data centres or business systems [4], and there is no effective management and scheduling method for streaming computing models, which makes the development and management of streaming computing models difficult [5]. in this paper, we propose a management method for streaming computing models, which enables hot loading of computing models by means of custom classloader, and design a distributed management mechanism that can manage computing models in a distributed system, and computing models can be synchronized up and down in each computing node in the distributed system. 2. system architecture the model management architecture as a whole consists of interface, model library, messaging module, model loading module and redis database, and the overall architecture is shown in the figure 1. figure 1. overall system architecture 2.1. streaming computing model generally, streaming computational models are developed by jvm based programming languages such as java and scala, and executable computational models consist of mutated jar files and their configuration files. in this paper, the targeted computational model refers to the compiled application developed by a jvm based language. managed computational models include model files, model configurations, model metadata. 2.2. interface all operations on the streaming model are submitted via the external interface. the interfaces can be divided into 6 types according to their function: add models, update models, delete models, online models, offline models and query models. the cluster has a centreless design, where the user sends a request to any node in the cluster, and the request is broadcast and forwarded throughout the cluster. 2.2.1. add models add a new model file to the model library, and after the model passes the verification, call the broadcast module to notify other nodes to download the added model from the model library. 2.2.2. update models update the existing model in the current system, update the file in the model library, and after the model passes the verification, call the broadcast module to notify other nodes to download the updated model from the model library. 2.2.3. delete models delete m delete the existing model in the current system, after the model passes the verification, research the broadcast module, each node in the cluster delete the model in the model library. 2.2.4. online models bring models that are already in the model library online, load the models in memory so that they can start processing streaming data. 2.2.5. offline models offline models: take models that are currently online offline so that they no longer process streaming data. 134 2.2.6. query models query the current model’s metadata and status in the system. with the above 6 types of interfaces, users can complete a unified style of management of stream computing models, or develop ui interfaces based on the interfaces for more convenient management of streaming computing models. 2.3. model library as a lightweight streaming model management system, distributed file systems such as hdfs [6] and ceph[7] are not used as model repositories, cause these systems would greatly increase the complexity of the system. when using the local file system as the model repository storage, when adding models, updating models, deleting models and other operations, only when all nodes in the cluster have finished adding, changing and deleting files in the model repository, the model operation is considered successful and the model information is updated. when a node is started, there may be a situation that the model version is inconsistent with other nodes in the cluster. in this case, to recover the model data from other nodes synchronously, find the currently existing computational model and its latest version and the node where it is located in the database, and if the latest version is inconsistent with the local version, download the latest version of the model from the node where the latest version of the model is located. 2.4. message module when an operation is performed on a model, the operation request is first sent to any node, and then notified to the other nodes in the cluster through a broadcast and subscription mechanism. as shown in figure 2, using the broadcast subscription mechanism of redis, the model information, operation type and node information is broadcast to all nodes. the subscribers receive the information about these model operations and perform the corresponding operations. upon success, the node that received the request is notified that the operation was successful when all nodes in the cluster have been executed. the same broadcast and subscription is used when going up or down the model, to synchronise information up and down the line throughout the cluster environment. figure 2. broadcast and subscribe via redis 2.5. model loading module when online a model, model loading module is required to load the model into the compute server. the model management system proposed in this paper uses the classloader technology, a custom classloader inherited from the system classloader in java [8], which enables hot loading of jar files. as shown in figure 3, the models are grouped together and each group has its own classloader, so that even if the class names and variable names of the models in different groups are the same, they do not affect each other, thus achieving decoupling between models. figure 3. grouped class loader instance 2.6. redis database redis is the only external component required by the stream computing model management system to store system metadata, model metadata, broadcasts and subscriptions. 3. workflow 3.1. initialization as shown in figure 4, an initialisation process is designed in this paper, whereby a newly online node can quickly synchronise models from other nodes and the system can still provide services normally during the synchronisation process. after initialisation, the new node is ready to provide services and the models in the model library of that node are consistent with other nodes in the cluster. figure 4. initialisation process 3.2. add models as shown in figure 5, when adding a model, the node that receives the add request sends a broadcast to notify the other nodes in the cluster, and all other nodes download the new model file. when a node has a problem or waits for a timeout, the whole model adding process fails and all nodes roll back. after initialisation, the new on-line node can provide services and the models in the model library of that node are consistent with the other nodes in the cluster. figure 5. add models process 3.3. update models as shown in figure 6, when updating a model, a check must first be performed to see if the model already exists and is out of the offline state, if the model does not exist or is in the online state, the model cannot be updated. as with adding 135 a model, the node that receives the add request sends a broadcast to notify the other nodes in the cluster, and all other nodes download the new model file. when a node has a problem or waits for a timeout, the entire model add process fails and all nodes roll back. when all nodes are successful, the model information in redis is updated and success is returned. figure 6. update models process 3.4. online models as shown in figure 7, when a model goes live, it needs to be verified that the model exists and is in the offline state, again with a broadcast mechanism to distribute the message and load the model using the model loader described in 2.5. figure 7. online models process 3.5. offline models the model offline process is similar to the model online process, where you need to verify that the model exists and is online, and unload the model using the model loader described in 2.5. 3.6. delete models model deletion and model update processes are similar. 4. conclusion this paper proposes a management system for streaming computational models, which enables hot loading of computational models by means of a custom class load. in this system, different grouped models are decoupled from each other by using independent loaders. meanwhile, this paper designs a decentralized distributed model management mechanism, which enables computational models to be added, deleted, modified and up/down synchronously by each computational node in the distributed system through message broadcasting and subscription mechanisms. acknowledgements artificial intelligence academy, wenzhou polytechnic. references [1] cai h , xu b , jiang l , et al: iot-based big data storage systems in cloud computing: perspectives and challenges, ieee internet of things journal, vol. 4 (2017) no.1, p.75-87. [2] wang, z, z, et al: iot-based real-time production logistics synchronization system under smart cloud manufacturing, international journal of advanced manufacturing technology, 2016. [3] cheng d , yuan c , zhou x , et al: adaptive scheduling of parallel jobs in spark streaming, ieee infocom 2017 ieee conference on computer communications (atlanta, usa, may 1-4, 2017), vol. 29 (2012). [4] nabi z: pro spark streaming: the zen of real-time analytics using apache spark(apress, usa 2016). [5] upfal, e, and a. wigderson: how to share memory in a distributed system, 25th annual symposium on foundations of computer science(florida, usa, october 24-26, 1984). [6] liu x, han j, zhong y, et al: implementing webgis on hadoop: a case study of improving small file i/o performance on hdfs, ieee international conference on cluster computing & workshops. (beijing, china, september 24-28, 2009). [7] weil s a , brandt s a , miller e l , et al: ceph: a scalable, high-performance distributed file system, symposium on operating systems design & implementation. usenix association (boston, usa, december 9-11, 2002). [8] zhang a , ji c , yin z: security of mobile code based on redefining jvm's classloader, computer engineering, vol. 4 (2006). frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 1, 2022 1 face and gender detection based on bp neural network algorithm ji zhang 1, 2, zijian ran 1, * 1 school of control and computer engineering, north china electric power university, baoding 071003, hebei province, china 2 engineering research center of intelligent computing for complex energy systems, ministry of education, baoding 071003, hebei province, china * corresponding author: zijian ran (email: 529726064@qq.com) abstract: face recognition technology has a wide range of applications in real life, and many applications can be developed on the basis of face recognition, such as gender recognition, age recognition, face comparison, and beauty image decoration. in this paper, based on the computer vision library opencv in the python language, the face is recognized, and the mature bp neural network algorithm is used to learn the photos in the database, and finally the gender detection of the face is successfully realized. keywords: face detection; gender detection; opencv; bp neural network; python. 1. introduction in the rapidly developing modern society, fast, convenient and safe have become synonymous with contemporary society. in order to make life more convenient and save people from heavy labor, computer technology and its applications have become an indispensable role in people's lives. among them, the development and application of artificial intelligence technology has become the focus and hotspot of domestic and foreign scholars and researchers. in the field of artificial intelligence, the research of 3d face recognition technology has become a hot research field, and it can be applied to various places that require identity authentication, such as bank transaction authentication in the financial field, internet or transaction identity verification on online banking, access security check in national security defense, various monitoring systems and access control systems are effective means of identity recognition [1-3]. as early as 1964, foreign personnel began to engage in the research of face recognition technology. face recognition is a form of biometric technology, which involves many methods in pattern recognition, computer vision, psychology, physiology, and cognitive science. the realization of identity recognition with the aid of computers is based on the unique characteristics of people. an efficient means of authentication. it can also be said that face recognition also refers to a given face as an input, looking for a match in the database to be recognized, and finding a face image consistent with the input face in the database. a large number of researchers have invested in the research of eyelid recognition, which has made the technology of eyelid recognition develop rapidly. although face recognition technology has been researched for a long time and has been developed for many years, it still fails to achieve people's expectations. therefore, people's research on face recognition technology is still under exploration [4-5]. 2. bp neural network algorithm 2.1. introduction and practice bp neural network usually refers to a multi-layer forward neural network based on the error back propagation algorithm. the transfer function used by the neurons of the bp network is usually a sigmoid-type differentiable function, so any nonlinear mapping between input and output can be realized, which makes it suitable for applications such as signal processing, computer networks, process control, speech recognition, function approximation, successful applications have been achieved in areas such as pattern recognition and data compression. 2.2. bp neural network structure each neuron is represented by a node, and the network consists of input layer, hidden layer and output layer nodes. the hidden layer can be one layer or multiple layers, and the nodes from the front layer to the back layer are connected by weights. hidden nodes generally use sigmoid functions, and input and output nodes can use sigmoid functions or linear functions. because the bp algorithm is used, it is often called bp neural network. 2.3. principle of bp algorithm the bp algorithm consists of two parts: forward propagation and back propagation. in the process of forward propagation, the input information is transmitted from the input layer to the output layer after being processed by the hidden layer unit. the state of each layer of neurons only affects the state of the next layer of neurons. if the output layer does not get the desired output, it turns to backpropagation, that is, the error signal is returned along the connection path, and the error signal is minimized by modifying the connection weights between neurons in each layer [6]. since the multiple-input-multiple-output network can be transformed into a multiple-input-single-output situation, a multiple-input-single-output neural model is used here. suppose the network consists of m layers, and the mth layer only contains output nodes, and the first layer is the input node. in addition, assuming that there are n standard sample pairs undefined, the output to the mth layer of the network is o(p), and the function function of the hidden layer node and the output layer node is the sigmoid line function, that is 2 qxe xf −+ = 1 1 )( (1) it reflects the saturation property of the neuron and takes values between 0 and 1. in the above formula, q is a parameter representing the nonlinearity of the neuron, which is called a gain type (gain), also called an adjustment parameter. the larger the q value, the steeper the s-shaped curve; on the contrary, the smaller the q value, the flatter the s-shaped curve; generally, take q=1. the specific bp algorithm steps can be summarized as follows: the first step is to select initial weights and thresholds. in the second step, the following process is repeated until the performance requirements are met: 1.for learning samples p = 1 to n 1) calculate the values of yj, nutj and o of each node j in each layer (forward process); 2) for each layer from the m layer to the second layer, for each node of each layer, reverse calculation (reverse process); 2.correction weights. 3. experimental tool 3.1. pycharm pycharm is a python programming ide, which is very convenient to install. 3.2. opencv opencv is an important tool for pre-learning of computer vision, machine vision, and image processing. due to its lightweight and efficient properties, it is widely used to solve computer problems in various fields. this paper implements face recognition and gender detection by using the python interface in opencv. 4. experiment procedure the input matrix is a large matrix, and each column in the matrix represents a photo. for example, we have 200 photos, and each photo has 10*10=100 pixels, then this matrix is a 100*200 matrix. to get these data, our first step is to find a face recognition library. there are many open source face recognition libraries from which you can get all kinds of photos you want. after obtaining the photo, we first need to identify the face. this function here will identify the face and then grayscale it and re-save it as a numbered photo. since the pixel value of the recognized face is too large, and different photos contain different pixel values, we need to unify the pixel values of each photo to obtain a grayscale image with uniform pixel values, we need to get all the images into one inside the large matrix as input to the core function this function returns a matrix. this completes the entire data processing. in the first step, we need to detect the face. determine if a face is included, and if so, determine the location and size of the face. because the acquired images are all color images, skin color detection can be performed first. after detecting the skin color pixels, it is necessary to segment the possible face regions according to their chromatic similarity and spatial correlation, and at the same time, use the geometric features or grayscale features of the regions to verify whether it is a human face. other objects with a color similar to skin tones are excluded. here we use the classifier that comes with opencv to identify the face and draw a frame to display the face area. the second step is to grayscale the read image, because opencv processing is to process grayscale photos. the purpose of image processing is to facilitate the extraction of the eigenvalues of the face, and then to compare and identify, so this step is also very important. first, for the segmented face, since noise brings distortion and degradation, it is a necessary step to use filtering to remove noise before feature extraction. the second scale normalization, the idea is to transform the face images of different sizes into a unified standard size image to facilitate the extraction of face features. the third grayscale normalization, the research of face recognition generally takes grayscale images as the research object. for color face images, grayscale processing can be performed first. the fourth grayscale equalization, because the change of illumination during image acquisition easily leads to the image showing different degrees of brightness and darkness, so it is necessary to perform grayscale equalization processing on the face image. the function of gray level equalization is to enhance the overall contrast of the face image and make the gray distribution uniform to eliminate the influence of illumination changes. step 3 draw the box and save it. face feature extraction and recognition are the two most critical issues in face recognition research. face feature extraction, also known as face description, is a process of extracting various face features based on image preprocessing such as face detection, positioning, and normalization, which lays the foundation for face recognition and classification. after feature extraction is the face recognition classification process. face recognition classification is the last step of the entire face recognition. its main task is to compare the face data to be measured according to the extraction results of facial features, and judge according to the degree of similarity. find out whether the face to be tested is the same person. the final result of face detection is shown in figure 1. figure 1. face detection result the input of the core function of gender detection has two matrices, one is the sample data, the other is the sample label, where the sample data is the pixel value, the sample label is artificially set, we set 0 for girls and 1 for boys. first, the function requires us to manually enter several parameters, namely the number of iteration steps, the learning factor, and the number of hidden neurons. the number of iteration steps 3 will affect our final accuracy and the time required for learning. the learning factor is a parameter of the backpropagation algorithm, and the number of hidden neurons is related to the number of input pixels. the next step is to initialize the parameters. we have three layers in total, input layer, hidden layer and output layer. the number of neurons in the input layer is the number of photo pixels, the output is only one neuron, and the number of hidden layers is artificially set. figure 2. gender test results 5. conclusion this article is based on the python language, learning 200 photos of boys and 200 photos of girls. using a three-layer neural network, an input layer, a hidden layer and an output layer, the detection of face and gender is finally realized. the experimental results also show that the neural network can achieve good results in the fields of face recognition and gender recognition. the experiment shows that the gender can be successfully detected, and the experimental method in this paper is feasible and effective. references [1] hu x . research for face recognition based on gabor wavelet and sparse representation. ieee computer society, 2014. [2] liu x m ,yue l h ,chen b, et al. method of target recognition in remote sensing images based on parallel processing[j]. journal of computer applications,2007,27(9):2123-2125. [3] feng x.edge detection algorithm based on bp neural networks in digital image[j]. journal of xi'an university of science & technology, 2005. [4] tan t,li j ,wang k , et al.target threat assessment using particle swarm optimization and bp neural network[c]// the 2019 3rd high performance computing and cluster technologies conference. 2019. [5] antennas propagat.,to be published.a strategy for making lane-change decision based on improved driving risk field and bp neural network [6] li j ,qin d.the mutation seagull algorithm optimizes the speech emotion recognition of bp neural network[c]// iccbn 2021: 2021 9th international conference on communications and broadband networking. 2021. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 47 application of machine learning and data mining in manufacturing industry zheng song, shu luo school of mechanical and electrical engineering, southwest petroleum university, chengdu 610000, china abstract: with the rise of machine learning in various industries, the traditional manufacturing industry is facing a new disruption, which requires the use of different technologies and tools to achieve its production targets; in this regard, machine learning (ml) and data mining (dm) play a key role. this paper provides a statistical understanding of the main methods and algorithms used to improve manufacturing processes over the past 20 years by dividing them into four main themes: scheduling, monitoring, quality and failure, presents previous ml research and the latest advances in manufacturing, followed by a comprehensive discussion of existing problem solutions in manufacturing from multiple aspects, it includes tasks (i.e., clustering, classification, regression), algorithms (i.e., support vector machines, neural networks), learning types (i.e., ensemble learning, deep learning), and performance indicators (i.e., accuracy, mean absolute error). in addition, the main steps of database knowledge discovery (kdd) process that should be followed in manufacturing applications are described in detail, and the methods to overcome some problems and the advantages of machine learning applied to manufacturing industry are briefly described. finally, the paper summarizes and further looks forward to the future development direction. keywords: machine learning; data mining; manufacturing technology; classification and clustering. 1. introduction machine learning (ml) is an important research field of artificial intelligence, which can help computers to model and accurately predict future events based on experience. the main ml methods fall into two broad categories: supervised learning and unsupervised learning. a typical problem in supervised learning is classification, while unsupervised learning is quite common in clustering. common classification techniques include neural network, support vector machine and decision tree, and the most widely used clustering technique is k-means. ml technology has been widely and successfully applied in many different fields, such as health, education, wireless sensor networks and finance. this paper outlines the application of ml technology in manufacturing, where modern manufacturing plants use powerful data acquisition systems to electronically collect and transmit data for almost all processes in an organization. many manufacturing variables are continuously measured at various stages and their values are stored in an organization's database. this data may be related to the characteristics of the product, the machine, the production line (i.e., which machine uses which setting parameters), the human resources operating the production line (i.e., the level of experience of the workers, the type of shift), the raw materials used in the process, the environment (humidity, temperature, etc.), sensors connected to the machine (vibration, force, pressure, tension, etc.), machine failure, maintenance, product quality and other important manufacturing factors. thanks to technology, the manufacturing industry generates a lot of raw data every day. this large and increasing availability of data has attracted the attention of machine learning concepts. nearly 20 years ago, machine learning and data mining applications emerged in this field to solve manufacturing problems, intelligent systems that support efficient decision making, planning synchronous production lines, and machine maintenance arrangements can be seen as examples of using ml methods to perform manufacturing tasks. other examples include failure prediction and its energy consumption estimation, product quality assessment and manufacturing defect detection. the field of machine learning, which includes deep learning, ensemble learning and connected learning, is considered one of the most promising improvements in manufacturing. in addition, its applications in manufacturing include many varieties, from automotive manufacturing to apparel, from semiconductors to many other scientific and engineering fields. much of the research in machine learning has focused on classification, which is the task of assigning an object to one of the predefined categories. on the other hand, some manufacturing problems belong to the category of clustering. the task of clustering is to divide objects into several groups according to their similarity, which is called clustering. recently we can see about ml and dm in manufacturing has made new progress in the research, but these new progress on the things is limited, only focus on one aspect, this article the application of machine learning and data mining in manufacturing has carried on the overview of the system, and introduces the research status both at home and abroad, and specify the manufacturing unique advantages and challenges, it opens up a new prospect for future application. 2. overview 2.1. overview of ml and dm technologies in manufacturing. in manufacturing, machine learning is often more effective than traditional mathematical and statistical models because they are still unable to understand complex relationships between features of data samples or predict unknown eigenvalues of new samples. because of this situation, ml technology, which is used in a wide range of scientific disciplines, has also been used in manufacturing in recent years. the use of ml and dm technologies is widely recognized in the manufacturing industry because 48 intelligently analyzing data is a valuable resource as it gains new insights that can provide a significant competitive advantage. while it is quite possible to find a master's degree in one discipline (manufacturing or machine learning), few researchers are well integrated in both fields. therefore, ml in manufacturing is mainly solved by data scientists and manufacturers together. ml technology is applied to the manufacturing data collected by the data technology system. important features and structures were determined by data analysis; discover the hidden knowledge, rules and patterns of data through data mining; machine learning is used to build effective models to train the behavior of manufacturing systems. data analysis plays an important role in decision making (decision support) in manufacturing. the most common manufacturing tasks used by ml and dm technologies can be listed as scheduling, monitoring, quality assessment, and fault detection. in addition, other manufacturing tasks that benefit from ml capabilities include layout planning, sales forecasting, and process mining. in addition, ml technology is used for many other manufacturing tasks, such as product design, time/cost forecasting, volume forecasting, anomaly detection, and prediction of machine energy consumption. figure 1 below shows the number of publications using ml and dm technologies between 2000 and 2019. as can be seen from the figure, the number of studies is increasing, indicating the popularity of this topic. the presence of large volumes of manufacturing data is likely to make ml and dm even more important in the coming years. search for the following keywords in the two sources we looked for (google scholar and web of science) to get the statistical results given in figure 1:(manufacturing) and (machine learning or data mining or supervised learning or unsupervised learning classification or clustering (regression and prediction) or integrated learning or depth or decision tree or neural network or support vector machine (svm) or random forests or k nearest neighbor or naive bayesian or convolution neural network association rule mining sequential patterns mining or text mining and web mining) fig.1 number of publications per year from (left) google scholar and (right) web of science related to ml and dm in manufacturing 2.2. problems that ml and dm technologies can solve. studies on ml and dm can be divided into four main themes: (1) scheduling: including order processing, shop scheduling, sequencing, resource allocation, job scheduling and manufacturing planning. (2) monitoring: including decision support system and process monitoring system, to avoid key performance index value deviation, and improve the visibility of the manufacturing system. (3) quality: including product quality prediction, quality improvement in large and complex processes, quality monitoring and control in manufacturing process and diagnostic defect detection. (4) fault: including abnormal situation detection, machine maintenance, fault prediction, equipment monitoring, equipment downtime, and equipment fault information system analysis. figure 2 shows the proportional distribution of ml and dm based manufacturing studies by their specific objectives. these categories include planning, monitoring, quality, and fault (failure) detection. manufacturing project goals may vary from company to company and are not limited to these categories. however, most manufacturing research using machine learning aims to solve these types of problems. as figure 2 shows, the number of machine learning studies for all manufacturing tasks is increasing. in the past three years in particular, this reinforcement has accelerated. the reasons behind this trend may be publicity and encouragement from the government and multinational production companies, as well as the popularity of industry 4.0. figure 2 also reveals the fact that far more studies are expected to improve manufacturing quality than other studies. add the following precise terms to the above keywords, respectively, and then perform search queries in scopus and web of science to get the results given in figure 2: (quality control or quality prediction or quality assurance or quality management or defect detection or defect prediction) and (fault diagnosis or fault detection or fault prediction or fault classification or (fault analysis) and (process monitoring or condition monitoring or monitoring system) and (scheduling). (1) scopus (2) web of science fig 2. number of publications obtained from (a) scopus and (b) web of science, based on targets for the period 2000 to 2019. weichert et al. classified the manufacturing data used in ml as follows: qualitative and quantitative data, time series and workpiece related data, controlled and uncontrollable data, current and historical data, measured and simulated data, observable measurements and process state variables. wang 49 also classified commonly used manufacturing variables in ml, including resource variables, processing variables and working conditions variables. 2.3. multiple machine learning approaches handle manufacturing tasks. figure 3 shows the general categories of manufacturing responsibilities associated with machine learning approaches. reference numbers are also attached to publications cited for conducting research to achieve these objectives. although each manufacturing task is relatively specific to its working conditions, they can be unified under these main groups. headings for these manufacturing tasks include: product design, decision support, production, process, monitoring, quality, defects, faults/failures, scheduling, layout planning, sales, and energy. fig.3 the ml and dm studies were grouped by production task 2.4. data processing technologies (tools, engines, libraries and frameworks) used in the manufacturing industry in recent years there are a number of data processing tools that provide modeling and prediction capabilities based on ml technology. the literature describes several studies that examine the use of data processing tools in manufacturing. the most widely used free and/or open source data processing tools in manufacturing research (at least for academic purposes) are weka, r, rapidminer, knime, orange, elki, tanagra, mallet, and keel. these tools allow for easy application in many situations, as well as comfortable adjustment of parameters to improve model accuracy. python libraries like keras, theanos, tensorflow, caffe, and scikit learn make programming ml relatively easy. some of the most common open source data processing engines are hadoop, spark, samza, flink, and storm. machine learning techniques are typically applied to large scale manufacturing data, so they should be able to handle high dimensional data (data sets with more than 20 attributes). some examples of large distributed machine learning frameworks currently available are mllib, mahout, samoa, h2o, and mlbase. 2.5. widely used production data sets in scientific research, baseline data sets are used to demonstrate the power of proposed methods and to compare the performance of algorithms. one of the most widely used reference data sets related to manufacturing is secom, which is obtained from semiconductor manufacturing processes. therefore, the data set consists of manufacturing process variables. another well-known manufacturing data set, called "plate faults," is used in various studies to train machine learning algorithms for automatic pattern recognition. it contains information about steel plate products and therefore mainly includes product variables. some studies have also processed a very significant benchmark manufacturing data set called "bosch production line performance" to test the classification performance of proposed algorithms. the production line variable is the basic feature of this data set. 3. knowledge discovery process in manufacturing industry figure 4 shows the overall knowledge discovery process in a database applied to the manufacturing industry. this process usually consists of five main steps: understanding the manufacturing domain, data preparation, machine learning, data mining, evaluation, and presentation. fig. 4 monolithic kdd processes are used in manufacturing as can be analyzed from the figure above, the first stage can be called the design stage. in this phase, the goals of the application, the resources available, the constraints in the mining process, the success criteria for the problem, and the costs and benefits of the application are determined. the second phase is called data preparation and includes data collection, integration, cleansing, reduction, and transformation. data collection steps include collecting data on many different manufacturing variables such as raw materials, final products or machine adjustments (temperature, pressure, production settings, time scales, etc.) with the help of sensors or external automatic recorders. data integration focuses on combining multiple data sources. data cleaning involves filling in missing values, processing noisy data, resolving inconsistencies in data, considering unbalanced data, and detecting and deleting outliers in data to improve data quality. data reduction is performed in order to obtain the target data set from the original data without significant loss of information, such as feature selection. the purpose of data transformation processing is to convert data into forms suitable for mining, such as normalization and discretization, when necessary. after the data preparation phase, the data sets are stored in the data warehouse. the third step involves applying appropriate machine learning algorithms to the data in the warehouse to extract patterns/rules or develop models. supervised learning algorithms can be used for classification and regression problems, while unsupervised learning algorithms can be used for clustering, association rule mining, sequential pattern mining and outlier detection. in the fourth 50 step, the constructed model is evaluated by using appropriate performance indicators. for example, the most commonly used performance indicators for regression problems are root mean square error (rmse), mean absolute error (mae) and determination coefficient (r2). the final stage involves interpretation and visualization of patterns, which can be represented as key performance indicators (kpis) on the dashboard, or alerts in the case of abnormal detection, or predictions obtained through regression models that can be displayed on-screen. often, some kdd steps require multiple iterations until a satisfactory result is achieved. finally, the constructed model is incorporated into the manufacturing field. the model should be further modified as new data becomes available. for example, due to the dynamic nature of manufacturing systems, regression models should be updated regularly to maintain their generalization ability. knowledge discovered during the kdd process can support operator/manager decisions or be directly used to automate improvements in manufacturing systems. 4. applications of machine learning in manufacturing machine learning tasks can be divided into supervised, unsupervised and reinforcement learning. although supervised and unsupervised learning techniques are already widely used in manufacturing, accounting for about 90-95% of all applications, reinforcement learning has not been studied as extensively as other techniques. for this reason, this section presents a number of important research roadmaps involving supervised and unsupervised learning in manufacturing. 4.1. supervised learning in manufacturing supervised learning aims to learn the mapping between sample input and output pairs. simply put, a supervised learning algorithm may have many input variables and one output variable. logically, the number of examples available to learn proportionately affects the predictive ability of supervised learners. supervised learning is typically used for two separate tasks: categorization and regression. the main difference is that classification is the process of predicting discrete or nominal (classification) values, such as low, medium, and high; regression is used to predict sequential (numerical quantity) or order values, such as the price of a car. there are many machine learning algorithms that can be used to achieve these goals, each with its own advantages and disadvantages, such as decision trees (dt), neural networks (nn), support vector machines (svm), k-nearest neighbor (knn), and naive bayes (nb). because manufacturing data is often characterized by multiple sources (i.e., machine, product, operator), heterogeneity, and noise, some data preprocessing steps such as standardization, attribute construction, feature selection, and elimination of missing values have been considered in many studies. the quality of data mining results depends on the quality of the data. all preprocessing operations need to address various issues related to manufacturing variables such as product, process, and machine variables. at present, because the distribution of manufacturing data is often uneven, the issue of class imbalance has received wide attention in the manufacturing industry. because of the possible performance loss of ml, the smote technique has been used in a number of studies to overcome this problem. many manufacturing organizations store processing data in time series and intend to improve quality control by building predictive models on large amounts of time data. supervised machine learning methods have been widely used to predict and eliminate defects and faults in early production steps in the steel industry. they are also used to create effective models of additive manufacturing. especially in this area, neural networks are useful for building models with high predictive accuracy. control procedures in the production process have been improved by supervised learning techniques, such as random forest methods. because intelligent manufacturing is capable of producing high quality products, many studies have been conducted to create quality prediction models using machine learning methods. some manufacturing materials or process equipment are prone to deterioration over time. they make the manufacturing process more dangerous. in this regard, supervisory methods have been used to detect internal faults of materials in advance. 4.2. unsupervised learning in manufacturing unsupervised learning is an example of machine learning used to identify regularities and correlations in unlabeled data. clustering, association rule mining, anomaly (outlier) detection, density estimation and presentation learning can be listed as the most popular unsupervised learning methods. in all of these tasks, the primary goal is to generalize the internal data structure in a way that produces a useful representation without the aid of explicit class tags. unsupervised learning research is relatively rare, as it is likely to encounter data with category labels in manufacturing. the cluster divides instances into groups based on their similarity. clustering is created based on similarity or distance measures that determine how similar or different the data are from each other. the main clustering methods fall into five categories. the partitioning clustering method attempts to decompose the data into k clusters so that the items in each cluster are closely related to each other. hierarchical clustering method builds a cluster tree by repeatedly merging smaller clusters into larger ones (clustering) or splitting larger ones into smaller ones (splitting) . density-based clustering methods attempt to find high-density clusters separated by sparse regions that may differ in size and shape (i.e. not convex, spherical, or elongated). there are also grid-based and model-based approaches. in the manufacturing industry, cluster analysis is used for pattern recognition, output improvement, quantitative assessment and equipment status diagnosis. in addition, clustering is used to detect product errors, aid the decisionmaking process, and layout planning problems. in addition, human-computer interaction plays an important role in manufacturing. the necessary operations in this field have been determined by the unsupervised learning model, and the event-driven response of the robot has been formed. 5. advantages and challenges of ml and dm in manufacturing data mining has been widely used as a basic tool to discover knowledge from manufacturing databases. the necessary data to be analyzed can be collected throughout the conventional manufacturing process. in manufacturing, data mining provides many competitive advantages, such as higher product quality, lower costs, and improved production 51 processes. it may help automate the knowledge discovery process, a utility that is considered important for the development of knowledge-based systems. there are many areas of manufacturing where machine learning could have a positive impact. first, efficient demand forecasting is highly supported by machine learning. the tendency is to analyze past events to estimate how much product should be produced to meet future demand. second, the launch of a new product is a process involving machine learning. when launching a new product, use machine learning to track launch success, including sales and customer data. another effect is price optimization. manufacturing companies are able to consider location, seasonality, weather and demand in order to rearrange prices and display products at the best price. it has been observed that ml enables manufacturers to reduce total cycle time and improve resource utilization in some npdifficult manufacturing problems. in addition, ml provides a powerful approach to continuous quality improvement for complex and large processes. other advantages of dm and ml in manufacturing are given below; it must be said, however, that the degree of importance of advantage may vary depending on the algorithm chosen. other advantages are: predictive maintenance; resource management; product design; quality control; decision support; optimization; descriptive analysis; predictive analysis; parameter analysis; market demand analysis; multi-stage application; document classification and clustering. based on the above advantages, machine learning is a useful tool, and when you realize this, some challenges can be overcome. all the tasks that make up the basic steps of the knowledge discovery process may not always be easy to apply. most researchers agree that the main challenges ml faces in manufacturing are as follows. learning from and automatically adapting to changing environments is a major advantage of machine learning. due to the dynamic and rapid changes in the manufacturing environment, ml systems should have the ability to learn and adapt to changes, and system designers need to provide solutions for all possible situations. another major challenge is getting accurate and relevant manufacturing data, as it has a big impact on the performance of ml algorithms. a common challenge for ml applications in manufacturing is the preprocessing of data, as it has a critical impact on the results. another key challenge is what ml methods and algorithms to choose. the final major challenge is the interpretation of the results. information about these and many other challenges can be listed below 1). manufacturing data preparation issues: the success of each ml technique depends on the data structure that executes it. however, getting well-organized data in manufacturing is not an easy and quick process. this is because manufacturing data is often characterized by multiple sources (i.e., product, machine, process, operator, raw material, environment, and service data), heterogeneity (i.e., structured or unstructured, syntactic or semantic data), and noise (i.e., incomplete, incorrect, improper, repetitive, and inconsistent data). prior to the application of ml technology, specific data preprocessing steps (data integration, cleaning, reduction, conversion) are required. data preprocessing has a crucial impact on the results. however, there are currently no standardized rules for which data preprocessing techniques should be applied to specific types of manufacturing problems. identify appropriate techniques through insight and knowledge, or by trying and comparing alternatives. 2). time consuming issue: when the time spent by all machine learning processes is divided into subsegments that include preprocessing, feature extraction, and classification, it is noted that data preparation takes the most time before any data mining algorithm is implemented. this is because the manufacturing data set consists mainly of a large number of events and non-standardized measurements. sometimes, data preprocessing itself takes a lot of time, accounting for about 50 or 60 percent of the total work on a machine learning project. in addition to the above, other difficulties are mainly reflected in: data missing problem, data selection problem, manufacturing data imbalance problem, interdisciplinary collaboration challenge, manufacturing data protection and security problem, high dimension problem, etc. 6. summary and outlook machine learning applications are likely to continue to grow at a higher rate, especially in manufacturing, because computing power is growing day by day and the scale of data available is much larger than it was a few years ago. big data technology can handle high dimensional data. particularly given the increasing availability of manufacturing data, they are likely to become more important in the future. the application of association rule data mining in manufacturing industry is more frequent than sequential pattern mining (spm). extended surveys of the spm, which consider temporal information about model development, allow manufacturers to respond quickly to time-dependent (temporary) situations. frequent sequential patterns provide potentially important knowledge for predicting future activity. text mining has been widely used in many fields in recent years. however, the use of it in manufacturing is limited. future work could focus on text mining related to manufacturing. because the amount of text data from manufacturing suppliers keeps increasing, more than 80% of enterprise information is stored as text. various text mining methods, such as association rule generation, classification, or clustering, can be implemented to process this data on a large scale and extract valuable manufacturing knowledge. manufacturing documents can be classified or clustered according to their types, main contents and similarities. text mining methods can be very helpful in managing these digital document sources. for example, sentiment analysis can be used as a way to survey sentiment in manufacturing-related content or as a tool to help analyze consumer trends. text mining implementations such as question and answer, expert discovery, sentiment detection, recommendation, part-ofspeech tagging, and parsing can be added to improve manufacturing. manufacturing companies share information about their business (i.e., plans, processes, materials, and technologies) on the network, which helps manufacturers make decisions based on this information. the increasing use of the internet has had a huge impact on the creation of complex digital manufacturing information. web mining provides an automatic mechanism to collect data related to manufacturing industry, and extract valuable and understandable business information from these massive web business data to further provide decision support. however, different terminology used by different manufacturing companies can cause confusion and difficulties in practical and dynamic processes. therefore, in the future of manufacturing, the theme of web mining will also have more contributions. recently, some ontology-based information 52 semantic representation methods have been used to organize manufacturing data. however, more contributions are expected in the next few years to develop ontology-based manufacturing systems using ml technology. the ontologybased system provides extraction of semantic relations to improve accuracy and form a better decision support system. new ml algorithms or heuristics can be developed to match manufacturing concepts to ontologies. several ontologies can be developed for the manufacturing domain. although supervised and unsupervised learning is widely used in manufacturing, accounting for about 90-95% of all applications, reinforcement learning (rl) is not as widely studied as in other fields. however, rl provides goal-directed learning without external supervision, adapts to dynamic environments, and provides a framework for understanding and modeling systems in the face of rewards and punishments. rl can help solve complex combinatorial decision-making problems in manufacturing industry, especially various planning and control problems. rl is likely to become more popular in manufacturing in the near future. at present, the clustering research of manufacturing industry usually uses kmeans algorithm. however, the k-means++ algorithm can be addressed in future research to improve the speed and accuracy of k-means. so far, there has been little research (using k-means++ in manufacturing). dbscan may soon play a more important role because of its ability to form arbitrarily shaped clusters and handle noise in the data. there are two common methods of data processing: batch processing and stream processing (real-time data processing). batch data processing is carried out statically. a group of transactions are collected within a period of time and processed to build the model. meanwhile, the built model is dynamically updated based on the newly accumulated data . streaming (real-time) data processing provides processing as the data comes in. most data mining research in the manufacturing field is conducted on batch data. however, recent advances in technology require streaming data processing to gain a competitive advantage in real-time decision making. in real-time or near-real-time data processing, fast response times are critical, so processing times in seconds are acceptable. real-time data mining and learning in the manufacturing field will be an important and difficult topic for further research. the use of robots is already beginning to find its way into manufacturing. industrial robots have become a new trend in manufacturing enterprises. they are attracting more and more attention every day. it is estimated that ml technology, the emergence of smart factories, and the use of industrial robots will play a more important role, and applications based on them will increase significantly in the manufacturing industry in the near future. references [1] yang xiaojing, zhang fudong, hu changbin. review of machine learning research [j]. market of science and technology economy, p. 40-42. [2] bai yuying, li chunchun, sun zhiqiang, chen hao. deep neural networks for manufacturing quality prediction. proceedings of the 8th ieee health management conference on predictive systems, 2017,07, 09/p. 115-186. [3] han jie, chi shuai. applying machine learning methods to predictive manufacturing. proceedings of the 8th international conference on future networks (icufm), 2016,07,05. p. 176189. [4] huang yong, pan can, lin nan. machine learning method for 3-dic defect detection and classification based on tsv [j]. 2018,10. p. 125-136. [5] ahmadinia,m.,alinejadrokny,h.,&ahangarikiasari,h.(2014). data aggregation in wireless sensor networks based on environmental similarity: a learning automata approach. journalofnetworks,9(10), p. 2567-2573. [6] ahmad, a., & dey, l. (2007). a k-mean clustering algorithm for mixed numeric and categorical data. data & knowledgeengineering,63(2), p. 503-527. [7] zheng yongshi, zhang tianwei. online analysis of intelligent factory based on text mining [j] icic express, p. 71-89. [8] arellano-espitia, f., delgado-prieto, m., martinez-viol, v., saucedo-dorantes,j.,&osornio-rios,r.(2020).deep-learningbased methodology for fault diagnosis in electromechanical systems. sensors, 20(14), p.3929. [9] bergmann, s., feldkamp, n., & strassburger, s. (2017). emulation of control strategies through machine learning in manufacturing simulations. journal of simulation, 11(1), p.3850. [10] cheng, y., chen, m., cheng, f., cheng, y., lin, y., & yang, c. (2018). developing a decision support system (dss) for a dental manufacturing production line based on data mining. in proceedings of 4th ieee international conference on applied system innovation 2018 (icasi 2018), chiba, japan, 1317 april 2018, p. 638-641. [11] alfaro-cortes, e., alfaro-navarro, j., gamez, m., & garcia, n. (2020). using random fores to interpret out-of-control signals. acta polytechnica hungarica, 17(6), p.115-130. [12] das, b., pal, s., & bag, s. (2017). torque based defect detection and weld quality modelling in friction stir welding process. journal of manufacturing processes, 27, p. 8-17. [13] choudhary, a., harding, j., & tiwari, m. (2009). data mining in manufacturing: a review based on the kind of knowledge. journal of intelligent manufacturing, 20, p.501–521. [14] deng, h., diao, y., wu, w., zhang, j., ma, m., & zhong, x. (2019). a high speed d-cart online fault diagnosis algorithm for rotor systems. applied intelligence, 50, p.29-41. [15] ferreira, r., sabbaghi, a., & huang, q. (2020). automatic geometric shape deviation modelling for additive manufacturing systems via bayesian neural networks. ieee transactions on automation science and engineering,72, p.584-598. [16] arif, f., suryana, n., & hussin, b. (2013). a data mining approach for developing quality prediction model in multi stage manufacturing. international journal of computer applications, 69(22), p.5-40. [17] bustillo, a., urbikain, g., perez, j., pereira, o., & de lacalle,l.(2018). smart optimiza-tion of a frictiondrilling process based on boosting ensembles. journal of manufacturingsystems,48(partc), p.108-121. [18] forero-ramirez, j., restrepo-giron, a., & nope-rodriguez, s. (2019). detection of internal defects in carbon fiber reinforced plastic slabs using background thermal compensation by filtering and support vector machines. journal of nondestructive evaluation, 38(1), article number 33. [19] zidek, k., maxim, v., pitel, j., & hosovsky, a. (2016). embedded vision equipment of industrial robot for inline detection of product errors by clustering–classification algorithms. international journal of advanced robotic systems, 13(5), p.1-10. [20] amruthnath, n., & gupta, t. (2018). a research study on unsupervised machine learning algorithms for early fault 53 detection in predictive maintenance. in proceedings of the 5th international conference on industrial engineering and applications (iciea), singapore, 26-28 april 2018, (pp. 355361). [21] buddhakulsomsiri, j., & zakarian, a. (2009). sequential pattern mining algorithm for automotive warranty data. computers & industrial engineering, 57(1), p.137-147. [22] wang, j., wang, k., wang, y., huang, z., & xue, r. (2018). deep boltzmann machine based condition prediction for smart manufacturing. journal of ambient intelligence and humanized computing, 21 april 2018, p.1-11. [23] traini, e., bruno, g., d’antonio, g., & lombardi, f. (2019). machine learning framework for predictive maintenance in milling. ifac-papersonline, 52(13), p.177-182. [24] bai, y., sun, z., deng, j., li, l., long, j., & li, c. (2018). manufacturing quality prediction using intelligent learning approaches: a comparative study. sustainability, 10, article no 85, p. 1-15. [25] cupek, r., ziebinski, a., zonenberg, d., & drewniak, m. (2018). determination of the machine energy consumption profiles in the mass-customised manufacturing. international journal of computer integrated manufacturing,31(6), p.537561. [26] han, j., & chi, s. (2016). consideration of manufacturing data to apply machine learning methods for predictive manufacturing. in proceedings of the eighth international conference on ubiquitous and future networks (icufn), july 5-8, 2016, vienna, austria, (pp. 109-113). [27] herrera, a., stoyanov, s., bailey, c., walshaw, c., & yin, c. (2019). data analytics to reduce stop-onfail test in electronic manufacturing. open computer science, 9, p.200-211. [28] huang, j., segura, l., wang, t., zhao, g., sun, h., & zhou, c. (2020). unsupervised learning for droplet evolution prediction and process dynamics understanding in inkjet printing. additive manufacturing, 35, 101197. [29] jung, y-s., & chang, t-w. (2018). text mining based online news analysis about smart factory. icic express letters, part b: applications, 9(6), p.559-565. [30] moldovan, d., cioara, t., anghel, i., & salomie, i. (2017). machine learning for sensor-based manufacturing processes. in proceedings of the 13th ieee international conference on intelligent computer communication and processing (iccp), cluj-napoca, romania, 7-9 sept. 2017, (pp. 147-154). [31] jong de, w. a., rubrico, j., adachi, m., nakamura, t., & ota, j. (2017). big data in automation: towards generalized makespan estimation in shop scheduling problems. in proceedings of the 13th ieee conference on automation science and engineering (case), xi'an, china, august 20-23, 2017, (pp. 1516-1521). [32] kao, h., hsieh, y., chen, c., & lee, j. (2017). quality prediction modeling for multistage manufacturing based on classification and association rule mining. in proceedings of the 2nd international conference on precision machinery and manufacturing technology, icpmmt 2017, pingtung, taiwan, 19-21 may 2017, matec web of conferences, 123, 21 september 2017. [33] kim, a., oh, k., jung, j., & kim, b. (2018). imbalanced classification of manufacturing quality conditions using costsensitive decision tree ensembles. international journal of computer integrated manufacturing. 31(8), p.701-171. [34] lee, h., kim, y., & kim, c. (2017). a deep learning model for robust wafer fault monitoring with sensor measurement noise. ieee transactions on semiconductor manufacturing, 30(1), february 2017, article number 7744687, p.23-31. [35] lei, q., shao bo, l., & jing kun, c. (2017). online monitoring of manufacturing process based on autocep. international journal of online engineering, 13(6), p.22-34. [36] zhao, r., yan, r., chen, z., mao, k., wang, p., & gao, r. (2019). deep learning and its applications to machine health monitoring. mechanical systems and signal processing,115, p.213-237. [37] zhang, x., kano, m., tani, m., mori, j., ise, j., & harada, k. (2020). prediction and causal analysis of defects in steel products: handling nonnegative and highly overdispersed count data. control engineering practice, 95. [38] wen, l., gao, l., & li, x. (2019). a new deep transfer learning based on sparse auto-encoder for fault diagnosis. ieee transactions on systems, man, and cybernetics: systems,49(1), p.136-144. [39] wuest, t., irgens, c., & thoben, k. (2014). an approach to monitoring quality in manufacturing using supervised machine learning on product state data. journal of intelligent manufacturing, 25(5), p.11671180. [40] wang, q., jiao, w., yu, r., johnson, m., & zhang, y. (2019). modeling of human welders’ operations in virtualş reality human-robot interaction. ieee robotics and automation letters, 4(3). [41] tootooni, m.s., dsouza, a., donovan, r., rao, p.k., kong, z., & borgesen, p. (2017). classifying the dimensional variation in additive manufactured parts from laser-scanned threedimensional point cloud data using machine learning approaches. journal of manufacturing science and engineering, transactions of the asme, 139(9), article number 091005. [42] tian, y., fu, m., & wu, f. (2015). steel plates fault diagnosis on the basis of support vector machines. neurocomputing,151(1), p.296-303. [43] rostami, h., dantan, j., & homri, l. (2015). review of data mining applications for quality assessment in manufacturing industry: support vector machines. international journal of metrology and quality engineering, 6, p.1-18. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 3, 2023 19 application of vmd feature fusion in fault diagnosis of rolling bearings fuqiuxuan liu, chongqing li army academy of armored forces, changchun, china abstract: in response to the complex nature of bearing faults and the difficulty of a single feature accurately reflecting the overall fault information, this paper proposes a vmd feature fusion method for rolling bearing fault diagnosis. firstly, use vmd to decompose the bearing vibration signal; secondly, calculate energy entropy, singular value entropy, permutation entropy, and sample entropy to form a fusion feature vector; finally, the least squares support vector machine (ls-svm) is used as a classifier to identify bearing fault types. through experiments, this method can effectively achieve bearing fault diagnosis. keywords: vmd; feature fusion; fault diagnosis. 1. introduction rolling bearings are widely used and easily damaged important components in mechanical equipment, and their operating status directly affects the entire mechanical system [1]. accurately detecting bearing faults and implementing necessary maintenance measures based on their types is of great significance for ensuring enterprise safety production and reducing economic losses [2]. the essence of variational mode decomposition (vmd) [3] is to establish a non-recursive method for variational models, effectively overcoming problems such as modal aliasing. this method has good robustness to noise and is less limited by signal sampling frequency, making it superior to methods such as emd and eemd. 2. variational mode decomposition 2.1. vmd principle the vmd method decomposes the fault signal )(xf into k intrinsic mode functions )(tuk , which can be expressed as ))(cos()()( ttatu kkk = in the formula, ≥ 0 is the instantaneous amplitude of ; is the instantaneous frequency of ; is a non-decreasing phase function. the detailed steps of vmd method are as follows: initialize the values of }{ 1 ku , }{ 1 k , and to 0. let , execute the entire loop. let 1,0 +== kkk , and when kk  , execute inner loop 1, updating ku to: ( )nn i n ki n ki u n k uulu k  },{},{},{minarg 11  +  + = when 1,0 +== kkk ,and kk  execute inner loop 2, update k is: ( )nn ki n ki n i n k ul k   },{},{},{minarg 111  +  ++ = update  for:       −+  ++ k n k nn uf )(ˆ)(ˆ)(ˆ)(ˆ 11  repeat steps 2) to 5) until the iteration stop condition ( − + 2 2 2 2 1 ˆˆˆ n k k n k n k uuu ( 0 )) is met, the loop stops, and k intrinsic mode components are output. 2.2. number of modal decompositions k the vmd method requires determining the number of decompositions k and penalty factors  , determine k by calculating the correlation coefficient. when k 66, the two component coefficients are similar, and k 65 is chosen as the number of decompositions. the calculation results are shown in table 1. table 1. correlation coefficients between different components and the same fault signal under different k values k correlation coefficient between imf component and original signal ρ ρ1 ρ2 ρ3 ρ4 ρ5 ρ6 k 6 2 0.6467 0.5386 — — — — k 6 3 0.6451 0.5239 0.3405 — — — k 6 4 0.3342 0.6589 0.5117 0.4114 — — k 6 5 0.3325 0.6466 0.5126 0.4025 0.1763 — k 6 6 0.6534 0.5075 0.3321 0.3237 0.1788 0.1025 3. ls-svm principle lssvm converts the training of svm into solving a system of linear equations, and the specific steps are as follows: )(tak )(tuk )(tk )(tuk )(tk 1 1+= nn 20 bxwxf t += )()(  the optimization problem of ls-svm can be changed to:      =++= +=  = niebxwy ewwewj ii t i n i i t ,2,1,)(.t.s 2 1 2 1 ),(min 1 2   from the lagrange function and kkt condition, it can be seen that:       =              + − y b in t n 0 1 10 1  where ]1,,1,1[1 =n , ],,,[ 21 nyyyy = , ],,,[ 21 n = are lagrange multiplier, and i is a nn matrix of order: njixx j t iij ,2,1),()( == 、 . according to the mercer condition, )()(),( j t iji xxxxk = therefore, the optimal decision function is: bxxkxf n i ii += =1 ),()(  4. experimental verification the method was validated using standard rolling bearing fault data from case university, western reserve, usa. perform vmd decomposition on rolling bearing signals under different states, and calculate their kurtosis values. select the imf component with higher kurtosis values as the fault feature sensitive component. the results are shown in table 2. table 2. imf component kurtosis values under different operating conditions working condition imf component imf1 imf2 imf3 imf4 imf5 normal 3.2811 2.3121 1.6557 3.1221 3.0812 inner ring 3.1225 5.1466 6.6875 2.9567 5.0866 outer ring 3.7756 4.0598 4.0569 1.7589 1.8687 rolling element 2.5587 4.5781 8.5413 1.2569 10.5268 the high kurtosis value indicates that the vibration impact of the imf component is more obvious. three sensitive imf components under different working conditions are selected to calculate four entropy values, as shown in table 3. table 3. characteristic parameters of dynamic bearing vibration signals under different working conditions working condition characteristic parameter hen hs hf pe1 pe2 pe3 normal 0.0486 0.0596 0.4786 1.4523 3.7456 3.5236 inner ring fault 0.9620 0.3885 1.0678 2.8056 4.6986 4.2567 outer ring fault 0.9896 0.4756 1.3658 3.0756 2.8697 4.5697 rolling element fault 1.0869 0.6855 1.3857 2.7569 4.3689 3.8559 select 30 sets of rolling bearing signals under different states for fault diagnosis. select 20 sets of signal feature vectors from each state as training samples for ls-svm, and the remaining 10 sets as test samples. the recognition results are shown in table 4. table 4. rolling bearing fault diagnosis results based on vmd feature fusion working condition ls-svm recognition results recognition rate overall recognition rate normal 1 1 1 1 1 1 1 1 1 1 100% 100% inner ring fault 2 2 2 2 2 2 2 2 2 2 100% outer ring fault 3 3 3 3 3 3 3 3 3 3 100% rolling element fault 4 4 4 4 4 4 4 4 4 4 100% to demonstrate the effectiveness of the vmd method, a rolling bearing fault diagnosis method based on eemd feature fusion was adopted. the results are shown in table 5. table 5. rolling bearing fault diagnosis results based on eemd feature fusion working condition ls-svm recognition results recognition rate overall recognition rate normal 1 1 1 1 1 1 1 1 1 1 100% 85% inner ring fault 2 4 4 2 2 2 4 2 2 2 70% outer ring fault 3 3 3 4 3 3 3 4 3 3 80% rolling element fault 4 4 4 4 4 4 4 4 4 2 90% 5. conclusion the vmd feature fusion method proposed in this article can effectively diagnose rolling bearing fault signals under different working conditions, and the diagnostic accuracy is better than the eemd method. the kurtosis value can reflect 21 the impact of vibration signals. by calculating kurtosis, sensitive imf components can be screened, and corresponding entropy values can be calculated, which are input into lssvm to identify fault types. provide certain ideas for fault diagnosis of rolling bearings. references [1] zheng k, yang d w, zhang b, et al. a group sparse representation method infrequencydomain with adaptive parameters optimization of detecting incipient rolling bearing fault [j]. journal of sound and vibration,2019,462:114931. [2] he yong, wang hong, gu sui. a new method for bearing fault diagnosis based on genetic algorithm for vmd parameter optimization [j]. vibration and shock, 2021,40 (06): 184-189. [3] dragomiretskiy k, zosso d. variational mode decomposition[j]. ieee transactions on signal processing, 2014, 62(3):531-544. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 94 trust evaluation of doctor behavior based on gcn network in medical big-data access control xun tian yunnan university of finance and economics, school of information, kunming 650221g, china gk700.gjgcs@foxmail.com abstract: the establishment of health care big data has brought great convenience to population health and medical research, but at the same time a series of privacy protection issues must be considered as a result. in this paper, we propose a graphical convolutional neural network to detect the access behavior of doctors in medical big data. in this paper, we propose a graphical convolutional neural network to model the access behavior of doctors in medical big data and perform trust evaluation, so as restrict such doctors or behaviors. in this paper, by taking the doctor behavior features and the doctor-doctor relationship network as input, the gcn network is used to supervise the learning of the department to which the doctor belongs, and the last layer is used as the characterization learning result. finally, the similarity between doctor and department is used as the doctor behavior trust evaluation index. the experimental results show that the proposed model in this paper can well identify doctors' behaviors with malicious intent and assign a low trust value, laying the foundation for further research. keywords: trust evaluation; medical big-data; gcn. 1. introduction with the rapid development of internet information technology, all walks of life have stepped into the era of big data. especially in the medical field, the era of big data has created an unprecedented and great convergence of digital with health and medical care. this convergence has enabled new medical research and new health services to manifest great value and potential. in the healthcare big data environment, based on data standards and data integration, doctors can call up patients' historical information and even genetic information during the treatment of patients. in this way, doctors can provide better and more targeted specific treatment plans to specific patients at specific points in time. and big data in healthcare can bring many benefits to medical institutions, government management departments and related enterprises. however, each stage of collecting, mining, analyzing and utilizing big data in healthcare requires a good health big data industry ecosystem. one of the basic and important features of this industrial ecosystem is "openness". however, the "openness" of health care big data will increase the risk of data leakage to a certain extent. for example, in september 2017, the service information system of a hospital in china was hacked, resulting in the leakage and trafficking of a large amount of citizens' information; in january 2018, hundreds of thousands of information about newborn babies and pregnant women due to unauthorized access by staff of a community health service center in china was leaked. therefore, preventing the leakage of healthcare big data has become an urgent issue now. currently, the main access control model uses a static authorization approach. it uses fixed policies and does not consider uncertainty and big data environments. it is difficult to apply in scenarios where authorization changes frequently in big data environments. the main direction of scholars in recent years is dynamic access control methods. among them, risk-based and trustbased are two more mainstream approaches. and this paper finds the doctors with malicious access behavior by modeling the trust value of doctors' access behavior. 2. related works in the context of big data in health care, medical information construction is bound to break the traditional data silos and move toward sharing and openness. however, in the process of data "flow", there are many hidden problems. among them, the privacy leakage of data has become the core concern of big data in health care. at present, many scholars have conducted research on the privacy leakage of data and proposed many solutions in terms of technology. examples include pseudonymization of patient identity, encryption of patient data and information, creation of public and private clouds to handle sensitive data, privacy-protected data distribution, privacy-centric access control and data outsourcing, and dynamic reconstruction of data [1-4]. in the healthcare domain, soceanu propose an advanced encryption scheme and attribute-based access control authorization framework for clinical data privacy and security issues. allowing partial visibility and effective protection of authorized parts. suneetha . proposed a new framework spark using k-anonymization and l-diversity to mask patient sensitive information. it ensures that the shared data does not reveal the original medical data. and isolate sensitive data before transferring to the system. literature [7,8] used blockchain technology for effective management of big data set access control to solve the data privacy security problem. lee designed a medical big data privacy protection system based on diffie-hellman protocol to protect patients' private information and avoid the leakage of medical data. wu built a medical big data privacy protection platform based on iot . for medical big data transmission sharing security. medical data security is provided. y yang proposed a privacypreserving electronic health record (ehr). and developed a policy update mechanism based on keyword matching. to achieve flexible access updates without compromising privacy. mariagrazia proposed an abac model-based subject and object access control principle based on risk scenarios. it achieves dynamic modification of authorized adaptive access 95 control based on risk values. l chen proposed a risk-aware rbac model. the model consists of three components: user's trust, user's ability to assume roles, and appropriateness between roles and permissions. riaz added trust and risk relative to traditional access control considering different sensitivity requirements of different applications. two dynamic risk-based access control system decision methods are proposed. to address the above problems, this paper transforms doctors' high-dimensional access features into lowdimensional section relevance features based on their historical access records using graph convolutional neural networks, and then uses the euclidean distance similarity between each section doctor and the section center feature as the reputation evaluation index based on the reduceddimensional features. therefore, the research in this paper provides a new idea for the access control research of healthcare big data. 3. trust evaluation method in this paper, we focus on supervised learning by using the graph of relationships between doctor access object features and doctors as the input to the gcn network. 3.1. doctor characteristics and relationship chart for an electronic case 𝐸𝑐 , let there be m kinds of data related to diagnosis and treatment in the case, such as blood and urine laboratory data, ecg, chest x-ray, clinical symptoms, etc.. use the one-hot code to indicate whether there is a record of the corresponding data in the case 𝐸𝑐 table, noted as 𝐸𝑐 = [𝑓1, 𝑓2, … , 𝑓𝑚], where 𝑓𝑖 = 1 means that item ⅈ has a record. a doctor's access record 𝐷𝑟 should contain the case records of all non-primary patients accessed within a certain work duration, denoted as 𝑅𝑑 = [𝐷𝑟1, 𝐷𝑟2, … , 𝐷𝑟𝑛] . since any rp_i is a vector of fixed dimensions, 𝑅𝑑 can also be represented as a two-dimensional matrix as follows: 𝐷𝑟 = [ 𝑓11 … 𝑓1𝑚 ⋮ ⋱ ⋮ 𝑓𝑛1 … 𝑓𝑛𝑚 ] the data features required for a doctor access, rd, can be characterized based on all historical data features from the doctor's access to the non-primary patient's medical record as follows: 𝐷𝑟 = [∑ 𝑓𝑖1 𝑛 𝑖 , ∑ 𝑓𝑖2 𝑛 𝑖 , … , ∑ 𝑓𝑖𝑚 𝑛 𝑖 ] a doctor access to a patient case creates a relationship between the doctor and the case, and the element level of the weighted adjacency matrix 𝐴𝑑2𝑐 of the doctor-case relationship graph is represented as: 𝐴𝑑2𝑐(𝑖, 𝑗) = 𝑘 (𝐷𝑜𝑐𝑡𝑜𝑟 𝑖 𝑎𝑐𝑐𝑒𝑠𝑠 𝑚𝑒𝑑𝑖𝑐𝑎𝑙 𝑟𝑒𝑐𝑜𝑟𝑑 𝑗 𝑘 𝑡𝑖𝑚𝑒𝑠) doctors who access the same case in the diagnostic process by correlation, and therefore can be transformed from a doctor-case relationship graph to a doctor-doctor relationship graph, whose weighted adjacency matrix 𝐴𝑑2𝑑 can be calculated as following: 𝐴𝑑2𝑑 = √𝐴𝑑−𝑐 ⋅ 𝐴𝑑−𝑐 𝑇 the laplace matrix is the central object used to study the structural properties of the graph. the laplace matrix is defined as follows: 𝐿 = 𝐷 − 𝐴, 𝐷 is the diagonal matrix of degrees of 𝐴 . the laplacian matrix also has a regularized representation: 𝐿𝑠𝑦𝑚 = 𝐷− 1 2𝐿𝐷− 1 2 in this paper we use a two-layer gcn network with fixed graph filters: �̃�𝑠𝑦𝑚 = 𝐿𝑠𝑦𝑚 + 𝐼 𝐻 = 𝜎(�̃�𝑠𝑦𝑚𝑋𝑊1 + 𝐵1) 𝑌 = 𝑠𝑜𝑓𝑡𝑚𝑎𝑥(�̃�𝑠𝑦𝑚𝐻𝑊2 + 𝐵2) similarly, the central feature points of all doctors in each department are found by deep learning, and the cosine similarity between each doctor and the central feature point is calculated separately as the trust evaluation index: 𝑇𝑟𝑢𝑠𝑡𝑖 = 𝑠𝑖𝑚(𝑦𝑖 , �̂�) = 𝑦𝑖�̂� ‖𝑦𝑖‖‖�̂�‖ 3.2. simulation experiment this experiment was conducted by computer simulation to generate 10 departments with different medical records of 50 doctors in each department for access, totaling 200,000 access of data. the sequence of 40 doctors with normal access and those with malicious access in each department. fig 1. similarity of the between doctors and the center of the department through simulation experiments we get the results in fig 1. according to figure 1 we can easily find the low similarity between malicious doctors and section averages. it shows that our method effectively distinguishes doctors with malicious accessing behavior. 4. conclusion in this paper, we propose a trust evaluation model for medical environment, which uses graph neural network algorithm to reduce the high-dimensional access data of all doctors into low-dimensional section relevance data based on the historical access records of doctors, and then learns the average features of the section based on the reduced features of doctors in the same section, and cosine similarity to evaluate the trust value of doctors within the section. the trust model proposed in this paper is different from the traditional trust model, this model can not only be based on whether the data of doctors' access to patient's medical records are related to diagnosis and treatment, but also based on the network topology relationship between doctors at the same time, this model is more conducive to give credibility judgment on doctors' lines, which brings great reference value for the 96 subsequent access control research. the model is proved to be effective in the simulation experiments at the end of the paper. references [1] aggarwal c c, philip s y . a general survey of privacypreserving data mining models and algorithms [m]. privacypreserving data mining. springer. 2008: 11-52. [2] fernández-alemán j l, señor i c, lozoya p á o, et al. security and privacy in electronic health records: a systematic literature review [j]. journal of biomedical informatics, 2013, 46(3): 541-62. [3] abbas a, khan s u. a review on the state-of-the-art privacy-preserving approaches in the e-health clouds [j]. ieee journal of biomedical and health informatics, 2014, 18(4): 1431-41. [4] camara c, peris-lopez p , tapiador j e. security and privacy issues in implantable medical devices: a comprehensive survey [j]. journal of biomedical informatics, 2015, 55(272-89. [5] soceanu a, vasylenko m, egner a, et al. managing the privacy and security of ehealth data; proceedings of the 2015 20th international conference on control systems and computer science, f, 2015 [c]. ieee. [6] suneetha v, suresh s, jhananie v. a novel framework using apache spark for privacy preservation of healthcare big data; proceedings of the 2020 2nd international conference on innovative mechanisms for industry applications (icimia), f, 2020 [c]. ieee. [7] chen x, zhu h, geng d, et al. merging rfid and blockchain technologies to accelerate big data medical research based on physiological signals [j]. journal of healthcare engineering, 2020. [8] uchibeke u u, schneider k a, kassani s h, et al. blockchain access control ecosystem for big data security; proceedings of the 2018 ieee international conference on internet of things (ithings) and ieee green computing and communications (greencom) and ieee cyber, physical and social computing (cpscom) and ieee smart data (smartdata), f, 2018 [c]. ieee. [9] lee n-y, wu b-h. privacy protection technology and access control mechanism for medical big data; proceedings of the 2017 6th iiai international congress on advanced applied informatics (iiai-aai), f, 2017 [c]. ieee. [10] wu x, zhang y , wang a, et al. mnssp3: medical big data privacy protection platform based on internet of things [j]. neural computing & applications, 2020, [11] yang y, zheng x, guo w , et al. privacy-preserving fusion of iot and big data for e-health [j]. future generation computer systems, 2018, 86(1437-55. [12] teimourikia m f a m. access control privileges management for risk areas [j]. information systems for crisis response and management in mediterranean countries, 2014, [13] chen l, crampton j. risk-aware role-based access control; proceedings of the international workshop on security and trust management, f, 2011 [c]. springer. [14] shaikh r a, adi k, logrippo l. dynamic risk-based decision methods for access control systems [j]. computers & security, 2012, 31(4): 447-64. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 1, 2022 79 significance of identifying the location and nature of lesion in imaging diagnosis of diplopia huili tang department of neurology, the first affiliated hospital of yangtze university, china. abstract: objective: identifying the lesion location and nature and selecting appropriate imaging methods for early diagnosis of diplopia and treatment. methods: the data of 3 patients with diplopia were collected, including basic information and clinical features, anatomical location and imaging examination, treatment and effect. results: three cases of diplopia were diagnosed by head ct and mri. based on gender, age, symptoms, signs and disease development, the location and nature of the lesions were inferred. it had an important impact on imaging diagnosis, treatment and prognosis. conclusion: identifying the location and nature of lesions can guide image selection for diagnosis of diplopia. it is helpful for early treatment and prognosis. keywords: location; nature, imaging diagnosis; diplopia. 1. foreword diplopia is a common symptom of neurological diseases. it is easy to miss and misdiagnose by relying on common head ct scan or one-time imaging examination. identifying the location and nature of lesions can guide the selection and monitoring of images, which can not only avoid missed diagnosis and misdiagnosis, but also facilitate early diagnosis and treatment. 2. clinical data and methods 2.1. basic information the first patient was a 37-year-old female with recurrent headaches and dizziness, presented to the doctor 5 days after onset. the second patient, a 66-year-old female with no special medical history, presented to the doctor 2 months after onset. the third patient, a 73-year-old male with hypertension, diabetes, and thyroid disease, presented to the doctor 4 months after onset. 2.2. diagnostic methods: history included changes in clinical symptoms. neurological examination revealed abnormal signs and identified the involved nerve. according to the possible lesion location and nature, select the appropriate image to assist the diagnosis. 2.3. ttreatment and follow-up the first patient received pulse therapy with methylprednisolone. the second patient underwent aneurysm surgery. the third patient was treated with glucocorticoids. follow-up for changes in disease. table 1. basic information gender age medical history 1 female 37 years old repeated headaches and dizziness 2 female 66 years old nothing 3 male 73 years old hypertension,diabetes,thyroid disease table 2. changes in clinical symptoms first development last time 1 dizziness numbness of left face diplopia 5 days 2 diplopia none none 2 months 3 diplopia left eye pain left forehead pain 4 months table 3. neurological signs and affected nerve neurological signs affected nerve 1 left facial hypoesthesia left peripheral facial palsy limited abduction of the left eye left trigeminal nerve left facial nerve left abducens nerve 2 left eye abduction limitation left abducens nerve 3 left eyelid drooping left eye fixation left pupil dilated left abducens nerve left oculomotor nerve left trochlear nerve table 4. imaging and lesions imaging location nature 1 head mri dwi and enhancement left bridge arm demyelinati ng disease 2 head mri head cta left internal carotid artery siphon giant aneurysm 3 head mrinasopharyngeal mri occipital clivus and sella placeho lder figure .1 (case 1) (white arrow): a: head ct was normal. b: head mri showed round lesion with long t1, long t2 and t2-flair high signal in left bridge arm. c: head dwi showed no obvious limited diffusion. d: head mri showed annular enhancement. 80 figure 2. (case 2) (white arrow): a: head ct scan showed abnormal lesion in the left cavernous sinus. b: head mri showed round lesion with long t1 and short t2 signals, the size was about 25*24mm, the internal signal was uneven with short t1 and long t2, the sella was compressed and displaced, the left lateral rectus muscle decreased in size (atrophy). c, d: head cta showed a giant aneurysm in the siphon of the left internal carotid artery. figure 3. (case 3) (white arrow): a: head ct (in the early stage of the disease) was normal. b, c, d: mri of the head and nasopharynx (in the advanced stage) showed bone destruction of the clivus. irregular iso-t1 and mixed t2 signals with unclear boundaries in the occipital clivus and sella area, the floor of the saddle and the bilateral cavernous sinuses were involved upward, and the left sphenoid sinus and left retro nasal foramen were involved anteriorly. normal pituitary structure was not shown. 3. results 3.1. basic information and clinical features all 3 patients had diplopia. past medical history was different. the first patient was a young and middle-aged woman with acute onset, rapid progression, and other cranial nerve injuries. the second patient was an elderly woman with a slow onset. the third patient was an elderly male with a slow onset, progressive development, other cranial nerve damage, headache and eye pain. see table 1, table 2 and table 3. 3.2. diagnosis of diplopia in the first patient, the left lateral cranial nerve was injured in a short period of time, head ct showed no abnormality, and head mri showed demyelination of the left pontine arm. in the second patient, the left abducens nerve was involved and gradually worsened, head ct showed abnormal lesions of the left cavernous sinus, mri and cta of the head showed a siphon aneurysm of the left internal carotid artery. in the third patient, the left cranial nerve was gradually damaged, head ct showed no abnormality in the early stage and mri of the head and nasopharynx showed the occipital clivus and sella space-occupying lesions in the late stage. see table 3, table 4, figure 1, figure 2, figure 3. 3.3. treatment and effects the first patient's condition improved after treatment with glucocorticoids, and head mri showed that the lesion shrunk without enhancement. the second patient had no intracranial hemorrhage after surgical treatment of the aneurysm. in the third patient, some symptoms improved after glucocorticoid treatment in the early stage of the disease, but as the disease progressed, the anti-inflammatory treatment was ineffective. the third patient refused to use radiotherapy. 4. conclusion 4.1. brain demyelinating diseases the first patient was a young and middle-aged woman who had recurrent headaches and dizziness, and was admitted to the hospital with recurrent dizziness. the onset was acute and the progression was rapid. in a short period of time, the left abducens nerve, facial nerve, and trigeminal nerve were damaged. based on anatomy, the lesion was localized in the left bridge arm. according to age, gender and disease development, the nature of the lesion may be cerebrovascular disease. [1] or demyelinating disease [3][4], etc. head ct showed no obvious abnormality. head mri showed abnormal signal in the left bridge arm. head dwi showed no obvious diffusion restriction, which does not support cerebral infarction [2]. head mri showed circular ring enhancement with clear borders, supporting demyelinating disease [3] [4]. the condition improved after methylprednisolone pulse therapy. head mri showed that the lesion became smaller and no enhancement appeared again. due to the transformation of some brainstem demyelinating lesions into multiple sclerosis or neuromyelitis optica spectrum disorder [3][4], it is necessary to monitor changes of clinical manifestations and cns imaging. timely adjustment of diagnosis and treatment can help improve prognosis. 4.2. aneurysm the second patient was an elderly woman with no special medical history. she had progressive limited abduction of the left eye. there was no trauma and fever, no eye pain or headaches, no mild in the morning and severe in the evening. based on anatomy, the lesion was localized in the left cavernous sinus region. according to age and disease development, the aneurysm remained to be identified. head ct, mra, cta and dsa have different sensitivities to aneurysms of different sizes [5]. appropriate cerebral vascular imaging should be selected to detect aneurysms in the early stage, and timely surgical treatment should be performed to reduce the incidence of bleeding after aneurysm rupture [6]. head ct of the second patient showed abnormal lesions in the left cavernous sinus. head mri and head cta showed a large aneurysm in the siphon of the left internal carotid artery. after surgical treatment of the aneurysm, the patient had no intracranial hemorrhage. 4.3. intracranial space-occupying lesions the third patient was an elderly male with previous hypertension, diabetes, and thyroid disease. the onset was slow and the left oculomotor nerve was damaged. as the disease progressed, left side headache and eye pain gradually appeared. anti-inflammatory treatment was ineffective. based on anatomy, the lesion was localized in the left cavernous sinus area. according to age and disease development, the space-occupying disease remained to be identified. elderly patients need to identify tumor-related neuromuscular disease [7], especially in patients with progressive clinical symptoms and signs. although no early imaging abnormalities were detected, dynamic examination of head mri is still required. the third patient's early head ct and mri showed no obvious abnormality. diabetes and thyroid-related eye 81 disease were initially diagnosed, and some symptoms improved after glucocorticoid treatment. as the disease progresses, the scope of nerve damage expanded, and antiinflammatory treatment was ineffective. a re-examination of the head mri revealed abnormal lesions in the occipital clivus and sellar region [8]. 5. concluding remark pay attention to age and possible related diseases, follow up disease changes, and master neurological signs. depending on the possible location and nature of the lesion, different images are selected for diagnosis and monitoring. early diagnosis and treatment of diplopia can help improve prognosis. references [1] du wenwen, wu minghua. risk factors analysis of acute cerebral infarction among young and middle-aged patients[j]. journal of brain and neurological disorders, 2019,27( 4):230233. [2] li chao, li xiaoting. the significance of diffusion magnetic resonance imaging in early diagnosis of brainstem infarction [j].chinese journal of ct and mri,2014, 12(1) :39-41. [3] hu xueqiang, wu weiping. chinese expert consensus on diagnosis and treatment of multiple sclerosis (2018 edition) [j]. chinese journal of neuroimmunology and neurology, 2018, 25(6):387-394. [4] huang dehui, wu weiping, hu xueqiang. guidelines for the diagnosis and treatment of neuromyelitis optica spectrum disorders in china (2021 edition) [j]. chinese journal of neuroimmunology and neurology, 2021, 28(6):423-436. [5] zhang hongqi, lu jie, yang xinjian. expert consensus on imaging interpretation of intracranial aneurysms[j]. chinese journal of cerebrovascular disease, 2021,18(7) :492-504 [6] zhang hongqi, yang xinjian, etc. guidelines for the diagnosis and treatment of unruptured intracranial aneurysms in china 2021[j]. chinese journal of cerebrovascular disease, 2021, 18(9): 634-664 [7] cai tieyong. a review of malignant tumors and neuromuscular lesions[j]. foreign medical oncology ,1982 ,(5): 228-230 [8] zhang zhenguang. ct and mri findings of clival chordoma [j] journal of clinical radiology, 2020,39(4) :654-65 frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 40 improved text matching model based on bert qingyu li, yujun zhang * school of computer and software engineering, university of science and technology liaoning, anshan 114051, china * corresponding author: yujun zhang abstract: text matching is a basic and important task in natural language understanding, this paper proposes a new model bbmc for the problem of insufficient feature extraction ability of existing text matching models, which integrates bilstm and multi-scale cnn on the basis of bert. first, the word embedding representation of the text is obtained by the bert, and then the semantic features of the text are further extracted by the double-layer bilstm, followed by the multi-scale cnn model, the key local features are extracted, and finally the linear and softmax function are used to classify. experimental results on the lcqmc dataset show that the bbmc has been improved to a certain extent compared with other methods, and the accuracy on the test set can be best achieved 88.01%. keywords: bert; bilstm; cnn; text matching; nlp. 1. introduction as a core problem in natural language understanding , text matching is to take two texts as inputs and predict their relationship categories or correlation scores by understanding their respective semantics . usually, this task is treated as a binary task. first, rich text feature information is obtained through various methods, and then the extracted features are classified. many tasks in natural language processing can be regarded as text matching tasks, so it is particularly important to study efficient text matching methods. traditional machine learning methods need to rely on manual access to the shallow features of the text, which can not well represent the semantic information of the text. with the rapid development of deep learning, a large number of text matching models based on deep learning have emerged, which can be roughly divided into three types: representation based method, interaction based method and pretraining language model based method. the representation based method obtains the semantic representation of text in various ways for matching calculation. in 2013, huang et al. proposed the dssm model , which is the pioneering work of deep learning in text matching tasks. later, with the popularity of cnn (convolutional neural network, cnn) and lstm (long short term memory, lstm), etc., shen et al. introduced cnn into the dssm model to solve the problem of losing context information in dssm . palangi et al. introduced lstm into dssm to capture long-term context and proposed lstm-dssm model . this kind of model only obtains the semantic representation of the text, but does not take into account the interaction information between texts. the interaction based method realizes text interaction through various attention mechanisms to obtain context information. hu et al. use one-dimensional convolution to focus on adjacent word vectors for two pieces of text respectively, then combine the two tensors obtained after convolution, and finally propose the arc-ii model using the classification method of multilayer perceptron. yin et al. introduced the attention mechanism on the basis of cnn, used the attention weight to fuse the output of the convolution layer, and finally proposed the abcnn model . pang et al. used dot product operation on word vectors of two texts to interact, and then proposed matchpyramid model by using convolution and pooling to extract features. chen et al. proposed a simple and efficient semantic matching network esim by using bi-directional recurrent neural network bilstm to obtain context representation and introducing attention mechanism to strengthen the interaction between texts. in order to solve the problem of insufficient interaction between texts, wang et al. proposed a multi angle matching model bimpm, which uses a variety of information interaction methods to improve the degree of text interaction. although the above model can make use of the semantic information and interactive information between texts, the traditional static text semantic acquisition methods such as word2vec and glove are still used in the semantic coding stage, which can not express the semantic information of text well. the method based on pretraining language model refers to the unsupervised way to train the language model in large corpus in advance, and then load the pretrained model weights to finetune the specific downstream tasks. in 2018, the bert (bidirectional encoder representations from transformers) model based on bidirectional transformer came out, refreshing the list of many tasks in nlp field. therefore, the method based on the pretraining language model has become a research hotspot in recent years. so since 2018, many researchers have improved the bert model [16, 17, 18]. cui et al. changed the pretraining method on the basis of bert model and trained the chinese-wwm-bert model for chinese tasks on a large chinese corpus [19, 20]. this model has achieved good results in chinese natural language processing tasks, including text matching tasks. however, the text semantic information obtained by fine-tuning specific text matching tasks using bert model alone is insufficient, therefore, based on this problem, this paper proposes a method based on pretraining bert model fusion of bilstm and multi-scale cnn to remodel the text matching task, further extract global semantic information and local semantic information to improve the accuracy of text matching. 2. our method the model proposed in this paper mainly obtains the word vector representation of the text with context semantic 41 information through bert, then further obtains the semantic information of the text through the bilstm model, and then the key information of different scales obtained through cnn with different size convolution cores, and finally classifies through the classification layer. the overall architecture is shown in the following, see figure 1. figure 1. overall architecture diagram (1) bert according to the characteristics of the input layer of the bert model, this paper first separates the two sentences with [cls] and [sep], and then gets the word embedding of the text through the bert embedding layer. it consists of three parts, namely token embedding, segment embedding, and position embedding. the calculation formula is as follows: token seg pose e e e= + + (1) input the word embedding e obtained from bert embedding layer into the bert coding layer, and then the sum of hidden layer vectors output by the last four layers of transformer in bert coding layer is selected as the semantic feature h extracted from bert model. the calculation formula is as follows: 12 9 _ i i h hidden state = = (2) where i represents the number of layers of the transformer, hidden_states represents the hidden layer vector obtained through the ith transformer. after calculating h, input e and h into the subsequent layers to further extract the text feature information. (2) bilstm blocks this module consists of two layers of bilstm. the architecture of bilstm is shown in the following, see figure 2. figure 2. bilstm where f represents forward lstm and b represents backward lstm. the calculation formula is as follows: 1 1 1 lstm( , ) ( , ) ( ) i i i i i i i i i n i i f f w b lstm b w t f b t bilstm w t − + = = = =  = = (3) where represents forward lstm unit, represents backward lstm unit,  represents splicing operation, wi represents the ith word, if represents the output of wi through forward lstm, ib represents the output of wi through backward lstm, it represents the output of wi through bilstm, t represents the output of the whole sentence w after passing through bilstm. in this paper, the word embedding e and semantic feature h obtained from the bert layer are input into this layer respectively to obtain the overall semantic information te and th, according to the above bilstm calculation formula, te and th formulas are obtained as follows: 1 1 1 1 ( ) ( ) ( ) ( ) e e e h h h t bilstm e t bilstm t t bilstm h t bilstm t = = = = (4) where represents the feature obtained after passing through the first layer of bilstm, and then input it into the second layer of bilstm to obtain et , and the calculation of ht is the same as above. (3) conv block this layer is a multi-scale convolution block. cnn with different convolution kernel sizes is used to further process the semantic features extracted by bilstm to obtain the local key information of the text. since the dimensions of the semantic features te and th extracted from the bilstm layer are all [batch_size, seq_len, 768], and the length of the phase mostly 2 to 4 characters, this layer selects twodimensional convolutions with convolution kernels of 2 * 768, 3 * 768, and 4 * 768 respectively to extract local key features, and then uses the relu activation function to modify them, and further compresses the features by using the maximum pooling method to remove redundant information. finally, the three convolution features are spliced to obtain m, and the calculation formula is as follows: 1 1 2 2 3 3 1 2 3 ( ( ( , 2*768))) ( ( ( , 2*768))) ( ( ( ,3*768))) ( ( ( ,3*768))) ( ( ( , 4*768))) ( ( ( , 4*768))) ( , , ) ( e e h h e e h h e e h h e e e e h m mp relu conv t m mp relu conv t m mp relu conv t m mp relu conv t m mp relu conv t m mp relu conv t m concat m m m m concat = = = = = = = = 1 2 3, , ) ( , ) h h h e h m m m m concat m m= (5) where conv represents the convolution operation, and the two parameters represent the input and convolution kernel size respectively, relu represents the activation function, mp represents the max pooling, and concat represents the splicing operation. (4) classification layer the classification layer classifies the local semantic information m obtained from the conv block on the upper layer through a layer of fully connected neural network, and then gets the matching or mismatching results through softmax function. the calculation formula is as follows: max( ( ))y soft linear m= (6) 3. experiment in this paper, the proposed model is tested in the text lstm lstm 1et 42 matching dataset lcqmc , and compared with other model methods. acc and f1-score are used to evaluate the effectiveness of the model. 3.1. dataset lcqmc is a large-scale open corpus for text matching. the dataset contains 260068 pieces of data in total, including 238766 training sets, 8802 validation sets, and 12500 test sets. each data is composed of two sentences and a label. the label is divided into 0 and 1, where 0 represents the semantic mismatch of two sentences, and 1 represents the semantic match of two sentences. data examples are shown in the following, see table 1. table 1. example of lcqmc sentence1 sentence2 labe l 这腰带是什么牌子 护腰带是什么牌子 0 货到付款的网站是哪 个 什么购物网站是货到付款 的 1 3.2. experimental environment the training, validating and testing of all models in this paper are based on the deep learning framework pytorch. the specific experimental environment configuration is shown in the following, see table 2. table 2. experimental environment configuration software and hardware configuration operating system ubuntu 20.04.4 lts development tools and languages pycharm and python deep learning framework pytorch 1.11.0 gpu nvidia geforce rtx 3090 24g cpu intel® core™ i9-9900k cpu @ 3.60ghz × 16 memory 64g 3.3. experimental parameters the bert model selected in this paper is the chinesewwm-ext model pretrained by cui et al. on a large chinese corpus. the max length of input data is 128 and the hidden size of bert is 768, the hidden size of bilstm is 334, the convolution kernel of multi-scale convolution is 2 * 768, 3 * 768 and 4 * 768 respectively, the random seed is 47, batch size is 64, learning rate is 2e-5, dropout is 0.2 and the epoch is 3. 3.4. evaluation criteria in order to verify the effectiveness of the proposed model, the accuracy acc and f1-score are used to evaluate the model. the calculation formula of acc and f1-score is as follows: ( ) ( ) p n p n p n t t acc t t f f + = + + + (7) 𝑃 = 𝑇𝑝 𝑇𝑝+𝐹𝑝 , 𝑅 = 𝑇𝑝 𝑇𝑝+𝐹𝑁 , 𝐹1 − 𝑠𝑐𝑜𝑟𝑒 = 2*𝑃*𝑅 𝑃+𝑅 (8) tp represents the positive sample predicted by the model as a positive class, tn represents the negative sample predicted by the model as a negative class, fp represents the negative sample predicted by the model as a positive class, and fn represents the positive sample predicted by the model as a negative class. 3.5. evaluation criteria in this paper, all experiments are carried out under the same experimental environment as far as possible. first, the baseline model bert is implemented, and the output of its different layers are used as the semantic features of the text, and experiment on the lcqmc dataset. then, the bert model is spliced into bilstm and conv block respectively to process the features. finally, our method is tested. the experimental results are shown in following, see table3. table 3. experiment result model acc (%) f1-score (%) bert-cls 86.84 87.82 bert-pooler 86.83 87.76 bert-last-avg 86.59 87.65 bert-first-last-avg 87.87 88.54 bert-last-four-avg 86.47 87.50 bert +bilstm 86.56 87.63 bert + conv block 88.17 88.66 bert + bilstm + conv block 87.87 88.55 diff(bert-wwm) 87.80 - our method bbmc 88.01 88.72 from the experimental results, it can be seen that compared with the bert model alone, the acc and f1 score of the model proposed in this paper are improved. and the acc is increased by 1.45% and 0.14% respectively compared with the method of splicing the bilstm module and the bilstm + conv block module. the f1-score is increased by 1.09% and 0.17% respectively. the acc is 0.16% lower and the f1score is 0.06% higher than the method of splicing the conv block module. and the acc has improved compared with the diff (bert-wwm) model proposed in paper. this shows that the model proposed in this paper has improved in general. 4. conclusion in order to cover the shortage of only using the bert model cannot well express the text semantic features, this paper uses the hidden layer vectors of different layers output by the bert model and uses bilstm and multi-scale convolution network to further extract rich semantic features. through training, validating and testing on lcqmc dataset, it is proved that the fusion of bilstm and multi-scale convolution can improve the effect of the model, which is sufficient to show that it is feasible to fuse bilstm and multi-scale convolution on the basis of pretrained bert model to finetune. references [1] pang liang, lan yanyan, xu jun, guo jiafeng, wan shengxian, cheng xueqi. overview of deep text matching [j]. journal of computer science, 2017,40 (04): 985-1003. [2] yang r, zhang j, gao x, ji f, chen h. simple and effective text matching with richer alignment features[j]. arxiv preprint arxiv:1908.00300, 2019. [3] huang p s, he x, gao j, deng l, acero a, heck l. learning deep structured semantic models for web search using clickthrough data[c]//proceedings of the 22nd acm international conference on information & knowledge management. 2013: 2333-2338. 43 [4] shen y, he x, gao j, deng l, mesnil g. a latent semantic model with convolutional-pooling structure for information retrieval[c]//proceedings of the 23rd acm international conference on conference on information and knowledge management. 2014: 101-110. [5] palangi h, deng l, shen y, gao j, he x, chen j, et al. semantic modelling with long-short-term memory for information retrieval[j]. arxiv preprint arxiv:1412.6629, 2014. [6] hu b, lu z, li h, chen q. convolutional neural network architectures for matching natural language sentences[j]. advances in neural information processing systems, 2014, 27. [7] yin w, schütze h, xiang b, zhou b. abcnn: attention-based convolutional neural network for modeling sentence pairs[j]. transactions of the association for computational linguistics, 2016, 4: 259-272. [8] pang l, lan y, guo j, xu j, wan s, cheng x. text matching as image recognition[c]//proceedings of the aaai conference on artificial intelligence. 2016, 30(1). [9] chen q, zhu x, ling z, wei s, jiang h, inkpen d. enhanced lstm for natural language inference[j]. arxiv preprint arxiv:1609.06038, 2016. [10] graves a, schmidhuber j. framewise phoneme classification with bidirectional lstm networks[c]//proceedings. 2005 ieee international joint conference on neural networks, 2005. ieee, 4: 2047-2052. [11] wang z, hamza w, florian r. bilateral multi-perspective matching for natural language sentences[j]. arxiv preprint arxiv:1702.03814, 2017. [12] mikolov t, sutskever i, chen k, corrado g, dean j. distributed representations of words and phrases and their compositionality[j]. advances in neural information processing systems, 2013, 26. [13] pennington j, socher r, manning c d. glove: global vectors for word representation[c]//proceedings of the 2014 conference on empirical methods in natural language processing (emnlp). 2014: 1532-1543. [14] devlin j, chang m w, lee k, toutanova k. bert: pretraining of deep bidirectional transformers for language understanding[j]. arxiv preprint arxiv:1810.04805, 2018. [15] vaswani a, shazeer n, parmar n, uszkoreit j, jones l, gomez a, et al. attention is all you need[j]. advances in neural information processing systems, 2017, 30. [16] li b, zhou h, he j, et al. on the sentence embeddings from pre-trained language models[c]// proceedings of the 2020 conference on empirical methods in natural language processing (emnlp). 2020. [17] xia t, wang y, tian y, chang y. using prior knowledge to guide bert's attention in semantic textual matching tasks[j]. 2021. [18] meng jinxu, shan hongtao, wan junjie, jia renxiang. bsla: improved text similarity model of siamese lstm [j]. computer engineering and application. 2021. [19] cui y, w che, t liu, b qin, z yang, s wang and g hu, “pretraining with whole word masking for chinese bert,” arxiv preprint arxiv:1906.08101, 2019. [20] cui y, che w, liu t, qin b, yang z. pre-training with whole word masking for chinese bert[j]. ieee/acm transactions on audio, speech, and language processing, 2021, 29: 3504-3514. [21] liu x, chen q, deng c, zeng h, chen j, li d, et al. lcqmc: a large-scale chinese question matching corpus[c]//proceedings of the 27th international conference on computational linguistics. 2018: 1952-1962. [22] zhang wenhui, wang meiling, hou zhirong. a short text matching model incorporating contextual semantic differences [j/ol]. journal of peking university (natural science edition) https://doi.org/10.13209/j.0479-8023.2022.071. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 142 review of research methods for hypersonic vehicle reentry trajectory planning qingzhuang ma, yongqi yin, xueqian shi rocket force university of engineering, xi'an, 710025, china abstract: hypersonic vehicle has many advantages, such as wide range of maneuver, strong penetration ability, high strike accuracy, and so on. reentry trajectory planning is one of the key technologies to support hypersonic vehicle systems. it is necessary to plan feasible or optimal trajectory under the process constraints such as heat flux, dynamic pressure, overload, and terminal constraints such as altitude and velocity. at present, traditional methods are difficult to meet the task requirements of trajectory planning and online trajectory generation under complex conditions with multiple constraints. as an artificial intelligence method, reinforcement learning has strong robustness and the characteristics of "offline training and online deployment", which can make up for the shortcomings of traditional methods and show great potential in trajectory planning. this paper introduces the current research status of traditional trajectory planning methods and reinforcement learning methods, and proposes that the reentry trajectory planning methods will be intelligent in the future. keywords: hypersonic flight vehicle; reentry trajectory planning; reinforcement learning; imitation learning. 1. introduction hypersonic vehicle has many advantages, such as wide maneuvering range, strong penetration ability, high strike accuracy, etc. at present, it has become a key research object in the aerospace field. reentry trajectory planning is one of the key technologies to support hypersonic vehicle systems. it is necessary to plan feasible or optimal trajectory under the process constraints such as heat flux, dynamic pressure, overload, and terminal constraints such as altitude and velocity. at present, traditional methods are difficult to meet the task requirements of trajectory planning and online trajectory generation under complex conditions with multiple constraints. as an artificial intelligence method, reinforcement learning has strong robustness and the characteristics of "offline training and online deployment", which can make up for the shortcomings of traditional methods and show great potential in trajectory planning. this paper introduces the current application and research of trajectory planning, and discusses and puts forward the development direction of future trajectory planning methods towards intelligence. 2. current research status of hypersonic vehicle reentry trajectory planning method the reentry phase of hypersonic vehicle is the general term of reentry initial phase and reentry glide phase. during reentry flight, there are many challenges, such as: the control system is challenged by the uncertainty of environmental model and the dramatic change of aerodynamic parameters, the thermal protection system is challenged by a large amount of aerodynamic heat, the huge aerodynamic force generated by high-speed flight, and the structural strength of aircraft is challenged by overload [2]. according to the different principles of reentry trajectory planning methods, it can be divided into reentry corridor-based trajectory planning methods and optimization/intelligent algorithm-based trajectory planning methods. 2.1. section headings it can make reentry trajectory planning efficiently by using reentry corridor, and can also meet the real-time requirements of online trajectory generation. the online trajectory planning algorithm can make full use of the orbit and attitude information before departure, so compared with the nominal trajectory planned offline, it can significantly reduce the initial deviation of the entry point. the online generation of hypersonic vehicle reentry trajectory is difficult, mainly due to the following two reasons: (1) the control variables in the glide phase are hidden in the nonlinear time-varying differential motion equations, and it is difficult to obtain high-precision three degree of freedom trajectory through analytical method. (2) the hypersonic glide process is affected by many uncertain factors, such as large changes in altitude and mach number, drastic changes in aerodynamic parameters and so on, which easily leads to large errors in online trajectory generation. the representative methods of online trajectory planning using reentry corridors are quasi equilibrium gliding condition (qegc) and evolved acceleration guidance logic for entry (eagle). z shen [8] and others proposed the qegc method, which combines the process constraints such as heat flow density, dynamic pressure, overload and quasi equilibrium glide conditions into the constraints on the pitch angle in the height velocity profile. combined with the designed piecewise linear pitch angle profile, it effectively reduces the amount of calculation and realizes the online generation of trajectory. mease [9] et al. divided the drag acceleration velocity profile planning into two subproblems: trajectory length planning and trajectory curvature planning, and used the alternating iteration of longitudinal motion and lateral motion to plan the required three-dimensional trajectory. leavitt [10] et al. proposed an eagle method based on mease to plan the three-dimensional trajectory with large lateral maneuver. y zhang [11] proposed a trajectory planning method based on 3d drag acceleration profile, and deeply discussed the trajectory planning and guidance method 143 of standard profile focusing on large-scale lateral maneuver missions. 2.2. trajectory planning method based on optimization/intelligent algorithm trajectory planning often needs to make the aircraft meet process constraints and terminal constraints to plan a trajectory with the best index, that is, trajectory optimization problem. the most commonly used method for trajectory optimization is numerical method. according to different solving principles, it can be divided into indirect method and direct method. indirect method the indirect method uses the classical variational method or pontryagin minimum principle to transform the optimal control problem into a hamilton boundary value problem (hbvp), and uses the corresponding numerical method to solve it [12]. as early as 1968, lewallen [13] used the indirect method to realize the iterative solution of the trajectory optimization problem. the advantage of the indirect method is that it has high accuracy, and the solution meets the necessary conditions of first-order optimality. however, it is difficult to derive the optimal solution, estimate the initial value of the conjugate variable, and require a lot of integral operations. the algorithm has poor real-time performance and reliability, and is rarely used in engineering practice. direct method the direct method usually first discretizes and parameterizes the optimal control problem, converts it into a nonlinear programming problem, and solves it with nonlinear programming algorithms such as sequential quadratic programming (sqp) [14-15] or heuristic algorithms [16]. the direct method has the advantages of large convergence radius, less strict requirements on initial values, and good robustness, and is widely used in aircraft trajectory optimization. however, its solution does not necessarily satisfy the necessary condition of first-order optimality, and the effect of solving discontinuous problems is poor. the parameterization process of optimal control problem is to transform the optimal control problem described by differential equations into a static parameter optimization problem that can be solved by nonlinear programming method. representative methods include direct shooting method, collocation method, pseudo spectral method, etc. the direct shooting method only discretizes the control variables, and the state variables are obtained by numerical integration in a single interval from the motion equation. hull [17] and brusch [18] gave the solution scheme of direct shooting method earlier and transformed it into a nonlinear programming problem. fisch [19] used this method to study the trajectory optimization problem with path point constraints. the collocation method is a method to discretize control variables and state variables at the same time. a series of algebraic equations are used to replace the differential equations in the optimal control problem. in 1987, hargraves [20] and others put forward the collocation method of using cubic hermite interpolation approximation for state variables, and obtained the application of the famous trajectory optimization software otis, which solved the optimization problems such as the minimum climb of supersonic interceptors and the ascent trajectory of advanced boosters. pseudo spectral method is a direct method that discretizes control variables and state variables simultaneously. due to the characteristics of few parameters, high precision, fast convergence and insensitivity to initial values, it has developed rapidly and been widely used in recent years. elnagar [21] was first used to solve optimal control problems. the development of optimal control software dido [22-23] and gpops [24-25] also accelerated the application of pseudo spectral method. after the optimal control problem is transformed into the corresponding parameter optimization problem through the discrete method, the nonlinear programming method can be used to solve it. in unconstrained optimization algorithms, classical algorithms such as conjugate gradient method, simplex method and bfgs have appeared. for constrained optimization problems, penalty function method and sqp method are used. the sqp method is currently the most effective method for solving constrained optimization problems, and has been made into snopt [26] and npsol [27] software packages. gradient based algorithms such as nonlinear programming methods are easy to fall into local optima and difficult to obtain global optima. heuristic intelligent optimization algorithms such as particle swarm optimization algorithm and genetic algorithm [28] are insensitive to initial values and have strong robustness. they can effectively solve local optimization problems in the solution process, but the calculation speed cannot meet the requirements. 3. track planning method based on reinforcement learning reinforcement learning is a machine learning method that can acquire data independently and interactively with the environment to train the neural network. compared with the deep learning algorithm that requires a large number of sample data, it has obvious advantages in ease of use. by modeling the problem, the markov decision process is constructed, and combined with reasonable reward function design, the intelligent decision model can be obtained by using reinforcement learning algorithm training. the deep reinforcement learning, which combines the deep learning and reinforcement learning, can realize the end-to-end learning method from the original input to the direct control output, and provides a new solution for the perceptual decision-making task of complex systems. in the aspect of guidance, daseon hong [42] proposed a reinforcement learning intelligent terminal guidance law based on ddpg algorithm, and verified that its robustness is better than proportional guidance law in the first-order delay system, and it can replace the existing missile guidance law. j wang [43] proposed an intelligent cooperative interception guidance law based on q-learning algorithm, which is better than the traditional proportional guidance guidance law, for the problem of multi missile coordination. kirk hovell [44] used deep reinforcement learning to generate guidance instructions, and used traditional controllers to track, which realized the migration and deployment of spacecraft docking strategies trained in the simulation environment to the actual environment, and narrowed the gap between simulation and reality. in terms of path planning, r zhi [45] proposed a threedimensional a * improved algorithm based on reinforcement learning to solve the problem of high requirements for realtime algorithm and optimal results in aircraft online path planning, which effectively improved the time performance of the algorithm while ensuring optimal path results. y lv [46] proposed a path planning method for hypersonic vehicles 144 based on q-learning algorithm, which verified the feasibility of q-learning algorithm for hypersonic vehicles and took less time than traditional algorithms. at present, most of the research on hypersonic vehicle trajectory planning using reinforcement learning methods focuses on the terminal guidance stage with short time series and few constraints. sparse reward has no obvious effect on reinforcement learning algorithm, and the model is easy to converge. due to the limitations of long flight time series, complex and severe constraints, and large amount of computation in the reentry phase, the application of reinforcement learning is mainly used to improve the traditional methods to reduce the complexity of the model and the difficulty in designing the reward function, and has also achieved significant results. j zhu [47] proposed a multi constraint intelligent glide guidance strategy based on optimal guidance and reinforcement learning, which uses q-learning algorithm to intelligently adjust the maneuver amplitude in speed control without manually adjusting guidance parameters, thus improving the autonomy of guidance. t wu [48] proposed a reentry guidance method based on depth reinforcement learning and altitude rate feedback, aiming at the periodic oscillation phenomenon of hypersonic aircraft with high lift drag ratio in reentry guidance, and established an altitude rate feedback mechanism based on ddpg algorithm, which can output pitch angle compensation command for predictive correction guidance according to the current state of the aircraft. however, the above research is mainly based on traditional methods, and has not fully played the advantages of reinforcement learning intelligent decision-making. j song [49] proposed a fault-tolerant integrated guidance and control design method for hypersonic vehicles based on proximal policy optimization (ppo), aiming at the existence of various uncertain parameters and actuator failures in the control system, established an integrated guidance and control system for hsv, and used ppo algorithm to generate pitch angle commands according to the current state of the aircraft, the coupling relationship between guidance loop and control loop is fully utilized. j hui [50] and others proposed an online generation method of "new quality" reentry flight corridor based on reinforcement learning, which avoids manually setting flight corridor parameters. the simulation results show that the new method meets the requirements of online guidance, and the flight path is different from the traditional way, which effectively enhances the penetration capability of the aircraft. at present, the reentry process trajectory planning method based on reinforcement learning shows great potential, but it still faces the problems of poor model convergence, difficult design of reward function, and long training time. 4. the future development direction of reentry trajectory planning methods the development of traditional reentry trajectory planning methods is facing more and more obstacles, and intelligence is a better solution. in the future, better solutions can be found from the following three aspects. 4.1. off-line reinforcement learning trajectory planning method due to the dramatic changes of atmospheric parameters during reentry flight, it is difficult to establish an effective simulation environment, which also leads to the poor effect of reinforcement learning model in practical application. the "reality gap" can be effectively avoided by using offline reinforcement learning method to train the flight data collected from flight test on the basis of real data. so as to improve the model effect. 4.2. imitation learning trajectory planning method the reentry flight environment of the trajectory planning method based on imitation learning is harsh, the reward function of reinforcement learning is difficult to set, and the probability of the agent successfully reaching the destination is small, leading to low training efficiency. the trajectory planning method based on imitation learning avoids this problem and can effectively imitate the expert trajectory in the sample to make actions efficiently. 4.3. reinforcement learning path planning method based on initialization of other learning methods offline reinforcement learning and imitation learning are limited by small sample data and low accuracy. simple reinforcement learning is difficult to set reward function. the model trained by other learning methods as the initialization of reinforcement learning can effectively improve the probability of the agent reaching the end point, reduce the difficulty in designing the reward function, and thus improve the accuracy of the reinforcement learning model. 5. conclusion weapon intelligence can effectively improve weapon performance. reentry trajectory planning can use reinforcement learning as a new method to avoid the shortcomings of traditional methods, improve the unpredictability and robustness of trajectory, and improve weapon effectiveness. acknowledgment we thank the associate editor and the reviewers for their useful feedback that improved this paper. references [1] r he , “study of all-course trajectory planning approach for hypersonic boost-glide vehicles,” national university of defense technology, changsha, hunan, china. [2] z shen, p lu, “on-board entry trajectory planning for suborbital flight,” acta astronautica, 2005, 56(6): 573-591. [3] mease k d, d chen, schonenberger h, “reduced-order entry trajectory planning for acceleration guidance,” journal of guidance, control, and dynamics, 2002,25(2):257-266. [4] leavitt j, saraf a, chen d, “performance of evolved acceleration guidance logic for entry,” proceedings of aiaa guidance, navigation, and control conference and exhibit, aiaa-2002-4456,2002. [5] y zhang, “research on entry trajectory generation for hypersonic glide vehicles based on three-dimensional profile,” national university of defense technology, changsha, hunan, china. [6] c xie, y zhang, m gao, “automatic control principle,” nanjing southeast university press,201812.268. 145 [7] hull, david g, “conversion of optimal control problems into parameter optimization problems,” journal of guidance, control, and dynamics, 1997, 20(1): 57-60. [8] fahroo f, ross i m, “direct trajectory optimization by a chebyshev pseudospectral method,” american control conference 2000. [9] vinh n x, lu p, “chebyshev minimax problems for skip trajectories,” journal of the astronautical sciences, 1988. [10] barron r l, chick c m, “improved indirect method for airvehicle trajectory optimization,” journal of guidance control & dynamics, 2006, 29(3): 643-652. [11] hull, david g, “conversion of optimal control problems into parameter optimization problems,” journal of guidance, control, and dynamics, 1997, 20(1): 57-60. [12] betts j t, frank p d, “a sparse nonlinear optimization algorithm,” journal of optimization theory & applications, 1994, 82(3): 519-541. [13] fisch f, sewerin f, holzapfel f, “approach trajectory optimization including a tunnel track constraint,” aiaa atmospheric flight mechanics conference, 2011. [14] hargraves c r, paris s w, “ direct trajectory optimization using nonlinear programming and collocation,” journal of guidance, control, and dynamics, 1986, 10(4): 338-342. [15] elnagar g, kazemi m a, razzaghi m, “the pseudospectral legendre method for discretizing optimal control problems,” ieee transactions on automatic control, 2002, 40(10): 17931796. [16] fahroo f, ross i m, “direct trajectory optimization by a chebyshev pseudospectral method,” american control conference, 2000. [17] fahroo f, doman d, “ a direct method for approach and landing trajectory reshaping with failure effect estimation,” aiaa guidance, navigation, and control conference and exhibit, 2004. [18] corrigendum, “gpops, a matlab software for solving multiple phase optimal control problems using the gauss pseudospectral method,” acm transactions on mathematical software, 2011, 38(2): 1-2. [19] benson d a, huntington g t, thorvaldsen t p, “ direct trajectory optimization and costate estimation via an orthogonal collocation method,” journal of guidance control & dynamics, 2006, 29(6): 1435-1439. [20] gill p e, murray w, saunders m a, “snopt: an sqp algorithm for large-scale constrained optimization,” siam review, 2005, 47(1): 99-131. [21] gill p e, murray w, saunders m a, “npsol (version 4.0): a fortran package for nonlinear programming,” user's guide, 1986. [22] g tang, y luo, e yong, “theory, method and application of spacecraft trajectory optimization”, science press, 2012. [23] hong d, kim m, park s, “ study on reinforcement learningbased missile guidance law,” applied sciences, 2020, 10(18): 6567. [24] j wang, r su, l liu, “cooperative interception guiding law based on reinforcement learning of q-learning,” navigation positioning & timing, 2022, 9(05):84-90. [25] hovell k, ulrich s. deep reinforcement learning for spacecraft proximity operations guidance[j]. journal of spacecraft and rockets, 2021, 58(2): 254-264. [26] z ren, d zhang, s tang, “improved three-dimensional a* algorithm of real-time path planning based on reinforcement learning”, systems engineering and electronics, 1-11. [27] y lv, “research on q-learning path planning method for hypersonic vehicles,” university of electronic science and technology of china, chengdu, sichuan, china. [28] j zhu, c zhao, x li , ” multi constraint optimal intelligent gliding guidance via reinforcement learning”, journal of national university of defense technology, 2022,44(04):116124. [29] t wu, h wang, y liu, “a reentry guidance algorithm based on deep reinforcement learning and altitude rate feedback”, unmanned systems technology, 2022,5(04):1-13. [30] j song, y luo, m zhao, “fault-tolerant integrated guidance and control design for hypersonic vehicle based on ppo,” mathematics, 2022, 10(18): 3401. [31] j hui, r wang, q yu, “research of generating new quality flight corridor for reentry aircraft based on reinforcement learning,” acta aeronautica et astronautica sinica, 2022,43(09):623-635. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 123 intelligent information retrieval based on ontology yuye chen electronic information engineering, chongqing university of technology, chongqing, chongqing, 401135, china cyy_official_2000@163.com abstract: traditional search engines can no longer meet the increasing amount of information in today's world, and often face problems such as blurred results and long search times for some queries. and the addition of ontology makes information retrieval more intelligent, so that information data between various fields can be shared, to achieve the purpose of getting the answers users want quickly and accurately. this paper firstly introduces the definition of ontology and analyzes the traditional information retrieval system, and finally summarizes some experimental results in recent years in ontology-based intelligent information retrieval and reviews them to get a more efficient and accurate information retrieval system to achieve the effect of improving the accuracy of search engines. keywords: semantic; intelligent information retrieval; ontology. 1. introduction in recent years, the internet has continued to permeate every aspect of human life. its addition has not only improved people's quality of life, but also enriched their entertainment time. in order to find accurate information in the vast amount of information, search engines are particularly important in human life as an information search tool. however, with more and more information pouring into the internet, information retrieval is facing a great challenge. information retrieval techniques based on keyword matching and full-text search techniques face problems such as large amount of information, too much information in query results, confusion in query results, mismatched content of search results, and inability to identify multiple meanings of words. these problems are inevitable in search engines using keyword matching and fulltext retrieval techniques. an ontology is a structured set of terms that will be expanded and extended outward after mutual intelligent learning by machine to machine, thus containing more information that may be used to achieve crossover in different domains. adding the concept of ontology to an intelligent information retrieval system will allow users to get more accurate results and even make the whole retrieval process more efficient. 2. about ontology 2.1. semantic web related concepts and architecture the concept of the semantic web proposed by bernerslee, which consists mainly of documents for human reading, including data and information for computer operation. the semantic web is a web of actionable information - information derived from data through semantic theory that is used to interpret symbols. semantic theory provides an interpretation of "meaning," where logical connections of terms establish interoperability between systems. in order to make the search engine's results more accurate, the semantic web technology is introduced based on the original web, which may make today's intelligent information retrieval system more improved. berners-lee also proposed an architecture for the semantic web, as shown in figure 1. figure 1. architecture for the semantic web the semantic web architecture is explained as follows: (1) unicode and uri are the base layers. uri is used to identify resources on the network. and the identity of each resource must be unique and unique. unicode is used to encode resources in any language around the world, enabling the semantic web to support diverse cultural elements. (2) xml\xmls. is used to describe the content and structure of resources. xml is an important branch of document construction. in terms of content, a uri is the identity of the discovery and identification entity that makes up the ns (namespace). xml documents enable language-wide control through xml schema. (3) rdf+ rdf schema data layer. this layer applies the existing rules to all types of resources and their corresponding types. give a description. among them, rdf supports simple semantic description, and rdf schema is an optimization and improvement of rdf, which provides a method to define classes and attributes, realizes the dual constraints of classes and attributes, and provides a method to detect constraints. (4) ontology vocabulary layer. ontology vocabulary layer can accurately express all kinds of information and its internal relations in a specific domain according to the abstract representation method. the types of information in the domain and their internal connections. 124 (5) logic layer. in order to realize the function of reasoning, the logic layer provides a powerful logic language. (6) proof layer. the proof layer analyzes and verifies the program of the language specialty and carries out corresponding work according to the actual scene of the language. (7) trust layer. the purpose of the trust layer is to provide secure and secure information transfer. 2.2. overview and applications of ontology 2.2.1. concepts of ontology in the ai community, ontology is defined as the set of basic terms and relations between terms that constitute the relevant domain, and the definition of rules that specify the extensions of these terms using these terms and relations, a definition proposed as early as 1991 by neches et al. .the goal of ontology is to capture the knowledge of the relevant domain, provide a common understanding of the knowledge of the domain, identify commonly accepted vocabularies within the domain, and give clear definitions of these vocabularies (terms) and the interrelationships between the vocabularies in terms of formal patterns at different levels. so, an ontology is much like a list of vocabulary that can be shared. rdf describes resource objects based on the standard syntax of xml and can express certain semantics, so that machines can understand the description information. however, due to rdf(s) limitations of its expressiveness, it cannot express the relationships between words. to further improve the description capability of web information resources, ontology, which originally belongs to the field of philosophy, is applied to the field of computer science, especially the semantic web. the ontology is very suitable for describing concepts and relationships between concepts. at present, ontology plays an important role in improving the accuracy of information retrieval. by using ontology, more accurate query results can be obtained in semantic retrieval, instead of just collecting some web pages with keyword information. in order to make up for the shortcomings of incomplete information query results, ontology-based semantic retrieval can query the hidden information contained in the information through the inference system, so that the query results are more consistent with the user's questions. 2.2.2. composition of ontology in the application of network resources, ontology analyzes specific terms in various professional fields, and builds conceptual models by classifying knowledge and finding specific relationships between information. common components of ontologies can be seen in figure 2. figure 2. components of ontology 2.2.3. construction of ontology in different domains, the elements used are different, and the different types of projects will affect the construction of the ontology. therefore, there is no fixed standard in the construction process of ontology. only by combining the analysis of its own requirements with the elements in the research field, can an appropriate ontology be constructed. among them, the construction criterion proposed by gruber is the most widely used, which fully demonstrates what it means to build an ontology according to the current situation of a specific domain. each researcher's research field is different, resulting in different conditions when constructing ontology. therefore, they use methods with different characteristics to construct ontology, so that they can make choices according to their own situation. among them, there are ontology construction methods that named methontology, tove and idef5 and so on are highly respected. 3. existing researches on intelligent information retrieval based on ontology in such an era of big data, the use of formal representations is very important, but such data is often complex. in this regard, a certain person emphasizes the importance of using clear and formal representations between objects in order to give the right meaning to data relevance. in the case of multimedia, antonio m. rinaldi and cristiano russo's research proposes a formal model that uses a semantic approach to formalize multimedia big data to implement an intelligent information retrieval system that allows better communication between objects. this model combines a toplevel ontology model and a graph model represented by a labeled, attribute-based structure to consider semantic, linguistic and multimedia data simultaneously. and to facilitate machine processing, the ontology is developed using owl. the model proposed in the article has been implemented in a nosql graph database populated by different knowledge sources, but the limitations of the model are that scalability and efficiency for large amounts of data are not considered. in b. selvalakshmi and m. subramaniam's paper, a new semantic information retrieval system is proposed, and researchers use feature selection and classification to improve relevance scores. in the research, a new intelligent fuzzy rough set-based feature selection algorithm and an intelligent ontology and latent dirichlet allocation based semantic information retrieval algorithm were used to improve the semantic information retrieval system, not only are they able to improve relevance scores and retrieval speed, but they also have the ability to handle big data. in order to perform semantic information retrieval using an ontology matching method, researchers propose a new algorithm for preprocessing and lda-based document classification. for the preprocessing algorithm, its role is to remove irrelevant and noisy information from documents to form an ontology, and subsequently, a new intelligent fuzzy rough set-based feature selection algorithm and an intelligent ontology and latent dirichlet allocation based semantic information retrieval algorithm. the combined effect of these two algorithms reduces the retrieval time, and increases the semantic relevance by applying the ontology, so as to achieve the effect of fast and accurate retrieval. 125 4. conclusion combining the two new information retrieval systems mentioned above, a more efficient and accurate framework for the search system can be derived. first, from the second retrieval system, the reader can fully feel the importance of pre-processing, which plays a role in information filtering during the formation of ontologies. second, making good use of the top-level ontology model mentioned in the first retrieval system and a graph represented by a labeled, attribute-based structure enables the system to consider semantic, linguistic, and multimedia data at the same time, improving the accuracy of retrieval. finally, an intelligent feature selection algorithm based on fuzzy rough sets and an ontology and latent dirichlet allocation-based semantic information retrieval algorithm can be used in the system to improve the semantic information retrieval system, which not only improve the relevance score and retrieval speed, but also have the ability to handle large data. references [1] jiang, j., wang, z., liu, c., tan, z., & min, l. (2010) in: the technology of intelligent information retrieval based on the semantic web. j. international conference on signal processing systems. dalian. 1664-1667. [2] berners-lee, t., hendler, j., lassila, o. (2001) the semantic web in scientific american. lecture notes in computer science. 284(5): 34-43 [3] wei, w.(2001) research on semantic web and its core technology. china computer & communication, 33(11): 6-9. [4] zhang, t.(2020)research on ontology construction and semantic retrieval in tourism field. thesis of taiyuan university of technology, 07. [5] neches, r., fikes, r.e., gruber, t.r., et al. (1991) enabling technology for knowledge sharing. ai magazine, 12(3): 3656. [6] zammali, s., arour, k., bouzeghoub, a. (2013) using ontologies to build tested for peer-to-peer information retrieval systems. in: 27th international conference on advanced information networking and applications. barcelona. 10331040. [7] wikipedia. (2022) ontology (information_science). [eb/ol] https://en.wikipedia.org/wiki/ontology_(information_science). [8] chhavi, v., sapna, s., sunil, k.k. (2017) unified ontology for data integration for tourism sector. in:international conference on infocom technologies and unmanned systems. dubai. 52-156 [9] rinaldi, a.m., russo, c. a. (2018) semantic-based model to represent multimedia big data. in: proceedings of the 10th international conference on management of digital ecosystems. online. 31-38. [10] selvalakshmi, b., subramaniam, m. (2019) intelligent ontology based semantic information retrieval using feature selection and classification. cluster compute 22 (suppl 5), 12871-12881. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 21 chinese named entity recognition based on ernie xing qi school of electrical engineering, southwest minzu university, chengdu, china abstract: the traditional named entity recognition model based on neural network uses static word vector, which can’t represent the ambiguity of the word in the context. the ernie-bilstm-crf model is proposed. the ernie pre-training model can output different word vectors for different contexts by using multiple layers of transformer, obtaining dynamic word vectors that contain overall sequence information. secondly, the word vectors are input into the bilstm layer, which can obtain sentence context information through forward and backward lstm and obtain more sentence features, thereby improving the model's effectiveness. finally, the sequence is labeled through the crf layer to obtain the globally optimal labeling information and complete the named entity recognition task. the experimental results show that compared with the traditional model, the f1 score of this model has significantly improved. keywords: named entity recognition; enhanced representation through knowledge integration; gated recurrent unit; conditional random field. 1. introduction named entity recognition (ner) [1]is a fundamental task in natural language processing, aimed at identifying entities with specific meanings, such as names of people, places, and organizations, from unstructured text data. this provides a foundation for subsequent applications such as information extraction, question-answering systems, and machine translation. chinese entity structures are complex, diverse in form, and have fuzzy boundaries [2]. moreover, chinese characters can have multiple meanings or be polysemous in different contexts. these factors increase the difficulty of chinese ner, making it more valuable for research and practical applications. the ernie-bilstm-crf model is proposed. the ernie pre-training model can output different word vectors for different contexts by using multiple layers of transformer, obtaining dynamic word vectors that contain overall sequence information. secondly, the word vectors are input into the bilstm layer, which can obtain sentence context information through forward and backward lstm and obtain more sentence features, thereby improving the model's effectiveness. finally, the sequence is labeled through the crf layer to obtain the globally optimal labeling information and complete the named entity recognition task. the experimental results show that compared with the traditional model, the f1 score of this model has significantly improved. 2. related work named entity recognition (ner) is the extraction of required entities from structured or unstructured text. in 1996, the muc-6 conference first proposed the task of named entity recognition and specified the main task as identifying entities in the text to be processed [3]. the entities that needed to be identified were divided into three major categories (entity, time, and numerical) and seven subcategories (person, organization, location, time, date, currency, and percentage). the named entity recognition task proposed by the muc-6 conference has been of great interest to people, and subsequently, conferences such as ace and conll-2003 have also proposed research on named entity recognition [4]. in these conferences, not only were the entities specified by muc-6 identified, but new entity types were also added. for example, the ace conference added multiple entity types such as geopolitical, facility transportation, and weapons. additionally, ace and conll-2003 introduced multiple languages in the named entity recognition task, such as spanish and chinese in ace, and english and german in conll-2003[5]. moreover, there were differences in the research tasks and mainstream methods. ace not only carried out the task of named entity recognition but also included relationship recognition, reference, and anaphora resolution as part of the research [6]. in contrast to muc-6, the methods that performed well in conll-2003 directly or indirectly used the maximum entropy model or some statistical machine learning methods, while in muc-6, rule-based and dictionary-based methods were the mainstream methods at the time [7]. bootstrapping [8] is a classic method that can automatically generate rules. the rule-based and dictionarybased methods require manual customization by relevant personnel. in the current field and scope of corpora, these methods need to gradually increase in size to adapt to new situations, resulting in significantly increased workload. therefore, rule-based and dictionary-based methods are rarely used alone nowadays but are mainly used in combination with other methods to improve model accuracy. after the use of rule-based and dictionary-based methods, people began to use statistical learning methods for named entity recognition research. the conditional random fields (crf) model was used later than the support vector machine (svm) model, but it was more effective, and it is now one of the most commonly used models. researchers such as li[9] and jiang[10] have conducted a series of model comparison studies, and from the experimental results, it can be concluded that crf is a better model for named entity recognition. stanford university has also developed the standorfner tool for named entity recognition based on crf. multi-model mixing is a choice for improving model performance. li[11] and others used multiple svm models to improve model performance. the use of external knowledge bases to solve new entities is a method chosen by many researchers, such as cukierman [12] using the wikipedia database for semantic disambiguation. 22 because traditional machine learning models heavily rely on feature engineering, the selection of feature engineering is very complex. in recent years, with the rise of deep learning, representation learning has become a research hotspot. the method of word vector representation in deep learning solves the problem of data sparsity, and word vectors contain semantic information. compared with the cumbersome manual selection of features, using word vectors is more suitable for the development of named entity recognition. under the trend of deep learning, various neural network models have been proposed and improved, and have been used in named entity recognition tasks, such as convolutional neural network (cnn), long short-term memory network (lstm), and bi-directional long short-term memory network (bilstm). in recent years, the bilstm-crf model based on deep learning has been more effective in medical named entity recognition. collobert et al. proposed the most representative deep learning model and designed the senna [13] system, which requires small memory and can efficiently solve various problems such as part-of-speech tagging and named entity recognition. sahu[14] et al. generated word embedding features by cascading cnn and rnn, which can effectively reduce workload without too much feature engineering. vaswani [15] et al. proposed the transformer model, which abandons traditional cnn and rnn, and the entire network structure is composed entirely of the attention mechanism, which reduces complexity and allows for parallel computation. yan [16] et al. optimized the transformer-based model and proposed the tener model. incorporating language features such as phonetic and character features into the model is also a way to improve the model. bharadwaj [17] et al. used lstm to incorporate phonetic features to improve the model's effectiveness. with the development of the machine learning field, neural network design has become increasingly complex, leading to more and more workload. people use a large amount of data to train the network structure to obtain pre-trained models, which can be fine-tuned on their own dataset, reducing workload. there are already many pre-trained models, such as the bert [18] model proposed by devlin et al. based on transformer, the roberta [19] model proposed by the facebook team the following year, and the albert [20] model proposed by lan et al. improvements to the bert model are mainly achieved by modifying the next sentence prediction and masked lm to improve model performance [21]. dong [22] et al. proposed the unilm model, and song [23] et al. proposed the mass model. tsai [24] et al. proposed a bertbased model and used knowledge distillation to improve model training time. nested named entities refer to the phenomenon of entities nested in entities. there are more studies on this aspect abroad, and the methods for nested named entities can be divided into several types: based on hypergraphs, stack-based model region models, and based on reading comprehension. lu [25] et al. first proposed a method for nested named entity recognition based on hypergraphs in 2015, which merges tokens with the same value and makes each token contain an o label, and then the decoder outputs all possible labels. muis[26] et al. proposed a multi-graph representation method, which uses separators to detect nested entities. ju [27] et al. extracted nested entities by stacking bilstm+crf layers. jue[28] et al. stacked each token from bottom to top, generating longer entities that exceed the length of the lower layers, and detected all entities in the text by traversing all entities. named entity recognition technology has gradually matured, especially with the application of neural networks, which has led to a gradual improvement in the f1 score of named entity recognition. pretrained models can solve certain problems, but new issues have also emerged, such as excessive resource consumption [29]. 3. ernie-bigru-crf model the overall architecture of the ernie-bigru-crf model is shown in figure 1. the model first obtains the semantic representation of the input through the ernie pre-trained language model, which enhances knowledge-based semantic representations. the obtained word vectors are inputted into a bidirectional gru layer to extract sentence-level features, and finally, the crf layer performs sequence labeling to obtain the globally optimal label sequence. compared with previous mainstream named entity recognition models, the most significant difference of the ernie-bigru-crf model is the incorporation of knowledge-enhanced semantic representations from the ernie pre-trained language model. the ernie model learns a comprehensive semantic representation of concepts by masking semantic units such as words and entities. this representation captures the ambiguity of words and enhances the semantic representation capacity of the model. fig. 1 named entity recognition framework based on ernie bigru-crf 3.1. ernie pre-trained language model ernie is a knowledge-enhanced semantic representation model that models prior semantic knowledge of words, entities, and entity relationships in massive data to learn a comprehensive semantic representation of concepts [30]. ernie and bert are both pre-trained language models constructed with a multi-layer bidirectional transformer encoder as the basic unit, as shown in figure 2 [31]. fig. 2 structure of ernie 23 ernie consists of two parts: encoding and knowledge integration. in the encoding part, the transformer encoder is used to generate text word vectors that fuse contextual semantic information. as shown in the diagram, the transformer encoder is modeled based on an attention mechanism. the attention mechanism can reflect the importance of different vocabulary in the text and improve the weight of information relevant to defect text classification, thereby further improving the accuracy of feature extraction by the model. in the knowledge integration part, ernie proposes a multi-stage knowledge masking strategy that integrates semantic knowledge of defect text at the character, phrase, and entity levels. knowledge masking refers to randomly masking some characters and training the model to predict the masked part, thereby effectively learning the contextual information of the masked part. compared to the single-character masking strategy of the bert model, ernie introduces three levels of masking, including characters, phrases, and entities, and through a multi-stage knowledge masking strategy, ernie can generate word vectors that contain rich semantic information of the defect text and effectively preserve the correlation between various components of the defect text, thus ensuring that important semantic information is not lost. 3.2. recurrent neural network traditional machine learning methods rely on manual feature extraction before text classification, which can easily lead to loss of contextual information. to solve this problem, long short-term memory (lstm) uses gate units to control the process of long-term information transfer and enhance the correlation of context. lstm has three gate structures, including input gate (i), forget gate (f), output gate (o), and memory cell (c), which can effectively overcome the problem of gradient vanishing that exists in general neural networks. the structure of lstm is shown in figure 3. fig. 3 lstm structure in figure 3, xt is the input at time t; ft is the output for t+1 at time t; ot is the output at time t; ht is the hidden layer representing the output at time t; σ is the sigmoid function; ct is the cell state at time t. the gate unit calculation formulas in lstm are shown below: 𝑖𝑡 = 𝜎(𝑤𝑖 ⋅ [ℎ𝑡 , 𝑥𝑡] + 𝑏𝑖) (1) 𝑓𝑡 = 𝜎(𝑤𝑓 ⋅ [ℎ𝑡 , 𝑥𝑡] + 𝑏𝑓) (2) 𝑜𝑡 = 𝜎(𝑤𝑜 ⋅ [ℎ𝑡 , 𝑥𝑡] + 𝑏𝑜) (3) ℎ𝑡 = 𝑂𝑡 tanh 𝐶𝑡 (4) 𝑐𝑡 = 𝑓𝑡𝐶𝑡−1 + 𝑖𝑡tanh(𝑤𝑐 ⋅ [ht−1, xt] + bc) (5) in the formula, wi, wf, and wo are weight matrices that connect to the gate unit; bi, bf, and bo are the bias values. 4. experiments and results 4.1. experimental environment and experimental data set the specific experimental environment is as follows: python was chosen as the development language, the cpu model is amd ryzen 7 4800h, and visual studio code was chosen as the development tool. the experiment used the people's daily corpus from january 1998 as the dataset. this corpus is a tagged corpus produced jointly by the peking university computational linguistics laboratory and the fujitsu research center, and has been used as raw data in a large number of research studies and papers. the experimental process involved randomly dividing the dataset into training set, validation set, and test set, with 80%, 10%, and 10% respectively. the dataset was annotated using the bio tagging scheme (beginning, inside, outside), which includes three entity types: person names (per), location names (loc), and organization names (org), with a total of seven tags ('bper', 'i-per', 'b-loc', 'i-loc', 'b-org', 'i-org', 'o'). precision (p), recall (r), and f1-score were used as evaluation metrics for the model in the experiment, and were calculated using the following formulas: 𝑃 = 模型正确标注的实体个数 模型标注的所有实体个数 × 100% (6) 𝑅 = 模型正确标注的实体个数 样本中所有实体个数 × 100% (7) 𝐹 = 2×𝑃×𝑅 𝑃+𝑅 × 100% (8) 4.2. experimental result the experiment compares the model in the article with other models to validate its effectiveness. several models with good performance and mainstream popularity were selected for comparison with the model in the article, including crf, lstm-crf, and gru-crf, and the results are shown in table 1. the experimental results show that the model in the article has improved in all metrics compared to other models. by comparing the experimental results on the same dataset, it is demonstrated that applying the model in the article can improve the recognition performance in entity recognition tasks. table.1 comparison of experimental results of different models % 5. conclusion to address the problem that traditional word vectors cannot represent the polysemy of characters and models have difficulty in obtaining complete semantic representations, this paper proposes the ernie-bigru-crf model. the model uses multi-layer bidirectional transformers as encoders to extract features, and adopts three levels of masking strategies including character masking, phrase masking, and entity masking to dynamically generate context semantic representations of characters. compared to traditional word vectors, ernie-bigru-crf can enhance the model's semantic representation ability and improve named entity recognition performance. however, in specific domains that lack large-scale annotated data, the model may extract incorrectly due to insufficient context information and the presence of abbreviations and ambiguous entities. therefore, the next research direction can consider combining deep 24 learning with transfer learning methods to address these issues. references [1] marrero m, urbano j, s á nchez-uadrado s, et al. named entity recognition: fallacies, challenges, and opportunities [j]. computer standards and interfaces, 2013, 35 (5): 482. [2] zhang libang chinese electronic medical record segmentation and name entity mining based on semi supervised learning [d] the following is: [master's thesis] harbin: harbin institute of technology, 2014 [3] chinchor n. muc-6 named entity task definition (version 2.1) [c]. proceedings of the 6th conference on message understanding, columbia, maryland, 1995: 142-194. [4] ldc corporation. entity detection and tracking phase 1 experimental study task definition [eb/ol]. https://www.ldc.upenn.edu/sites/www.ldc.upenn.edu/files/edtphase1-v2.2.pdf , 2017-03-10. [5] sang, eric, meldfen. conll-2003 shared task introduction: language independent named entity recognition [c]. calculate natural language learning progress. association for computational linguistics, 2003:142-147. [6] doddington g. tasks, data, and evaluation of automated content extraction (ace) programs [j]. proc lrec, 2004, 34(3): 123-153. [7] liu liu, wang dongbo overview of named entity recognition research [j]. journal of information technology, 2018, 37 (03): 329-340 [8] silviu cucerzan, david yarowsky. language independent named entity recognition combining morphological and contextual evidence [c]. proceedings of the 1999 sigdat emnlp and vlc joint meeting, 1999:90-99. [9] li d, savova g, kipper-schuler k. conditional random fields and support vector machines for recognition of named obstacle entities in clinical text [c]. proceedings of the 2008 symposium on current trends in biomedical natural language processing. 2008:94-95. [10] jiang m, chen y, liu m. research on machine learning based methods to extract clinical entities and their assertions from a large number of abstracts [j]. journal of the american medical informatics association, 2011, 18 (5): 601-606. [11] li l, mao t, huang d, et al. a hybrid model for chinese named entity recognition [c]. proceedings of the 5th sighan symposium on chinese language processing. strauss burg: computational linguistics association, 2006:7278. [12] cucerzan s. large scale named entity disambiguation based on wikipedia data [c]. proceedings on empirical methods in natural language processing. czech republic: prague, 2007:708-716. [13] ronan collabert, jason weston, l é on bottou, et al. natural language processing starts (almost) from scratch [j]. journal of machine learning research, 2011, 12 (76): 2493-2537. [14] sahu s k, anand a. recursive neural network model for disease name recognition using domain invariant features [c]. proceedings of the 54th annual conference of the computational linguistics association. strauss burg: computational linguistics association, 2016: 2216-2225. [15] vaswani a, shazeer n, parmar n, etc. attention is what you need [j]. ar xiv, 2017, (1706): 37-62. [16] yan h, deng b, li x, et al. tener: adaptive converter encoder for name entity recognition [j]. ar xiv, 2019, (1911): 44-74. [17] bharadwaj a, mortensen d, dyer c, etc. speech perceptual neural model for named entity recognition in low resource transfer environments [c]. proceedings of the 2016 conference on empirical methods of natural language processing. strauss burg: computational linguistics association, 2016:1462-1472. [18] devlin j, chang m w, lee k, et al. bert: pre training of deep bidirectional converters for language understanding [j]. ar xiv, 2018, (1810): 48-50. [19] liu y h, ott m, goyal n, et al. roberta: a robust optimization bert pre training method [eb/ol]. https://arxiv.org/abs/1907.11692 , 2019-07-26. [20] lan z, chen m, goodman s, et al. albert: simplified bert [eb/ol] for language representation self supervised learning. https://openreview.net/pdf?id=h1ea7aetvs , 2019-07-26. [21] wang naiyu, ye yuxin, liu lu, feng lizhou, bao tie, peng tao. research on language models based on deep learning progress [j]. journal of software, 2021, 32 (04): 1082-1115 [22] dongl, yangn, wangw, et al. a unified language model for pre training and generation of natural languages [eb/ol]. https://arxiv.org/abs/1905.03197 ,2019-0 5-08. [23] song k, tan x, qin t, et al. mass: language generated masking sequence to sequence pre training [eb/ol]. https://arxiv.org/pdf/1905.02450.pdf , 2019-06-21. [24] tsai h, riesa j, johnson m, et al. a small practical bert model for sequence tagging [c]. procedure. 2019 conference on natural language processing experiences and methods and the ninth international joint conference on natural language processing (emnlp-ijcnlp), 2019: 3623 – 3627. [25] lu w, dan r. joint reference extraction and classification using reference hypergraphs [c]. proceedings of the 2015 conference on empirical methods of natural language processing, 2015:857-867. [26] muis a o, lu w. mark gaps between words: use reference separators to identify overlapping references [c]. proceedings of the 2017 conference on empirical methods of natural language processing, 2017:2608-2618. [27] ju m, miwa m, ananiadou s. neural hierarchical model for nested named entity recognition [c]. proceedings of the 2018 north american branch of the computational linguistics association: human language technology, volume 1 (long paper), 2018: 1446-1459. [28] jue w, shou l, chen k, et al. pyramid: a layered model for nested named entity recognition[c]. proceedings of the 58th annual meeting of the association for computational linguistics, 2020:5918-5928. [29] li zhoujun, fan yu, wu xianjie. overview of research on pretraining technology for natural language processing [j]. computer science, 2020,47 (03): 162-173 [30] sun y, wang s, li y, et al. ernie 2.0: a continual pretrain⁃ing framework for language understanding[j]. proceedings of theaaai conference on artifical intelligence, 2020, 34(5): 8968-8975. [31] luo xiao. overview of natural language processing research based on deep learning [j]. intelligent computers and applications, 2020, 10 (4): 133-137. luo xiao a survey of natural language processing based on deep learning[j]. intelligent computer and application, 2020, 10(4): 133-137. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 4 application and development trend of computer science in face completion qingguo chen* hefei university of technology, hefei anhui 230601, china * corresponding author: email: chenqingguo0808@hotmail.com. abstract: in recent years, with the development of computer vision technology and the arrival of the covid-19 epidemic in daily life, the demand for occluded face recognition is increasing rapidly, and the demand for face completion technology in actual production and living scenes is growing rapidly too. however, there are still some problems in face completion technology, such as complex procedures, large amount of computation, long time required, and fuzzy details. therefore, this paper reviews the development process of face completion technology, briefly describes the basic principle and defects of face completion technology, and summarizes the problems existing in the existing computer-based face repair technology, such as large amount of computation, long training time, blurred image details, and inaccurate pain points in the occlusion layer, and prospects the future development. these problems can be improved by optimizing algorithm, adopting new algorithm, adding new network and adding image preprocessing stage. keywords: face completion; deep learning; generative adversarial networks. 1. introduction with the rapid development of computer vision technology and artificial intelligence technology, face recognition technology has become mature and can be widely used in daily life such as security, medical care, education and financial transactions. however, in practical application scenarios, it is difficult to obtain clear and unshielded face images due to the influence of people ' s daily wear and sensor equipment shooting angle. especially since the outbreak of the covid-19 virus, people always tend to wear masks in daily life. nevertheless, during the process of face recognition, people have to removed masks that they wear, which obviously increases the risk of new coronavirus infection. therefore, face completion technology came into being. the application of face restoration technology to restore the face for computer recognition will greatly improve the recognition rate and robustness. at the same time, since the recognition object does not need to remove the mask, it will greatly reduce the risk of people being infected by virus. 2. development of face completion technology with the development of computer vision technology, face recognition technology has been widely used in various occasions in daily life. however, in the practical application process, it is often difficult to obtain clear and unshielded face images. therefore, by restoring the incomplete face image to a complete and clear face image for computer recognition, the recognition rate and robustness will be improved, and it has a high application prospect. the emergence of deep learning technology has greatly improved the accuracy and speed of face image restoration. therefore, this paper takes the emergence of deep learning technology as a vital symbol of the development process of face repair technology. 2.1. previous deep learning period in the early 21st century, deep learning technology has not yet appeared. at this time, the main research direction of academia is the subspace regression method. by extracting the feature vector of face image to high-dimensional space, the vector is segmented in high-dimensional space, and then repaired and recognized. this method has achieved great success at first, and has a high success rate for small area occlusion and fouling. when the sample size is sufficient and the time is long, the recognition rate can reach nearly 100 %. however, when face images are occluded in large areas, the recognition rate will be greatly reduced. in the exploration of the previous deep learning period, although the number of programs that can be applied in practice is small, it provides key ideas such as extracting feature vectors for the face restoration technology based on deep learning. 2.2. deep learning period after 2010, with the blowout of deep learning technology, especially the vigorous development of neural network system, scientists have seen the prospect of applying deep learning technology to face completion. subsequently, the exploration of face image restoration using generative adversarial network, facenet and other technologies has emerged. deep learning technology for face completion has the advantages of high recognition rate and accurate repair. combined with convolutional neural network, it can effectively identify face photos with occlusion. for example, for face recognition of people wearing masks, occlusion face images can be repaired by generative adversarial networks, and then the repaired images can be output to convolutional neural network for recognition. 3. basic principle of face completion technology at present, the mainstream computer repair technologies for face images are generative confrontation network (gan) and context encoder (ca). among them, after iterative training of a large number of training sets, the generative confrontation network has high repair rate and repair accuracy, 5 which is the most popular research direction at present. 3.1. context encoder context encoder is composed of encoder and decoder, similar to generative adversarial network. the difference is that the decoder is a deconvolution network. the incomplete face image is input into the encoder, convolution it, and then the obtained data is input into the decoder. the decoder outputs the reconstructed image by transpose convolution. 3.2. generative confrontation network the generative confrontation network is proposed by ian goodfellow and yoshua bengio in 2014 by two neural networks. one neural network repairs the face image based on the incomplete image, and the other neural network judges the accuracy of the repaired image. 3.2.1. basic structure of generative adversarial networks the generative confrontation network is composed of two neural networks, namely, the generative network and the discriminant network. generate the network to accept the incomplete face image as input, according to the characteristics of the input face image, output the repaired face image. the repaired face image is input into the discriminant network, and the discriminant network also gives the probability that the image is generated from the real sample set rather than the generated network according to the characteristics of the face image. if the generated network is good enough, the discriminant network cannot judge whether the input image comes from the real sample set or the generated network, and the probability of output is 0.5. at this time, this generative confrontation network can meet the technical requirements of face image restoration technology. 3.2.2. training process of generative confrontation network the training process of generative adversarial network is mainly to train the two networks in an adversarial way, so as to continuously optimize the two networks and achieve the effect of the optimal model. the incomplete face image is input into the generation network. the generation network locates the incomplete area by function operation. in the training of a large number of training sets, the accuracy of positioning is continuously improved by alternating optimization technology. after locating the defect area, the corresponding complete area will be generated and fused with the original defect area to generate the repaired image and input to the discriminant network [3,4]. after judging the network received input, it will be compared with the image of the sample set, and the probability of the image from the real sample set is given. after multiple iterations, the texture details of the output image will become richer and richer, close to the real image. 4. short board and development trend of face completion technology at present, the face repair technology based on generative adversarial network has the advantages of high repair rate and high repair accuracy, and there are many related trained models published. the context encoder is very similar to the generative adversarial network in principle and structure. therefore, both shortcomings are common. face restoration technology based on generative adversarial network still has some defects to be improved. next, the shortcomings of face restoration technology based on generative adversarial network are briefly described. 4.1. heavy computation because the repair process and training process of the generative adversarial network are related to the convolution operation of the two sets of neural networks, the requirements for computer performance are relatively high. therefore, the hardware requirements for running the generative adversarial network are high, which makes the training and use of a set of available generative adversarial network for repairing face photos expensive and not conducive to wide use. 4.2. long training time since the neural network needs a large number of data for training, the generative adversarial network also needs a large number of samples sets for training, such as the data set containing one thousand and more pictures. if the training sample is less and the training iteration time is less, the accuracy of the repaired image will decrease sharply. 4.3. image details blurred when the generative adversarial network outputs images, due to the lack of sufficient information, the restoration of the occluded part still has the problems of fuzzy details and distortion to a certain extent with the original image. although the output image quality is enough to discriminate the network for face recognition, there are still some differences with the actual image. 4.4. positioning occlusion layer not accurate there is a problem of inaccurate positioning of mask layer in face image processing by generating network. this increases the difficulty of generating network to restore face images, which is easy to cause image restoration distortion and fuzzy details. at the same time, it also increases the amount of training required for generative confrontation network and increases the time required for training. 4.5. development trend of face completion in view of the above shortcomings, scientists are starting to improve the generative adversarial network, and there are many development trends. update the algorithm and optimize the computation. by optimizing the algorithm and iterative function used, the computation required by the neural network is reduced, the system resources required by the computer to run the generative confrontation network are reduced, and the requirements for computer performance are reduced. a new algorithm is used to reduce the number of training samples. the adam gradient descent algorithm and the random gradient descent method are used to find the best number of iterations, so as to reduce the amount of training, optimize the training time and save the cost. add new network optimization to generate image details. images repaired by generative adversarial networks, although roughly similar to the original image, but the details are still relatively rough. therefore, scientists hope to enter the generative network by adding a new network such as the semantic perception network, so as to optimize the quality of repairing face images and increase the details of human face. add the network based on yolo series to preprocess the images. before the occluded face images are input into the 6 generative adversarial network, the network of yolo series such as yolov4 is used to quickly locate the occlusion layer of the image, and highlight it. the generated network is assisted to accurately locate the occlusion layer, so as to improve the quality of the restored images, optimize the image details, and reduce the training time required for the generative adversarial network. 5. conclusion in this paper, the development history of face repair technology is reviewed, and the basic principle, shortcomings and development trend of face repair technology are summarized and prospected. it can be seen that the current face restoration technology can restore the face with high speed and accuracy. however, there are still some problems in face repair technology, such as large amount of computation, long training time and fuzzy details. scientists have put forward some methods to solve these problems, such as optimizing the amount of computation by updating the algorithm, using new auxiliary algorithms to reduce the number of samples required, adding new networks to increase the details of face images, and increasing the image preprocessing stage. it is believed that future face repair technology will be widely popularized and can be effectively and conveniently applied to real life. references [1] liu ying, zhang yixuan, she jianchu, wang fuping, lim kengpang. (2021). review of new face occlusion inpainting technology research. computer science and exploration (10),1773-1794. [2] xu xialing, liu tao, tian guohui, yu wenjuan, xiao dajun, liang shanpeng.(2021). review of occlusion face recognition methods. computer engineering and application (17), 46-60. [3] liu xiaolei. (2022). research on face reconstruction and recognition of mask occlusion based on generative adversarial network (master degree thesis, university of electronic science and technology of china). [4] song huakun. (2022).research on face image restoration based on generative adversarial network(master degree thesis, harbin university of technology). [5] liu ying, she jianchu,gong yanchao,lu jin,wang fuping,lim kengpang,li yinghua. (2021). survey of facial completion techniques based on deep learning. computer applied research (01),9-14. doi:10.19734/j.issn.10013695.2019.10.0583. [6] wang yi. (2018).research on face image repair technology (master degree thesis, zhejiang university of technology). frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 119 location of scene text based on yolov7 yulong chang1,2, youchan zhu1,2, kaili cui1,2, fujun guan1,2 and zheng li1,2, * 1 department of computer, north china electric power university, baoding 071000, china 2 engineering research center of intelligent computing for complex energy systems, ministry of education, north china electric power university, baoding 071000, china * corresponding author: zheng li (email: yeziperfect@163.com) abstract: text is everywhere in daily life, and it carries rich and accurate information. natural scene text detection technology can be widely used in various fields of life. chinese is an important tool to carry culture. therefore, it is of great significance to study natural scene chinese text detection. for text location in chinese scene, we use target detection method to train based on yolov7 model, and obtain effective detection results. keywords: text detection; yolov7; deep learning. 1. introduction words exist in all aspects of our life, which helps us understand things and exchange ideas. text in natural scenes also contains rich semantic information. text is more easily concerned than other objects. judd et al. [1] found that text is more easily concerned than other objects by analyzing the eye movement data of 1003 images. let the computer find the text contained in the picture in the natural scene picture, and identify it, and make good use of the semantic information transmitted by the text in the picture has great development prospects. the initial focus of character recognition is to recognize the scanned text of machine-printed documents, that is, optical character recognition (ocr) [2] with the in-depth study of ocr, it has reached a fairly high level of accuracy. however, the success of ocr system is limited to scanning the text in the document, and the recognition rate of scene text is not high. recognizing text from scene images is more challenging than traditional ocr. the location of scene text is the premise of text recognition. the background of the scene image is sometimes uneven and highly chaotic, and the location of the text in the scene is not uniform and its changeable form becomes the main problem of the scene text detection. the text location method is realized by the target detection model. traditional target detection methods use machine learning algorithms to determine target candidate regions through sliding windows of different scales,and extract target features in the region, such as histogram of oriented gradients(hog)[3],scale invariant feature transform(sift),local binary pattern(lbp), haar like features(haar),etc. according to the target detection method. ren et al[6] proposed a method based on predefined bounding box, which mainly uses faster-rcnn (fast region-based evolutionary neural network). liu [7] proposed a classical target detection framework. this method first generates multiple predefined bounding boxes with each pixel as the center, then judges whether these bounding boxes contain complete text, and finally refines the bounding boxes containing complete text to fit the text boundary. the network structure of text boxes proposed by liao [8] is consistent with the network structure of ssd. his solution is to change the detected object into text. text boxes adopts the full convolution network structure. by predicting the confidence of the text bounding box and the coordinate offset between the bounding box and the default bounding box (the predesigned initial bounding box), the coordinate information of the word bounding box is directly output at multiple feature layers. the feature of text boxes is that it adjusts the proportion of the convolution kernel in the convolution neural network, and transforms the traditional square into a long rectangle that is more consistent with the character of the text, so that the receptive field becomes a long rectangle, making it easier for the network to extract the character features. in addition, text boxes also adjusted the aspect ratio of the predefined bounding box and used the predefined bounding box with a larger aspect ratio to adapt to the shape of the text and reduce the difficulty of the regression task. the recognition speed of the text boxes method based on the first stage is significantly improved, but the recognition accuracy is not high for text recognition under complex light background and word recognition with too large character spacing. shi [9] proposed the seglink method, which is also improved based on ssd. its core idea is not to directly detect words or text lines, but to first detect local areas of words or text lines, and then connect these local areas to form a complete word or text line. it divides the text detection task into two subtasks: detecting the connection between text segments and predicting the connection between segments. among them, fragments are rectangular bounding boxes with directions, which are predefined bounding boxes, and they cover part of words or text lines. the connection between fragments refers to whether two fragments belong to the same word or text line. the segments with connection relationship are merged to generate the bounding box of the corresponding text. the seglink method is similar to the text boxes method, except that it is difficult to detect large text, because the connection is used to connect adjacent fragments, and cannot be used to detect lines of text with relatively long spacing. ma [10] improved the predefined bounding box and roi pooling layer on the basis of faster-rcnn network. because the direction of the scene text is arbitrary, and the detection method based on the predefined bounding box uses a horizontal rectangular bounding box. in order to make the predefined bounding box more coincident with the text, the predefined bounding box used by rrpn is angled, with 30 degrees as the interval, so as to obtain the bounding box covering 360 degrees. since the bounding box is angled at this 120 time, the extracted roi features are also angled rectangles. rrpn proposes a rroi pooling method to pool such features, so as to obtain horizontal features and pass them into the rcnn network. the specific method is to divide the angled roi features into n n regions on average, where n is the edge length of the pooling feature, then max pooling feature for each 1 1 region, and finally map the horizontal n n features. thus, the rrpn network can be used to detect text lines in any direction. due to the lack of relevant research on scene chinese detection, and the accuracy of location is not ideal. in order to locate the text information in the scene image, we use the target detection method. using yolov7 [11] target detection model, a lightweight real-time and efficient text detection method is proposed. this method mainly adjusts parameters and optimizes network framework based on yolov7 target detection model. for the problem of chinese text detection in scene images, we train the network on the rects dataset. we hope to provide a real-time and efficient detection method for chinese text location in the scene. 2. organization of the text 2.1. overall structure at present, within the range of 5~600 fps, the speed and accuracy of yolov7 target detection model are very efficient and accurate. figure 1 shows the model structure of yolov7. the model consists of three parts, namely input part, backbone feature extraction network part and head part. the input part uniformly converts the size of the image input to the model to 640×640×3. for the input image of the input part, the backbone feature extraction network carries out the operation and transmission between the network layers to extract the effective feature extraction of the image. the detection head part fuses and extracts the eigenvalues of the specific layer output, similar to the fpn structure, and finally obtains the result prediction through the detect module. yolo7 backbone feature extraction network introduces elan structure and mp structure on the basis of yolov5. among them, elan structure is stacked by different convolution blocks, and does not change the width and height of input feature layer. it strengthens the interaction between each feature layer through expansion, random combination and splicing, and improves the learning ability of the model. the mp structure is composed of two paths, namely, a 3 3 convolution block path and a maxpool path.the width and height of the input feature layer are compressed to enhance the feature fusion capability of the network. the detection head is composed of sppcspc module, deeper elan structure and repconv module.among them, the sppcspc module adds a "residual edge" on the basis of the spp module and uses the idea of csplayer for reference, and stacks it with the feature layer output after maxpool operation. repconv module [12] is a re-parameterized convolution architecture. during model training, parallel 1 1 convolution branches are added for 3 3 convolution layers. during model deployment, the parameters of the branch are reparameterized to the main branch, and the 3 3 main branch convolution output is taken. the reasoning speed of the model is improved by increasing the training cost. 2.2. elan and deepened elan elan module is an efficient network structure. by controlling the shortest and longest gradient path, the network can learn more features and has stronger robustness. as shown in figure 2, elan has two branches. the first branch changes the number of channels through a 1 1 convolution. the second branch is more complex. it first passes through a 1x1 convolution module to change the number of channels. then, four 3x3 convolution modules are used for feature extraction. finally, four features are superimposed to get the final feature extraction result. 640*640*3 conv conv conv 640*640*32 320*320*64 320*320*64 160*160*256 80*80*256 elan 80*80*512 mp-1 elan mp-1 elan 40*40*512 40*40*1024 20*20*1024 20*20*1024 3 0 1 2 4-11 12-16 25-29 30-37 38-42 43-50 sppcspc elan upsample conv concat upsample conv concat conv conv elan mp-2 elan mp-2 elan detect repconv repconv repconv 51 52 53 54 55 20*20*512 20*20*256 40*40*256 40*40*256 40*40*512 40*40*256 40*40*128 80*80*128 80*80*128 80*80*256 80*80*128 40*40*512 40*40*256 20*20*1024 20*20*512 20*20*1024 40*40*512 80*80*256 56-63 64 65 66 67 68-75 76-80 81-88 89-93 94-101 102 103 104 105 mp-1 elan 160*160*128 conv 17-24 backbone head figure 1. yolov7 network structure diagram 121 160*160*128 160*160*64 conv 1*14 160*160*64 conv 1*15 160*160*64 conv 1*16 160*160*64 conv 1*17 160*160*64 conv 1*18 160*160*64 conv 1*19 concat conv 1*1 160*160*256 10 11 160*160*256 40*40*512 160*160*64 conv 1*156 160*160*64 conv 1*157 160*160*64 conv 1*158 160*160*64 conv 1*159 160*160*64 conv 1*160 160*160*64 conv 1*161 concat conv 1*1 62 160*160*256 160*160*256 63 a elan b deeper elan figure 2. elan and elan ‘ the deepened elan, we can call elan'. for elan', it is very similar to the elan module. the slight difference is that the number of outputs it selects in the second branch is different. elan module selects three outputs for final addition. the elan'module selects five outputs to add. 2.3. sppcspc the sppcspc structure is shown in figure 3. first, the feature is divided into two different branches. the left part is processed like the spp structure, and the right part is processed through convolution. finally, the two parts are combined. in this way, the calculation amount can be reduced by half, making the speed faster and the accuracy improved. the left part can increase the receptive field to make the algorithm adapt to different resolution images. it obtains different receptive fields through a convolution layer. it can be seen from the figure that in the left branch, the eigenvalues pass through four branches with convolution layer in parallel. they are m [0], m [1], m [2] and the original eigenvalue without processing. these four different branches represent that they can process different objects. 2.4. mp module the mp module can be divided into two structures according to the connected input. mp1 is shown in figure 4a and mp2 is shown in figure 4b. mp module is divided into two branches, one of which is composed of maxpool and convolution layer, and the other is composed of two convolution layers. finally, the output results of the two branches are spliced. the main difference between mp1 and mp2 is that the input of concat in mp1 consists of two parts, with two branches respectively. the input of concat in mp2 consists of three parts, two of which come from two branches and the other from the backbone network. conv1*1 20*20*1024 20*20*512 conv1*1 conv1*1 conv1*1 conv1*1 conv1*1 concat conv1*1 conv1*1 conv1*1 concat conv1*1 20*20*512 20*20*512 20*20*51220*20*512 20*20*512 20*20*2048 20*20*512 20*20*512 20*20*512 20*20*512 20*20*1024 20*20*512 cv1 cv3 cv4 m[0] m[1] m[2] cv5 cv6 cv2 cv7 figure 3. sppcspc 122 160*160*256 mp 2*2 conv 1*1 conv 1*1 conv 1*1 conv 1*1 160*160*12880*80*256 80*80*128 80*80*128 80*80*256 12 14 13 15 16 80*80*128 mp 2*2 conv 1*1 conv 1*1 conv 1*1 conv 1*1 80*80*12840*40*128 40*40*128 40*40*128 40*40*512 76 78 77 79 80 40*40*256 a mp-1 b mp-2 figure 4. mp module 3. experiments in the experiment, rects was used as the model training data set, with a total of 20000 images, of which 15000 were used as the training set and 5000 as the test set. after some preprocessing, the image is mapped into a 640 pixels high and 640 pixels wide image by affine transformation. epoch is set to 300, and the initial learning rate is 0.01. the loss curve is shown in figure 5. the final experimental map reached 78.36%. figure 5. model training loss 4. conclusions the text in images and videos contains rich and accurate high-level language descriptions. accurate and effective extraction of these text information has important applications in multimedia retrieval, human-computer interaction, robot navigation, industrial automation and other fields. for the text location in chinese scene, we use the target detection method to carry out end-to-end text location based on yolov7 model, take the street view image as input, detect the text line in the image area, and return the location information of the text line. the final map reached 78.36%. acknowledgment project supported by the natural science foundation of hebei province (f2014502081) and the fundamental research funds for the central universities(2020ms120) references [1] judd t. learning to predict where humans look ieee international conference on computer vision[j]. proc. iccv, 2009, 2009. [2] breuel t m, yanikoglu b a, berkner k. the ocropus open source ocr system (proceedings paper) [j]. ieee, 2002. [3] dalal n, triggs b. histograms of oriented gradients for human detection[c]. ieee computer society conference on computer vision & pattern recognition, 2005. [4] low d g. distinctive image features from scale-invariant keypoints[j]. international journal of computer vision, 2004. [5] ojala t, pietikainen m, maenpaa t. multiresolution grayscale and rotation invariant texture classification with local binary patterns[c]. ieee, 2002: 971-987. [6] ren s, he k, girshick r, et al. faster r-cnn: towards realtime object detection with region proposal networks[j]. ieee transactions on pattern analysis & machine intelligence, 2017, 39(6): 1137-1149. [7] liu w, berg a c, fu c y, et al. ssd: single shot multibox detector[c]. eccv, 2016: 21-37. [8] liao m, shi b, bai x, et al. textboxes: a fast text detector with a single deep neural network[c]. national conference on artificial intelligence, 2017. [9] shi b, bai x, belongie s. detecting oriented text in natural images by linking segments[c]. proceedings of the ieee conference on computer vision and pattern recognition, 2017: 2550-2558. [10] ma j, shao w, ye h, et al. arbitrary-oriented scene text detection via rotation proposals[j]. ieee transactions on multimedia, 2017: 3111-3122. [11] wang c-y, bochkovskiy a, liao h-y m. yolov7: trainable bag-of-freebies sets new state-of-the-art for real-time object detectors[j]. arxiv preprint arxiv:2207.02696, 2022. [12] ding x, zhang x, ma n, et al. repvgg: making vgg-style convnets great again[c]. ieee, 2021: 13728-13737. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 3, 2022 65 forecast of covid-19 epidemic trend based on multiple linear regression model yixi zou shenzhen new channel school, shenzhen, guangdong china. abstract: at present, covid-19 is prevalent all over the world, and countries are facing severe epidemic prevention and control problems. most countries in the world have taken corresponding measures, and how to predict the dynamics and trends of the epidemic quickly and accurately plays a key role in the global joint efforts to fight the epidemic. therefore, according to the spread characteristics of covid-19 epidemic, this paper first analyzes the multiple linear regression model, and then predicts the epidemic trend of covid-19 based on the multiple linear regression model. the experimental results showed that when covid-19 broke out, the multiple linear regression model had a high accuracy, and its forecast results were in good agreement with the cumulative confirmed cases. this shows that this algorithm is more effective than other existing algorithms. using multiple linear regression model to predict the epidemic trend of covid-19 has certain theoretical and practical significance. through the realization of this model, we can grasp the development and changes of epidemic situation in various regions in time in the management of epidemic prevention and control, prepare for epidemic prevention in advance through trend forecast, control epidemic situation in time and improve epidemic prevention effect. keywords: multiple regression model; covid-19; epidemic trend; forecast. 1. introduction in 2019, a sudden epidemic swept the world. at first, many unexplained cases were found in wuhan, hubei province in china, which was named covid-19 by who [1]. the virus has many ways of transmission and strong infectivity. in 2020, covid-19 outbreak broke out in europe and the united states. because these countries have adopted a negative policy to fight the epidemic-natural immunization, the virus spreads very fast, leading to a large-scale outbreak of the epidemic in these countries [2]. at present, covid-19 is spreading all over the world. since march 2020, the covid19 epidemic situation in china has tended to calm down, while the epidemic situation in foreign countries has become increasingly serious [3]. therefore, to find out the development characteristics and laws of the global epidemic situation, and accurately detect the transmission trend of covid-19 confirmed cases and suspected cases; give forecasts on the occurrence time, stopping time and final diagnosis scale of epidemic inflection point; formulate feasible prevention and control measures to reduce casualties and economic losses caused by the sudden outbreak of covid-19; this is essential to effectively control the global epidemic trend [4]. with the increasing number of international covid-19 infections, the pressure of epidemic prevention in china is increasing, and with the coming of autumn and winter, sporadic or clustered cases also appear in some areas of china [5]. at present, the work of searching for close contacts mainly depends on big data screening and registration screening of various units [6]. with the outbreak of china in 2019 to a large-scale global outbreak, many scholars have made forecasts and analyses. the basic mathematical model of infectious diseases is mainly to study the dynamics theory, transmission mode, spatial range and transmission speed of infectious diseases, so as to effectively prevent and control infectious diseases [7]. at present, covid-19 is spreading all over the world. many achievements have been made in the research and analysis of covid-19 epidemic spread trend through kinetic algorithm [8]. however, the latent patients of covid-19 have strong transmission ability, and the epidemic dynamics algorithm ignores the transmission risk caused by the latent patients. moreover, the current detection methods have not considered the containment effect of prevention and control measures and centralized treatment on epidemic situation [9-10]. multiple regression model is a commonly used statistical tool, which uses a set of independent variables to explain one or more dependent variables. multiple regression analysis allows us to evaluate the influence of one factor on the explained variables while keeping other factors unchanged. based on this, this paper predicts the epidemic trend of covid-19 based on multiple linear regression model. 2. covid-19 trend forecast model based on multiple linear regression model 2.1. model building the incubation time of covid-19 pathogen is evenly distributed with the infection time. the longer the incubation period, the stronger the infectivity. that is, the traditional algorithm thinks that people in the incubation period have no infectivity, but covid-19 has certain infectivity in the incubation period [11]. moreover, the algorithm is established without external intervention, and can't deal with the changes caused by management and control. therefore, this paper aims at improving this problem. in order to establish the related multiple linear regression model, the choice of explanatory variables is extremely critical. in communication, we usually use the relevant meaning of communication to select the variables that need to be explained. if the use requirements of quantitative communication are met, we should continue to test the significance of the variables in the model, so that the end of the goal stops at the purpose of explaining the variables [12-13]. in multiple regression analysis, the significance test of regression coefficient is to 66 test whether the linear relationship between each independent variable and dependent variable in the model is significant. the significance test is carried out by calculating the t-test value of each regression coefficient. in the traditional logistic function curve, p value can measure the speed of curve change; for covid-19, the p value in this function curve indicates the speed at which the epidemic reaches its peak. if the p value is large, the epidemic will soon reach its peak, indicating that a country has taken strong and effective measures during the epidemic. for example, the hospital is admitted quickly, centralized isolation, etc. on the contrary, it takes a long time for the epidemic to reach its peak. therefore, the value of p can measure the efficiency of a country's measures against the epidemic, the overall ability of the society to face the epidemic, and the attitude of the masses to the epidemic. in covid-19 trend forecast model based on multiple linear regression model, there may be multiple variables related to a certain variable y . studying the quantitative relationship between variable y and other variables is called multiple linear regression analysis. the mathematical model is: 𝑌𝛼 = 𝛽0 + 𝛽1𝑋𝛼1 + 𝛬𝛽𝑝𝑋𝛼𝑝 + 𝛽𝑋𝛼 + 𝜀𝛼 (1) 𝐸(𝜀𝛼) = 0, 𝐷(𝜀𝛼) = 𝜎2 (2) 𝛼 = 1,2, 𝛬, 𝑛 (3) 𝜀𝛼 are independent of each other, and the least square method is used to estimate parameter 𝛽 , and the multiple linear regression equation can be obtained: 𝑌 = 𝑏0 + 𝑏1𝑋1 + 𝑏2𝑋2 + 𝛬 + 𝑏𝑝𝑋𝑝 (4) the test methods of multiple regression model include: determination coefficient test (r test); regression coefficient significance test (t test); regression significance test (f test). in the multiple linear regression model, it comprehensively considers the factors that affect the spread of the epidemic, and selects the influencing factors according to the actual situation of the region as explanatory variables in the forecast model; according to the regression analysis, the factors of autocorrelation and multicollinearity are eliminated. then, the correlation coefficients between the influencing factors and the transmission quantity which conform to the model are obtained. then, the theory of communication is used to establish the forecast model, and the numerical values of each variable in the forecast model are determined by statistical software. finally, the data are sorted and substituted into the model to get the forecast results. the significance test of regression equation is to test whether there is a significant linear correlation between all independent variables as a whole and dependent variable. the significance test of multivariate regression equation is similar to that of univariate regression equation, so it will not be repeated here. the failure of the significance test of the regression equation may be due to the omission of important influencing factors in the selection of independent variables, or the nonlinear relationship between independent variables and dependent variables, so the forecast model should be re-established. 2.2. experimental analysis covid-19 trend forecast model includes all four kinds of people. all four kinds of participants in this model are considered, among which the infected person keeps infecting the susceptible person; the susceptible person becomes the infiltrator, the infiltrator can still infect the susceptible person, and the infiltrator has a certain probability of selfhealing; the infected person can recover after receiving treatment, and can't infect the disease again after recovery. as time goes by, everyone in this model will eventually become a convalescent. in order to verify the effectiveness of covid19 trend forecast model based on multiple linear regression model, this section carries out experiments. compared with the detection results of arima algorithm and original seir algorithm, the simulation platform is python, tensorflow framework and jupyternotebook. the given initial condition is that the conversion rate is 0.2. to ensure the rationality of the model, the following assumptions are made: all data sources are true and reliable, and there are no false reports. first of all, some of the crawled data did not conform to the actual situation of the overall epidemic forecast, so the data were cleaned and corrected. detailed cleaning rules are as follows: (1) the user selects a specific date, and the system feeds back the overall epidemic information data and data analysis of that date. (2) the user selects the map type, and the system feeds back the selected epidemic situation map information. (3) the user selects a specific city, and the system feeds back the epidemic information of the place and predicts the epidemic trend. in this paper, the reason for adding e to the model is that the contact infected person is not infected and the contact infected person is sick. however, due to the national isolation measures, the influence of isolation is considered, which reflects the importance of the national policy. secondly, the contact infected person is sick, and the infection rate is probable. in order to verify the fitting and detection effect of the algorithm, this paper divides the data into two parts: training set and testing set. the data of training set is used to train the algorithm, and the data of testing set is used to verify the accuracy of the algorithm and judge the detection effect of the algorithm. figure 1 shows the training results of the algorithm. figure 2 shows the forecast accuracy results of the algorithm. figure 1. training results of the algorithm figure 2. forecast accuracy results of the algorithm 67 the accuracy and effectiveness of the multiple regression model are obviously better than that of the single regression model. therefore, the multiple linear regression model constructed in this paper has a good effect in covid-19 trend forecast. this forecast model has good forecast and analysis ability in the early stage of epidemic outbreak, and its accuracy rate is high. by fitting the cumulative confirmed cases and the cumulative number of deaths, a good fitting result can be obtained. table 1 shows the comparison of experimental results of different algorithms. table 1. comparison of experimental results of different algorithms index arima seir paper algorithm optimum fitness value 0.9325 0.9235 0.9427 training error 11.025 13.142 8.956 forecast error 11.017 13.056 8.963 node connection number 8 10 14 it can be seen from table 1 that the trend of covid-19 can be predicted well by using the forecast model after training. the accuracy of the model is high, and the predicted results are in good agreement with the cumulative confirmed cases. 3. conclusions at present, covid-19 is spreading all over the world. understand the development characteristics and laws of the global epidemic situation, and accurately detect the transmission trend of covid-19 confirmed cases and suspected cases; give forecasts on the occurrence time, stopping time and final diagnosis scale of epidemic inflection point; formulate feasible prevention and control measures to reduce casualties and economic losses caused by the sudden outbreak of covid-19; this is essential to effectively control the development trend of the global epidemic. according to the spread characteristics of covid-19 epidemic, this paper first analyzes the multiple linear regression model, and then forecasts the epidemic trend of covid-19 based on the multiple linear regression model. the experimental results showed that when covid-19 broke out, the multiple linear regression model had a high accuracy, and its forecast results were in good agreement with the cumulative confirmed cases. the trained forecast model can predict the trend of covid19 well. this shows that this algorithm is more effective than other existing algorithms. in this paper, the multiple linear regression model was introduced into the epidemic trend forecast of covid-19, which solved the problem of epidemic trend forecast of covid-19. through the realization of this model, we can grasp the development and changes of epidemic situation in various regions in time in the management of epidemic prevention and control, prepare for epidemic prevention in advance through trend forecast, control epidemic situation in time and improve epidemic prevention effect. however, this forecast method also has some shortcomings. firstly, there may be some problems such as heteroscedasticity, autocorrelation and multicollinearity. secondly, it is not enough to directly predict the accuracy by using the empirical regression formula generated by regression analysis. it can only be used for macro reference in decision-making. the follow-up will continue to be discussed in depth. references [1] cui hengjian, hu tao. nonlinear regression method for forecasting epidemic situation in novel coronavirus [j]. china science, 2021(051-008). [2] lin tingkui, wu jiayuan, liu huafeng, et al. forecast and analysis of the epidemic situation in novel coronavirus in western guangdong and other prefecture-level cities-a study based on holt's two-parameter exponential smoothing model [j]. journal of practical cardiopulmonary vascular diseases, 2020, 28(2):5. [3] ding zhongxing, song wenyu, fang xinyu, et al. forecasting the epidemic trend of novel coronavirus in wuhan, hubei province based on seiaqr kinetic model [j]. china health statistics, 2020, 37(3):5. [4] zhang jinfang, niu xiaohong, ping weiwei, et al. analysis of the current situation of residents' quality of life and its influencing factors under the pressure of novel coronavirus epidemic [j]. china folk therapy, 2022, 30(3):4. [5] song ge, li xiaoshan, wang kewei. application of arima and svm combined model in novel coronavirus forecast [j]. chinese journal of nosocomiology, 2022, 32(1):5. [6] gong wuqing, peng houxue, chen jianguo, et al. analysis of the spatial distribution trend and related influencing factors of novel coronavirus prevalence in china [j]. harbin medicine, 2021, 41(1):4. [7] hong bin, chen jinxiu, wang liansheng, yu rongshan. analysis and forecast of novel coronavirus communication trend based on seir-lstm mixed model [j]. journal of xiamen university: natural science edition, 2020, 59(6):7. [8] li zhongqi, tao bilin, zhan mengyao, et al. comparative study on the effect of time series model applied to the forecast of epidemic situation in novel coronavirus [j]. chinese journal of epidemiology, 2021, 42(3):6. [9] kang guanlong, liu bingxiang. novel coronavirus forecast analysis based on sir model [j]. china-arab science and technology forum (chinese and english), 2020, 000(006):p.151-153. [10] zhong deyan, chen lihua, wu ronghuo. novel coronavirus (covid-19) epidemic forecast-based on residual autoregressive model [j]. neijiang science and technology, 2021, 42(5):2. [11] dai jiya, guo runing, liu guoheng. analysis of the epidemic trend in novel coronavirus based on joinpoint regression model [j]. journal of tropical medicine, 2020, 20(10):5. [12] liu zhongdian, li yanning. forecast of epidemic situation in novel coronavirus, guangxi based on arima model [j]. journal of guangxi medical university, 2021, 38(12):23672371. [13] cai jie, jia haoyuan, wang ke. based on seir model, the development trend of novel coronavirus epidemic in wuhan was predicted [j]. shandong medicine, 2020(6):1-4. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 3, 2023 22 research on network intrusion detection based on transformer gang gan, weiju kong school of cyberspace security, chengdu university of information technology, chengdu 610225, china. abstract: with the advancement of technology, the development of various industries has become inseparable from informatization. people's lives have become closely related to the network. while using the network to facilitate our lives, massive data is also generated. traditional firewall technologies are no longer sufficient to meet current needs. deep learning algorithms can establish complex mapping relationships between network data, and can extract hidden correlation features between data features to achieve data recognition and prediction. therefore, this paper introduces transformer and bidirectional long short-term memory (bilstm) into the field of intrusion detection, and proposes an intrusion detection method based on the combination of transformer-encoder and bilstm (tbl). deep neural networks (dnn) are used to further extract data features, and the softmax function is used to output classification results. in order to verify the effectiveness of this method, this paper trains and tests the tbl method on the nsl-kdd dataset, and verifies its feasibility and superiority. keywords: intrusion detection; deep learning, transformer; bidirectional long short-term memory. 1. introduction as a network defense system that can identify network attack behaviors and recognize and alert against them, intrusion detection system (ids) has become increasingly important in recent years. artificial intelligence has made significant breakthroughs in many fields, especially in data recognition and classification, where neural networks with their powerful feature extraction and learning capabilities can efficiently identify and classify massive amounts of data in networks. researchers at home and abroad are studying the most effective learning models in different scenarios, but few have studied how to apply neural networks to network intrusion detection. therefore, defending against network attacks is of great significance for national security, enterprise development, and personal privacy protection. today, with the rapid development of network technology, traditional intrusion detection techniques have gradually become ineffective, and developing new network intrusion detection models has become a top priority. building an intrusion detection system based on deep learning has both theoretical research value and practical application value. this paper proposes an intrusion detection method that combines entity embedding and transformer, using attention mechanisms to identify and classify attack behaviors in network traffic to achieve the goal of protecting important information. the nsl-kdd dataset is used to validate the performance of the model, and the experimental results show that the model has good detection performance. yang l's team [1,2] proposed the application of convolutional neural networks to network intrusion detection algorithms, and the experimental results showed that the method not only has generalization but also improves the convergence speed of the model. xiao y's team [3,4] proposed a simplified residual network algorithm to reduce the complexity of the network and prevent the problem of model overfitting. the algorithm further simplifies the original residual algorithm by deleting one weight layer and two batch normalization layers. although some progress has been made in preventing overfitting, the detection results for new types of network attacks are not ideal. yu's team [5,6] proposed a bilstm (bidirectional long short-term memory) intrusion detection model, which can capture key information in the feature information to complete the detection of abnormal data. although it fully learns the temporal information of attack behavior, it did not consider the impact of historical information, but still provides a new idea for intrusion detection. research experiments have shown that the imbalance of a dataset has a significant impact on the final training results of a model. imbalanced data can result in a higher proportion of minority class samples in the dataset, which can significantly affect the accuracy of the model's predictions. some scholars have begun researching the issue of data balancing. the bedi [7] team used siamese neural networks (siamese-nn) to address the issue of class imbalance in datasets. while this method has made some progress in detecting minority class anomalies, its precision still needs improvement. li chuan [8] proposed using generative adversarial networks (gans) to expand the number of minority class samples in the data, comparing the expanded data with the original data, and subsequently conducting comparative experiments on the original and expanded data using cnns. the experimental results showed that gans were effective in expanding the dataset. the fu [9] team used an adaptive synthetic sampling algorithm to expand the number of minority class samples to address the issue of data imbalance, but this method produced a large amount of noise data due to the influence of surrounding data, ultimately negatively impacting the model's performance. 2. transformer_bilstm 2.1. model architecture the model in this paper first preprocesses the initial data and inputs the processed data into the transformer module to establish connections between different features, and extracts richer feature information through multi-head attention. then, the data is input into a bi-lstm neural network to obtain the connection between the previous and next features to retain 23 its temporal information. finally, features are further extracted through dnn and classified and recognized using a softmax classifier to obtain the results. figure 1. tbl intrusion detection model 2.2. transformer-encoder the original transformer model is divided into two parts: the encoder and the decoder. in this chapter, we only used the encoder module of the transformer model and made some adjustments. the encoder is composed of multiple stacked encoders, each of which includes a multi-head attention mechanism, a feedforward neural network, and a residual network. to increase training speed and save time, the attention mechanism uses dot-product attention that can be computed in parallel, with the specific formula shown in equation (1). attention(q,k,v)=softmax( q∙kt √dk )∙v (1) the feedforward neural network has only one hidden layer, which is a perceptron with the same input and output dimensions. since a single hidden-layer network has weak non-linear mapping ability, and considering the balance between computational complexity and mapping ability, the number of hidden layer neurons is set to twice the number of input layer neurons in this paper [10,11]. the activation function relu is used. the structure of the entire transformer-encoder module is shown in figure 2. figure 2. transfirmer-encoder 2.3. bilstm the long short-term memory (lstm) neural network is a type of recurrent neural network (rnn) that solves the problem of long-range information loss in long sequences. it is used for processing time-series information and addresses the issues of gradient explosion and vanishing in rnn structures. it is capable of memorizing valuable information while discarding redundant memories [12]. the bidirectional lstm consists of a forward lstm and a backward lstm, which combine to contain all the information from both directions. its structure is shown in figure 3. figure 3. bilstm the input layer, input, takes the input data and feeds it into both the forward network, forward, and the backward network, backward [13,14]. the outputs from these networks are concatenated and represented as follows: hi=[hi ⃗⃗ , hi ⃖⃗ ⃗] (2) here, hi represents the final result obtained by concatenating the outputs of the forward and backward networks for the i-th input, where i ranges from 1 to n, where n is the total number of input data. 2.4. dnn dnns are generally classified based on the different layers, which can be divided into three categories: input layer, hidden layer, and output layer. typically, the first layer is the input layer, the last layer is the output layer, and all layers in between are hidden layers. the network structure of dnn is shown in figure 4. figure 4. dnn the general calculation formula (3) for dnn is as follows: f(x)= σ(wx+b) (3) 3. results and analysis 3.1. environment the intrusion detection model based on tbl uses a windows operating system, an intel(r) core (tm) i7-11700h cpu @ 2.50ghz processor, and 16gb of memory. the model training is accelerated using the nivdia geforce rtx 3060ti gpu, and the programming tools used are pytorch, cuda11.0, and python 3.6. 3.2. dataset the dataset used in this article's experiments is the nslkdd dataset, which is a subset of the classic kdd99 dataset with an additional feature. to avoid the classifier being biased towards frequent records and to ensure accurate detection, the nsl-kdd dataset removes a large amount of redundant and duplicated data from the kdd99 dataset and reasonably splits it into training and testing sets. 24 each record in the nsl-kdd dataset contains 43 features, where the first 41 features represent the traffic itself, the 42nd feature is the label indicating whether the record is normal or an attack behavior, and the 43rd feature is an additional feature added by nsl-kdd on the kdd99 dataset, representing the difficulty score of detecting the record. the dataset contains a total of 5 classes of data, including 4 types of attack and 1 type of normal data. the four types of attack are: dos, probe, u2r, r2l. these 4 types of attacks are further divided into 38 attack methods, with 22 types of attacks included in the training set and the remaining attack types included in the testing set. the generalization ability of the model is evaluated by testing whether it can detect unknown attack types in the testing set. the division of attack types in the training and testing sets is shown in table 1. table 1. division of attack types in subsets type attack types in the training set attack types in the test set dos back, land, neptune, pod, smurf, teardrop apache2, mailbomp, processtable, udpstorm, worm probe ipsweep, nmap, portsweep, satan mscan, saint u2r buffer_overflow, loadmodule, perl, rootkit ps, sqlattack, xterm r2l ftp_write, guess_passwd, imap, multihop, phf, spy, warezmaster named, httpummel, sendmail, snmpgetattac, snmpguess, xlock, snaoop the nsl-kdd dataset is divided into four subsets: kddtest+, kddtest-21, kddtrain+, and kddtrain+20%. kddtest-21 is a subset of kddtest+ that removes data with the 43rd feature equal to 21, which represents easily detectable intrusion data. therefore, the kddtest-21 dataset consists of difficult-to-detect traffic data. kddtrain+20% is a subset of kddtrain+ with only 20% of its data. table 2 shows the number of instances and the proportion of each data type in each subset of the nsl-kdd dataset. table 2. quantity and proportion of various types of data in the data set dataset normal dos probe u2r r2l kddtrain 13449 9834 2289 11 209 kddtrain+20% 67343 45927 11656 52 995 kddtest++ 9711 7460 2421 67 2885 kddtest-21 2152 4342 2402 200 2754 3.3. performance metrics in the field of intrusion detection, normal traffic samples are usually referred to as negative samples, while samples of attack types are referred to as positive samples. there are four possible outcomes for all samples that are detected: (1) true positive (tp): actual attack samples that are correctly identified as attack samples. (2) false positive (fp): actual normal samples that are incorrectly identified as attack samples, also known as false alarms. (3) true negative (tn): actual normal samples that are correctly identified as normal samples. (4) false negative (fn): actual attack samples that are incorrectly identified as normal samples, also known as misses. there are four evaluation metrics for intrusion detection, as follows: (1) accuracy (acc) represents the proportion of successfully detected samples to the total samples. a higher value indicates a better model. its calculation formula is as follows: accuracy(acc)= tp+tn tp+tn+fp+fn (4) (2) precision represents the proportion of actual attack samples among all samples that are detected as attack by the model. a higher value indicates better performance in detecting attack behaviors. its formula is: precision= tp tp+fp (5) (3) recall represents the proportion of samples identified as attack type among all attack samples in the dataset. a higher value indicates better performance of the model. its formula is: recall= tp tp+fn (6) (4) the f1-score is a comprehensive evaluation of precision and recall, with a maximum value of 1 and a minimum value of 0. a higher value indicates a better model performance. its formula is: f1score= 2×precision×recall precision+recall (7) 3.4. parameter settings the parameter settings for the intrusion detection model based on tbl are shown in table 3: table 3. model parameters parameters value iterations 100 batch size 2000 attention heads 4 feedforward hidden nodes 64 bilstm hidden nodes 64 learning rate 0.0001 loss rate 0.3 3.5. analysis of results the detection accuracy of the intrusion detection models based on the commonly used machine learning algorithms svm and random forest (rf), as well as the commonly used deep learning network models transformer and lstm, were compared in experimental tests, as shown in figure 5. figure 5. loss value kddtest+ dataset, and it can be seen from the comparison in the figure that the tbl method designed in this chapter has a significant advantage over other methods, with an accuracy of 94.3%. therefore, the methods discussed in this chapter are feasible. 25 figure 6. accuracy figure 6 compares the five-class precision of different models on the kddtest+ dataset. the data from the graph shows that the tbl-based intrusion detection method designed in this chapter has certain advantages in detecting the attack types probe, r2l, and u2r, with precision rates of 94.2%, 92.6%, and 98.8%, respectively. however, the performance of this method in detecting normal and dos types of data is not as good as that of the transformer-based intrusion detection method. the method designed in this chapter has a detection effect on normal data that is lower than the best by 1.6% and a detection effect on dos type data that is lower than the best by 2.0%. overall, the method designed in this chapter is still effective. figure 7. recall figure 7 shows the recall rate of different methods in detecting the kddtest+ dataset, which mainly expresses the probability that each type of data can be correctly distinguished in different types of data. from the figure, it can be seen that for normal type data, the recall rate of the rf method is the highest at 95.8%, but the rf model's recall rate for probe, r2l, and u2r type data is not good. the tblbased intrusion detection method designed in this chapter has improved the recall rate on normal and dos type data by 2.1% and 5.8%, respectively, compared to the transformer-based intrusion detection method. however, the recall rate of the tbl model in detecting probe, r2l, and u2r type data is slightly lower than that of the transformer model. the tbl model proposed in this chapter is an attempt in the field of intrusion detection. comparing the precision and recall rates can show that this model has certain effects and provides a new direction for intrusion detection based on transformer. to provide a more intuitive comparison of the performance of different models, the f1 values were compared to evaluate the overall performance of the models. the f1 values of each model are shown in the following figure 8. figure 8. f1 the f1 score is generally an important indicator for overall performance comparison of models. the f1 score comparison of different models for each data type is shown in figure 8. from the figure, it can be seen that the tbl model proposed in this paper has an overall advantage and achieved 91.1%, 90.4%, 95.87%, 94.94%, and 99.2% for the five different types of data, respectively. this indicates that the tbl-based intrusion detection method proposed in this chapter is worth studying. 4. conclusion with the advancement of technology, the development of various industries has become inseparable from information technology. people's lives have become closely related to the internet, and while the network facilitates our lives, it also generates massive amounts of data, including sensitive data involving personal privacy. once such data is leaked, the resulting losses are incalculable. therefore, network security issues have received increasing attention. with the complexity and diversity of attack methods, traditional firewall technologies can no longer meet the current security needs. in contrast, intrusion detection methods based on deep learning can automatically discover hidden associations in traffic data, solve the problem of manual feature selection in traditional methods, and can better identify unknown attack types and adapt to the heterogeneous network traffic data and rapidly changing attack patterns, which can meet the needs of protecting against the endless stream of attack methods in the current network environment. therefore, combining intrusion detection systems with deep learning has become a new goal for researchers in the intrusion detection field. based on an understanding of existing deep learning-based intrusion detection methods, particularly the problems of using a single model in intrusion detection methods, this paper analyzes and proposes a novel composite model-based intrusion detection method and applies it to the intrusion detection field, verifying its feasibility and effectiveness through experiments. references [1] yang l, shami a. a transfer learning and optimized cnn based intrusion detection system for internet of vehicles[j]. arxiv preprint arxiv:2201.11812, 2022. [2] xiao y, xiao x. an intrusion detection system based on a simplified residual network[j]. information,2019, 10(11): 356. [3] yu y, liu g, yan h, et al. attention-based bilstm model for anomalous http traffic detection[c]//2018 15th international conference on service systems and service management, 2018: 1-6. [4] bedi p, gupta n, jindal v. siam-ids: handling class imbalance problem in intrusion detection systems using siamese neural network[j].procedia computer science, 2020, 171: 780-789. 26 [5] li chuan. research and implementation of intrusion detection based on generative adversarial networks [d]. north china electric power university (beijing),2022.doi:10.27140 /d.cnki.ghbbu. 2022.000269. [6] fu y, du y, cao z, et al. a deep learning model for network intrusion detection with imbalanced data[j]. electronics, 2022, 11(6): 898. [7] staudemeyer r c .applying long short-term memory recurrent neural networks to intrusion detection[j]. south african computer journal, 2015,(1):136-154. [8] volodymyr mnih,nicolas heess,alex graves,koray kavukcuoglu. recurrent models of visual attention. arxiv. preprint arxiv:1406.6247v1.2014. [9] mhaskar h n, micchelli c a. how to choose an activation function[j].advances in neural information processing systems,1994: 319-326. [10] he k, zhang x, ren s , et al. identity mappings in deep residual networks[c]// european conference on computer vision. springer, cham, 2016. [11] luong m t, pham h, manning c d. effective approaches to attention-based neural machine translation[j]. arxiv preprint arxiv:1508.04025, 2015. [12] mnih v, heess n, graves a. recurrent models of visual attention[j]. advances in neural information processing systems, 2014, 27. [13] olanow c w , koller w c . an algorithm (decision tree) for the management of parkinson's disease: treatment guidelines[j]. neurology, 1998, 50(3 suppl 3):s1. [14] alrawashdeh k , purdy c . toward an online anomaly intrusion detection systen based on deep learning[c].//2016 15th ieee international conference on machine learning and applications(icmla).ieee,2016. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 3, 2023 27 research on logistics route optimization based on afsa ruxue luo 1, 2 1 graduate university of mongolia, ulaanbaatar 999097, mongolia 2 zhanjiang university of science and technology, zhanjiang 524094, china abstract: based on the characteristics of logistics goods, in the process of logistics to choose a reasonable or optimal path, will save more logistics costs. in the process of using artificial fish swarm algorithm to find the optimal path planning, through the artificial fish swarm algorithm to improve the visual range, congestion factor and other factors, and record and mark the feasible solution, the target point of the fish swarm trajectory, form the feasible solution of the path planning and select the best solution, to achieve the optimal logistics path, reduce the cost of goods logistics. keywords: logistics; route optimization; artificial fish swarm algorithm. 1. introduction logistics is the most important link of products. the optimal logistics path is not only conducive to protecting the fast delivery of goods and reducing losses, but also saves costs for goods. through the path planning can achieve the shortest time and distance, the minimum cost and effective obstacle avoidance performance, it is also a key component of the navigation system. from the initial state to the target state process, to find an optimal or near optimal path to avoid obstacles in the working space. aiming at the obstacle avoidance path planning problem of mobile robots, liu ningning et [2] al. studied the obstacle avoidance path of mobile robots with improved gray wolf optimization algorithm on the basis of the basic swarm intelligent algorithm. li qing et al. proposed a global path planning strategy for mobile robots based on convergence preserving particle swarm optimization algorithm, which provides a solution for mobile robots to find a shortest path to avoid obstacles in a limited time. jiang ming et al. proposed a twopopulation evolutionary strategy of improved genetic algorithm based on fixed length binary path coding to achieve global path optimization. guo wei et al. proposed an improved artificial fish swarm algorithm (iafsa) and a path planning method based on maklink graph to achieve the global optimal path for mobile robots in a static twodimensional environment. tharwat a et al. realized intelligent bezier curve path optimization planning based on chaotic particle swarm optimization algorithm. zhao xiao et al. proposed an improved a* algorithm to solve the problems of a* pathfinding algorithm in large scenes, such as high memory cost and long computing time. artificial fish swarm algorithm (afsa) is a new swarm intelligent optimization algorithm that simulates the clustering, random walking, foraging and rear-following behaviors of fish. it has the advantages of fast optimization speed, strong global optimization ability and simple implementation. however, some factors, such as global and local optimal interference, scope of vision and congestion factor, also affect the optimal path. in this study, from the perspective of logistics cost, afsa was improved to explore the realization of logistics path planning optimization of electroplating products. 2. problem description (1) problem description and basic assumptions. logistics route planning from the perspective of logistics cost, planning the optimal distribution route of electroplating products. assume that the logistics transportation is the head fish in a school of fish and the formation of the school of fish to find the optimal logistics route. (2) algorithmic steps. route planning of electroplating products is carried out based on afsa. in the planning process, there is no crossing or collision for obstacles. afsa simulates fish foraging, clustering, rear-ending and random behavior. 3. parameter and model establishment (1) parameter description fish school size: n; range of sight: (is the minimum value of visual range, is the maximum value of visual range); min maxvisual( ) minvisual maxvisual crowding factor: (represents  the number of artificial fish allowed to be accommodated within a unit volume to prevent artificial fish from having local extreme value points), between the value range;  (0,1) maximum number of attempt steps: _try number crowding factor; min max( ) number of iterations: t ; maximum number of iterations: tm ; adjust parameters: m . (2) model establishment due to the global optimal solution and suboptimal solution curve interference problem, the probability of the optimal route planning of afsa is, and the probability of the optimal route is low. 𝑝 = 1 2𝑛 , 𝑛 = 1,2,3, . . .. in order to achieve the optimal afsa route planning, when the fish swarm finds the target point, the track of the fish swarm at the target point is 28 recorded, and the feasible solution of the path planning is formed. in the feasible solution, the shortest path is selected as the best. in afsa, the visual range is small, and the search in a small range is more detailed, which is beneficial to the convergence rate, but it is easy to fall into the local optimal. on the contrary, the wider detection range of fish swarm is conducive to rearend pursuit and clustering behavior, but it has an important influence on the algorithm stability. therefore, the visual function of exponential function is proposed to adjust the visual field and give the visual range a range selection, that is, large range search in the early stage and small range meticulous search in the late stage, so as to improve the search accuracy and convergence speed. the algorithm is also easy to implement. min max min( / ) 1/ (1 ( / ))t visual visual visual visual m t m    =   = +  (1) considering the search ability and convergence speed of the algorithm, the improved crowding factor function is: { 𝛿(𝑘 + 1) = 𝑑𝑒𝑙 × 𝛿 𝑑𝑒𝑙 = (1 − 𝑡 𝑚𝑡 )(𝛿𝑚𝑎𝑥𝑚𝑖𝑛){ (2) 4. matlab simulation examples cargo logistics path optimization example parameter setting, n=60, 𝑣𝑖𝑠𝑢𝑎𝑙 = 15 . 𝛿 = 0.618𝑡𝑟𝑦_𝑛𝑢𝑚𝑏𝑒𝑟 = 17𝑀𝑡 = 110 the traditional algorithm was defined as afsa1, and matlab simulation was used to obtain the path image as shown in figure 1 and iteration as shown in figure 2. figure 1. path diagram figure 2. iteration diagram in the feasible solution, the optimization algorithm to improve the visual range function and the congestion factor function is afsa2. using matlab simulation, the path image is shown in figure 3 and the iteration is shown in figure 4. figure 3. path diagram figure 4. iteration diagram the above two algorithms take 60 groups of random initial values for the experiment, recording the shortest and longest path. the path planning results show that afsa2 optimizes the path, as shown in table 1. table 1. comparison table of optimization results model shortest path longest path average t/s afsa1 73.1 83.9 78.5 63.4 afsa2 71.0 75.0 73 62.5 figure 1, figure 3 and comparison table 1 show that traditional afsa1 path planning is prone to be unreasonable, with many recorded values crossing obstacles. however, if visual range parameters and crowding factor are fixed values like traditional artificial fish swarm algorithm, the path cannot be optimized. by adding improved visual range function and congestion factor function to the feasible solution recording method, afsa2 can effectively adjust itself with the number of iterations, avoid global and local curve interference, and obtain the optimal and stable logistics path. 29 5. epilogue by using the afsa improvement method, it can be seen from the results in table 1 that the improved planned goods path is shorter, the planned goods path is reasonable and optimized, and the logistics cost will be less, which indicates that the cost of goods logistics can be reduced through route optimization. acknowledgment fund project: zhanjiang university of science and technology brand promotion project: ppjhkcz-2022278, zhanjiang university of science and technology featured major project: engineering management major. references [1] zhu daqi, yan mingzhong. [2010].review of path planning technology for mobile robot. control and decision, 25(07), 961-967. [2] li qing, xu yinmei, zhang dezheng, yin yixin. [2010]. global path planning strategy for mobile robot based on particle swarm optimization.journal of university of science and technology beijing, 32(3), 397-402. [3] jiang ming, wang heng, zhang hua, xie xingzhe. [2011].application of improved genetic algorithm in global path planning of mobile robot. computer applications and software. (08), 113-116. [4] guo wei, qin guoxuan, wang lei, sun rijie.[2019].robot path planning based on improved artificial fish swarm algorithm and maklink graph. control and decision.(6),18. [5] tharwat a, elhoseny m, hassanien a, gabel t, kumar a.[2018].intelligent bezier curve-based path planning model using chaotic particle swarm optimization algorithm[j].cluster computing, 3,1-22. [6] zhao xiao, wang zheng, huang chengkan, zhao yanwei.[2018].path planning of mobile robot based on improved a* algorithm. robot, (06),903-910. [7] wang hui, huang yiqing, liu xiaofeng.[2019].path planning of mobile robot based on detection operator experiential learning fish swarm algorithm. journal of anhui institute of technology,34(01),13-20. [8] chen t b, zhang p, gao s , zhang q s.[2018].research on the dynamic target distribution path planning in logistics system based on improved artificial potential field method-fish swarm algorithm[c]. 2018 chinese control and decision conference (ccdc). shenyang: ieee,7,4388-4391. [9] zhang mingxing, wang peng, bai yanping, hou yuchao.[2019].array signal doa estimation based on iafsa-music algorithm. mathematics in practice and cognition, 49 (22) ,163-170. [10] yu zhuoxi, jin yujia.[2018].parameter estimation of regression model based on improved artificial fish swarm algorithm. statistics and decision,34(22),75-77. [11] luo ruxue, chen miaona, lin jican. [2020] path planning of robot based on improved artificial fish swarm algorithm. science technology and engineering,20(23),9455-9449. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 101 research on aluminum defect classification algorithm based on deep learning with attention mechanism wen zhang, shibao sun, huanjing yang college of information engineering, henan university of science and technology, luoyang 471000, china abstract: product quality is an important indicator for determining the quality of industrial products. defects on the surface of aluminum profiles are inevitably caused in the actual production process due to the influence of various factors such as environment and equipment, and these defects seriously affect the quality of aluminum profiles. the focus and difficulty of research have shifted to how to quickly and accurately identify and classify surface defects in aluminum profiles. to address this issue, this paper proposes an aluminum defect classification algorithm that uses an attention mechanism in conjunction with the traditional inception v4 network model for deep learning image classification, to accurately identify and classify aluminum defect areas. experiments and comparative analysis are performed on the aluminum defect recognition dataset from the alias tianchi platform, and the results show that the algorithm with the addition of the attention mechanism improves accuracy by 1.24% over the original model. keywords: deep learning; defect classification; attention mechanism; inception v4. 1. introduction with the development of the industrial manufacturing field in the world, china has become a major manufacturing country with a large number of industrial products to be produced every day. with the increasing demand, the quality of industrial products is becoming more and more demanding, however, no matter the process of production or transportation, there is no way to avoid the defects on the surface of the products [1]. for example, due to the complexity of the production environment and the limitations of the processing equipment, the surface of aluminum profiles, as a basic material in industrial manufacturing, is prone to cracks, abrasions, peeling, pits, scratches, miscellaneous colors, dirty spots, and other defects during production and transportation, which can seriously affect the quality of aluminum profiles [2]. therefore, it is important to automate the classification and identification of defects in aluminum profiles. the existing defect recognition classification methods are the manual recognition method, single mechanism recognition method, infrared recognition method, magnetic particle recognition method, eddy current recognition method, magnetic leakage recognition method, machine vision recognition method [3-7], and other seven methods. however, the first six methods mentioned above have the shortcomings of low efficiency and accuracy due to the limitation of the principle. among the methods of machine learning recognition, such as support vector machines and decision trees are based on manual to feature extraction and classification of defects, which can only learn some low-level features and cannot learn detailed abstract high-level features [8], and the accuracy rate is low in the recognition and classification of subtle defects. with the development of deep learning, convolutional neural networks (cnns) are widely used in image classification, target detection [9-10], speech recognition, and intelligent robotics [11], etc. convolutional neural networks (cnns) extract features differently from manual extraction, but learn features and extract them from the data itself, with better results and greater robustness. shanshan xu et al [12] implemented wood defect recognition classification by convolutional neural network and this method does not require complex pre-processing of images and can recognize many kinds of wood defects with high correct rate and efficiency. liu, meng ke et al [13] achieved the classification of track surface defects recognition by the convolutional neural network, which solved the problem that traditional machine vision recognition technology relies on manual experience. zhiyang wu et al [14] proposed a convolutional neural network-based monochrome fabric defect recognition algorithm for the problem of high leakage rate and low efficiency of manual recognition of fabric defects in fabric production enterprises, and the experimental results showed that this method could achieve high accuracy and speed. tian wang et al. [15] proposed a convolutional neural network to automatically extract features to distinguish between defectfree and defective images for product quality control. gui zhong fu et al. [16] proposed a deep learning-based approach through a compact and effective convolutional neural network model that emphasizes the training of low-level features and incorporates multiple sensory fields. however, due to the uneven distribution of surface defects of aluminum profiles and the fact that aluminum profile defects belong to small target information, the defect classification using only the above-mentioned deep convolutional neural network method is easy to ignore some detailed information, especially when some defects on the surface of aluminum profiles are small and easy to classify inaccurately, which leads to poor results. therefore, this paper focuses on the current practical problem of classifying aluminum surface defects by selecting the classical deep learning network classification model inception v4 and adding the attention mechanism scse module to its model for fusion, which makes the network model learning easier to capture the local key information on feature map channels and space and suppress irrelevant information, to further improve the accuracy of the model in classifying aluminum defects. 102 2. related work 2.1. inception v4 network for convolutional neural networks, an effective way to obtain efficient network performance is to increase the breadth and depth of the network, but the blind increase will lead to a dramatic increase in network parameters, which can easily cause overfitting [17].googlenet [18] inception v1 was proposed by the google team in 2014 and won first place in that year's imagenet competition classification task won the first place. he was the first to propose the inception structure based on lenet-5. the core of inception is to use convolutional kernels of different sizes, which makes the existence of different sizes of perceptual fields, and finally, achieve the fusion of different scale features by stitching. the effect is to increase the depth and width of the network while also reducing the number of parameters. different versions of inception v2-v4 [19-21] have emerged based on this network with continuous optimization. in this paper, we use the inception v4 network as the main architecture, and the network principle of inception v4 is described in detail below. the network is composed of a stem module, inception-a module, inception-b module, inception-c module, reduction-a module, and reduction-b module. each module is highly tunable. the width and depth of the network are increased without increasing the network parameters, thus increasing the accuracy and not overfitting. the network structure is shown in figure 1. input(229×229×3) stem 4×inception-a reduction-a 7×inception-b reduction-b 3×inception-c average pooling dropout softmax figure 1. inception v4 structure diagram 2.2. scse attention mechanism the attention mechanism mimics the study of human brain vision, which has access to a large amount of information from the outside world at anytime and anywhere, and from a large amount of information, quickly locates relatively important information and ignores irrelevant information [22]. therefore, it is important to introduce the attention mechanism into deep learning networks to achieve similar functions in defect recognition classification. the scse module is based on the evolution of the se module in senet [23]. three variants of the se module of royag et al [24], namely, the cse channel compression spatial excitation module, the sse spatial compression channel excitation module, and the scse module formed by combining the cse and sse modules in parallel. and it is experimentally demonstrated that such a module can enhance meaningful features and suppress useless features. the main idea proposed by the cse module is shown in figure 2, firstly the input feature mapu=[u1, u2,...,uc], each channel ui( 𝑢𝑖 ∈ ℝ𝐻×𝑊 ) , u obtains the vector z( 𝑧 ∈ 𝑅𝐻×𝑊 )after passing through the global pooling layer (gap).the value at the k-th channel can be expressed as: 𝑧𝑘 = 1 𝐻×𝑊 ∑ ∑ 𝑢𝑘 𝑊 𝑗 𝐻 𝑖 (𝑖, 𝑗) (1) where h, w is the size of the feature map,c is the number of channels, (i,j) is the coordinate on the feature map.then the vector is fully connected twice, w1,w2 are the weights of the fully connected layer, and then the process of relu function enhances the independence between each channel and sigmoid normalization to obtain𝜎(𝑧 ∧ ),where the 𝑧 ∧ value can be expressed as: 𝑧 ∧ = 𝑊1(𝛿(𝑊2𝑧)) (2) finally, it is multiplied with the unprocessed feature information of the original channel to obtain the calibrated feature map. in this way, the information within the unimportant channels will be reduced and suppressed, while the information within the important channels will remain almost unchanged and the disguised phase is enhanced. the whole process can be expressed as: 𝑈 ∧ cse = 𝐹𝑐𝑆𝐸(𝑈) = [𝜎(𝑧1 ∧ )𝑢1, 𝜎(𝑧 ∧ 2)𝑢2,. . . , 𝜎(𝑧 ∧ 𝐶)𝑢𝐶] (3) w h c u z 11 2 c 11 c 2 c ( )• c c  z( )  u cse channel-wise recalibrate  * * relu figure 2. channel attention mechanism (2) the main idea of sse module is shown in figure 3, sse is a variant on the basis of cse, cse to improve the ability of important channel feature information of the network by compressing spatial information, then, in turn, it can also compress channel information to improve the ability of important spatial feature information of the network, so sse was born. for the input feature map u=[u1 ,1 ,u1 ,2 ,..., ui, j ,..., uh ,w] (ui, j∈ ℝ1×1×𝑐),h,w are the dimensions of the feature map respectively,(i,j) is the spatial location of the feature map, the vector q is obtained by squeezing the feature information of the space through a 1×1 convolution with a channel number of 1. the vector q can be expressed as: 103 q=𝑊sq ∗ 𝑈 (4) where 𝑊sq ∈ ℝ1∗1∗c*1, the obtained feature map q is then normalized by the sigmod function to obtain( (·)), which corresponds to the spatial feature information of the (i,j) pixel points in the feature map respectively, and finally weighted with the input original feature map.the whole process can be expressed as: 𝑈 ∧ sse = 𝐹𝑠𝑆𝐸(𝑈) = [𝜎(𝑞1,1)𝑢 1,1, . . . , 𝜎(𝑞𝑖,𝑗)𝑢 𝑖,𝑗 , . . . , 𝜎(𝑞𝐻,𝑊)𝑢 𝐻,𝑊] (5) w c u  u sse spatially recalibrate  (q) 11 1 h w h * ( )• figure 3. spatial attention mechanism (sse) (3) the main idea proposed by the scse module is shown in figure 4, which is a tandem of the cse and sse modules, and the feature extraction is carried out separately by both the channel and space of the feature map, and then the weighted summation is obtained after the feature map information obtained is more specific and targeted, making the final extracted feature information also more focused. its formula can be expressed as: 𝑈𝑠𝑐𝑆𝐸 = 𝑈𝑐𝑆𝐸 + 𝑈𝑠𝑆𝐸 (6) w c u h  u cse  usse  u scse figure 4. channel-space attention mechanism (scse) 3. method the difficulty of classifying aluminum defects lies in the inconsistent shape of the surface defects and the difference in size. for the surface defects of aluminum are very small and some small scratches, this paper incorporates the attention mechanism scse module in the module of inception v4 network model to pay more attention to these regions of interest, extract more important feature information for learning and then improve the accuracy of the model classification. the structure diagram of the improved algorithm is shown in figure 5. input(229×229×3) stem 4×inception-a reduction-a 7×inception-b reduction-b 3×inception-c average pooling dropout softmax scse模块 scse模块 scse模块 figure 5. inception v4-scse structure diagram inception v4 investigates two modules, the inception module and reduction module, the attention module scse is added to inception-a, inception-b, and inception-c modules respectively for fusion, but the number of parameters thus generated does not affect the network training time and the real-time demand for classification of aluminum defects. the inception module is added to increase the width and depth of the network to obtain more feature information, and the reduction module is added to reduce the computational effort. the reduction module was added to reduce the computational effort. the algorithm in this paper uses the cross-entropy loss function commonly used in classification problems in the network training process, its formula can be expressed as: 𝐿 = − 1 𝑁 ∑ (𝑦(𝑖) 𝑙𝑜𝑔 𝑦 ∧ (𝑖) + (1 − 𝑦(𝑖)) 𝑙𝑜𝑔( 1 − 𝑦(𝑖))) 𝑁 𝑖=1 (7) where n denotes the size of the number of samples, and i denotes the i-th sample,𝑦(𝑖) is the true value,𝑦 ∧ (𝑖) is the predicted value. 4. experimental analysis 4.1. datasets this paper uses a dataset from the 2018 guangdong industrial smart manufacturing big data innovation competition aluminum profile surface defect recognition dataset, which is hosted by alicloud tianchi. the dataset contains no defect samples and ten categories of defect samples (divided into non-conductive, scuffed, cross-strip pressure dent, orange peel, bottom leakage, bruise, pit, convex powder, cracked coating, and dirty spot). the 104 following are images of the ten categories of defect samples, respectively, as shown in figure 6. figure 6. pictures of aluminum defect categories 4.2. evaluation criteria the experiments in this paper belong to a classification task, so the common criteria of classification, accuracy, precision and recall, are used to evaluate the performance of the algorithm. first of all, the concepts of tp, tn, fp, and fn are concerned. tp is predicted as a positive sample and predicted correctly, tn is predicted as a negative sample and predicted correctly, fp is classified (predicted) as the actual negative sample as a positive sample, and fn is classified (predicted) as the actual positive sample as a negative sample. table 1. classification confusion prediction sample actual sample positive sample negative sample positive sample negative sample tp(true positives) fn(false negatives) fp(false positives) tn(true negatives) 1)accuracy accuracy is the most commonly used evaluation metric in classification, and it is the proportion of all correctly predicted samples (both positive and negative classes) to the total. (8) 2)precision the precision rate is the percentage of all predicted positive classes that are truly positive out of all predicted positive classes, and is specific to our prediction results. 𝑃recision = 𝑇𝑃 𝑇𝑃+𝐹𝑃 (9) 3)recall the recall is the proportion of all predicted positive classes that are actually positive out of the total number of positive classes. 𝑅ecall = 𝑇𝑃 𝑇𝑃+𝐹𝑁 (10) 4.3. results and analysis this experiment is based on windows operating system, trained on pytorch deep learning framework, using geforce gtx1650ti gpu. the size of all images in the experiment is set to 400×400, the epoch in the experiment is set to 50, the stochastic gradient descent algorithm is used, and the initial learning rate is 0.001. to verify the performance of the algorithm proposed in this paper, the improved algorithm inception v4-scse is compared and analyzed with the network model inceptionv4 and the two most commonly used deep learning network models xception [25] and shufflenet-v2 [26] on the aluminum defect recognition dataset by these three criterias accuracy, precision and recall. figure 7. comparison of loss curves different model validation loss curves figure 8. comparison of acc curves for different model validation as shown in figure 7 and figure 8, the curves of loss function and accuracy of the proposed algorithm model in this paper are compared with other network models at the time of validation. from the graphs, it can be seen that the lowest loss value of the proposed algorithm inception v4-scse is around 0.1, and the accuracy rate is around 98%. the next lowest loss value of inception is around 0.15, and the accuracy is around 96%. it can also be seen from the figure that the loss values and accuracy rates of these four algorithms gradually level off after the 25th epoch. table 2. comparison of different evaluation criterias under different network models method accuracy xception shufflenet-v2 inception v4-scse inception v4 precision recall 92.5 94.4 98.00 93.75 94.25 85.7 85.4 96.76 97.8 91.7 92.0 96.0 as can be seen from table 2, the inception v4-scse network model proposed in this paper has 1.24% higher accuracy, 5.8% higher precision, and 1.6% higher recall than the original model inception v4. and it is also compared with other deep learning network models xception and shufflenetv2, and both the accuracy, precision and recall rates are significantly better than the performance of these network models. 5. conclusion in this paper, we propose a deep learning aluminum defect classification algorithm incorporating an attention mechanism to address the practical problem of identifying and classifying defects generated by aluminum in the production process and various factors. the accuracy of classifying aluminum defects is improved by adding an attention mechanism module to the deep neural network model inception v4 to enhance the sensitivity of the network to small defects. experiments are also conducted on the aluminum defect recognition dataset from ali tianchi to fnfptntp tntp accuracy +++ + = 105 demonstrate the effectiveness of the algorithm. however, this algorithm only classifies a single defect on an image, and in reality, there are often multiple defects on a single image, so in-depth research is needed for this multilabel defect classification task in the future, making it possible to truly solve the practical problems that exist in reality and improve the practicality and robustness of the algorithm. references [1] xu qianxin, et al. "improved yolov3 network for surface defect detection of steel plates." computer engineering and applications 56.16(2020):265-272. [2] duan, chunmei, and taochuan zhang. "two-stream convolutional neural network based on gradient image for aluminum profile surface defects classification and recognition." ieee access 8 (2020): 172152-172165. [3] gupta, ranjeetkumar, et al. "a review of sensing technologies for non-destructive evaluation of structural composite materials." journal of composites science 5.12 (2021): 319. [4] tu zhenyue. "application of magnetic particle inspection in boiler inspection." applied energy technology 11(2019):3. [5] huang, feng-ying. "quantitative assessment method for eddy current detection of cracks on rail surface." china railway science 38.2 (2017): 6. [6] ege, yavuz, and mustafa coramik. "a new measurement system using magnetic flux leakage method in pipeline inspection." measurement 123 (2018): 163-174. [7] duan, chunmei, and taochuan zhang. "two-stream convolutional neural network based on gradient image for aluminum profile surface defects classification and recognition." ieee access 8 (2020): 172152-172165. [8] saeed, faisal, et al. "a robust approach for industrial smallobject detection using an improved faster regional convolutional neural network." scientific reports 11.1 (2021): 1-13. [9] li, zewen, et al. "a survey of convolutional neural networks: analysis, applications, and prospects." ieee transactions on neural networks and learning systems (2021). [10] yang, jing, et al. "real-time recognition method for 0.8 cm darning needles and kr22 bearings based on convolution neural networks and data increase." applied sciences 8.10 (2018): 1857. [11] yang, guanci, et al. "convolutional neural network-based embarrassing situation detection under camera for social robot in smart homes." sensors 18.5 (2018): 1530. [12] shanshan xu, yingan liu, and sheng xu. "wood defect recognition based on convolutional neural network." journal of shandong university (engineering edition) 43.2 (2013): 23-28. [13] liu, meng ke, wu, yang, and wang, xun. "implementation of convolutional neural network based track surface defect detection technology." modern computer:professional edition 000.029(2017):65-69. [14] wu, zhiyang et al. "a fast detection algorithm for monochrome fabric defects based on convolutional neural networks." journal of computer-aided design and graphics 30.12 (2018): 9. [15] wang, tian, et al. "a fast and robust convolutional neural network-based defect detection model in product quality control." the international journal of advanced manufacturing technology 94.9 (2018): 3465-3471. [16] fu, guizhong, et al. "a deep-learning-based approach for fast and robust steel surface defects classification." optics and lasers in engineering 121 (2019): 397-405. [17] wang d, cai b-b, and zai c-f. "an inception-v4-based method for car parking status detection." computer age 003(2022):000. [18] szegedy, christian, et al. "going deeper with convolutions." proceedings of the ieee conference on computer vision and pattern recognition. 2015. [19] ioffe, sergey, and christian szegedy. "batch normalization: accelerating deep network training by reducing internal covariate shift." international conference on machine learning. pmlr, 2015. [20] szegedy, christian, et al. "rethinking the inception architecture for computer vision." proceedings of the ieee conference on computer vision and pattern recognition. 2016. [21] szegedy, christian, et al. "inception-v4, inception-resnet and the impact of residual connections on learning." thirty-first aaai conference on artificial intelligence. 2017. [22] li, yubo, et al. "application of yolov5 based on attention mechanism and receptive field in identifying defects of thangka images." ieee access 10 (2022): 81597-81611. [23] hu, jie, li shen, and gang sun. "squeeze-and-excitation networks." proceedings of the ieee conference on computer vision and pattern recognition. 2018. [24] roy, abhijit guha, nassir navab, and christian wachinger. "concurrent spatial and channel ‘squeeze & excitation’in fully convolutional networks." international conference on medical image computing and computer-assisted intervention. springer, cham, 2018. [25] chollet, françois. "xception: deep learning with depthwise separable convolutions." proceedings of the ieee conference on computer vision and pattern recognition. 2017. [26] ma, ningning, et al. "shufflenet v2: practical guidelines for efficient cnn architecture design." proceedings of the european conference on computer vision (eccv). 2018. javascript:; frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 106 improving nlp accuracy with stack-propagation and knowledge distillation: a joint model for intent detection and slot filling yuan wang*, zhoumeng yang, xiyan zhang department of computer science and information, beijing jiaotong university, beijing,100044, china * corresponding author: yuan wang (email: bjtu_wangyuan@163.com) abstract: intent detection and slot filling are fundamental tasks in natural language understanding (nlu), constituting important components of intelligent question-answering systems. these tasks are closely interrelated, forming a core aspect of semantic understanding in natural language processing. in this paper, we propose an architecture using stack-propagation to improve the accuracy of nlu tasks. in stack propagation, we use a joint model that mainly incorporates token-level intent detection data with sentence word vectors as input for slot filling to capture intent semantic knowledge. additionally, we use knowledge distillation (kd) to improve model efficiency and enhance the correlation between the two tasks. our proposed framework significantly differs from existing joint models as it directly leverages intent information in the joint model and adopts token-level intent information for slot filling to ease error propagation. furthermore, our model can explicitly incorporate intent information for slot filling with stack-propagation, making the interaction procedure more interpretable, while other models only interact with hidden states implicitly between the two tasks. we experimentally evaluated our model on two publicly available datasets, and the results demonstrate that it achieves state-of-the-art performance and outperforms previous methods by a significant margin, indicating its superiority in addressing the slot-filling and intent detection tasks. in future research, we will combine the stack-propagation frame with the kd module in the transform model, which can boost our model performance to move forward a single step in the nlu task. keywords: natural language understanding; slot-filling; intent detection; stack-propagation; knowledge distillation. 1. introduction natural language understanding (nlu) is the ability of a computer program to understand human language as it is spoken or written. according to jurafsky and martin (2019), nlu is defined as "the process of mapping a given input (usually text or speech) into a structured representation that captures the meaning of the input at different levels of granularity." nlu is an important component of natural language processing (nlp) and is used in various applications such as virtual assistants, chatbots, and intelligent search engines. slot filling and intent detection are fundamental tasks in natural language understanding, constituting important components of intelligent question-answering systems. these tasks are closely interrelated, forming a core aspect of semantic understanding in natural language processing. various joint models have been proposed to capture the correlation between the two tasks, and these models have demonstrated superiority over traditional pipelined approaches. table 1. an example with intent and slot annotation utterance sample sentence token leave on wednesday april sixth token-level intent action weekday month day slot-filling o depart_date. day_name depart_dat e.month_n ame depart_d ate.day_n umber sentence intent depart date information as indicated in table 1, the utterance pertains to obtaining detailed information regarding a flight. by training the datasets of the airline travel information system (atis), each token in the utterance is assigned different slot labels, and the whole utterance is assigned an intent label. this enables the model to identify and extract specific information from the utterance, such as the flight number or departure time. in a general model, intent detection and slot filling are separated into different implemented training models. however, nowadays, more and more studies have shown that the slots and intents are highly correlated and that considering them jointly may improve the performance of natural language understanding systems (goo et al., 2018; li et al., 2018; zhang et al., 2019). for example, when processing a sentence that contains multiple temporal expressions, it is often necessary to comprehend the sentence as a whole in order to determine whether a particular expression pertains to a departure or arrival. however, using token-level intent detection can help avoid errors in slot filling by providing accurate intent information. for instance, by mapping the slot label "depart_date.day_name" to "arrival_date.day_name", the guiding annotation function of intent information for slot filling can be improved. considering the state-of-art performance for both intent detection and slot-filling, it is possible to solve some classical problems of fuzzy words and inclusion words in speech recognition. in speech recognition emergencies, we often encounter the conflict between the two confusing words "help" and "rescuer", but in the face of such an emergency, we need to 107 greatly reduce the probability of its triggering by mistake. for such an understanding of semantics, we can use the joint model of slot filling and intent detection to understand tokenlevel intent and finally accurately analyze the true intention of its sentences. this research can provide a new way to solve semantic understanding problems such as fuzzy words. in this paper, we propose a joint framework to address these issues above. zhang and huang (2009) presented a stackbased approach to parsing coordination structures. in this regard, our proposed model adopts the concept of a joint framework for training both intent-detection and slot-filling tasks. specifically, the output of intent detection is utilized as the token-level intent and serves as input for training the slotfilling task. to enhance the output performance, the framework implements knowledge distillation to distill knowledge from a larger deep neural network into a smaller network. the intent and slot-filling encodings are utilized as the teacher model, and a student model is obtained through the application of a softmax function via high-temperature knowledge distillation. 2. analysis 2.1. guidance in this section, we will discuss the definitions and approaches of intent detection and slot-filling tasks, which provide a detailed description of our stack-propagation framework with knowledge distillation. we will also compare our approach with a general multitask framework to highlight the advantages of our proposed method. the structure of the stack-propagation with knowledge distillation model has been shown in figure 1, and the following paragraph will explain each part of the model species. figure 1. stack-propagation framework with knowledge distillation the stack-propagation with knowledge distillation model for correlative intent detection and slot filling is illustrated in this figure. the model comprises a shared encoder and two decoders. the output distribution of the intent detection network and the representations obtained from the encoder are concatenated to serve as input for slot filling. both of the decoder outputs are transmitted to the knowledge distillation module for better performance. 2.2. shared encoder the proposed stack-propagation framework with kd employs a shared encoder for both intent detection and slotfilling tasks, which is equipped with a bidirectional long short-term memory (bilstm) and a self-attention mechanism. the bilstm reads the input tokens in both forward and backward directions, allowing for the production of a context-sensitive hidden state. the self-attention mechanism captures the hidden state and utilizes them to represent the queries, keys, and values (qkv) matrices using different linear projections. the output, e, is then formulated as: 𝐞 = softmax⁡( 𝐐𝐊⊤ √𝑑𝑘 )𝐕. 2.3. token-level intent decoder in this framework, we perform token-level intent detection. through training a multitude of label features, the stackpropagation framework divides the linguistic meaning between various words and selects the most probable utterance-level intention via a voting process. subsequently, the resulting semantic information is utilized to correct the token-level semantic output. the corrected token-level result is then input to the slot-filling decoder to complete the stackpropagation framework task. 2.4. slot-filling decoder this paper highlights one of the advantages of the proposed stack-propagation framework, which is the direct utilization of explicit intent information to restrict the slots to specific intent and thereby reduce the workload of the slot-filling decoder. moreover, to serve as the slot-filling decoder, we utilize another unidirectional lstm in a similar manner. to obtain a more accurate output for slot filling, our proposed stack-propagation framework conducts bidirectional training, taking into account both the intent of the word vector and the token-level information in the original sentence. this allows the framework to obtain the instruction of the utterance intent in slot filling, resulting in a better output through the linkage effect between the two tasks. 2.5. joint training with knowledge distillation in another innovative model, we use a knowledge distillation module with both the slot filling and intention detection results for further training. in this way we can not only convert the sentence-level classification task into tokenlevel prediction to directly leverage token-level intent information for slot filling but can also combine the parameters between the original teacher model through knowledge transformation, and finally obtain the number of parameters of the student model is greatly reduced compared with that of the teacher model, thus greatly reducing the difficulty and training time of the training. the intent detection objection can be formulated as: ℒ𝐼 ≜ −∑ 𝑚 𝑗=1 ∑ 𝑛𝐼 𝑖=1 𝐲 ^ 𝑗 𝑖,𝐼log⁡(𝐲𝑗 𝑖,𝐼) thus, the slot-filling task output can be defined as: ℒ𝑆 ≜ −∑ 𝑚 𝑗=1 ∑ 𝑛𝑆 𝑖=1 𝐲 ^ 𝑗 𝑖,𝑆log⁡(𝐲𝑗 𝑖,𝑆) to achieve simultaneous slot filling and intent detection, the final joint objective combined with the knowledge distillation module ℒ𝐾 is expressed as follows: ℒ𝑓𝑖𝑛𝑎𝑙 = ℒ𝐼 + ℒ𝑆 + ℒ𝐾 the loss function is proposed by liu and lane, 2016, which is known as the pipeline approach, which separates intent detection and slot filling into two distinct processes. but it 108 suffers from error propagation, where errors in earlier stages can propagate and affect later stages. figure 2. comparison of general and evaluated multitask framework 2.6. framework with stack-propagation and kd v.s. general multitask framework figure 2, illustrates the general multitask framework, which involves the execution of distinct tasks, namely task a and task b. however, the framework lacks correlation during the training stage, and the only shared component is the encoder. this results in a lack of guidance from the upstream task to the downstream task within the general multitask framework. furthermore, in the event of an error in the upstream task, there is no provision for negative feedback from the downstream task to modify and correct the error promptly, leading to the propagation and escalation of errors. however, stack-propagation with knowledge distillation can mitigate the shortcoming. first, the output of task a can guide the training results of task b, and task b can also adjust the input results to the training model. in the final kd module, the joint model can also reduce the training amounts of parameters, so that the model can be optimized. 3. experiment in order to test the training efficiency of our model, we used two open-source data sets to obtain the advantages of this model in training. the atis (airline travel information system) and snips (smart home interaction) datasets are two of the most widely used benchmarks for natural language understanding (nlu) tasks. the atis dataset comprises a collection of queries related to airline travel, while the snips dataset consists of a range of queries related to smart home devices. both datasets contain a large number of user queries, annotated with intent labels and slot labels. the intent labels represent the overall intention of the query, while the slot labels identify specific pieces of information within the query. these datasets have been used extensively in research on nlu, which have been instrumental in the development of many state-of-the-art models for intent detection and slotfilling. the parameters in our model are optimized using adam (kingma and ba, 2014), which is a popular optimization algorithm in deep learning. 3.1. baselines we analyze the baselines that are relevant to this model, including: joint sequential model (joint seq.): it is a popular baseline for the task of intent detection and slot filling. it involves training a single model to perform both tasks simultaneously, with the output of the model consisting of both the intent and the slot labels for each input sentence. this approach has been shown to achieve good performance on benchmark datasets, and has been widely used in research on natural language understanding (nlu) tasks. attention-based model (attention-based.): the model utilizes a self-attention mechanism to capture contextual information and enhance the model's ability to attend to relevant parts of the input sentence. this approach has been shown to achieve state-of-the-art performance on various nlu tasks, including intent detection and slot filling. transformer-based model (transformer-based.): the transformer-based model is a neural network model that has been used for various natural language processing tasks, including intent detection and slot filling. it was first introduced in a paper by vaswani et al. (2017) and has since become a popular approach in the field of nlp. the transformer model utilizes self-attention to capture contextual information and has been shown to achieve stateof-the-art performance on a range of benchmark datasets. 3.2. overall result table 2. performance of related model model snips atis slot intent overall slot intent overall joint seq. model 87.3 96.9 73.2 94.3 92.6 80.7 att.based model 87.8 96.7 74.1 94.2 91.1 78.9 trans. model 90.0 97.5 81.0 95.1 96.8 82.8 our model without k.d. 94.2 98.9 86.9 95.9 96.9 86.5 our model 95.7 96.7 86.7 95.4 96.9 87.1 the final line shows the performance of stack-prop. with kd model as can be seen from the table, the performance of the first three models has gradually increased. in the model proposed in this paper, state-of-the-art performance is obtained, and the training results and training difficulty are reduced after using knowledge distillation. this characteristic of ours states that our architecture directly incorporates the intent information to improve the accuracy of nlu tasks by using stack propagation. in stack propagation, a joint model is used that mainly incorporates token-level intent detection data with sentence word vectors as input for slot filling to capture intent semantic knowledge. additionally, knowledge distillation is used to improve model efficiency and enhance the correlation between the two tasks. to visualize the role of intent information in nlu tasks, we present the results in table 2, where the output of the joint model with intent information used in slot filling is compared to the output when only sentence-level information is utilized. the results demonstrate that the joint model with intent information achieves better performance in slot filling by capturing better intent information. moreover, the results confirm our claim that intent information can be used to guide slot filling. 4. related work slot filling is commonly considered a task of sequence labeling. popular techniques used for slot filling are conditional random fields (crf) and recurrent neural networks (rnn) (yao et al., 2014). on the other hand, intent detection is approached as an 109 utterance classification problem. various classification methods such as support vector machine (svm) and rnn (sarikaya et al., 2011) have been proposed to tackle this problem. to address the issue of error propagation caused by pipelined approaches, researchers have proposed joint models in recent times. zhang and wang (2016) were the first to use recurrent neural networks (rnns) in a joint model to capture the correlation between intent and slots. liu and lane (2016) proposed an attention-based neural network that jointly modeled the two tasks, leading to mutual enhancement between them. these joint models have demonstrated superiority over pipeline models by considering the correlation between the two tasks. however, they did not explicitly model the intent information for slots, only considering their correlation by sharing parameters. in addition to these works, some recent studies have proposed incorporating intent information into the joint model. for instance, chen et al. (2019) proposed an intent-aware attention-based model that takes into account the intent information while performing slot filling. they demonstrated that their approach outperformed previous joint models that did not consider explicit intent information. recently, there has been a growing interest in joint models to address the issue of error propagation caused by pipelined approaches in slot-filling and intent detection tasks. researchers have proposed various joint models to capture the correlation between the two tasks. however, most of these models did not explicitly model the intent information for slots and only considered their correlation by sharing parameters. several joint models have been proposed to incorporate the intent information for slot filling. li et al. (2018) proposed the intent-augmented gate mechanism to utilize the semantic correlation between slots and intent. wang et al. (2018) proposed the bi-model to consider the cross-impact between the intent and slots and achieve state-of-the-art results. zhang et al. (2019) proposed a hierarchical capsule neural network to model the hierarchical relationship among word, slot, and intent in an utterance. chen et al. (2019) proposed an intentaware attention-based model that takes into account the intent information while performing slot filling. they demonstrated that their approach outperformed previous joint models that did not consider explicit intent information. 5. conclusion our proposed framework is significantly different from these models in several aspects. firstly, our model directly leverages the intent information in the joint model by feeding the predicted intent information directly into slot filling with a stack-propagation framework. secondly, we can directly incorporate the intent information for slot filling explicitly with stack-propagation, making the interaction procedure more interpretable, while their models just interact with hidden states implicitly between two tasks. finally, for a better performance of training the model and improving the correlation between the intent detection and slot-filling tasks, we put the results generated by the two tasks into the knowledge distillation module, and the final results show that the accuracy is also improved. for the experiment section, the results on the two datasets show the state-of-art level beyond the former experiment, which shows the effectiveness of the stack propagation framework and knowledge distillation module. references [1] jurafsky, d., & martin, j. h. (2019). speech and language processing (3rd ed.). cambridge university press. [2] chen, l., zhang, y., du, n., liu, x., & sun, m. (2019). multitask learning for joint language understanding and dialogue state tracking. in proceedings of the aaai conference on artificial intelligence (vol. 33, pp. 6901-6908). [3] li, x., chen, q., li, x., du, n., & zhou, d. (2018). a selfattentive model with gate mechanism for spatiotemporal slot filling in spoken language understanding. in proceedings of the 2018 conference on empirical methods in natural language processing (pp. 4019-4028). [4] zhang, y., chen, y. n., & chen, w. (2019). joint extraction of entities and relations based on a novel graph scheme in natural language processing. ieee access, 7, 47493-47505. [5] liu, b., & lane, i. (2016). attention-based recurrent neural network models for joint intent detection and slot filling. in proceedings of the association for computational linguistics (acl) (pp. 1-10). [6] kingma, d. p., & ba, j. (2014). adam: a method for stochastic optimization. arxiv preprint arxiv:1412.6980. [7] vaswani, a., shazeer, n., parmar, n., uszkoreit, j., jones, l., gomez, a. n & polosukhin, i. (2017). attention is all you need. in advances in neural information processing systems (pp. 5998-6008). frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 3, 2022 61 computational fluid dynamics grid technology development mengjiao gou, bohua liu, xiaomao sun, yuli ma xi’an shiyou university, xi’an, shaanxi 710000, china abstract: this paper reviews the development of computational fluid dynamics, especially computational aerodynamics. this paper summarizes the achievements of cfd in grid technology, analyzes the existing problems and perplexities, and prospects its development trend. the cfd grid technology includes structured grid, unstructured grid, hybrid grid and overlapping grid. keywords: computational fluid dynamics; mesh technology; interdisciplinary. 1. background of computational fluid dynamics as an important branch of mechanics, fluid mechanics was established as a truly rigorous discipline in the second half of the 17th century and has been developing ever since. the formation of fluid mechanics is firstly attributed to newton's calculus principle. in 1678, newton put forward the shear stress formula of viscous fluid, which created conditions for the establishment of equations of motion of viscous fluid. in 1775, euler, the founder of theoretical fluid mechanics, introduced the method of fluid motion description to study the fixed-point parameters in the flow field, and established the equations of motion for the study of investable and in rotational fluid. in 1781, lagrange introduced a method for determining fluid particles that perfected the study of invistic and in rotational motion. today, cfd technology represented by numerical solution euler equations and rans equations has been widely used in aviation, aerospace, meteorology, ships, weapons and equipment, water conservancy, chemical industry, construction, machinery, automobiles, oceans, sports, environment, health and other fields remarkable achievement. in aerospace and other fields, cfd has revolutionized traditional methods of fluid mechanics research and design, driving technological advances in these fields. 2. grid technology the reasonable design and high-quality generation of grid are the preconditions of cfd calculation, one of the most important decisive factors affecting cfd calculation results, the most manual workload in cfd work, and also one of the bottleneck problems restricting the efficiency of cfd work. even in countries where cfd is highly developed, grid generation still accounts for 70 to 80 percent of the total human time for a cfd computing task. steger, one of the pioneers of cfd and grid generation, pointed out in 1991 that "grid generation is still a key step towards most applications of cfd" and that "complex shape grid generation requires dedicated teams". grid generation is a tedious task, especially for complex aerospace vehicles. therefore, it is very important for the application of cfd to find ways to simplify mesh generation, reduce the manual work of mesh generation, and improve the adaptability and flexibility of mesh to complex configurations. if this problem is solved, it will greatly promote the popularization of cfd in aerospace and other fields. the development of structural mesh, unstructured mesh and hybrid mesh are introduced in the following. 2.1. overview of structured and unstructured grids the computational grid can be divided into structured grid and unstructured grid according to the adjacency relationship between grid points. the adjacency between the grid points of the structural grid is ordered and regular, and the elements are two-dimensional quadrilateral and three-dimensional hexahedron. the adjacency between unstructured grid points is disordered and irregular, and each grid point can have different number of adjacency grids. the elements have a variety of shapes, such as two-dimensional triangle and quadrilateral, three-dimensional tetrahedron, hexahedron, triangular prism and pyramid. 2.2. unstructured network technology since the 1980s, unstructured grids have been rapidly developed and applied in the field of cfd combined with finite volume methods. the basic idea of unstructured grids is that triangles and tetrahedra are the simplest shapes in 2d and 3d domains, respectively, and any region can be filled by them. there are three basic methods for unstructured mesh generation: array advance method, delauny method and quad-octree method. unstructured grids can be divided into two types in terms of storage modes of flow field variables: lattice center type and lattice point type. the unknown quantity of lattice centered type is located in the center of the cell, and the control body is taken as the grid cell itself. the numerical flux needs to be calculated on the surface of the grid cell. the lattice type unknowns are located at the element nodes, and the control volume is usually constructed by connecting the center of the element around the node with the midpoint of the edge. numerical fluxes need to be calculated on the surface constructed from the edges of the original grid, so lattice type discretization corresponds to edge-based data structures. for the same unstructured grid, lattice-centered discretization contains more degrees of freedom than latticecentered discretization, which theoretically costs more and achieves higher computational accuracy. on the other hand, the lattice centered grid template is sparser than the lattice centered grid template, so for the same number of 62 unknowns, the numerical accuracy of lattice centered discretization is higher than that of lattice centered discretization. after more than 20 years of research, the superiority of these two numerical discretization methods remains to be determined. the numerical experiment conducted by mavriplis in 2003 proved that, for the same computational grid, the calculation accuracy of latticecentered discretization is higher than that of lattice-centered discretization, but the calculation efficiency is lower than that of lattice-centered discretization. the study of levy and thacke proved that, for transonic flow, if the number of surface mesh variables of the two grids is matched, the two discrete methods will achieve similar computational accuracy. 2.3. hybrid grid hybrid grid basic idea is: make full use of the structural grid cfd calculation of the characteristics of high precision, high efficiency, high stability, make full use of unstructured grid generation is simple, flexible, adaptable geometry characteristics of the object surface, such as large area uses a simple grid structure, flow gradient using unstructured grid geometry flexibility, the relatively simple structure of the grid area. the domain is connected by filling with unstructured mesh, and the flux conservation at the interface between structured mesh and unstructured mesh is strictly guaranteed to avoid interpolation errors. hybrid grid technology began to be more and more attention, the current the method of using hybrid grid n s equation can be divided into two categories: (1) the structure/unstructured hybrid grid near the surface of the viscous effect area uses the structured grid, other area uses the regular tetrahedron grid hybrid grid technology: first, to the problems of multi-body each monomer or complex problems of each sub-block. then, a hole is dug at the interface between the volume and the block, and the hole is filled by the unstructured mesh to realize the flux conservation between the two adjacent meshes. this technology is actually a development of overlapping grid technology, among which "zippergrid" and "dragongrid" are representative methods, as shown in figure 1. (2) unstructured hybrid grid in the viscous effect using three prisms and the pyramid grid and the other flow field area using tetrahedral unstructured grid, this approach makes full use of the triangular prism and the pyramid grid high tensile property, can achieve similar structure grid viscous simulation ability, therefore, it has been developed and applied quickly. fig.1 diagram of dragon grid 2.4. overlapping grid benek and steger et al. proposed the concept of "chimeragrids" (overlapping meshes) in 1982, which divided a complex flow area into multiple sub-regions with simple geometric boundaries. the computational meshes in each sub-region were generated independently, overlapping, nesting or covering each other, and the flow field information was interpolated matching and coupling are performed at the boundary of the overlap region. the generation of overlapping meshes with complex shapes can be divided into four steps: geometric shape generation, surface mesh generation, volume mesh generation, and defining the interpolation relationship between meshes. the top three can draw lessons from the existing general three-dimensional software implementation, such as gridgen eagleview, igg, icem, etc. to define the interpolation relationship between meshes, three key technologies are required, which are overlapping of wall meshes, hole digging and point finding, which are also the core technologies of overlapping meshes. at present, overlapping grid programs and software developed abroad include pegasus5, suggar, overgrid, etc. however, there is little research on overlapping grid in china, and there is no software with similar function. 2.4.1. hole digging if an overlapping grid cell falls into a non-permeable surface (such as object plane, symmetry plane or manually specified hole digging surface) of another grid domain, it shall be marked as "point in hole" and shall not participate in the calculation of flow field. this process is vividly called "digging holes". the result of digging holes produces hole boundary surfaces closely surrounding the points inside the holes, which are used to interpolate and transmit the information of flow field solutions in different regions, and belong to the interpolated boundary surfaces. therefore, the mathematical essence of the process of digging a hole is equivalent to solving a problem called "the relative position of a point and a closed surface". the research on tunneling methods mainly focuses on how to improve the reliability, efficiency and automation of the tunneling process. steger et al. mainly used the dot product result of the normal vector of grid surface and the relative position vector of grid points to judge the relationship between grid points and surface. this method is error-prone in the presence of concave surfaces, and the efficiency of digging holes is proportional to the number of grid points tested and the number of points determining the surface to be dug. therefore, a variety of modification methods were developed. for example, the excavated surface was decomposed so that each surface was convex preserving. a combination of analytic shapes, such as a sphere, a cylinder, a cuboid and other simple geometric shapes, is used to replace the grid surface as the surface for digging holes. the ray intersection method determines the position of point p by finding the number of intersection points between any ray starting from point p and the closed hole surface. if the ray intersects the surface for odd times, the point is inside the hole surface; if the ray intersects the surface for even times, the point is outside the surface. this method involves the intersection operation, so the calculation amount is relatively large, but the efficiency of digging hole can be improved by using the adt tree (alternator digital tree). chiu and meakin proposed the hole-map method. in this method, the excavation surface was projected into the auxiliary cartesian grid, so as to obtain the approximate excavation surface composed of cartesian grid. according to the different relative positions, the cartesian grid cells were divided into 63 "in-hole elements", "out-hole elements" and "edge elements", so as to make points the relationship between and surface is transformed into a simple relationship between point and hole mapping units. the hole mapping method is highly efficient and automated, and requires very little memory, so it has been widely used, such as the pegasus5 program. objectxraymethod is an improvement of the hole-map method. it replaces the three-dimensional cartesian grid of the holemap method by establishing a two-dimensional cartesian grid projected by the hole surface in the coordinate axis direction. the projection of points in the two-dimensional cartesian grid is found, which is similar to the method of ray intersection, and the number of intersection points of the ray intersection of the projection point along the axis direction and the hole surface is obtained, so as to determine the point is the point inside the hole or the point outside the hole. compared with the hole-map method, the proposed method has higher hole digging efficiency. 2.4.2. point finding the problem to be solved by point finding can be simplified as follows: given the coordinates (xp,yp,zp) of a point p in physical space, find the logical coordinates (i,j,k) of the grid cells surrounding the point in the grid. for structural grids, it is the problem of finding a hexahedral element to surround a given point in a discrete space. the efficiency and accuracy of point finding have great influence on the whole overlapping grid method, sometimes even the key to the success of overlapping grid method. the easiest way to find a point is to traverse the grid, where each grid cell is examined to find all possible contributors to the interpolation point, which is the most time-consuming. stencil walk also known as stencil jump, is the most widely used method at present, and its essence is the modification of newton iteration method (also known as newton-raphson method). therefore, it has many advantages and disadvantages of newton iterative method. for example, the search method must have a good starting point, typically a point near a contributing cell. if the given initial point is very close to the contribution unit in the logical space, the method can quickly converge to the real contribution unit; otherwise, it may not converge. for the mesh with large distortion or thin thickness, stencilwalk may not search the correct contribution element. the inverse map method generates an auxiliary cartesian grid covering the original grid, and obtains the parameter coordinate values of the grid points in curvilinear coordinate system through the inverse transformation calculation. the position of any given point in the cartesian grid can be quickly determined by subscript calculation. due to the fast localization in the process of point finding, inverse transformation method and stencil walk method are used together. in a word, the efficient point-finding method generally divides the point-finding process into two steps: first, it searches for the nearest grid cell to the spatial point, and then it searches for suitable grid cells nearby to surround the spatial point. firstly, good data structures such as binary tree, quadtree, octree and adt tree are used to find the set of possible contribution units closest to the space point. secondly, the geometric judgment method of relative positions of points and contributing elements is used to find the correct contributing elements of space points among possible contributing elements. for example, the dot-product operation of position vectors is used to judge the relationship between grid points and contributing elements. finally, trilinear interpolation method is used to solve the interpolation coefficient of space points. if the coefficient is in the range of [0,1], a reasonable contribution unit is found for this space point. if the coefficient is outside the range of [0,1], the contribution unit is taken as the initial unit and the stencil walk method is used for further search to find the reasonable contribution unit. 3. conclusion computational grid is one of the bottleneck problems restricting the development of cfd. at present, the grid needs to make breakthroughs in :(1) efficient, accurate, flexible and convenient complex grid technology, including overlapping grid technology, hybrid grid technology, adaptive grid technology, cartesian grid technology, etc.;(2) to realize automatic and high-quality quantification of complex mesh generation;(3) try to break through the dependence of cfd results on grids. the focus here is on the overlapping grid approach. although the meshes of each subregion of overlapping mesh method are generated independently, the matching problem between meshes must be considered when the meshes between subregions overlap. if the sub-grids are not matched, the quality of overlapping grids may be poor, there are grid lines in the walls, the number of solitary points is large, the possibility of non-object understanding is increased, the accuracy of flow field solution is low, and even the flow field calculation may diverge due to the sub-domain grid mismatch. overlapping mesh technology has been widely used in complex shape mesh generation, especially in engineering problems requiring numerical simulation of the relative motion of multiple bodies, such as submunition like shape object scattering, airborne separation, rocket booster separation and other problems with relative motion. according to our review, the suggar program is the most developed and widely utilized overseas overlapping grid technology. the application of this program is aimed at the multi-body motion problem of complex objects, which includes arbitrary overlap between structured mesh, unstructured mesh and polyhedral mesh, and divides multiple components into sub-components of different levels, so as to realize hierarchical overlap of complex objects. references [1] zhang leicheng, guo xiaodong, zhao enduo, he feng.development of computational fluid dynamics (cfd) [a]. beijing mechanics society. [2] proceedings of the 23rd annual conference of beijing mechanics society [c]. beijing mechanics society: beijing mechanics society,2017:3. [3] yu jinwei, feng xiaofeng.review of computational fluid dynamics [j]. modern manufacturing technology & equipment,2013(06):2526+28. [4] sun liqiang, wang di, zhu hongbo, li fan, wei yaodong.research progress on design and cfd simulation of three-phase separator [j]. petrochemical equipment technology,2017,38(04):6-12+5. [5] van leer b. cfd education: past, present, future. aiaa paper, 1999-0910, 1999 yan chao.computational fluid dynamics methods and applications.beijing: beihang university press, 2006 64 [6] mavriplis d j. aerodynamic drag prediction using unstructured mesh solvers. in: cfd-based drag prediction and reduction. deconoinck h, sermus k, van dam c. [7] eds. vki lecture notes, von k árm án inst. for fluid dynamics, rhode-saint-gen`ese, belgium, mar. 2003 [8] levy d w, thacker m d. comparison of unstructured cell and node-based schemes for the euler equations. aiaa paper, 1999-3185, 1999. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 42 research on firewall technology and its application in computer network security strategy peihong wang honghe hani and yi autonomous prefecture public resources trading center, mengzi 661199, yunnan, china email: 501376056@qq.com abstract: computer network is a double-edged sword, which brings convenience to people's life and work, but also brings hidden dangers, and even suffer losses, especially in recent years, the unscrupulous elements use computer network vulnerabilities to steal important data and seek improper benefits, which has caused serious network security problems. among them, focus on the application of firewall technology can effectively prevent and supervise the existence of network security threats in the computer, control access to the internet, and ensure the safe operation of computer networks. in this paper, from the importance of firewall, we explore the main functions, technical principles, architecture and use scenarios of cloud firewall, and propose the application in the computer network security strategy for reference. keywords: computer; firewall; network security. 1. introduction with the vigorous development and wide application of computer technology, the application of information network technology represented by the internet is becoming increasingly popular, and the application field has gradually expanded from small business systems to large and mediumsized key business systems. the computing model has also undergone a dramatic change from the initial centralized delivery to large processing machines, to network-based distributed task processing, to today's on-demand cloud computing approach, with security increasingly becoming an important factor affecting network effectiveness. according to a report released by the fbi, victims of bec fraud lost $2.4 billion in 2021, while the average cost of data breach in 2022 has exceeded $4.35 million, a record high, and cybercrime has become the largest type of business crime; in china, cybersecurity is closely related to national security, and huge economic losses are incurred every year due to hacking and virus damage. how to strengthen network security awareness, improve network security skills, build a secure network management system, and efficiently protect the safety of information and property in the network, has become urgent. among many measures, the most significant is the application of firewall technology, which not only provides a safe and reliable operating environment for computer networks, but also protects against external intrusion and influence, and is gradually recognized by people. 2. the importance of firewall firewall is a separator, limiter and analyzer, which has strong anti-attack capability. 2.1. preventing the leakage of important information in the current era of big data, people's means of communication and data transmission have been greatly developed, and more and more personal information, enterprise information, government information and other data are flooded into computer networks or stored on the cloud through computer networks, which brings great convenience to people's production, life, work and management, but at the same time poses a greater challenge to computer network security. in this process, firewall becomes a barrier to protect data information and provides a strong guarantee for computer network security. with the development of mobile communication technologies such as 5g, the role of firewalls is reflected in how to prevent a large amount of personal data and private information from being leaked or illegally stolen in the popularization of mobile internet applications. 2.2. purify the cyberspace environment with the use of computers and a large number of mobile devices, people are coupled to computer networks more and more, and at the same time there will be more risks of malicious access to user information and data, there will be many induced malicious invasion of websites or applications, it is difficult for non-professional users to identify their malicious behavior from the surface, such means as this abound in the current computer network environment, seriously disrupting the current computer network environment is seriously disturbed. in this environment, setting up directional firewalls for network use and configuring corresponding filtering policies can largely assist users in scientifically identifying fake websites, inducing malicious network attacks and other behaviors, thus purifying the cyberspace environment. 2.3. real-time monitoring of network conditions as people's daily lives become more and more dependent on computer networks, it is extremely insufficient to protect users' important data or private information by simply conducting passive network defense. therefore, the use of firewalls for real-time detection of network behavior or events during network transmission enables active defense to protect the personal information and private data of network users in a complex network environment. the use of firewalls also allows real-time monitoring of various behaviors in the process of network transmission, so as to make the decision 43 of allowing or denying access, which largely improves the security level of computer networks and avoids or reduces the losses brought to users by data and information leakage. 3. firewall technology firewall is a control device for two different networks to realize mutual access, and it is an important security device for network security to realize access control of private network and public network according to the artificially formulated control policy. the main role of firewall is to shield the internal information, structure and operation of the protected network, and to monitor and restrict the data flow across the network. firewall technology is an applied security technology based on modern communication network technology and information security technology, which is the most recognized and widely used in the current network security field. as shown in figure 1 figure 1. diagram of the location of the firewall in the network 3.1. the main functions of firewall the technology of firewall is very mature, and there are many kinds of products, but the role is basically the same. the overall function is to achieve isolation and security control between two connected networks, and the main functions are six points. 3.1.1. monitor and restrict access in response to the insecurity of network attacks, the firewall takes control of packets entering and leaving the internal network and external network, monitors the status of packets on the network in real time, and analyzes and processes these states to detect abnormal behavior and take linked preventive measures in a timely manner to ensure the security of the network system. 3.1.2. control protocols and services in response to the insecurity of the network itself, control measures are taken for relevant protocols and services, allowing authorized protocols and services to pass through the firewall, while unauthorized protocols and services are refused to pass through the firewall, effectively shielding insecure services. 3.1.3. protection of internal network in order to prevent the security impact caused by system vulnerabilities, etc., the firewall adopts its own security system, and also detects system vulnerabilities and network intrusions inside the network in a timely manner through technologies such as vulnerability scanning and intrusion detection, and protects the application service systems in the internal network through restrictions on abnormal access. 3.1.4. network address translation in network interconnection, since different addresses are used, it is necessary to implement address conversion on the firewall to convert the own address of the internal network to the public address of the external network. after implementing address translation, the internal structure of the protected network can be hidden and network security can be improved to some extent. 3.1.5. vpn function through vpn (virtual private network), lans or private subnets distributed in a certain unit can be organically connected into a whole through the internet, which not only saves dedicated communication costs, but also provides security for information sharing. 3.1.6. logging and auditing firewall provides reference for the operation optimization of network management, important intelligence information for the development of attack prevention strategy, and an important basis for tracing the occurrence of abnormal things by logging all the requests for access. 3.2. technical principle of firewall there are two main technologies used in firewalls, one is a firewall working at the application layer and the other is a firewall working at the network and transport layers. firewalls working at the application layer implement access control for applications, for example, allowing access to some applications (e.g. http) and blocking access to others (e.g. ftp); firewalls working at the network and transport layers implement control over packets passing through the network, for example, allowing some packets to pass and disallowing others. 3.2.1. packet filtering firewalls the packet filtering firewall works at the network and transport layers and is installed between the two networks that need to be controlled. the packet filtering module checks items such as source ip address, source port number, protocol type, tcp header flag bits, etc. it inspects the packets passing through at the entrance and exit of the network and decides whether the packets are allowed to pass or not according to the pre-set security access control policy (access control list acl) rules. the filtering of packets is bidirectional, handling both packets from the external network to the internal network and packets from the internal network to the external network. when configuring the firewall, filtering rules must be manually formulated in advance to determine your own security policy. the packet filtering firewall can also make judgments based on flag bits in tcp, for example, the extended acl of cisco routers supports the established keyword to determine if the ack or rst is set in tcp packets, and thus whether to respond to internally initiated session messages. 3.2.2. stateful inspection firewall the stateful inspection firewall, also known as the dynamic packet filtering firewall, has a stateful inspection module that creates a stateful inspection table consisting of two parts: a filtering rules table and a connection status table. if a packet enters, the stateful inspection firewall first analyzes it according to the filter rule table to decide whether to allow it to pass. according to the relevant information in the filtering rule table, if it is allowed to pass, the stateful firewall lets it pass and analyzes the relevant information of the packet to establish a connection in the connection status table for that communication process. after that, when subsequent packets in the same communication process enter the firewall, the stateful firewall will no longer detect them, but match them directly through the stateful connection table, and since subsequent packets have the same status as those already since the subsequent packets have the same connection information as the packets already allowed through the firewall, they will be allowed to pass directly. as you can see, 44 this type of firewall is very useful for preventing "ip spoofing" attacks. 3.2.3. proxy firewalls proxy firewalls are proxy servers and application gateways that work at the application layer and are controlled by the application, allowing access to one application and preventing others from passing through. proxy servers are implemented using hosts with dual nics, usually running between two networks, and are intermediaries between clients and real servers, isolating direct communication between internal and external networks. access to external network servers by clients of internal networks becomes access to external network servers by proxy servers, which are then forwarded to internal clients by proxy servers. the proxy server is like a server to the internal client, and it is like a client to the external network server, which successfully achieves the isolation of computer systems inside and outside the firewall, and reduces the possibility of being attacked because the external network cannot directly contact the internal network to be accessed. in addition, adaptive proxy technology is a revolutionary technology implemented in recent years in firewalls for commercial applications, combining the security of proxy firewalls and the high speed of packet filtering firewalls, etc. it can increase performance by at least 10 times without losing security, and has two basic elements: adaptive proxy server and dynamic packet filter. the initial security checks of an adaptive proxy firewall still occur at the application layer, and once the trusted identity is authenticated, a secure channel is established and packets can pass directly and quickly through the network layer. 3.3. firewall architecture the architecture of a firewall refers to the physical location of the firewall in the network and its relationship with other devices in the network. only by choosing and configuring the firewall topology reasonably can it have the best security performance. there are four common architectures of firewalls as follows. 3.3.1. dual-homed architecture this architecture is actually a firewall configured with two network port host systems, where one network port is connected to the internal network and the other port is connected to the external network, and the host controls whether packets can pass through the port between the two networks through control policies. since the dual-homed host is the transmission channel for communication between the two networks, the dual-homed host may become a bottleneck for communication when the network communication volume is large, so the dual-homed host should be selected with good performance. as shown in figure 2 figure 2. schematic diagram of dual-homed host structure 3.3.2. single-segment firewall architecture with a shielded router this architecture consists of a shielded router and a bastion host. the bastion host has only one nic connected to the internal network and becomes the only site accessible to the external network. the shield router makes all incoming information must be sent to the bastion host first and only accepts information from the output of the bastion host. all hosts on the internal network can also only access the bastion host, and the bastion host becomes the bridge between the hosts on the external network and the hosts on the internal network. the blocking router denies the internal network hosts direct access to the external network, and requests from the internal network hosts to access the external network must be proxied through the bastion host. to ensure that the above fixed packet path is not changed, the shield router should perform the necessary configuration, such as setting up static routes. 3.3.3. single dmz firewall architecture dmz is the abbreviation of "demilitarized zone", the chinese name is "isolation zone", also known as "demilitarized zone". it is a buffer zone between the nonsecurity system and the security system to solve the problem that the external network cannot access the internal network server after installing the firewall, which is not conducive to the deployment of web, e-mail and other network services. this buffer zone is located in a small network area between the internal network and the external network, in which some server facilities that must be made public can be placed, such as corporate web servers, ftp servers and forums. with such a dmz zone, the internal network is more effectively protected, as this network deployment provides an additional barrier similar to a security gate to attackers than a typical firewall solution. single dmz firewall structure of the shield router and the bastion host connection to be on the same network segment, to ensure that data across the firewall must first pass through the shield router and the bastion host these two security units, single dmz firewall structure of the bastion host is a dualhomed host, and the dmz zone becomes an additional layer of security between the external network and the internal network. the bastion host can act as an application gateway or as a proxy server. since the bastion host is the only host that can access the internal network directly from the external network, it makes the internal host protected. 3.3.4. dual dmz firewall architecture if there is a requirement in the internal network that some information can be shared by providing direct access to the outside, this can be solved by creating two dmz zones in the firewall. one for the outer dmz zone and one for the inner dmz zone. place some public information servers like web and ftp in the outer dmz zone, and these server systems themselves act as outer bastion hosts. for packets coming from the external network, the outer shield router is used to prevent external attacks and manage access to the outer dmz, while the inner shield router allows only packets whose destination address is the bastion host to be accepted, and is responsible for access from the inner dmz to the internal network. for packets to be sent to the external network, the internal shield router manages access from the bastion host to the dmz network. the firewall system allows sites on the internal network to access only the bastion host, and the shield router only accepts packets from the bastion host going to the external network. the advantage of deploying a firewall with dmz is that an intruder must break through several different devices, such as external shield router, internal shield router, and bastion host, 45 in order to attack the internal network, which makes it much more difficult to attack, and accordingly the security of the internal network is greatly enhanced, but the construction cost is correspondingly the highest. 3.4. usage scenarios of cloud firewall cloud firewall is a security product that supports networkwide traffic identification and unified policy control, and can filter out potentially malicious network traffic. it is a collective name for internet border firewall, vpc border firewall, and host border firewall, providing users with three kinds of border protection and traffic visualization for internet, virtual network, and host. the cloud firewall is hosted in the cloud, and there are three main usage scenarios. 3.4.1. internet service protection it controls access traffic to and from the internet and intercepts attacks and threats from the internet, including mining, malicious traffic and hacking. for example, if a financial user has other types of business exposed to the internet in addition to http business, the user needs to use an intrusion detection module (ips) for protection. 3.4.2. active outreach protection the active outreach behavior of cloud assets is detected and analyzed to help users understand network traffic dynamics in real time and implement protection. for example, a government department user, in addition to focusing on defense from the internet to the business, also focuses on active outreach to the business to determine which hosts are already at risk and to block these abnormal behaviors in real time to avoid potential risks. 3.4.3. micro-isolation protection access traffic between ecs servers in the intranet is controlled so that different businesses can be safely isolated. for example, an e-commerce customer, although all http services are protected by a web application firewall, expects security isolation of different services to enhance the overall network control and avoid security threats to the entire business on the cloud due to the existence of security risks in one ecs. 4. application of firewall technology in computer network security policy network security policy refers to the sum of a series of preventive measures taken in a specific environment to protect the network from hazards. in addition to strict management, legal constraints and security education, advanced technologies like firewalls are relied upon to ensure system security, mainly including two aspects of technical means and management measures. firewall can achieve access permission, denial, monitoring, by filtering insecure services, allowing or denying access to certain hosts in the network, providing access logs, monitoring access, and achieving centralized security management for the internal network without the need to set up separate security policies on each computer, and its application mainly has the following six points. 4.1. composite technology applications composite technology combines the advantages of both proxy and packet filtering firewalls, incorporating a number of security technologies such as ids and log monitoring, combined with the actual situation of network security operations, to ensure that the computer network can respond quickly when attacked, provide defense services, effectively stop external attacks, and proactively monitor internal network information security. its defense mechanism is the network security in the form of authentication, using dynamic filtering to achieve the security of information exchange. 4.2. monitoring log application in the process of defending against external network attacks, the firewall opens full logs and obtains relevant threat information, categorizes various viruses and trojans that may threaten the security of computer networks, and stores them in the database. through configuration log, management log, connection log and view log, analyze the error interception information in the monitoring log, set default log options, reset and upgrade the firewall, and intelligently enhance the interception behavior of the firewall to further improve the security performance of the computer network. 4.3. proxy server application through the proxy server to provide network proxy for the computer, so that the real network address is not discovered, and smoothly complete the information interaction. the leakage of computer ip information often occurs during the dialogue between the internal network and the external network, and once the ip address is resolved and tracked by network hackers, the computer's data information can be easily stolen. by using a proxy server, network hackers can only resolve virtual ips and will not obtain any real information, thus protecting the data security of the internal network. the proxy server plays a transit role in controlling the interaction process of internal and external network information, and also has obvious advantages in account management and information verification. in addition, ssl access information from internal network users to external network is first transferred to the internal proxy server for analysis and confirmation of security before forwarding outward, and the encrypted packets are audited and analyzed internally, which can prevent hackers from using ssl encryption to take away internal data while satisfying users' access needs. 4.4. packet filtering technology application packet filtering technology is a firewall with information selection qualities. after the computer obtains the transmission information and the destination ip, it has to parse the destination ip data first, compare the packet with the user security registry, identify whether the data contains threat information, and confirm the security before transmitting the packet to the computer. transmission from inside to outside restricts dangerous information from being transmitted; transmission from outside to inside restricts illegal information flow into the computer and internal network. in practice, packet filtering is usually installed on routers and used in conjunction with devices such as bastion hosts to provide security by examining the ip header, tcp header, or udp header of packets. 4.5. configuring the security module we know that the firewall divides the network into several different areas, including the dmz. we then use firewall technology to modularize these one by one areas as a unit for protection, and build up one by one security isolation zones by configuring the firewall, so as to protect the internal network information security. 46 4.6. configuring access policies in general, when setting up the firewall, it is necessary to fully understand the internal and external applications of the computer, classify and analyze the original address, ip address and other information, scientifically and reasonably configure the policy, adopt different policies for different types of information, take corresponding measures, and apply the firewall technology to automatically detect the vulnerabilities generated during operation and remind users to solve them in time, effectively reducing the information in the transmission process this can effectively reduce the risks that may arise during the transmission of information. 5. conclusion computer network security is a complex and relatively large system project, and the firewall is in the key channel of the network, which is the most basic security mechanism in protecting the network security, and its role is pivotal to the information system and data security. due to the increasing scale of computer network applications, especially the rise of the meta-universe, various network attacks have become endless, new network viruses to covert, diversified, industrial development, hacking techniques also continue to evolve, the firewall technology based on network security has put forward higher requirements, only to continue to develop in the direction of intelligent and active, do a good job of network security system risk assessment, develop network security strategy, network security protection system, in order to more effectively maintain and protect network security, to meet the hundreds of millions of internet users to a better life of cloud aspirations. restricted by the level, my views have certain limitations, and hope that experts and scholars and peer’s criticism and correction. references. [1] deng shikun. computer network engineering and planning design [m]. yunnan university press. 2014.09. [2] zheng kaiyuan. computer network security and enterprise network security application research [j]. network security technology and application,2017(03):3-4. [3] tan xiongsheng,huang he. research on the application of firewall technology in computer network security [j]. digital technology and applications,2019,37(01):211+213.doi:10.19695/j.cnki.cn12 -1369.2019.01.109. [4] wang j. computer network management and security technology research ideas framing practice [j]. digital design,2019(8):14. [5] he, tonghui xu, dongsheng zhang, qi. computer network security and defense research [m]. beijing university of technology press.2019.05. [6] wang yijia. analysis of the application of firewall technology in computer network security [j]. computer products and circulation,2020(06):69. [7] pan ye, liu yuan. research on the security protection of computer networks based on firewall technology [j]. network security technology and application,2022(08):6-8. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 3, 2022 42 research on vehicle longitudinal control method based on model predictive control xingbang gao*, jiaojiao li, ruiyuan liu, shuai zhang, pengcheng ma school of transportation and vehicle engineering, shandong university of technology, zibo 255049, china. * corresponding author: xingbang gao. abstract: in order to improve the safety of autonomous vehicles during driving and the comfort of drivers and passengers, the longitudinal dynamics model of the vehicle is first established. secondly, the longitudinal motion control strategy is designed considering the influence of vehicle driving safety and driver comfort. based on this, a longitudinal motion controller based on model predictive control is established. the upper controller uses the model predictive control algorithm to calculate the expected acceleration, and the lower controller uses the vehicle inverse longitudinal dynamics model to convert the expected acceleration calculated by the upper controller into throttle opening and braking pressure. finally, the effectiveness of the longitudinal motion controller is verified by matlab / simulink under different working conditions. the simulation results show that the longitudinal motion controller designed in this paper improves the comfort of drivers and passengers under the premise of ensuring the safety of vehicles. keywords: autonomous vehicle; longitudinal control; model predictive control; occupant comfort; vehicle longitudinal dynamics model. 1. introduction autonomous driving technology has become a research hotspot in the field of automotive engineering due to its significant advantages in traffic safety and traffic efficiency. as one of the three major technical fields of autonomous driving, vehicle motion control can complete the lateral control, longitudinal control and lateral longitudinal coupling control of autonomous vehicles according to the target planning path and speed. stable and efficient longitudinal control is the basis for ensuring safe and comfortable speed tracking of vehicles, and is the key technology to improve driving safety and road traffic efficiency. in terms of control methods, there are two main types of longitudinal motion control: traditional control algorithms and artificial intelligence algorithms. zhang et al. used double pid controller to control the speed and position error of vehicle longitudinal motion. zheng used sliding mode control algorithm to design longitudinal controller and compared it with traditional pid algorithm. zhu et al.designed longitudinal acceleration and braking controller based on fuzzy control method. zheng et al.designed a vehicle longitudinal motion controller based on particle swarm optimization pid algorithm. li et al.adopted a model predictive control method based on improved particle swarm optimization to realize the longitudinal motion control of vehicle. there are many control methods for vehicle longitudinal motion control. the traditional pid control is popular in the market due to its maturity of research and convenience of use, but its control accuracy is poor and its ability to deal with delay problems is not strong. therefore, this paper selects the model predictive control algorithm with higher control precision and better processing delay ability to design the longitudinal motion controller. in the control structure, longitudinal motion control is divided into direct control and hierarchical control structure. direct control has the characteristics of high integration and strong accuracy, but its design is complex and flexible. zheng designed a longitudinal controller based on fuzzy control by direct control. hierarchical control is simpler and more flexible than direct control. jian designed a longitudinal controller with hierarchical control. the upper layer uses sliding mode variable structure control to obtain the desired acceleration, and the lower layer uses fuzzy pid control and longitudinal dynamics model to calculate the throttle opening and braking pressure. in order to study the longitudinal control system, this paper adopts hierarchical control structure. in summary, few existing studies have considered the comfort of the occupants to design the longitudinal motion controller. therefore, this paper builds a vehicle longitudinal dynamics model, comprehensively considers the influence of the motion state of the front vehicle in the same lane on the vehicle and the comfort of the occupants to design the vehicle longitudinal control strategy. based on this, the hierarchical control structure is used to design the longitudinal motion controller based on model predictive control. finally, under different working conditions, simulation experiments are carried out based on matlab / simulink. this paper lays a theoretical foundation for improving vehicle driving safety and diversity of control scenarios. 2. longitudinal vehicle dynamic model the vehicle completes a series of actions such as acceleration, uniform speed and deceleration through the force and reaction force between the ground and the tire. the design of the control algorithm needs to be based on the vehicle dynamics model. therefore, this paper analyzes the force of the vehicle under acceleration and deceleration conditions during driving, and establishes the vehicle driving dynamics model and braking dynamics model: 43 fig.1 longitudinal force diagram of uphill vehicle it can be seen from fig.1 that taking the vehicle with front wheel drive as an example, the vehicle mainly needs to be subjected to its own gravity during driving g ,air resistance wf ,hill climbing resistance if ,rolling resistance ff ,and the driving force acting on the wheel tf or braking force bf . according to newton s second law, the dynamic equilibrium expression of the vehicle uphill can be established as: 𝛿𝛿𝛿𝛿𝑣𝑣𝑥𝑥 ′ = 𝐹𝐹𝑡𝑡 − 𝐹𝐹𝑤𝑤 − 𝐹𝐹𝑖𝑖 − 𝐹𝐹𝑓𝑓 (1) among them, m is the vehicle mass ;δ is the rotational mass conversion coefficient xv is longitudinal speed. the expression of air resistance is : 𝐹𝐹𝑤𝑤 = 1 2 𝐶𝐶𝐷𝐷𝐴𝐴𝐴𝐴𝑢𝑢𝑟𝑟2 (2) among them, dc is the air resistance coefficient ; a is the windward area of the vehicle ; ρ is air density ; ru is the relative speed of speed and wind speed. the expression of slope resistance is : 𝐹𝐹𝑖𝑖 = 𝛿𝛿𝑚𝑚 𝑠𝑠𝑠𝑠𝑠𝑠 𝜃𝜃 (3) among them,θ is the slope angle of the road. the expression of rolling resistance is : 𝐹𝐹𝑓𝑓 = 𝛿𝛿𝑚𝑚𝑚𝑚 𝑐𝑐𝑐𝑐𝑠𝑠 𝜃𝜃 (4) among them, f is the rolling resistance coefficient. during the driving process of the vehicle, the expression of the driving force tf of the engine acting on the tire is: 𝐹𝐹𝑡𝑡 = 𝑇𝑇𝑡𝑡 𝑟𝑟 = 𝑇𝑇𝑡𝑡𝑡𝑡𝑠𝑠𝑔𝑔𝑠𝑠0𝜂𝜂𝑡𝑡 𝑟𝑟 (5) among them, tqt is engine torque; gi , 0i are the transmission ratio of transmission and main reducer respectively; tη is the mechanical efficiency of the transmission; r is the wheel radius. vehicle braking process, the ground on the tire braking force bf to replace the driving force engine driving force acting on the tire, the expression is : 𝐹𝐹𝑏𝑏 = 𝑇𝑇𝑏𝑏 𝑟𝑟 ≤ 𝐹𝐹𝑍𝑍𝜑𝜑 (6) among them, bt is the friction torque of the brake; zf is the normal reaction force of the ground to the tire;ϕ is the ground adhesion coefficient. the direction of the force of the vehicle is different in the uphill, downhill, acceleration and braking. it is necessary to change the direction of the force in the model. the overall idea is similar to the uphill driving of the vehicle, and it is not described too much in the text. 3. longitudinal controller design based on model predictive control 3.1. longitudinal control strategy considering motion state of other vehicles in addition to the road environment and regulations, the vehicle speed is also affected by the motion state of other participants in the traffic system. in the normal driving process, when the speed of the front vehicle in the same lane is low, or the front vehicle is braked from a higher speed to a lower speed, a traffic conflict will occur to the normal driving of the vehicle. in order to avoid accidents, the vehicle should take braking to control longitudinal motion; when the current vehicle speed is greater than the self-vehicle or away from the current lane of the self-vehicle, the self-vehicle should drive stably at the set speed. in the process of driving, ensuring the safety of vehicle driving is the bottom line of autonomous driving technology. if the acceleration can be constrained on this basis to achieve predictive braking, the comfort of drivers and passengers can be greatly improved. therefore, aiming at the safety and comfort of autonomous vehicles, this paper designs a longitudinal control strategy considering the motion state of the preceding vehicle under the following traffic conflict conditions. (1) condition 1: the same lane in front of the car or stationary speed when the front vehicle in the same lane runs at a constant speed and the speed of the front vehicle is less than that of the self-vehicle, if the self-vehicle cannot complete the braking within a safe distance, the two vehicles will have traffic conflicts. in order to avoid accidents, the longitudinal speed of the vehicle should be controlled. since the vehicle does not need the driver s control in the autonomous driving state, the driver s reaction time is not included in the braking process, and replaced by the reaction time of the autonomous driving system. let the system reaction time be rt ,the braking force growth time is it , the continuous braking time is ct , the initial speed of the self-vehicle is m0v , and the initial speed of the front vehicle is 0qv ,under this condition, the minimum safety distance min1s from the self-vehicle to the two vehicles without collision is : 𝑆𝑆𝑚𝑚𝑖𝑖𝑚𝑚1 = �𝑣𝑣𝑚𝑚0 − 𝑣𝑣𝑡𝑡0�𝑡𝑡𝑟𝑟 + 1 2 �𝑣𝑣𝑚𝑚0 − 𝑣𝑣𝑡𝑡0�𝑡𝑡𝑖𝑖 − �𝑣𝑣𝑚𝑚0−𝑣𝑣𝑞𝑞0� 2 2𝑎𝑎𝑏𝑏𝑚𝑚𝑚𝑚𝑚𝑚 + 𝑎𝑎𝑏𝑏𝑚𝑚𝑚𝑚𝑚𝑚 𝑡𝑡𝑖𝑖2 24 where maxba is the maximum braking deceleration? in the actual driving process, in order to improve the safety, the critical state of no collision should not be considered only when braking. when the braking process is completed, a certain distance should be retained between the two vehicles, and the longitudinal control of the vehicle still needs to improve the comfort as much as possible under the premise of ensuring safety. in order to improve comfort, experienced drivers will gradually increase the braking pedal to a certain appropriate braking force and maintain it for a period of time when performing braking operations under safe conditions. when the vehicle brakes to a safe speed or stops, the driver will gradually reduce the braking force to ensure smooth and comfortable braking. based on this, this paper constrains the 44 braking deceleration, and uses the trapezoidal braking deceleration curve to represent the change of acceleration with time in the braking stage, as shown in fig.2. fig.2 vehicle speed change with time after constraint, the expected safety distance 𝑆𝑆𝑒𝑒1 under condition 1 is: 𝑆𝑆𝑒𝑒1 = �𝑣𝑣𝑚𝑚0 − 𝑣𝑣𝑡𝑡0� �𝑡𝑡𝑟𝑟 + 𝑡𝑡𝑖𝑖 2 � − �𝑣𝑣𝑚𝑚0 − 𝑣𝑣𝑡𝑡0� 2 2𝑎𝑎𝑒𝑒 + 𝑎𝑎𝑒𝑒𝑡𝑡𝑖𝑖2 24 − 𝑎𝑎𝑒𝑒𝑡𝑡𝑑𝑑2 6 + 𝑆𝑆0 in the formula, ea is the expected acceleration, dt is the time required for the braking force slow-down stage, 0s is the distance between the two cars when the two cars brake to the same speed, referring to the mazda safety distance model, here take 5m. when the preceding vehicle in the same lane is stationary, it is only necessary to set the preceding vehicle speed𝑣𝑣𝑡𝑡0 = 0 in formulas (1) and (2). therefore, under condition 1, after setting the comfortable expected acceleration ea , the braking force increase time it , and the braking force slow-down phase time dt ,the expected safety distance that takes into account both safety and comfort can be calculated. when the distance between the two vehicles is less than the minimum safety distance min1s , emergency braking is taken; when the distance between the two cars is in[𝑆𝑆𝑒𝑒1 , 𝑆𝑆𝑒𝑒1 + 5], comfortable braking is adopted. (2) condition 2: uniform deceleration in the same lane when the vehicle in front of the same lane slows down, and the current speed is less than the speed of the vehicle, the vehicle needs to control the longitudinal speed to avoid traffic conflicts. under condition 2, the minimum safety distance min 2s from the car to take emergency braking to the two cars without collision is: 𝑆𝑆𝑚𝑚𝑖𝑖𝑚𝑚 2 = 𝑣𝑣𝑚𝑚0𝑡𝑡𝑟𝑟 + 𝑣𝑣𝑚𝑚0𝑡𝑡𝑖𝑖 2 + 𝑣𝑣𝑡𝑡2 − 𝑣𝑣𝑚𝑚02 2𝑎𝑎𝑏𝑏𝑚𝑚𝑎𝑎𝑥𝑥 + 𝑎𝑎𝑏𝑏𝑚𝑚𝑎𝑎𝑥𝑥 𝑡𝑡𝑖𝑖2 24 − 𝑣𝑣𝑡𝑡2 − 𝑣𝑣𝑡𝑡02 2𝑎𝑎𝑏𝑏𝑡𝑡 in the formula, qv is the speed of the front vehicle after braking, and bqa is the braking deceleration of the front vehicle. after the driver s comfort is taken into account to impose constraints on the self-driving brake deceleration, the expected safety distance 2es under condition 1 is: 𝑆𝑆𝑒𝑒2 = 𝑣𝑣𝑚𝑚0𝑡𝑡𝑟𝑟 + 𝑣𝑣𝑚𝑚0𝑡𝑡𝑖𝑖 2 + 𝑣𝑣𝑡𝑡2 − 𝑣𝑣𝑚𝑚02 2𝑎𝑎𝑒𝑒 + 𝑎𝑎𝑒𝑒𝑡𝑡𝑖𝑖2 24 + 𝑣𝑣𝑡𝑡𝑡𝑡𝑑𝑑 − 𝑎𝑎𝑒𝑒𝑡𝑡𝑑𝑑2 6 − 𝑣𝑣𝑡𝑡2 − 𝑣𝑣𝑡𝑡02 2𝑎𝑎𝑏𝑏𝑡𝑡 + 𝑆𝑆0 under condition 2, when the distance between the two vehicles is less than the minimum safety distance𝑆𝑆𝑚𝑚𝑖𝑖𝑚𝑚 2 , emergency braking is taken; when the distance between the two cars is in[𝑆𝑆𝑒𝑒2 , 𝑆𝑆𝑒𝑒2 + 5], comfortable braking is adopted. 3.2. longitudinal controller design based on model predictive control the model predictive control algorithm is used to design the hierarchical longitudinal motion controller. the upper controller is based on the model predictive control algorithm to obtain the expected acceleration𝑎𝑎𝑒𝑒according to the relative distance 𝑑𝑑𝑟𝑟𝑒𝑒 between the two vehicles, the front vehicle speed𝑣𝑣𝑡𝑡 , the initial vehicle speed𝑣𝑣𝑚𝑚0 , and the real-time vehicle speed𝑣𝑣𝑚𝑚. the lower controller is based on the vehicle inverse longitudinal dynamics model, and the control acceleration output by the upper layer is converted into throttle opening and braking pressure, and finally the vehicle can stably complete the speed tracking. the structure design of the longitudinal motion controller is shown in fig.3: fig. 3 structure diagram of longitudinal motion controller (1) upper controller design in this paper, only the longitudinal motion of the vehicle is studied, and the influence of yaw motion on the longitudinal motion control of the vehicle is neglected. therefore, the acceleration of the vehicle is approximately equal to the first derivative of the longitudinal speed of the vehicle to time, and the longitudinal control of the vehicle can be expressed by the first order inertial system. 𝑎𝑎′ = 𝐾𝐾(𝑎𝑎𝑒𝑒 − 𝑎𝑎𝑡𝑡) 𝜏𝜏 𝐾𝐾 is the system gain; 𝑎𝑎𝑡𝑡 is the actual longitudinal acceleration; τ is the time constant. the continuous state equation of the vehicle can be expressed as: 𝑥𝑥 ′ = � 0 1 0 − 1 𝜏𝜏 � 𝑥𝑥 + � 0 𝐾𝐾 𝜏𝜏 � 𝑢𝑢 in the formula, x is a continuous state quantity; u is the system control input, 𝑢𝑢 = 𝑎𝑎𝑒𝑒 . the discrete state equation of the system is obtained by discretizing eq. (11): 𝑥𝑥(𝜆𝜆 + 1) = 𝐴𝐴𝜆𝜆𝑥𝑥(𝜆𝜆) + 𝐵𝐵𝜆𝜆𝑢𝑢(𝜆𝜆) where aλ is the state matrix, 𝐴𝐴𝜆𝜆 = � 1 𝑇𝑇𝑐𝑐 0 1 − 𝑇𝑇𝑐𝑐 𝜏𝜏 �; bλ is the control input matrix, 𝐵𝐵𝜆𝜆 = � 0 𝐾𝐾𝑇𝑇𝑐𝑐 𝜏𝜏 �; λ is the current sampling time ; 𝜆𝜆 + 1 is the next sampling time ; ct is the sampling period. speed as the output of the system, the output equation is: 𝑣𝑣(𝜆𝜆) = 𝑐𝑐𝑥𝑥(𝜆𝜆), 𝑐𝑐 = [0 1] according to the control strategy designed by 3.1, the control goal of the automatic driving vehicle in the actual 45 driving process is to improve the driving comfort as much as possible under the premise of ensuring the safety of the vehicle speed tracking accuracy, that is, not to occur violent acceleration and deceleration and acceleration and deceleration rate of change. based on this, the system performance evaluation index (objective function) is: 𝐽𝐽�𝑥𝑥(𝜆𝜆),𝑢𝑢(𝜆𝜆 − 1),𝛥𝛥𝑢𝑢(𝜆𝜆)� ��𝑌𝑌𝑝𝑝(𝜆𝜆 + 𝑠𝑠|𝜆𝜆) − 𝑌𝑌𝑟𝑟𝑒𝑒(𝜆𝜆 + 𝑠𝑠|𝜆𝜆)� 𝑁𝑁𝑝𝑝 𝑖𝑖=1 𝑄𝑄 2 +�‖𝛥𝛥𝑢𝑢(𝜆𝜆 + 𝑠𝑠|𝜆𝜆)‖ 𝑁𝑁𝑐𝑐 𝑖𝑖=1 𝑅𝑅 2 + 𝜀𝜀𝜎𝜎2 in the formula, pn is the prediction time domain ; cn is the control time domain ;𝜆𝜆 + 𝑠𝑠|𝜆𝜆 indicates that the state value at time 1λ + is predicted according to the state value at time λ ;𝑌𝑌𝑝𝑝(𝜆𝜆 + 𝑠𝑠|𝜆𝜆)is the output prediction value ;𝑌𝑌𝑟𝑟𝑒𝑒(𝜆𝜆 + 𝑠𝑠|𝜆𝜆)is the output reference value ; q and r are weight matrix ;ε is the weight coefficient ;σ is the relaxation factor. in order to ensure that the system output is within a reasonable range, it is necessary to add active constraints, namely acceleration constraint and acceleration change rate constraint: 𝑢𝑢𝑒𝑒𝑚𝑚𝑖𝑖𝑚𝑚 ≤ 𝑢𝑢(𝜆𝜆 + 𝑠𝑠) ≤ 𝑢𝑢𝑒𝑒𝑚𝑚𝑎𝑎𝑥𝑥 (𝑠𝑠 = 1,2, …𝑁𝑁) 𝛥𝛥𝑢𝑢𝑒𝑒𝑚𝑚𝑖𝑖𝑚𝑚 ≤ 𝛥𝛥𝑢𝑢(𝜆𝜆 + 𝑠𝑠) ≤ 𝛥𝛥𝑢𝑢𝑒𝑒𝑚𝑚𝑎𝑎𝑥𝑥 (𝑠𝑠 = 1,2, . . .𝑁𝑁) where𝑢𝑢(𝜆𝜆 + 1)and𝛥𝛥𝑢𝑢(𝜆𝜆 + 1)are the longitudinal expected acceleration constraint and its incremental constraint ; mineu and maxeu are the minimum and maximum of the longitudinal expected acceleration constraint, respectively ;𝛥𝛥𝑢𝑢𝑒𝑒𝑚𝑚𝑖𝑖𝑚𝑚 and𝛥𝛥𝑢𝑢𝑒𝑒𝑚𝑚𝑎𝑎𝑥𝑥 are the minimum and maximum values of the longitudinal expected acceleration increment constraint, respectively. the system solves the optimization problem at each moment, obtains the optimal input control quantity, and takes the first control quantity as the output quantity. the system will re-predict the control state of the next moment according to the current state, and continuously scroll the optimization until the control is completed. the optimization problem of model predictive control can be transformed into a quadratic programming problem: 𝛿𝛿𝑠𝑠𝑠𝑠 δ𝑈𝑈 1 2 𝑈𝑈𝑇𝑇𝐻𝐻δ𝑈𝑈 + 𝐺𝐺𝑇𝑇δ𝑈𝑈 𝑠𝑠. 𝑡𝑡. 𝑈𝑈𝑒𝑒𝑚𝑚𝑖𝑖𝑚𝑚 ≤ 𝐴𝐴1δ𝑈𝑈 + 𝑈𝑈𝜏𝜏 ≤ 𝑈𝑈𝑒𝑒𝑚𝑚𝑎𝑎𝑥𝑥 δ𝑈𝑈𝑒𝑒𝑚𝑚𝑖𝑖𝑚𝑚 ≤ δ𝑈𝑈𝜏𝜏 ≤ δ𝑈𝑈𝑒𝑒𝑚𝑚𝑎𝑎𝑥𝑥 in the formula,𝐻𝐻 ∈ 𝑅𝑅2×2;𝐺𝐺 ∈ 𝑅𝑅2;δ𝑈𝑈 = [δ𝑢𝑢(𝜆𝜆), δ𝑢𝑢(𝜆𝜆 + 1), . . . , δ𝑢𝑢(𝜆𝜆 + 𝑠𝑠)]𝑇𝑇;𝑈𝑈𝜏𝜏 = 1𝑁𝑁𝑒𝑒 ⊗ 𝑢𝑢(𝜆𝜆 − 1) , 1 en is the unit vector of en line, ( )1u λ − is the control quantity of the previous moment ; mineu and maxeu are the minimum and maximum sets of the control quantity in the control time domain respectively. mineu∆ and maxeu∆ are the minimum and maximum sets of control increment in control time domain respectively ; 𝐴𝐴1 = ⎝ ⎜ ⎛ 1 0 0 ⋯ 0 1 1 0 ⋯ 0 1 1 1 ⋯ 0 ⋮ ⋮ ⋮ ⋮ 1 1 1 ⋯ 1⎠ ⎟ ⎞ 𝑁𝑁𝑒𝑒×𝑁𝑁𝑒𝑒 . the quadratic programming problem can be solved by the quadprog function provided in matlab. (2) lower layer controller design in order to avoid damage to the vehicle system, the brake pedal and the accelerator pedal cannot be operated at the same time during the driving process of the vehicle. at the same time, considering the comfort of the occupants, frequent switching between braking and driving is avoided. based on this, the switching logic is designed according to the expected acceleration of the vehicle. mod = � 𝑎𝑎𝑗𝑗 , 𝑎𝑎𝑒𝑒 ≥ 𝑎𝑎𝑚𝑚𝑎𝑎𝑥𝑥 + 𝛥𝛥𝑎𝑎 0 , 𝑎𝑎𝑚𝑚𝑎𝑎𝑥𝑥 − 𝛥𝛥𝑎𝑎 ≤ 𝑎𝑎𝑒𝑒 ≤ 𝑎𝑎𝑚𝑚𝑎𝑎𝑥𝑥 + 𝛥𝛥𝑎𝑎 𝑎𝑎𝑏𝑏 , 𝑎𝑎𝑒𝑒 ≤ 𝑎𝑎𝑚𝑚𝑎𝑎𝑥𝑥 − 𝛥𝛥𝑎𝑎 mod is the output mode ; ja represents the drive mode ; ba represents the braking mode ; maxa is the maximum deceleration when the throttle opening is 0 ; a∆ is the dead zone buffer value. from eqs.(1)-(5), the expected output torque of the engine is : 𝑇𝑇𝑡𝑡𝑡𝑡 = �𝛿𝛿𝛿𝛿𝑎𝑎𝑒𝑒 + 1 2𝐶𝐶𝐷𝐷𝐴𝐴𝐴𝐴𝑢𝑢𝑟𝑟 2 + 𝛿𝛿𝑚𝑚 𝑠𝑠𝑠𝑠𝑠𝑠 𝜃𝜃 + 𝛿𝛿𝑚𝑚𝑚𝑚 𝑐𝑐𝑐𝑐𝑠𝑠 𝑠𝑠𝑔𝑔𝑠𝑠0𝜂𝜂𝑡𝑡 the expected throttle opening tvpa can be obtained according to the external characteristics of the engine and the power and torque curve: 𝑎𝑎𝑡𝑡𝑣𝑣𝑝𝑝 = 𝑚𝑚�𝑠𝑠,𝑇𝑇𝑡𝑡𝑡𝑡� the longitudinal dynamic model of the vehicle established by 2.1 shows that the braking force required by the vehicle in the braking process is braf : 𝐹𝐹𝑏𝑏𝑟𝑟𝑎𝑎 = 𝛿𝛿𝛿𝛿𝑎𝑎𝑒𝑒 − 1 2 𝐶𝐶𝐷𝐷𝐴𝐴𝐴𝐴𝑢𝑢𝑟𝑟2 − 𝛿𝛿𝑚𝑚 𝑠𝑠𝑠𝑠𝑠𝑠 𝜃𝜃 − 𝛿𝛿𝑚𝑚𝑚𝑚 𝑐𝑐𝑐𝑐𝑠𝑠 𝜃𝜃 therefore, the expected brake master cylinder pressure bp is: 𝑃𝑃𝑏𝑏 = 𝐹𝐹𝑏𝑏𝑟𝑟𝑎𝑎 𝑘𝑘𝑏𝑏 4. longitudinal control simulation analysis in order to verify the control effect of the longitudinal motion controller, matlab / simulink is used to build the longitudinal controller simulation model based on model predictive control, including the self-vehicle control model and the other-vehicle control model, and the longitudinal control of the self-vehicle is simulated under three conditions : the same-lane vehicle driving at a constant speed or at rest, the same-lane vehicle decelerating, the same-lane vehicle accelerating or driving out of the current lane. 4.1. build simulation model through matlab / simulink, the front vehicle model, the longitudinal control model and the visual model are built respectively. the dynamic model between acceleration and speed is used to build the front vehicle model. the simulation model of the self-driving car mainly includes three driving modes: constant speed cruise, intelligent car-following and emergency braking. the constant speed cruise mode can track the set speed and drive steadily. the intelligent car-following mode can track the front vehicle speed and maintain a certain safe distance. the emergency braking mode can make the vehicle brake at the maximum deceleration when the safe distance cannot be guaranteed to avoid or reduce the damage 46 caused by the accident. in order to realize the switching of the three modes and realize the continuous and complete longitudinal control, the state machine is used to switch the three driving modes according to the safe distance set by section 3.1. the simulation structure of the vehicle longitudinal motion control model based on model predictive control is shown in fig.4. fig. 4 simulation framework of longitudinal motion control 4.2. simulation results and analysis according to the longitudinal motion simulation model of the self-driving vehicle built above, the longitudinal motion control of the self-driving vehicle under the three conditions of the front vehicle driving at a constant speed below the selfdriving vehicle speed, the front vehicle decelerating and the front vehicle accelerating is simulated. (1) condition 1: the preceding vehicle travels at a constant speed below its own speed the initial speed of the front vehicle is set to 20 m/s, the target cruise speed is 20 m/s, and the initial position is 40 m in front of the vehicle. the initial speed of the vehicle is set to 20 m/s, and the target cruise speed is set to 25 m/s. the simulated velocity and acceleration results are shown in fig.5: fig.5 curves of self-driving speed and acceleration versus time under condition 1 as shown in fig.7, at the beginning of the simulation, the self-driving car first accelerates to track the set target cruise speed, but in the acceleration process, the relative distance between the self-driving car and the front car is less than the expected safe distance under this condition. therefore, the self-driving car adjusts the speed and finally stabilizes the speed to about 20 m/s, that is, the speed of the front car is equal to that of the front car, and the acceleration range is [2,2], which is within the expected comfortable acceleration range. finally, the safe and comfortable intelligent carfollowing driving is realized. (2) condition 2: front car slows down the initial vehicle speed is set to 25 m/s, the target cruise speed is 15 m/s, and the initial position is 40 m in front of the vehicle. the initial speed of the vehicle is set to 20 m/s, and the target cruise speed is 20 m/s. the simulated velocity and acceleration results are shown in fig.6: fig.6 the curve of self-driving speed and acceleration with time under condition 2 as shown in fig.8, at the beginning of the simulation, the vehicle runs at a uniform speed of 20 m/s, and the front vehicle brakes from the initial 25 m/s to 15 m/s. at about the 5th second of the simulation, the relative distance between the two vehicles is less than the expected safe distance, and the self-vehicle is converted from the fixed-speed cruise mode to the intelligent car-following mode, and the self-vehicle speed is adjusted to make the self-vehicle speed consistent with the front vehicle speed. in this process, the actual acceleration range is[-2,0.75], in line with the expected comfortable acceleration, and ultimately to achieve safe and comfortable car following. (3) condition 3: front vehicle accelerates the initial vehicle speed is set to 15 m/s, the target cruise speed is 30 m/s, and the initial position is 30 m in front of the vehicle. the initial speed of the vehicle is set to 20 m/s, and the target cruise speed is 25 m/s. the simulated velocity and acceleration results are shown in fig.7: fig.7 the curve of self-driving speed and acceleration with time under condition 3 as shown in fig.9, at the beginning of the simulation, the speed of the front vehicle is less than that of the self-vehicle, and the relative distance between the two vehicles is less than the expected safe distance. therefore, the self-vehicle turns to the intelligent car-following mode to track the speed of the front vehicle. with the passage of time, the speed of the front vehicle is gradually higher than that of the self-vehicle, and when the relative distance between the two vehicles is greater than the expected safe distance, the self-vehicle changes from the intelligent following mode to the fixed-speed cruise mode, and accelerates with the expected comfortable acceleration until the target cruise speed set by the self-vehicle is reached. in this process, the acceleration threshold ranges from [−2, 2] to the desired comfortable acceleration range. 5. conclusion in this paper, a vehicle longitudinal motion controller based on model predictive control is established by considering the motion state of the preceding vehicle and the comfort of the driver and passenger. the effectiveness of the longitudinal motion controller is simulated by matlab / simulink under three conditions: the constant speed of the preceding vehicle, the constant speed of the preceding vehicle lower than the speed of the vehicle, the deceleration of the preceding vehicle and the acceleration of the preceding vehicle. 47 (1) the vehicle longitudinal motion controller based on model predictive control can realize the longitudinal motion control of the controlled vehicle according to the motion state of the preceding vehicle. according to different working conditions, the controlled vehicle can be switched under three driving modes: constant speed cruise, intelligent following and emergency braking, which improves the driving safety. (2)a longitudinal motion control method is proposed. under the premise of ensuring the safety of vehicle driving, the comfort of drivers and passengers is considered comprehensively, and the control of vehicle longitudinal motion state is completed by adopting a more moderate comfortable acceleration, which improves the driving comfort. references [1] yin zhishuai, he jiaxiong, nie linzhen, butler. longitudinal adaptive control of autonomous vehicles based on optimization algorithms [j]. journal of system simulation,2021, 33(02): 409420. doi:10.16182/j.issn1004731x.joss.19-0372. [2] riley, zhang tong. longitudinal following control of intelligent platoon based on fuzzy mpc[j] .journal of jiangsu university ( natural science edition ),2022,43(04):394399+430. [3] zhang xuyuan, li jun. lateral and longitudinal coordinated control of intelligent electric vehicle trajectory tracking based on lqr double pid[j].journal of automotive safety and energy saving,2021,12(03):346-354. [4] zheng yannan. longitudinal study of following vehicle based on sliding mode control[j].agricultural equipment and vehicle engineering,2022,60(04):103-107. [5] zhu zenghui, xu youchun, ma yulin, li jianshi, li yongle. design of intelligent vehicle longitudinal acceleration tracking controller based on fuzzy control[j].journal of military transportation college,2014,16(12):31-35. [6] zheng shuhua, qiao yajun, wang xiangzhou, li shouxiang, chen dongqing. research on influence of load change on mine vehicle trajectory tracking[j].journal of beijing university of technology,2021,41(04):403409.doi:10.15918/j.tbit1001-0645.2019.320. [7] li guangnan, ye hongtao, luo wenguang. longitudinal motion control of unmanned vehicle based on ipsompc[j].journal of guangxi university of science and technology,2022,33(01): 94100+109.doi:10.16375/j.cnki.cn45-1395/t.2022.01.014. [8] research on automatic driving control strategy of intelligent vehicle on special road[d].chongqing jiaotong university,2018. [9] jiang shuzhen.research on lateral and longitudinal integrated control strategy of intelligent vehicle trajectory tracking[d].chang'an university,2021.doi:10.26976/d.cnki.gchau.2021.001930. [10] wu hao, wang sishan, zhou haiying, shang rong. design of intelligent vehicle lateral and longitudinal controller based on model predictive control[j].journal of hubei university of automobile industry,2021,35(01):11-16+20. [11] he xianglin. research on lateral and longitudinal control strategy of unmanned vehicle path tracking[d].hunan university,2020.doi:10.27135/d.cnki.ghudu.2020.003390. research on vehicle longitudinal control method based on model predictive control 1. introduction 2. longitudinal vehicle dynamic model 3. longitudinal controller design based on model predictive control 3.1. longitudinal control strategy considering motion state of other vehicles 3.2. longitudinal controller design based on model predictive control 4. longitudinal control simulation analysis 4.1. build simulation model 4.2. simulation results and analysis 5. conclusion references frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 2, 2022 44 efficient incentive mechanism for video distribution on the home internet of things devices rongrong zhu, xiaofang zhang* school of intelligent engineering, shaoguan university, shaoguan 512000, china. * corresponding author: xiaofang zhang (email: findlabzrr@163.com). abstract: providing users with nearby video distribution services based on edge computing (ec) reduces backbone traffic and improves users' viewing experience. however, the behavior of edge networks is difficult to manage and cannot guarantee the rationality of video resource distribution, which has become a significant challenge for online video services. this paper takes the idle resources from home internet of things (iot) devices for video distribution service as the research point. it proposes an incentive mechanism based on behavior management and balance of resources (bmbr). by paying attention to the rationality of resource distribution and establishing reasonable reward and punishment measures for edge devices, the incentive mechanism makes the initiative of edge devices and the relationship between resource supply and demand reach a stable equilibrium. simulation results and analysis show that the incentive mechanism can effectively improve the enthusiasm for resource sharing in the edge network, ensure the rationality of resource distribution to reduce the resource price fluctuations, and maintain the balance of resource supply and demand. keywords: internet of things; edge computing; idle resources; incentive; resource balance. 1. introduction with the rapid development of online video, live broadcasts, and other services, consumers have put forward higher requirements for video content and a good viewing experience [1]. in the current global network, data traffic is growing explosively, and video has become the primary carrier of network traffic [2]. cisco visual networking index [3] shows that 75% of global data traffic in 2017 was generated by video, and this figure will reach 86% in 2024. in terms of iot devices, by 2022, there are more than 60 billion home iot devices, but effective utilization of resources is only 28% [4]. home iot device brings convenience for the users and generates significant idle resources. to reduce the investment of video service providers in bandwidth, storage, and other network resources, it has become reliable solution to build content distribution services by mining the idle resources of home iot devices [5]. the content distribution service of the edge network refers to the deployment of content data on edge devices close to users or user terminal devices to provide lower content service delay [6]. video content distribution based on ec has become a hot spot in the current academic and industrial circles. sun et al. [7] proposed a framework for video content distribution through the network, storage, and computing capabilities of ec. they gave the optimization strategy design of video distribution such as edge caching and replacement, edge content prefetching, edge content collection, and ec migration under this framework. markakis et al. [8-9] proposed unified computing, caching, and communication (3c) solution for 5g, which allows service, content, and function providers to deploy their services, content, and functions near end users. the solution also will enable end-users to share and cooperate to form a virtual edge resource pool. end-users will be able to become 3c resource providers of the edge network ecosystem. some network systems and peer-to-peer (p2p) systems use end-user devices to share content resources, such as the file sharing system platforms, bittorrent, boinc [10], and seti@ home [11]. these volunteer platforms apply to file-sharing systems. researchers at the university of minnesota have studied the possibility of using users' resources to provide content services near edge networks and proposed a distributed edge cloud system. nebula [12] supports distributed data-intensive applications through close interaction between resources, supports field data-intensive application deployment through location-aware data placement, replication, and recovery, and utilizes edge resources. li et al. [13] designed network middleware for developing countries, such as low network bandwidth and unstable service quality. they realized a better offline download experience by combining the download methods based on cloud hosts and intelligent routers, that is, the middleware. the software downloads the content requested by the user in advance; after downloading, users can get the content at high speed. hu [14] et al. proposed a new architecture for video content distribution in edge networks. under this new architecture, intelligent routers deployed in users' homes play the role of small content distribution nodes, serving neighboring user requests by caching content and improving the user experience. chen et al. [15] developed a crowdsourcingbased content distribution model by utilizing idle bandwidth resources and storage resources of intelligent routers scattered in users' homes and measured the performance of the system through practical deployment. chang et al. [16] the proposed fog computing system, indie fog, which considers consumer resource sharing and suggests that network infrastructure providers or cloud service providers could leverage user equipment to provide edge-based services. given some incentives, consumers will be willing to share their devices with providers to provide services. in addition to utilizing the idle resources of consumers, it is also possible to self-deploy data centers to provide content services, such as cloudpath proposed by mortazavi et al. [17], which deploys a multilayer cloud structure within the geographic scope of the network, along with iot devices and 45 a cloud path to a data center, deploying a chain of data centers that grow in size to provide storage resources. cloudpath supports the dynamic installation of lightweight, stateless functions and a distributed uniform storage system. cloudpath can also automatically migrate application data across data centers to minimize latency and bandwidth usage. kamiyama et al. [18] proposed that the response time of modern websites can be reduced by generating dynamic web content on edge nodes close to ending users. in addition, the author measured the response time of about 1000 popular web pages from 12 locations around the world to assess whether the edge network is suitable for providing dynamic web content. according their experiments, edge networks can reduce web response time around the world. mehta et al. [19] focused on solving the following problems: where the edge data center must be placed and how much computing power needs to be allocated to each data center to achieve high-cost performance while meeting the bandwidth and performance requirements of applications. the author believes that adding an edge layer data center can save many costs for network-intensive applications, while adding an intermediate data center near the data center benefits low and medium-demand computing-intensive applications. norris et al. [20] provide a new capacity planning solution for hierarchical edge clouds. the scheme considers the response delay and the quality of service (qos) requirements for cpu, gpu, and network resources. it improves edge utilization by meeting the qos requirements and combining supplementary resources. el kafhali et al. [21] propose a mathematical analysis model based on queuing theory to determine the number of edge nodes required to meet qos metrics given iot workload. from this model, the authors derive formulas for key performance indicators, including system response time, system packet loss, system throughput, cpu utilization, and the average number of message requests, and cross-validate them using discrete-event simulator simulations. the above literature has positively contributed to edge network architecture and content distribution strategy research. the solutions mentioned in the literature, such as the deployment of data centers, the investment of computing resources, and the optimization of distribution strategies, have made in-depth and practical research in improving edge network computing power and response speed. however, there are few studies on using home iot devices for edge computing services in the academic field. as the primary source of idle resources, home iot devices have natural location advantages, sufficient computing resources, and lowcost access and maintenance. it is well combined for edge computing, but the behavior is difficult to manage, and the reasonable allocation of resources cannot be guaranteed, which has become an unstable factor for it as an edge computing node. this paper takes home iot devices as the research object and, based on distributed ec services, proposes an incentive mechanism based on behavior management and balance of resources to manage edge devices, and improve their enthusiasm for resource sharing and utilization of idle resources through the incentive mechanism. section 2 introduces the rules, definitions, and calculation methods of some critical data of bmbr. section 3 analyzes how to improve the enthusiasm for resource sharing of edge devices and the formation process of resource balance through game theory. the simulation results are given and discussed in section 4. section 5 provides the conclusion of this paper and the follow-up work arrangement. 2. bmbr model the model is mainly composed of three parts, including the reputation mechanism, competition mechanism, and punishment mechanism. through the cooperation of the three, an incentive mechanism with reputation value as the core is formed to manage edge devices’ behavior while ensuring the rationality of resource distribution. we call home iot devices that provide edge computing as edge nodes. 2.1. reputation mechanism the model is mainly composed of three parts, including the reputation mechanism, competition mechanism, and punishment mechanism. through the cooperation of the three, an incentive mechanism with reputation value as the core is formed to manage edge devices’ behavior while ensuring the rationality of resource distribution. we call home iot devices that provide edge computing as edge nodes. 2.1.1. reputation mechanism the reputation mechanism describes the definition and calculation method of reputation-related parameters in the service process of edge nodes. reputation represents the situation of the node's request and contributing resources before time 𝑡 . income refers to the reward given by the system after devices share idle resources. the reputation mechanism is described as follows: definition 1. the initial reputation value of the edge node and the minimum reputation threshold are both 0. when 𝑅𝑖 < 0, there would be no income when providing services, but the reputation value would increase. definition 2. the system prices resources based on the existing quantity of each resource and the number of times it has been requested in the most recent period. define the degree of scarcity𝑆(𝑚, 𝑡) = 𝑁𝐹(𝑚,𝑡) 𝑁𝐶(𝑚,𝑡) , and the resource price can be calculated as follows: 𝑃(𝑚, 𝑡) = 𝑆(𝑚, 𝑡)𝐾𝑏 = 𝑁𝐹(𝑚, 𝑡) 𝑁𝐶(𝑚, 𝑡) 𝐾𝑏 , 𝐾𝑏 ≠ 0 (1) 𝐾𝑏 is the base price of the resource, 𝑁𝐶(𝑚, 𝑡) is the quantity of the existing resource 𝑚 at time 𝑡 , and 𝑁𝐹(𝑚, 𝑡) is the number of requests for the resource m in the most recent 𝑇0 period. the price of resources will change with the degree of scarcity of resources in time 𝑇0 , which has good real-time performance. resources with high lack are usually in short supply, and the node can obtain higher benefits by sharing resources with high scarcity. definition 3. let the reputation value consumed by the edge node provide resources each time 𝐺(𝑖), which is related to the bandwidth and storage overhead of the current node. definition 4. let the number of resources contributed by the edge node currently be 𝑐𝑖 , and define the contribution coefficient 𝑔(𝑐𝑖) , then the contribution coefficient of the node can be calculated as follows: 𝑔(𝑐𝑖) = ( 𝑐𝑖 1 + 𝑐𝑖 ) , 𝛼 > 0 (2) it can be seen that the contribution coefficient increases gradually with the increase of the number of resources contributed by the edge nodes. definition 5. the increment of the resource reputation each time the node contributes is 𝑅+(𝑐𝑖 , 𝑚, 𝑡) = 𝑔(𝑐𝑖)𝑃(𝑚, 𝑡). the more resources contributed by edge nodes, the greater the 46 contribution coefficient, so the more reputation value increments obtained by nodes contributing resources. 2.2. competitive mechanism the platform offers a competition mechanism to select edge nodes with higher reliability to provide video transmission services. the selected nodes are called active nodes, and the reliability of nodes is related to bandwidth, storage, and reputation value. definition 1. 𝐵(𝑖, 𝑡) is set as the remaining bandwidth percentage of the node at time 𝑡, which can be calculated as follows: 𝐵(𝑖, 𝑡) = 𝐵𝑡_𝑖 𝐵𝑚𝑎𝑥_𝑖 (3) 𝐵𝑡_𝑖 represents the remaining bandwidth value of the node at the current time 𝑡 , and 𝐵𝑚𝑎𝑥_𝑖 represents the initial bandwidth value of the node. under the same conditions, the larger the remaining bandwidth percentage of the node, the easier it is to be selected as a candidate node. definition 2. 𝐻(𝑖, 𝑡) is set as the remaining cache percentage of the node at time t, which can be calculated as follows: 𝐻(𝑖, 𝑡) = 𝐻𝑡_𝑖 𝐻𝑚𝑎𝑥_𝑖 (4) 𝐻(𝑖, 𝑡) represents the remaining cache value of the device at time 𝑡, and 𝐻𝑚𝑎𝑥_𝑖 represents the maximum cache value of the node. under the same conditions, the larger the remaining cache percentage of the node, the easier it is to be selected as a candidate node. definition 3. 𝑊(𝑖, 𝑡) is set as the resource abundance of the node at time t, it can be calculated as follows: 𝑊(𝑖, 𝑡) = 𝜀𝐵(𝑖, 𝑡) + 𝜔𝐻(𝑖, 𝑡) (5) 𝜀 and 𝜔 are the weight values of 𝐵(𝑖, 𝑡) and 𝐻(𝑖, 𝑡), and 𝜀 + 𝜔 = 1. the greater the resource abundance of the node, the more abundant the remaining bandwidth and storage, and the stronger the ability to provide services. definition 4. the minimum threshold of resource abundance is 𝑊(𝑖, 𝑡) . when 𝑊(𝑖, 𝑡) < 𝑊𝐿 , the edge node does not have enough idle resources and will not be chosen first and will only be considered when the number of nodes is insufficient. definition 5. 𝐷(𝑖, 𝑡) is set as the node reliability at time t, which can be calculated as follows: 𝑊(𝑖, 𝑡) = 𝐷(𝑖, 𝑡)𝑅(𝑖, 𝑡) (6) 𝐷(𝑖, 𝑡) is a decisive factor for whether an edge node can be selected? it is reasonable to determine whether an edge node is reliable based on resource abundance and device reputation value. the reputation value of the node is lower when 𝑅(𝑖, 𝑡) < 0. however, it is still possible to transform into a node with a higher reputation value through resource sharing, so it has the opportunity to be selected as a candidate node. 2.3. punishment mechanism with sufficient idle resources, edge nodes may still provide poor quality services, this kind of device is called a negative node, and the system introduces a punishment mechanism to restrict its behavior. rule 1. at time 𝑡, the user initiates a resource request, and the system selects a candidate node that can provide resources according to the actual demand. if a candidate node has problems in the service process, the node will be marked as a negative node; then, the node will be punished by time 𝑇𝑃, which can be calculated as follows: 𝑇𝑝 = 𝑇0 𝑎𝑛 𝑅(𝑖, 𝑡) , 𝑎 > 1 (7) 𝑛 is the number of times the node is punished, and 𝑇0 is the basic penalty time. it can be seen that the more times a node is punished, the longer it is punished. rule 2. during the penalty period, the negative node will increase the reputation value of resource sharing but will not be able to gain benefits. in addition, negative nodes need to download the scarce resources specified by the system to maintain the resource balance. the system asks once per unit time, and the negative node can obtain 𝑎 time reduction reward at time 𝑇0 by downloading the highly scarce resources. that is, the penalty time becomes 𝑇𝑃 − 𝑇0. in this way, the negative nodes that download the scarce resources can be encouraged to provide services to users after the punishment ends. at the same time, the imbalance between the supply and demand of scarce resources can be alleviated. 3. node selection and income analysis 3.1. node selection strategy assuming the number of edge nodes required to complete a video, transmission is 𝑊(𝑖, 𝑡), the number of nodes that can provide services in this area is 𝑁𝑆 . it is necessary to select nodes with better comprehensive conditions for service to ensure the qos. we discuss the selection method of nodes in the following two cases: 𝑵𝑺 ≥ 𝑵𝑹, the steps are as follows: calculate the resource abundance 𝑊(𝑖, 𝑡) of each node. count the number of nodes 𝑁𝐶 that satisfy 𝑊(𝑖, 𝑡) ≥ 𝑊𝐿(𝑖, 𝑡). if 𝑁𝐶 ≥ 𝑁𝑅, calculate the reliability 𝐷(𝑖, 𝑡) of 𝑁𝐶 nodes. select 𝑁𝑅 nodes with larger 𝐷(𝑖, 𝑡) as candidate nodes. if 𝑁𝐶 < 𝑁𝑅, all 𝑁𝐶 nodes are as candidate nodes. calculate the reliability 𝐷(𝑖, 𝑡) of the remaining 𝑁𝑆 − 𝑁𝐶 nodes. select 𝑁𝑅 − 𝑁𝐶 nodes with larger 𝐷(𝑖, 𝑡) as candidate nodes. 𝑵𝑺 < 𝑵𝑹, the steps are as follows: calculate the resource abundance 𝑊(𝑖, 𝑡) of each node. count the number of nodes 𝑁𝐶 that satisfy 𝑊(𝑖, 𝑡) ≥ 𝑊𝐿(𝑖, 𝑡). take 𝑁𝑐 nodes that meet the conditions as candidate nodes. the remaining traffic is compensated by the central server. 3.2. income calculation the income after the node provides a service is determined by reliability, resource tightness, service quality, and other conditions. the income will be reduced if there is a problem with the service quality in the video transmission process. definition 1. the reduced income due to packet loss or offline service quality degradation is defined as 𝐼𝐿 , which can be calculated as follows: 𝐼𝐿 = 𝐾𝑖𝑅𝑙𝑜𝑠𝑠 𝑃(𝑚, 𝑡) 𝑅𝑙𝑜𝑠𝑠 = 𝑁𝐹(𝑚, 𝑡)𝐾𝑖𝐾𝑏𝑅𝑙𝑜𝑠𝑠 𝑁𝐶(𝑚, 𝑡) (8) 𝐾𝑖 is the reverse yield coefficient, 𝑅𝑙𝑜𝑠𝑠 is the packet loss rate, and 𝑁𝑅 is the number of nodes providing services? definition 2. the income obtained by a node by providing services is 𝐼𝑇 , which can be calculated as follows: 𝐼𝑇 = 𝐷(𝑖, 𝑡) 𝑃(𝑚, 𝑡) 𝑁𝑅 𝐾𝑑 (9) 𝐾𝑑 is the positive return coefficient? therefore, the node should be paid as follows: 𝐼 = 𝐼𝑇 − 𝐼𝐿 47 𝐼 = 𝑁𝐹(𝑚, 𝑡)𝐾𝑏 𝑁𝐶(𝑚, 𝑡)𝑁𝑅 ((𝜀𝐵(𝑖, 𝑡) + 𝜔𝐻(𝑖, 𝑡))𝑅(𝑖, 𝑡)𝐾𝑑 − 𝐾𝑖𝑅𝑙𝑜𝑠𝑠) (10) 4. bmbr game analysis according to the above incentive mechanism, edge node 𝑖 is assumed to be selected as a candidate node. the reputation function for node 𝑖 to choose cooperation in a game can be calculated as follows: 𝑅𝐶 = 𝑅(𝑖, 𝑡) + 𝑅+(𝑐𝑖 , 𝑚, 𝑡) − 𝐺(𝑖) = 𝑅(𝑖, 𝑡) + 𝑔(𝑐𝑖)𝑃(𝑚, 𝑡) − 𝑔 (11) in the process of resource interaction, the system is responsible for selecting the node that provides the resource, so the node cannot predict whether it will participate in the next game. assuming that the probability that a node is required to contribute resources in a unit of time is 𝛬 , the mathematical expectation of the penalty time 𝑇𝐵 is 𝐸(𝑇𝐵) . assuming that the probability that node 𝑖 chooses to download the scarce resource during the penalty period is 𝑝, the final penalty time is 𝐸(𝑇𝐵) − 𝑝𝑇0 . during the penalty time, the node will have 𝛬(𝐸(𝑇𝐵) − 𝑝𝑇0) opportunities to provide resources. then the reputation function of node 𝑖 refusing to cooperate in a game can be calculated as follows: ( )0 ( ) ( ) [ ] ( ) f p b c n m,t r r i,t e t pt k n m,t = − − (12) to eliminate the noncooperation motive of node 𝑖, first of all, it must be ensured that the reputation benefit of choosing cooperation is greater than the reputation benefit of choosing noncooperation, that is, 𝑅𝐶 > 𝑅𝑃, which can be obtained: 0 ( ) ( ) ( ) ( ) ( [ ] ) 1 ( ) ( ) i f f b i c c r n m,t n m,t r i,t k g r i,t e t pt k r n m,t n m,t     + −  − −  +  ( )0 ( ) [ ] 1 ( ) i f b i c r n m,t e t pt k g r n m,t      + −    +   (13) second, it is necessary to ensure that the price return of the resource when it chooses to cooperate is greater than 0, that is, 𝐼 > 0: ( )( ) ( ) ( ) 0d i lossb i,t h i,t r i,t k k r + −  ( )( ) ( ) ( ) i loss d k r b i,t h i,t r i,t k  +  (14) by setting reasonable 𝑇0, k, g, and 𝛼 values, according to the actual situation of system resource interaction, equation (13) can be held constant, that is, 𝑅𝐶 > 𝑅𝑃 can be held constant. by setting a reasonable 𝜀, 𝜔, 𝐾𝑖, 𝐾𝑑, and the packet loss rate are within a reasonable range, equation (14) can be established constantly, that is, 𝐼> 0 can be established constantly. the cooperation strategy that satisfies both the increase of reputation of edge nodes and the increase of income is the best strategy for node selection, and nodes will tend to choose cooperation. 5. experiment analysis 5.1. experiment environment use python to build an environment for simulation experiments. initially, set 100 video resources and 400 nodes, including 200 positive nodes (the probability of choosing cooperation is 80%) and 200 negative nodes (the probability of choosing cooperation is 20%). initialization node bandwidth and storage occupancy are randomly distributed between 0-50%. finally, the entire simulation time is 1500s, totaling 1500 resource interactions. 5.2. experimental results the experiment is divided into the following three parts: bmbr distinguishes between positive nodes and negative nodes figures 1(a) and 1(b) show the reputation value distribution of positive nodes and negative nodes in the distributed edge computing system without incentive mechanism and bmbr, respectively. without an incentive mechanism, the system does not treat the two differently. figure 1(a) shows that the reputation value distribution of positive and negative nodes is not much different. comparing figure 1(b) with figure 1(a), we can see that the reputation value of positive nodes can be concentrated in the range of [12, 17] by using bmbr. in contrast, the reputation value of negative nodes can be concentrated in the range of [4, 10]. the experimental results show that using the incentive mechanism and the system can effectively distinguish between positive and negative nodes. (a) (b) figure 1. comparison of the distribution of positive nodes and negative nodes under no incentive and bmbr the influence of bmbr on the reliability and income of edge nodes figure 2(a) shows the change in node reliability with increased service time in the distributed edge computing system without incentive mechanism and bmbr. it can be seen that without an incentive mechanism, the reliability of the node does not change significantly with the increase in service time, and the reliability of the node has been clearly distinguished under the action of bmbr. figure 2(b) shows that, in the absence of an incentive mechanism, the income from the service provided by the node is not affected by the reputation value, which is concentrated in the range of [40, 60], and the node with a larger reputation value cannot obtain higher income. under the action of bmbr, the income from node service has been significantly improved with the increased reputation value, and the enthusiasm for node resource contribution has increased. (a) (b) figure 2. comparison of changes in node reliability and income under bmbr and no incentive mechanism (3) the influence of bmbr on the fluctuation of resource price. the bmbr proposed in this paper adds the concept of resource price, which is used to measure the scarcity of resources. at the same time, nodes in the penalty period can shorten the penalty time by downloading resources in short 48 supply, increasing the number of resources in short supply, balancing the price of resources, and ensuring the rational distribution of resources. in addition, the resource price set in this paper also has the characteristics of real-time and dynamic self-adjustment, which changes with the tightness of resources in different periods. figure 3 shows the price fluctuation variance of each resource within 1500s without the incentive mechanism and bmbr. it can be seen from the figure that after adding bmbr, the price fluctuation of each resource is significantly reduced. the smaller the price fluctuation of resources, the higher the balance between supply and demand of resources. therefore, the incentive mechanism can effectively control the balance of the number of resources according to the demand situation. figure 3. comparison of variance of resource price fluctuation 6. conclusions to promote home iot devices to actively and reliably share idle resources and ensure the reasonable distribution of video resources, the author proposes an incentive mechanism based on behavior management and balance of resources to manage edge devices. the experimental results show that using bmbr is significantly better than no incentive mechanism. bmbr improves the enthusiasm for edge network resources sharing by distinguishing between positive devices and negative devices and establishes reasonable reward and punishment measures while maintaining the balance between the supply and demand of system resources. the bmbr model proposed in this paper needs to run on a centralized platform. home iot devices can contribute idle resources after accessing the platform by deploying the relevant environment. all requests and processing need to go through platform, which the following three problems will accompany: (1) the platform must process the selection of transmission nodes, information recording, behavior management, and income distribution, and the centralized platform is under too much pressure. (2) in the process of video distribution, the information of iot devices is easy to leak, and security cannot be guaranteed. (3) the centralized platform will charge a certain service fee and cannot maximize the interests of users and resource providers. the decentralization of blockchain and the programmability of smart contracts provide ideas for solving the above problems. blockchain provides a decentralized network through which home iot devices can directly establish connections with video requesting users. smart contracts automatically perform node selection, reputation calculation, and income distribution. therefore, the focus of the following research is how to design smart contracts according to the requirements based on this paper. references [1] amos p, li p, wu w, et al. computation efficiency maximization for secure uav-enabled mobile edge computing networks[j]. physical communication, 2021, 46(5): 101284. [2] abdelwahab s, hamdaoui b, guizani m, et al. cloud of things for sensing-as-a-service: architecture, algorithms, and use case ieee internet of things journal, 2016, 3(6): 1099-1112. [3] cisco. cisco visual networking index: global mobile data traffic forecast update 20160201 white paper[r], 2016. [4] zhu w w, wang z. data-driven multimedia edge network and content delivery (in chinese). sci sin inform, 2021, 51:468504, doi: 10.1360/ssi-2020-0008. [5] bonomi f, milito r, zhu j, et al. fog computing and its role in the internet of things[c] //the first edition of the mcc workshop on mobile cloud computing. 2012: 13-16. [6] zhang xin, deng haojiang, you jiali. survey on service technology at the edge of network[j]. network new media technology, 2022,11(01): 1-13. [7] sun lifeng, hu wen, ma ming, et al. edge computing based video content delivery: challenge and technology[j]. radio communications technology, 2020, 46( 3): 261-270. [8] markakis e k, karras k, zotos n, et al. exegesis: extreme edge resource harvesting for a virtualized fog environment[j]. ieee communications magazine, 2017, 55(7): 173-179. [9] markakis e k, karras k, sideris a, et al. computing, caching, and communication at the edge: the cornerstone for building a versatile 5g ecosystem[j]. ieee communications magazine, 2017, 55(11): 152-157. [10] anderson d. boinc: a system for public-resource computing and storage[c] //5th ieee/acm international workshop on grid computing. 2004. [11] anderson d p, cobb j, korpela e, et al. seti@ home: an experiment in public-resource computing[j]. communications of the acm, 2002, 45(11): 56-61. [12] ryden m, oh k, chandra a, et al. (2014, march). nebula: distributed edge cloud for data intensive computing[c] //2014 ieee international conference on cloud engineering. ieee, 2014: 57-66. [13] li z, wilson c, xu t, et al. offline downloading in china: a comparative study. in: proceedings of the 2015 acm conference on internet measurement conference, 2015. 473486 [14] chen l, zhou y, jing m, et al. thunder crystal: a novel crowdsourcing-based content distribution platform.in: proceedings of the 25th acm workshop on network and operating systems support for digital audio and video, 2015. 43-48. [15] hu w, wang z, ma m, et al. edge video cdn: a wi-fi content hotspot solution. j comput sci technol, 2016, 31: 1072-1086 [16] chang c, srirama s n, buyya r. indie fog: an efficient fogcomputing infrastructure for the internet of things[j]. computer, 2017, 50(9): 92-98. [17] mortazavi s h, salehe m, gomes cs, et al. cloudpath: a multi-tier cloud computing framework [c] //the second acm/ieee symposium on edge computing. 2017: 1-13 49 [18] kamiyama n, nakano y, shiomoto k, et al. analyzing effect of edge computing on reduction of web response time [c] //2016 ieee global communications conference (globecom). ieee, 2016: 1-6. [19] mehta a, tärneberg w, klein c, et al. how beneficial are intermediate layer data centers in mobile edge networks [c] //2016 ieee 1st international workshops on foundations and applications of self* systems (fas* w). ieee, 2016: 222229. [20] noreikis m, xiao y, ylä-jaäiski a. qos-oriented capacity planning for edge computing [c] //2017 ieee international conference on communications (icc). ieee, 2017: 1-6. [21] el kafhali s, salah k. efficient and dynamic scaling of fog nodes for iot devices [c]. the journal of supercomputing, 017, 73 (12): 5261-5284. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 70 a financial handwritten digit recognition model based on artificial intelligence qisheng jiang * school of management, dalian polytechnic university, dalian, liaoning,116034, china * corresponding author: email: jqsxiaoer@163.com abstract: handwritten digit recognition is a kind of image information classification problem through optical character analysis. its essence is to represent the pixel points of digital images as gray values and then replace the pixel matrix with a numerical matrix. the computer can deal with numerical problems converted from handwritten arabic numeral recognition problems through feature extraction and classification. with the rapid development of science and technology, this technology has dramatically reduced the cost of identification and human consumption, making identification more efficient and having a specific use value. however, the current handwritten digit recognition technology will cause problems such as abnormal recognition and recognition errors, reducing recognition accuracy. this will not only increase the cost of human recognition but also increase unnecessary risks. based on the broad application prospect of handwritten digit recognition in finance, this paper focuses on the research and analysis of the handwritten digit recognition model for its insufficient accuracy, low performance, and other problems. based on traditional data analysis, this paper adopts deep learning and control variable methods to conduct multiple groups of experiments to explore the impact of different parameters on the accuracy of experimental results. summarize the best recognition accuracy and achieve the best model performance. keywords: handwritten digit recognition; artificial intelligence; machine learning; deep learning; financial applications. 1. introduction with the rapid development of artificial intelligence, china's technology in this field continues to mature and achieve self-reliance. still, social needs are changing, human costs are increasing, and technology needs to be constantly optimized and innovated. in recent years, china's research on artificial intelligence has focused on three areas: finance, medical care, and cities. with the development of ai, there are still many defects to be solved for ai in the financial field. the literature analyzes the actual application and risks under the economic area and ai combination. it proposes risk prevention strategies using intelligent protection, information encryption, and law improvement. many problems, such as data standardization, data exchange, policy supervision, and algorithm theory, have become increasingly prominent in the medical field. literature, based on data-driven in-depth learning, studied the challenges faced by medical ai and the direction of future development. artificial intelligence and machine learning methods have gradually matured in urban life, bringing people many conveniences. based on this, literature focuses on analyzing ai applications in intelligent medicine, intelligent transportation, gait recognition, and face recognition. figure 1 and figure 2, respectively, show the proportion of china’s ai technology sources and patent concentration fields from 2018 to 2021. figure 1 shows the specific sources of china's ai technology in the three years from 2018 to 2021. among them, china's ai technology accounts for a large proportion (63%), indicating that china's ai technology has developed rapidly. for other countries, the united states accounts for about 20%. in contrast, the rest of the countries account for a relatively small proportion (japan, south korea, and the european patent office account for 8%, 6%, and 2%, respectively). figure 1. source distribution of artificial intelligence technology in china from 2018 to 2021 figure 2 further shows the statistical distribution of essential fields of ai research in china in the three years from 2018 to 2021. among them, image recognition and transmission account for a large proportion (41%), while data processing, information, and machine learning account for about 20%, indicating that research in these three fields is relatively popular in china. in contrast, research in other areas accounts for relatively few (robot control, ai supervision, and natural language processing account for 10%, 8%, and 4%, respectively). figure 2. necessary fields of artificial intelligence research in china from 2018 to 2021 71 the progress of artificial intelligence has driven the development of the financial field. the transformative force and the pace of intelligence are constantly increasing, bringing convenience, speed, and security to people's lives. financial technology is widely used in banks to verify identity information. based on in-depth learning, literature uses image processing technology and pattern recognition methods to identify and analyze license information, effectively combining artificial intelligence and financial identity recognition. however, in today's developed network, there are many hidden dangers behind the advantages of the internet. in order to further improve the security performance of the network system, literature designed a network security protection system from both hardware and software aspects, in which bp neural network algorithm was used in the software design to extract and process the characteristics of network abnormal information, send intrusion alerts, prepare for more efficient defense and subsequent repair processing, and ensure the security of the network system. in addition, to avoid the emergence of new types of telecommunications fraud, illegal fund-raising, flight with money, and other problems, literature established an anti-fraud credit scoring model using machine learning methods and conducted research on anti-fraud risk early warning. among them, the handwritten digit recognition technology in artificial intelligence has a significant application value. it is an essential component in pattern recognition in computer optical character recognition. fast, efficient, and accurate recognition determines technical performance. this method is to preprocess the original digital image and extract features, and then through pattern recognition from coarse classification to subdivision, finally output the results of model recognition. figure 3 shows the digital image recognition process of inputting the original digital image, preprocessing, feature extraction, pattern recognition, rough classification, subdivision, and outputs of the recognition results. figure 3. digital image recognition process traditionally, handwritten digit recognition can be divided into online recognition and offline recognition due to different data forms. based on deep learning and nonsegmentation methods, zhang innovatively used a skeleton method to fuse offline and online samples and then conducted joint training under the dblstm-hmm recognition system to obtain better experimental results in handwritten english recognition. online handwritten digit recognition is a relatively simple way to recognize the real-time written character data of the handwritten person through physical devices; offline handwritten digit recognition is to scan and analyze the collected handwritten text data through image capture equipment. the difference between the two is that the former can analyze and obtain stroke features, writing speed, point coordinate information, and other data, while the latter cannot identify valuable details, which leads to low accuracy of offline recognition and cannot meet the number recognition process with different writing methods. the recognition rate and accuracy of handwritten digit recognition can be improved by using elastic bp algorithm [1], pca dimension reduction improved knn algorithm [9], neural network improvement applied to handwritten digit recognition [10], as well as alex net model improved convolutional neural network [11]. handwritten digit recognition has gradually expanded its application scope in the robot automation environment and has become a promising field of handwritten digit recognition applications in the financial field. with the rapid growth of china's economic strength, the demand for manual processing of statistical statements, financial statements, bank bills, postal codes, payments, and other operations is also growing, so we hope to introduce handwritten digit recognition technology under machine learning algorithms. the combination of artificial intelligence and machine learning technologies with handwritten digits will help to analyze better and recognize digital information; it can not only improve the overall work efficiency, and reduce labor costs but also enhance algorithmic transactions through machine continuous learning and summary, avoid financial risks caused by errors in manual operation, moreover improve the quality of customer service. so there is enormous potential for applying artificial intelligence to handwritten digit recognition. there are still many challenges in applying handwritten digit recognition in financial fields. although there are only ten types of arabic numerals, the machine recognition process is complicated due to various digital differences, nonstandard images, unclear handwriting, and different writing methods caused by writing habits. in addition, the accuracy requirements for digital recognition in the financial field are often more significant than the recognition of other characters and pictures. therefore, more excellent methods are needed to research and improve the handwritten numeral model, improve the recognition accuracy and speed of the model, and reduce errors. we can only have more opportunities to apply this technology to accurate handwritten numeral recognition in the future. to better realize the integration of handwritten numeral recognition and financial numerals, this paper will conduct a large number of experiments through the improved handwritten numeral recognition algorithm model, test the influence of the learning rate and the number of rounds of the model on the accuracy of the experimental results, get the best model time consumption, improve the overall accuracy of the model, and finally select the best scheme to try to apply it to finance reasonably. the main contributions are: (1) emphasize the potential application value of handwritten digit recognition in the financial field. (2) this paper summarizes the improvements or solutions to handwritten digit recognition proposed by different literature and explains them. (3) the experimental results show that the model proposed in this paper achieves better performance on opensource datasets. 2. related work artificial intelligence has been increasingly widely used in finance in recent years. moreover, the machine learning technology revolution in these fields is also increasingly valued by people. among them, lin discusses the specific analysis and application of artificial intelligence technology combined with big financial data, what's more, provides more valuable measures to improve the ability of financial data management; guan discussed the application status and impact of artificial intelligence in the financial industry, as well as the future needs and prospects of artificial intelligence. in addition, many scholars have studied the application of ai to other aspects, such as the research on the innovation of the 72 "smart finance" model in the era of ai, the research on the application of ai in banking and securities investment, and the research on enabling inclusive finance ai is still in the early stage of development in the financial field; many aspects can develop potential, make rational use of ai, and achieve intellectualization. in the application of the financial field, handwritten digit recognition technology has high requirements. the accuracy of model results, recognition rate, and speed will determine the risk level of machine handwritten digit recognition. many scholars at home and abroad have conducted in-depth research on the application of this technology in different ways and proposed improvement plans to seek the best way to improve the accuracy of the technical model. they found that machine learning and deep learning can not only mine the potential value from a large number of data but also make prediction models and imitate human thinking and learning to bring people much convenience. therefore, the research on handwritten digit recognition has some practical value. researchers at home and abroad have made many contributions to the research of handwritten digit recognition based on machine learning and depth learning. in the field of neural networks, wang [10] designs and applies the convolutional neural network model to handwritten digit recognition and improves two single-hidden layer neural network training algorithms to obtain a training model with excellent performance proposes to locate and recognize deformed handwritten digits for correction automatically. based on different directions of the convolutional neural network, xie et al. [11] also made other improvements to the convolutional neural network. they introduced the inception res net module, used batch-specific scaling processing methods, and reduced the number of convolution cores to optimize the final model accuracy. literature [1] put forward a different point of view for handwritten digit recognition realized by the improved neural network method. an elastic bp algorithm based on the matlab platform will result in low-noise handwritten digit recognition. among other research methods, hu et al. [9] improved the handwritten digit recognition realized by the traditional knn nearest neighbor classification algorithm by using distance weight statistics to reduce the time and space complexity when calculating the distance, thus improving the accuracy of handwritten digit recognition. in addition, there are also many types of research on the improvement of traditional methods applied to handwritten digit recognition: handwritten digit recognition method based on improved c-support vector machine optimizes the feature extraction process to improve accuracy [12], and support vector machine tree hybrid learning model based on the sensitivity value of boundary to feature selection to improve accuracy [18]. in the field of handwritten digit recognition in finance, some pioneers have done relevant research on handwritten digit recognition. zhang [19] applied handwritten digit recognition to the layout analysis of financial instruments, compared the topological structure-based method of handwritten digit recognition with the process based on contour segmentation, and then improved the existing handwritten digit recognition model using multiple classifier technology to optimize the processing system of financial instruments. in addition, lu et al. used the improved bp algorithm of a neural network to solve the problem of handwritten digit feature recognition in financial bills. finally, the results obtained a relatively good recognition effect. in this paper, we will use the depth learning method to compare the research schemes after different improved parameters, apply various techniques to handwritten digit recognition in finance, and explain. after many experiments, we can get a better recognition model and accuracy and a shorter recognition time, hoping to apply it to the financial field with the best model performance. 3. experiment this paper introduces the static and dynamic attributes of the data set, as well as the table description and network structure description of the data set. the experiment is based on the design of a handwritten digit recognition model of a neural network object. it uses the control variable method to preliminarily explore the impact of learning rate and rounds on the optimal accuracy rate to optimize the final recognition effect. 3.1. introduction to static and dynamic attributes of datasets the static attributes of a dataset refer to the unchanging file attributes collected under different requests; furthermore, generally do not change with access. the key to judging a dataset's static attributes is determined by factors such as the fixed time of the dataset attributes, whether they are updated regularly, and whether they are valid. it can better reflect the reference value and specific data set attribute time points. although static attributes have good stability, their value is single and limited. the dynamic attribute of a dataset refers to the changed file attributes collected under different requests. this indicates that the dataset's characteristics can be updated at any time, and the latest dynamic dataset attributes can be displayed as required, which has real-time value. however, collecting the newest dataset attributes requires costs. furthermore, the value of dynamic characteristics is less trusted than that of static data. the static attribute of the dataset is the mainstream of machine learning. this paper’s static quality of handwritten digit recognition is arabic numerals. in addition, the dynamic characteristics of data sets also have some value, even above the fixed points, in which the features and symbols of numbers are dynamic attributes of handwritten digit recognition. 3.2. dataset table description table 1 shows the distribution of the ten numbers 0 to 9 in the training and test sets, respectively. the total number of samples is 60000. it can be observed that the distribution proportion of the ten numbers is relatively balanced. at the same time, it also shows the comparison between the number of training sets and the number of test sets for each number, as well as the digital visualization results and data set sources. 3.3. network structure description this paper uses the neural network model to extract features and try various architectures. for a more intuitive display, figure 4 visualizes the most basic neural network structure, showing that this neural network has only three design layers, including an input layer, a hidden layer, and an output layer. input layer: import the data you want into the neural network. 73 hidden layer: it abstracts the features of input data, realizes feature extraction, and increases the complexity of the network structure. the number of nodes is variable, and its neural network representation ability positively correlates with the number of nodes. output layer: output the final calculation results of the network structure, and the number of nodes is fixed. table 1. dataset description num ber distribution of numbers train/ test visualiz ation dataset source number/ train number /test 0 5923 /60000 980 /10000 6.044 survival strategies for the robot rebellion (pjreddie. com) 1 6742 /60000 1135 /10000 5.940 2 5958 /60000 1032 /10000 5.773 3 6131 /60000 1010 /10000 6.070 4 5842 /60000 982 /10000 5.949 5 5421 /60000 892 /10000 6.077 6 5918 /60000 958 /10000 6.177 7 6265 /60000 1028 /10000 6.094 8 5851 /60000 974 /10000 6.007 9 5949 /60000 1009 /10000 5.896 figure 4. schematic diagram of neural network structure 3.4. explore the influence of different learning rates on the accuracy of experiments keep the optimal number of rounds at 50, and explore the change of the best total accuracy rate with the learning rate of 0.0001, 0.0005, 0.001, 0.005, 0.01, 0.05, 0.1, 0.5, 1, 2. the experiment shows that the accuracy rate is 36.45% when the learning rate is 0.0001, 36.45% when the learning rate is 0.0005, 71.65% when the learning rate is 0.001, 84.10% when the learning rate is 0.005, 87.62% when the learning rate is 0.01, 89.71% when the learning rate is 0.05, 89.76% when the learning rate is 0.1, 86.28% when the learning rate is 0.5, and 83.36% when the learning rate is 1, when the learning rate is 2, the accuracy rate is 80.02%. when the learning rate is 0.0001-0.05, the accuracy rate increases. when the learning rate is 0.05-0.1, the accuracy rate is stable but fluctuates. due to the overfitting of the model, the accuracy rate decreases slowly from 0.1-2. therefore, the best experimental result is that when the learning rate is 0.1, the accuracy rate is 89.76%. figure 5 shows the effect of different learning rates on the accuracy of the experiment when the number of rounds is unchanged. figure 5. effect of learning rate on model accuracy based on figure 5, further explore the impact of the number of training rounds on the training set. this paper will conduct ten experiments with learning rates of 0.0001, 0.0005, 0.001, 0.005, 0.01, 0.05, 0.1, 0.5, 1, and 2. each group will compare the changes in the final accuracy rate of the experiment when the number of rounds is 15, 30, and 50. the investigation shows that the experiment’s accuracy rate increases with the number of games of model training. however, when the learning rate is closer to the best (the best learning rate in this experiment is 0.05), the increase in the number of rounds has less impact on improving the accuracy rate. on the contrary, the greater the absolute value of the difference between the learning rate and the best learning rate, the more significant the impact of the increase in the number of rounds on improving the accuracy rate. figure 6 shows the effect of different games on the accuracy of the experiment under each group of learning rates. figure 6. effect of number of rounds on accuracy under each learning rate 4. conclusion this paper proposes a handwritten digit recognition model based on the financial system and trains the intelligent digit recognition model through deep learning, which replaces the 74 traditional complex artificial process. through artificial intelligence, the analysis process in the financial system is accelerated, and the accuracy of the data is guaranteed. the economic system often has a large amount of data, and traditional data analysis methods need to rely on manual input. the model based on deep learning proposed in this paper can efficiently use training data and a large amount of data to learn better feature representation ability. the experimental results show that the intelligent model proposed in this paper has achieved good results on the open-source dataset mnist and has practical application value. references [1] jin, j., zhang, y. (2022) research on the development, risk, and countermeasures of finance from the perspective of artificial intelligence. economic research guide, 12:74-76. [2] zhu, w., lv, w. (2022) current situation and prospect of medical artificial intelligence. radiologic practice, 37(1):1-3. [3] he, z. (2022) application of artificial intelligence and machine learning technology in smart city. wireless internet technology, 19(7):103-104. [4] guo, j. (2022) application of license recognition based on deep learning technology in banks. china's high-tech, 7:4445. [5] shen, j. (2022) design of network security protection system based on artificial intelligence technology. modern transmission,4:64-67. [6] he, p. (2021) research on credit anti-fraud model prediction based on machine learning. shanghai normal university press, shanghai. [7] zhang, x. (2015) offline-online skeleton samples cotraining based dblstm handwritten english recognition. harbin institute of technology press, harbin. [8] wang, j. (2021) handwritten digit recognition based on elastic bp algorithm. journal of xinxiang university, 38(6):24-27. [9] hu, j., fu, k. (2019) an improved knn algorithm for recognition of handwritten numerals. journal of wuhan university of technology (information and management engineering), 41(1):22-26. [10] wang, j. (2018) research on improved algorithm and system of handwritten digit recognition based on neural network. xidian university press, xi’an. [11] xie, d., li, l., miao, c. (2021) handwritten number recognition based on improved alexnet convolutional neural network. journal of hebei university of technology (natural science edition), 38(4):102-106. [12] lin, s. (2022) application of ai based on enterprise financial big data. modernization of shopping malls, 12:147-149. [13] guan, y. (2021) an analysis of application status and future demand of artificial intelligence in financial field. journal of shenzhen college of information technology, 19(1):57-61. [14] jiang, q. (2022) research on innovation of "smart finance" mode in the era of artificial intelligence. modern business, 7:157-159. [15] lu, m., wang, z. (2021) the current situation, problems, and countermeasures of artificial intelligence application in modern business financial industry -based on the sample analysis of digital robot application in commercial banks. financial technology era, 1:13-22. [16] fang, l. (2022) research on the application of “artificial intelligence+finance” in the field of securities investment. current economic information, 37(18):68-70. [17] xu, j., zhang, l.(2022) research on ai technology enabling inclusive financial development. financial technology era, 30(2):89-92. [18] hu, l. (2019) research on high recognition rate method of handwritten digits based on improved c-svm. digital communication world, 1: 244,264. [19] xu, q., yang, l. (2010) an improved hybrid learning model based handwritten digits recognition approach. journal of electronics and information technology, 32(2):433-438. [20] zhang, z. (2000) document analysis of the financial bill and recognition of handwritten digits. central china normal university press, wuhan. [21] lu, f., yi, w., yuan, x. (2003) research on the method of numerals recognition in financial notes with pattern recognition of neural network. journal of soochow university (engineering edition), 23(4):44-51. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 2, 2022 50 large-scale aerosols visualization based on the accelerated ray casting algorithm zefan qi 1, * 1 college of software engineering, chengdu university of information technology, chengdu 610225, china. * corresponding author: zefan qi (email: 1269289295@qq.com) abstract: the ray casting algorithm is a widely used basic volume rendering algorithm, but traditional ray casting algorithms have some disadvantages such as low efficiency, slow speed and large resource consumption when rendering aerosol data such as smoke, fog and dust in 3d scenes. in this regard, this paper proposes a large-scale aerosol visualization method based on a ray-casting acceleration algorithm. a large part of the computational work in a traditional ray casting algorithm is to compute a large volume of data from the underlying scalar field. therefore, the accelerated design of the ray casting algorithm should first consider avoiding sampling of empty spaces and invalid voxels, and culling areas in the volume data that do not contribute to volume rendering. the method in this paper firstly optimizes and accelerates the traditional ray casting algorithm through the hierarchical bounding box tree, and combines the illumination model to enhance the color rendering of each voxel. unnecessary space debris reduces hardware load, improves rendering speed, and meets the real-time rendering requirements of large-scale aerosols. keywords: volume rendering; ray casting; empty voxel jump; bounding volume hierarchy; aerosols visualization. 1. introduction the volume rendering [1] technology is a technology that displays all volume details on a two-dimensional image at the same time based on three-dimensional volume data. using volume rendering technology, the comprehensive distribution of various substances can be displayed in one image, and the condition of the isosurface can be reflected by controlling the opacity. volume rendering is widely used in medical ct imaging, real-time meteorological observation, geological survey, molecular biology scanning imaging, aerospace and other fields. today's volume rendering research field mainly focuses on how to improve the quality of the rendered image and how to reduce the rendering time of the algorithm. usually, the rendering quality is positively correlated with the rendering time. how to reduce the algorithm rendering time as much as possible on the basis of ensuring the image quality is one of the hotspots in the current volume rendering technology research. among many volume rendering algorithms, the ray casting algorithm calculates the highest image quality, but its algorithm complexity is higher than other volume rendering algorithms, and the rendering time is longer. in order to improve the rendering speed of visualization, many volume rendering acceleration algorithms have been proposed. there are two commonly used methods based on software acceleration: acceleration through function optimization, such as multi-resolution based on wavelet transform [2], based on early opacity cutoff [3], based on parallel and distributed volume rendering [4], interactive classification based on density-distance map [5], combined with graphics hardware acceleration and other algorithms, but these methods do not filter the data, and the acceleration is not complete; by processing the data to improve the drawing speed, such as based on the adjacent layers similarity [6], based on bounding box space [7], based on octree [8], k-d tree [9] and other data structure methods, but these methods do not accelerate the algorithm process, and there is still a lot of acceleration time. room for improvement. on the basis of related research, this paper optimizes function changes and data processing at the same time. by researching the use of algorithms to eliminate invalid data and empty voxel jumps when performing volume rendering, the rendering time is accelerated, and the image quality is guaranteed, while significantly improving algorithm acceleration effect. 2. ray casting algorithm ray casting [10] is a direct volume rendering technique based on image sequences. the calculation of the ray casting algorithm does not stop at the surface of the object, but samples the interior of the object along the ray, and does not generate secondary rays. it draws volume data in a 3d scalar data field into a 2d image through scientific computing by tracing rays from the viewpoint to the object. the basic steps are to start from each pixel on the screen and emit a ray along the line of sight. when the ray passes through the volume data, it is sampled equidistantly along the ray direction, and the optical properties of the sampling point are calculated by interpolation (such as color value and opacity); then according to the order from front to back (front-to-back) or from back to front (back-to-front), the sampling points on the ray are synthesized, and the corresponding value of this ray is calculated. the color value of the pixel on the screen. the traditional ray casting algorithm does not filter the initial data, but draws the sampling points one by one layer by layer, which makes the process of calculating the ratio of each voxel to the screen pixel and so on consumes computing resources and time. in this regard, the acceleration design of ray casting algorithm is discussed from three aspects: sampling point optimization, empty voxel jumping method and the combination of the two improved methods. 3. empty voxel skipping the purpose of empty voxel skipping is to exclude from 51 volume data sampling the regions in which it does not contribute to the output image. a state-of-the-art imagesequential volume rendering method, gpu-based octreeaccelerated ray casting [11], traces each ray from one tree node to another. nodes marked as empty can simply be skipped, and each ray is computed independently, without exploiting consistency between rays or between successive rendered frames. more importantly, for sparsely structured volume data, the octree subdivides the space very finely, and many spatially adjacent nodes will have the same type (empty or not). advanced tree refinement forces ray traversal to occur in unnecessarily small spatial increments. this huge overhead makes empty voxel skipping inefficient and significantly reduces the potential performance improvement. spatial segmentation based on k-d tree [12] can better adapt to the spatial subdivision of sparse structure, but the subdivision based on k-d tree is very dependent on the spatial position of non-empty voxels. if the dataset of segmented objects changes frequently, the k-d tree cannot change in real time according to new spatial features. hierarchical bounding box tree (bvh) [13] can perform efficient space segmentation, fully consider the area and shape of the volume data itself, filter out a large amount of unnecessary blank space, and can be dynamically updated. 4. ray casting acceleration algorithm 4.1. early termination of light use an early termination condition to speed up the algorithm, i.e. stop the compositing operation when the cumulative opacity exceeds 1. in the process of pixel mixing iterative solution, the value of opacity a is gradually increased. when the value of a is close to 1, it means that the calculation result of the pixel value by the light tends to be saturated, even if the sampling continues, the final pixel value almost unaffected. therefore, the method of terminating the ray calculation early can be used, which can improve the overall drawing time. a threshold can be set. as long as the value of a exceeds this threshold, the ray will be terminated. at the same time, combined with the adaptive accelerated sampling method, that is, when the ray traverses the volume data, if it encounters an invalid sampling point, the sampling interval is appropriately increased. reduce the resampling frequency, and restore the resampling frequency if a valid sampling point is encountered. the overall rendering time can be further improved by combining early ray termination with adaptive sampling acceleration. 4.2. volume data sub-components 4.2.1. oc tree in the case of a large amount of data, it is more difficult to use the determination of the minimum granularity (leaf node). when the granularity is large, the data volume of some nodes may still be relatively large, and the subsequent query efficiency is still relatively low. on the contrary, the granularity is small. the depth of the fork tree increases, the required memory space is relatively large (each non-leaf node requires eight pointers), and the efficiency is also reduced. the division basis of equal division makes the efficiency not too high due to the limitation of division depth when the data center of gravity is skewed. the empty voxel jumping method based on the octree structure, that is, recursively divides each block of volume data into eight parts, and records the in and out points of each block of non-empty data that the light passes through to sample. however, the octree-based method will additionally record many empty nodes, which increases the computational complexity of sampling. 4.2.2. aabb bounding box tree the hierarchical bounding box is referred to as bvh; and the hierarchical bounding box tree is a binary tree used to store the shape of the bounding box. its root node represents the largest bounding box, and the next 2 child nodes represent 2 sub-bounding boxes. the aabb bounding box is an axisymmetric bounding box, that is, the six faces of the box are parallel to the xy, xz, yz planes figure 1. bounding volume hierarchy subdivide the body data with an improved bounding box structure, with each leaf node corresponding to a subblock of data. in the sub-division process, each sub-data block needs to be expanded by a voxel to avoid errors during boundary interpolation (the value obtained by interpolation may be greater than the maximum value of the original sub-data block or smaller than the minimum value of the original sub-data block. ), and then count the minimum and maximum values of each sub-data block, and store them in the original bounding box structure for generating 3-dimensional textures. 4.2.3. improvement to empty voxel skipping recursively divide each block of data into eight parts to form an octree. for the volume data block of each leaf node, the marked attribute is one of empty, non-empty, and unknown; for each non-leaf node, the attribute proportion of its child nodes is counted, and its attribute is assigned as proportion highest attribute. perform a breadth-first search on the octree of the volume data, and construct a bounding box for the volume data blocks whose attributes are different from their parent nodes. for each ray, when it passes through the bounding box, it is merged and deleted according to the rules to determine the sampling range. volume rendering of ray casting algorithm using lazy loading method figure 2. empty voxel skipping 4.2.4. grouped linear interpolation the traditional linear interpolation calculation process is 52 quite complicated and consumes a lot of computing resources, which is the main reason why the traditional ray casting algorithm cannot draw in real time in the interpolation calculation stage, all resampling points on a ray are divided into 3 levels according to the distance from the viewpoint, and different linear interpolation is used for each level. compared with the traditional algorithm, the hierarchical grouping linear interpolation method does not reduce the number of resampling points and does not reduce the authenticity of the image. according to the different positions of the resampling points on the light, it gradually decreases from the first level to the third level. the amount of interpolation calculation of each level of resampling point greatly shortens the total interpolation calculation time and achieves the purpose of improving the rendering efficiency of the algorithm. figure 3. computation time comparison 5. experiment analysis in this experiment, the computer configuration is amd ryzen 5 5600h with radeon graphics 3.30 ghz, windows 10 64-bit, 16gb memory. the programming environment is visual studio 2019 and unity3d, using c# programming and hlsl shading language. (a) traditional ray casting (b) accelerated ray casting figure 4. rendering effect comparison aerosol particles have the characteristics of uneven distribution, small variation scale and complexity. in this paper, the cloud is used as a representative to conduct experiments. comparing the algorithm in this paper with the traditional ray casting algorithm, it can be seen that under the same cloud data. compared with the traditional ray casting algorithm, the acceleration algorithm in this paper is better in rendering results, with more details, more obvious diffuse effect, and more obvious distinction between light and dark. at the same time, the acceleration algorithm in this paper has better performance in terms of accuracy and realism. 6. conclusion in order to solve the shortcomings of traditional ray-casting algorithm when drawing aerosol data such as smoke, fog and dust in 3d scenes, it has some disadvantages such as low efficiency, slow speed and large resource consumption. this paper proposes a large-scale aerosol visualization method based on ray casting acceleration algorithm, optimizes resampling, performs hierarchical grouping operations on the sampled resampling points, and uses the hierarchical bounding box algorithm to segment the space, and then uses empty voxels to jump. the method culls empty space and invalid voxels, avoids unnecessary space fragmentation, reduces hardware load, and improves rendering speed. comparing the algorithm in this paper with the traditional algorithm, in terms of rendering speed, with the increase of the amount of data, the advantage of the algorithm in this paper is also increasing. at the same time, the algorithm in this paper has better performance in terms of authenticity and accuracy. the experimental results show that the algorithm in this paper is feasible, effective and stable. references [1] pravin p kalyankar,s s apte. 3d volume rendering algorithm[j]. international journal of engineering and advanced technology (ijeat),2013,2(5). [2] hassan a h ,fluke c j , barnes dg. a distributed gpu-based framework for real-time 3d volume rendering of large astronomical data cubes[j]. publications of the astronomical society of australia, 2012, 29(3):340-351. [3] johanna, beyer, markus, et al. state-of-the-art in gpu-based large-scale volume visualization[j]. computer graphics forum, 2015, 34(8):13-37. [4] bin ma,yaohe liu,hyder abbas. parallel volume rendering algorithm of volume mineralization model based on gpu[j]. international journal of performability engineering,2018,14(8). [5] takanashi, i. , lum, e. b. , ma, k. l. , & muraki, s. (2002). ispace: interactive volume data classification techniques using independent component analysis. pacific conference on computer graphics and applications. ieee computer society. [6] lachlan j.deakin,mark a.knackstedt.efficient ray casting of volumetric images using distance maps for empty space skipping[j].computational visual media,2020,6(01):53-63. [7] liu baoquan,clapworthy gordon j,dong feng, prakash edmond c. octree rasterization: accelerating high-quality outof-core gpu volume rendering.[j]. ieee transactions on bernhard finkbeiner,alireza entezari, dimitri van de ville,torsten möller. efficient volume rendering on the body centered cubic lattice using box splines[j]. computers & graphics,2010,34(4). [8] zellmann s , schulze j , lang u . binned k-d tree construction for sparse volume data on multi-core and gpu systems[j]. ieee transactions on visualization and computer graphics, 2021, 27(3):1904-1915. [9] levoy m . display of surfaces from volume data[m]. ieee computer society press, 1988. [10] francisco sans,rhadamés carmona. a comparison between gpu-based volume ray casting implementations: fragment shader, compute shader, opencl, and cuda[j]. clei electronic journal,2017,20(2). [11] foley t , sugerman j . graphics hardware (2005) m. meissner, b.o. schneider (editors) kd-tree acceleration structures for a gpu raytracer. 2008. [12] li t , wang s , cheng h , et al. integral image generation based on improved bvh ray tracing[m]. 2021 frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 1, 2023 167 using bidirectional prompt learning in nlp few shot tasks li ding, shiren ye * school of computer science and artificial intelligence changzhou university, changzhou 213164, china * corresponding author: shiren ye (email: yes@cczu.edu.cn) abstract: few-shot learning, a subfield of machine learning, aims to solve the problem of learning new tasks with only a small amount of annotated data. compared to traditional supervised learning, few-shot learning is more challenging because there are very few training samples available during the training process, which means that the model must learn quickly and generalize to new samples. prompt learning is a recently emerged training paradigm in natural language processing, which can quickly leverage the language capabilities of large pre-trained language models to achieve fast start-up. based on the prompt learning paradigm, this paper proposes to use its conjugate tasks to further enhance the model's ability in few-shot learning. the experimental results show that the proposed method can effectively improve the performance of the model on multiple datasets and can be combined quickly with other methods for joint optimization. keywords: few-shot; natural language processing; prompt learning. 1. introduction natural language processing (nlp) is an important research direction in the fields of computer science and artificial intelligence. its aim is to enable computers to understand, process, and generate natural language in order to better interact with humans. the development history of natural language processing can be traced back to the 1950s. during this period, computer scientists began using limited grammar rules and dictionaries to attempt to solve natural language processing problems. linguist noam chomsky [1] proposed chomsky's grammar in 1956, which includes four levels: type 0 grammar (unrestricted grammar), type 1 grammar (context-sensitive grammar), type 2 grammar (context-free grammar), and type 3 grammar (regular grammar). the difference between these grammar levels lies in the complexity of the language rules they describe. chomsky's grammar is important for the field of natural language processing because it provides a formal grammar description method. however, due to the complexity and diversity of language, the method based on limited grammar rules quickly encountered bottlenecks. in the 1980s, with the introduction of statistical and probabilistic models, natural language processing underwent a significant transformation. machine learning language models based on statistics and probability used large-scale corpora to train models, allowing them to better understand and generate natural language. naive bayes is a machine learning algorithm based on bayes' theorem and the assumption of feature independence. assuming that the impact of each feature on the classification result is independent of each other simplifies the model, making training and prediction more efficient. naive bayes classification algorithm performs extremely well in spam email classification, effectively identifying and filtering a large amount of spam emails. support vector machine (svm)[2] is a commonly used machine learning algorithm that can be used for classification, regression, and anomaly detection tasks. in text classification, svm was initially used for binary classification problems and can be extended to multiclass classification using the one-vs-all or one-vs-one approach. hidden markov model (hmm)[3] is a probabilistic model based on state transitions that can consider contextual information and predict the next state based on the previous state, commonly used for the conversion between speech and text. deep learning originates from the neural network structure in machine learning, which enables the learning of more complex expressions and features from raw data by constructing multiple levels of abstract feature representations to improve the accuracy of prediction and classification. in recent years, deep learning has rapidly developed from a branch of traditional machine learning to a mainstream method. the growth of gpu computing power in recent years has greatly improved the training and inference speed of neural network models, allowing for the implementation and application of larger and more complex models. the development of deep learning in natural language processing can also be divided into several stages. early work (2000 to 2016) focused on unsupervised vectorization of words and structural engineering of networks. the bag-ofwords model (bow)[4] was originally used in text classification. this model treats each word in the text as an independent feature and represents the document as a feature vector. the basic idea is to assume that for a text, its word order and grammar syntax can be ignored, and it can be regarded as a collection of vocabulary. each vocabulary in the text is an independent feature. n-gram [5] is an algorithm based on statistical language model. its basic idea is to slide a window of size n over the text, which is segmented into byte fragments, to form a sequence of byte fragments with a length of n. each byte fragment is called a gram. by counting the frequency of occurrence of all grams and filtering them according to a pre-set threshold, a key gram list is formed, which is the vector feature space of the text. each gram in the list is a feature vector dimension. from 2017 to 2019, there were significant changes in the learning of nlp models, and the completely supervised paradigm is now playing a decreasing role. specifically, the standard has shifted towards 168 pre-training and fine-tuning paradigms. in this paradigm, models with fixed architectures are pre-trained as language models (lms) to predict the probability of observed textual data. since a large amount of raw text data is required to train lms, these lms can be trained on large datasets to learn robust and general language modeling features. then, additional parameters are introduced, and task-specific objective functions are used to fine-tune the aforementioned pre-trained lms to adapt to different downstream tasks. in this paradigm, the focus has mainly shifted to target engineering and designing training objectives for the pretraining and fine-tuning stages. bert (bidirectional encoder representations from transformers) [6] is a pre-trained transformer-based model developed by google. gpt (generative pre-trained transformer) [7] is a pre-trained transformer-based model developed by openai, which is trained on a large corpus of text to generate high-quality language outputs such as text completion, summarization, and translation. nowadays, natural language processing is in the midst of a second major transformation, with the "pre-train and fine-tune" paradigm being replaced by what we call the "pre-train, prompt, and predict" paradigm. in this paradigm, instead of adapting pre-trained lms to downstream tasks through target engineering, downstream tasks are reformulated with the help of textual prompts to resemble the tasks solved during the original lm training. for example, when identifying the sentiment of social media posts, for the sentence "i lost my wallet today.", we can prompt the lm with "i feel __" and ask it to fill in the blank with an emotional word. alternatively, if we choose to prompt the lm with a sentence like "english: i missed the bus today. chinese: __", we can evaluate its ability to perform machine translation. due to the fact that prompt learning is closer to the pretraining task of the language model, it has shown great competitiveness in zero-shot learning and few-shot learning domains. to be able to stimulate the language ability acquired by the model during the pre-training phase, the selection of prompt templates is particularly important. the prompt can be divided into two categories, hard prompts (discrete prompts) and soft prompts (continuous prompts). hard prompts refer to prompts that are manually designed, that is, templates designed by humans. manual design is generally based on human natural language knowledge, striving to obtain semantically fluent and efficient templates. in 2020, soft prompts were proposed. soft prompts are exactly the opposite of hard prompts. they learn the generation of prompts as a task, which is equivalent to changing the generation of prompts from human (discrete) to machine learning (continuous). hard prompts and soft prompts each have their advantages and disadvantages. the advantage of hard prompts is that they have good interpretability and can be presented in a form that humans can read. the disadvantage, however, is that what humans consider to be good hard prompts may not necessarily be good hard prompts for a language model. this property is known as the sub-optimality of hard prompts, where the selection of hard prompts can have a significant impact on the performance and stability of pre-trained models. on the other hand, soft prompts are the opposite. they are learned by the model and are more stable than hard prompts, but lack interpretability, making them difficult to apply in tasks that require strong interpretability. in our work, we propose a learning strategy that is conjugate to prompt learning for few shot tasks. in prompt learning, the input text is fixed and the model is required to fill in the target word. we reversed this task by fixing the target word and requiring the model to fill in the input text. this is based on the same assumption as prompt learning, that the language ability learned by the language model can not only fill in the target word, but also deduce the missing content in the original text from the target word. the results show that on multiple public datasets, whether our method is applied alone or trained jointly with the original prompt learning, it can effectively improve the model's ability in fewshot tasks. 2. related work the work on prompt emerged around 2019. many researchers began to focus on extracting knowledge from large pre-trained models and applying it to different downstream tasks. lewis et al [8]. introduce rag models where the parametric memory is a pre-trained seq2seq model and the non-parametric memory is a dense vector index of wikipedia, accessed with a pre-trained neural retriever. the result shows that rag models generate more specific, diverse and factual language than a state-of-the-art parametric-only seq2seq baseline. jiang et al[9]. propose methods to improve the accuracy of estimating the knowledge contained in lms by automatically generating better prompts for querying. our methods include mining-based and paraphrasing-based approaches to generate high-quality and diverse prompts, and ensemble methods to combine answers from multiple prompts. they conducted extensive experiments on the lama benchmark, which extracts relational knowledge from lms, and found that methods improved accuracy from 31.1% to 39.6%. radford et al [10]. show that substantial improvements in performance on various tasks can be achieved by employing a two-stage approach: generative pretraining of a language model using a diverse corpus of unlabeled text, followed by discriminative fine-tuning on each specific task. by tailoring the architecture of the model to multiple tasks, their methods were able to significantly surpass the state of the art in 9 out of the 12 tasks. once proposed, prompt learning became popular in the zero-shot and few-shot learning fields. compared to the paradigm of "pre-train and fine-tune" which requires the model to learn the specific features needed to output specific tasks on specific labels, prompt learning directly utilizes the language ability inherent in the pretrained model. its usage is closer to the paradigm during model pretraining, and therefore, it can quickly start downstream tasks. li et al [11]. proposed prefix-tuning, a lightweight alternative to finetuning for natural language generation tasks, which keeps language model parameters frozen, but optimizes a small continuous task-specific vector (called the prefix). findings indicate that prefix-tuning achieves comparable performance to fine-tuning on the full dataset by learning only 0.1% of the parameters. in settings with limited data, prefix-tuning outperforms fine-tuning and exhibits superior extrapolation capabilities to examples featuring topics not seen during training. izacard et al [12]. present atlas, a carefully designed and pre-trained retrieval augmented language model able to learn knowledge intensive tasks with very few training examples. kojima et al [13]. used chain of thought (cot) prompting, a recent technique for eliciting complex multi-step reasoning through step-by-step answer examples, achieved the state-of-the-art performances in arithmetics and symbolic reasoning. 169 due to prompt learning's direct utilization of the inherent capabilities of upstream networks, many research hotspots in the "pre-train, fine-tune" paradigm have gradually faded in prompt learning research, such as methods that use downstream networks to concatenate upstream networks, train heterogeneous networks in parallel, and adjust loss functions. the research focus in prompt learning has shifted towards how to leverage the capabilities of large-scale language models using prompts. schick et al [14]. propose a cloze-style prompt-based fine-tuning method called pattern exploiting training (pet). pet is a semi-supervised training procedure that redefines input examples as cloze-style phrases to help language models understand the given task. these phrases are used to assign soft labels to a large number of unlabeled examples. finally, standard supervised training is performed on the resulting training set. for several tasks and languages, pet significantly outperforms supervised training and strong semi-supervised methods in low-resource settings. gao et al [15]. utilized prompt-based fine-tuning, developed a novel pipeline for automating prompt generation. moreover, they have devised a refined approach for selectively and dynamically integrating demonstrations into each context. results show that it significantly surpasses standard fine-tuning procedures in low-resource scenarios, achieving up to a 30% absolute improvement and an average of 11% across all tasks. autoprompt was developed by shin et al[16]. as an automated approach to generating prompts for a wide range of tasks, utilizing a gradient-guided search. with the help of autoprompt, masked language models (mlms) possess an innate ability to carry out sentiment analysis and natural language inference, without any additional parameters or fine-tuning. liu et al[17]. proposed p-tuning.it trains several prompt vectors using regular gradient descent, and use an lstm to generate a final continuous template from these prompt vectors. additionally, for certain keywords in the input questions, preserve their tokens in the template. this approach achieves better results than both fine-tuning and manually designed prompt-based methods on superglue and some nlu tasks. in addition to prompt engineering, another important component of prompt learning is answer engineering. unlike traditional label-based learning, the learning objective of prompt learning is no longer a specific vector, but a answer space z that is mapped from the label y. some work manually design the space of potential answers z and its mapping to y. yin et al[18]. manually design lists of words relating to relevant topics (“health”, “finance”, “politics”, “sports”, etc.), emotions (“anger”, “joy”, “sadness”, “fear”, etc.), or other aspects of the input text to be classified. obviously, there are limitations to manually constructing mappings. some work focuses on automatic answer search, albeit less than that on searching for ideal prompts. these work on both discrete answer spaces and continuous answer spaces. chen et al [19]. introduce a novel approach called knowprompt, which leverages this knowledge through the use of learnable virtual type words and answer words during prompt construction, resulting in synergistic optimization. the goal of knowprompt is to improve the ability of our system to identify relevant relations by incorporating latent knowledge present in the relation labels. hambardzumyan et al [20]. explore possibility of using soft answer tokens which can be optimized through gradient descent. they present an alternative approach based on adversarial reprogramming, which extends earlier work on automatic prompt generation. 3. approach in traditional supervised learning, the model takes input x and outputs y. this process can be seen as computing 𝑃(𝑦|𝑥; 𝜃).prompt-based learning methods for nlp attempt to circumvent this issue by instead learning an lm that models the probability 𝑃(𝑥; 𝜃) of text 𝑥 itself and using this probability to predict 𝑦 . this approach is more akin to communicating with a human rather than debugging a machine. table 1 shows the typical pipeline of prompt-based learning. table 1. pipeline of prompt-based learning name notation example input 𝑥 i love this move output 𝑦 ++ (very positive) prompting function 𝑓𝑝𝑟𝑜𝑚𝑝𝑡(𝑥) [𝑋] overall, it was a [𝑍] movie. prompt 𝑥′ i love this movie. overall, it was a [𝑍] movie. filled prompt 𝑓𝑓𝑖𝑙𝑙(𝑥′, 𝑧) i love this movie. overall, it was a bad movie. answered prompt 𝑓𝑓𝑖𝑙𝑙(𝑥′, 𝑧∗) i love this movie. overall, it was a good movie. answer space 𝑧 “good”, “fantastic”, “boring” different templates can adapt to different downstream tasks, as shown in table 2. table 2. different template type input template text cls i love this movie [𝑋] the movie is [𝑍]. text-span cls poor service but good food. [𝑋] what about service? [𝑍]. text-pair cls [𝑋1]: an old man with ... [𝑋2]: a man walks ... [𝑋1]? [𝑍], [𝑋2] tagging [𝑋1]: mike went to paris [𝑋2]: paris [𝑋1][𝑋2] is a [𝑍] entity text generation 你好 chinese: [𝑋] english: [𝑍] however, direct application of manual templates for learning results in significant performance fluctuations in the model. table 3 from the work of liu et al [21]., shows that a change in a single word can have a great impact on the model. table 3. case study on lama-trex p17 with bert-base-cased prompt p@1 [𝑿] is located in [𝒀]. (original) 31.29 [𝑿] is located in which country or state? [𝒀]. 19.78 [𝑿] is located in which country? [𝒀]. 31.40 [𝑿] is located in which country? in [𝒀]. 51.08 the same situation also occurs in the answer space, where different words can lead to huge differences in model performance. table 4 taken from the work of gao et al., illustrates this point. it can be seen that relying solely on manual creation for both templates and answer spaces is inefficient and unstable. compared to soft prompts that lack interpretability, most tasks are more inclined to select or generate templates and 170 answer spaces through algorithms. autoprompt defines the model's prediction for label 𝑦 as the sum of the probability outputs of the model on all candidate words 𝑉𝑦: table 4. the impact of templates and label words on sst-2 dataset template label words accuracy(std) [𝑿] it was [𝒀]. great/terrible 92.7 (0.9) [𝑿] it was [𝒀]. good/bad 92.5 (1.0) [𝑿] it was [𝒀]. cat/dog 91.5 (1.4) [𝑿] it was [𝒀]. dog/cat 86.2 (5.4) [𝑿] it was [𝒀]. terrible/great 83.2 (6.9) 𝑝(𝑦|𝒙prompt) = ∑ 𝑝𝑤∈𝒱𝑦 ([𝑦] = 𝑤|𝒙prompt) (1) when replacing any word in 𝑉𝑦, the gradient of the model's output p changes significantly, indicating a strong correlation between the replaced word and label 𝑦 , thus it can be included in the answer space. 𝒱cand = top − 𝑘 𝑤∈𝒱 [𝒘in 𝑇 ∇log 𝑝 ( 𝑦 | 𝒙prompt )] (2) gao et al. proposed a method for automatically searching templates, which involves adding placeholder tokens around the target words and filling these tokens using the t5 model[22] to generate a set of template candidates. then, the performance of these templates on the training set is calculated by selecting the templates with the highest sum of output probabilities across all samples. ∑ ∑ 𝑃t5(𝑥in,𝑦)∈𝒟rain |𝑇| 𝑗=1 big(𝑡𝑗 ∣ 𝑡1, . . . , 𝑡𝑗−1, 𝒯g(𝑥in, 𝑦)) (3) another way to enhance the modeling capability proposed by gao et al. is to use demonstrations to indicate to the model what it should learn. the method is to randomly sample examples and concatenate them during the training process. figure 1 shows this process. figure 1. prompt-based fine-tuning with demonstrations in our work, we use a method opposite to prompt learning to enhance the model's ability. that is, we keep the target words in the template and randomly mask the tokens of the original corpus, and let the model predict the masked tokens. from the perspective of feature engineering, the model's prediction ability comes from extracting features from the samples, that is, the model establishes a mapping relationship between the samples and the features. if samples can be mapped to features, then features can also be mapped to samples. for example, variational encoder (vae)[23] also known as a generative model, can map high-dimensional data such as images and audio into a low-dimensional latent space and generate new data from it. a more intuitive example is that humans can infer from the template "i love this movie. this movie is _" that the missing word should be "great", and also infer from the template "i _ this movie. this movie is great." that the missing word should be "love". therefore, these two tasks mutually reinforce the model's ability in sentiment analysis. in fact, the training methods for modern natural language processing models are becoming more and more similar to teaching a child knowledge. the "mask" approach used in large-scale pre-training models actually originated from the common practice of fill-in-the-blank questions in exams. another term for the demonstrations approach proposed by gao et al is "example questions" and "real questions". therefore, the bidirectional prompt learning method we propose is scientifically effective and in line with human intuition. 4. experiment we validate our method on four natural language classification datasets. 4.1. datasets ag’s news [24] is a widely used text classification dataset that includes news articles from four different topics sports, technology, business, and health. the dataset contains 120,000 news articles, with 30,000 articles for each topic. each article includes a title and a description, as well as a numeric representation of the topic category. yahoo is a widely used dataset for natural language processing and text classification tasks. provided by yahoo research, it contains all the news articles collected from yahoo news, covering various topics such as sports, politics, entertainment, and more. each article in the dataset includes a news headline, description, and full text, as well as a corresponding topic label. with around 1,000,000 articles, this dataset is very large and suitable for training and testing various natural language processing algorithms and models. imdb (internet movie database) is an online database of movies and television shows that includes the world's widest range of film and television information, including movies, tv shows, documentaries, short films, made-for-tv movies, and video games. the imdb [25] dataset contains 50,000 highly polarized reviews from the database. amazon [26] is a large-scale dataset provided by amazon, which contains millions of customer reviews and star ratings. these reviews cover various categories of products, ranging from books, electronic products, household items to food, health care, clothing and more. 4.2. experiment settings the machine used in this test consists of amd ryzen 3600 processor, nvidia rtx 3090 graphics card, 32gb memory and win10 operating system. python version is 3.8.5 and pytorch version is 1.9.0+cu111. we use roberta[27], an improved model based on the bert model, as the framework of evaluation sig-loss. we employ hugging face library [28] to load and instantiate the pre-trained roberta model. 4.3. baselines in this section, we provide a brief introduction to the compared baselines. fine-tuning (ft) is a typical way of combining pre-trained models with downstream tasks, which involves connecting the [cls] token of the pre-trained model to a fully connected layer, and outputting the classification results of the model. prompt-tuning (pt) is the most basic way of prompt learning, which uses only a single template and a single answer space. better few-shot fine-tuning of language models(lmbff) is the method proposed by gao et al.includes prompt 171 based fine-tuning together with a novel pipeline for automating prompt generation; and a refined strategy for dynamically and selectively incorporating demonstrations into each context. autoprompt(ap) is was developed by shin et al. it selects prompt tokens from candidate set by gradient. bidirectional prompt learning (bpl) is our method. it is worth mentioning that we have used various methods in natural language processing to expand the training samples, including synonym replacement, back-translation, etc. in addition, we have used part-of-speech tagging to select masked tokens, disregarding tokens such as articles and auxiliary verbs that do not have much significance for bidirectional learning. 4.4. results table 5. results of text classification shot method ag yahoo amazon imdb 𝟓 ft 33.4 23.3 53.2 49.4 pt 78.5 60.4 89.9 88.7 lm-bff 79.8 63.6 90.5 89.3 ap 77.2 64.1 88.5 87.2 bpl 80.3 65.5 90.3 89.5 bpl+ ap 81.2 66.3 90.1 88.4 𝟏𝟎 ft 68.9 38.7 78.6 73.2 pt 82.3 62.1 90.8 90.5 lm-bff 83.9 63.6 91.1 91.4 ap 81.2 64.6 90.5 89.6 bpl 84.4 64.3 91.2 91.2 bpl+ ap 85.8 65.2 90.5 92.1 𝟐𝟎 ft 79.8 53.6 80.2 76.8 pt 84.5 66.0 91.3 91.8 lm-bff 85.6 67.7 93.2 93.3 ap 84.8 66.5 92.8 92.9 bpl 85.3 67.2 93.3 92.6 bpl+ ap 86.1 67.3 93.1 93.0 in table 5, we compared the performance of various models with sample sizes of 5, 10, and 20, respectively. the results show that compared to the two baseline models, ft and pt, our method can effectively improve the model's ability in few-shot tasks and enable it to quickly boot. our model can also be combined with existing methods, such as the bpl+ap model in the table, which uses both bidirectional prompt learning and auto prompt strategies. it is worth mentioning that compared to the baseline models, the variance of the results of several expansion models has been effectively reduced, demonstrating that these models can more effectively extract the language abilities of large models. 5. conclusion prompt learning is a new paradigm in natural language processing that has emerged in recent years. it can effectively utilize the language abilities learned by large-scale models and unify the training methods for downstream tasks. in practical scenarios, the sample set size is often insufficient or unannotated, and research on few-shot learning requires models to quickly obtain good performance on small training and validation sets. prompt learning has shown strong competitiveness in the field of few-shot learning, and this article proposes bidirectional prompt learning based on the prompt learning paradigm. by introducing a conjugate task, the model's ability to perform few-shot tasks can be further improved. it can also be easily integrated with most work. references [1] chomsky, n. (2002). syntactic structures. mouton de gruyter. [2] platt, j. (1998). making large-scale support vector machine learning practical. advances in kernel methods: support vector machines. [3] eddy, s. r. (1996). hidden markov models. current opinion in structural biology, 6(3), 361-365. [4] el-din, d. m. (2016). enhancement bag-of-words model for solving the challenges of sentiment analysis. international journal of advanced computer science and applications, 7(1). [5] bengio, y., ducharme, r., & vincent, p. (2000). a neural probabilistic language model. advances in neural information processing systems, 13. [6] kenton, j. d. m. w. c., & toutanova, l. k. (2019). bert: pre-training of deep bidirectional transformers for language understanding. in proceedings of naacl-hlt (pp. 41714186). [7] brown, t., mann, b., ryder, n., subbiah, m., kaplan, j. d., dhariwal, p., ... & amodei, d. (2020). language models are few-shot learners. advances in neural information processing systems, 33, 1877-1901. [8] lewis, p., perez, e., piktus, a., petroni, f., karpukhin, v., goyal, n., ... & kiela, d. (2020). retrieval-augmented generation for knowledge-intensive nlp tasks. advances in neural information processing systems, 33, 9459-9474. [9] jiang, z., xu, f. f., araki, j., & neubig, g. (2020). how can we know what language models know?. transactions of the association for computational linguistics, 8, 423-438. [10] radford, a., narasimhan, k., salimans, t., & sutskever, i. (2018). improving language understanding by generative pretraining.. [11] li, x. l., & liang, p. (2021, august). prefix-tuning: optimizing continuous prompts for generation. in proceedings of the 59th annual meeting of the association for computational linguistics and the 11th international joint conference on natural language processing (volume 1: long papers) (pp. 4582-4597). [12] izacard, g., lewis, p., lomeli, m., hosseini, l., petroni, f., schick, t., ... & grave, e. (2022). atlas: few-shot learning with retrieval augmented language models. arxiv preprint arxiv, 2208. [13] kojima, t., gu, s. s., reid, m., matsuo, y., & iwasawa, y. large language models are zero-shot reasoners. in icml 2022 workshop on knowledge retrieval and language models. [14] schick, t., & schütze, h. (2021, april). exploiting clozequestions for few-shot text classification and natural language inference. in proceedings of the 16th conference of the european chapter of the association for computational linguistics: main volume (pp. 255-269). [15] gao, t., fisch, a., & chen, d. (2021, august). making pretrained language models better few-shot learners. in proceedings of the 59th annual meeting of the association for computational linguistics and the 11th international joint conference on natural language processing (volume 1: long papers) (pp. 3816-3830). [16] shin, t., razeghi, y., logan iv, r. l., wallace, e., & singh, s. (2020, november). autoprompt: eliciting knowledge from language models with automatically generated prompts. in proceedings of the 2020 conference on empirical methods in natural language processing (emnlp) (pp. 4222-4235). 172 [17] liu, x., ji, k., fu, y., tam, w., du, z., yang, z., & tang, j. (2022, may). p-tuning: prompt tuning can be comparable to fine-tuning across scales and tasks. in proceedings of the 60th annual meeting of the association for computational linguistics (volume 2: short papers) (pp. 61-68). [18] yin, w., hay, j., & roth, d. (2019, november). benchmarking zero-shot text classification: datasets, evaluation and entailment approach. in proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (emnlp-ijcnlp) (pp. 3914-3923).. [19] chen, x., zhang, n., xie, x., deng, s., yao, y., tan, c., ... & chen, h. (2022, april). knowprompt: knowledge-aware prompt-tuning with synergistic optimization for relation extraction. in proceedings of the acm web conference 2022 (pp. 2778-2788). [20] hambardzumyan, k., khachatrian, h., & may, j. (2021, august). warp: word-level adversarial reprogramming. in proceedings of the 59th annual meeting of the association for computational linguistics and the 11th international joint conference on natural language processing (volume 1: long papers) (pp. 4921-4933). [21] liu, x., zheng, y., du, z., ding, m., qian, y., yang, z., & tang, j. (2021). gpt understands, too. arxiv preprint arxiv:2103.10385. [22] raffel, c., shazeer, n., roberts, a., lee, k., narang, s., matena, m., ... & liu, p. j. (2020). exploring the limits of transfer learning with a unified text-to-text transformer. the journal of machine learning research, 21(1), 5485-5551. [23] kingma, d. p., & welling, m. (2013). auto-encoding variational bayes. arxiv preprint arxiv:1312.6114. [24] zhang, x., zhao, j., & lecun, y. (2015). character-level convolutional networks for text classification. advances in neural information processing systems, 28. [25] maas, a., daly, r. e., pham, p. t., huang, d., ng, a. y., & potts, c. (2011, june). learning word vectors for sentiment analysis. in proceedings of the 49th annual meeting of the association for computational linguistics: human language technologies (pp. 142-150). [26] mcauley, j., & leskovec, j. (2013, october). hidden factors and hidden topics: understanding rating dimensions with review text. in proceedings of the 7th acm conference on recommender systems (pp. 165-172). [27] liu, y., ott, m., goyal, n., du, j., joshi, m., chen, d., ... & stoyanov, v. (2019). roberta: a robustly optimized bert pretraining approach. arxiv preprint arxiv:1907.11692. [28] mcmillan-major, a., osei, s., rodriguez, j. d., ammanamanchi, p. s., gehrmann, s., & jernite, y. (2021). reusable templates and guides for documenting datasets and models for natural language processing and generation: a case study of the huggingface and gem data and model cards. arxiv preprint arxiv:2108.07374. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 1, 2023 134 road traffic small target detection algorithm based on lightweight yolo v5 chanyi liu 1, 2 *, dan huang 1, 2, tao wang 1, 2, tao zhu 1, 2 1 school of automation and information engineering, sichuan university of science & engineering, yibin, 644002, china 2artificial intelligence key laboratory of sichuan province, sichuan university of science & engineering, yibin, 644002, china; * corresponding author: chanyi liu (email: 2720806204@qq.com) abstract: for the current problem of large number of parameters and large computation of the target detection network, the lightness improvement is carried out on the basis of yolov5s, and the dynamic convolution of od is introduced to compensate for the accuracy degradation caused by the lightness, and the map0.5 of the improved yolov5sefficientnetv2-od network reaches 82.8 through comparison experiments, and the fps is 59 frames per second. the experiment proves that the network maintains the detection accuracy and detection speed of the network for small targets on the basis of light weighting. it is suitable for deployment on vehicle-mounted devices. keywords: deep learning; lightweight; small target detection. 1. introduction with the rise in per capita household income in china, motor vehicle ownership has increased dramatically, and the increase in vehicle ownership has brought great pressure on the roads and the ensuing traffic accidents. in addition to the weather and the vehicle itself mechanical failure and other objective factors, traditional car driving requires the driver to always observe the surrounding road information, if fatigue, distracted easily caused by traffic accidents. with the development of artificial intelligence, the technology of automatic driving is becoming more and more mature. there is a big difference between traditional manual driving vehicles and self-driving vehicles, and automatic driving can be achieved without human intervention and precise automatic control, and when there is an unexpected situation, the automatic driving system will intervene in advance as well as emergency braking when necessary. as a basic component of an autonomous driving system, the detection capability of the target detection is one of the reference indicators for judging the level of autonomous driving. common detection networks are divided into twostage detection networks such as rcnn, fast-rcnn,fasterrcnn,single-stage detection networks ssd, and yolo[5-9] series. the two-stage network has high detection accuracy but slow detection speed, and the single-stage network has fast detection speed but slightly lower detection accuracy. for target detection, many scholars have been improving the capability of target detection networks to achieve good detection results, ren et al improved the ssd algorithm to enhance the detection capability of the network for obscured objects or small objects. li et al proposed quality focal loss to improve the error suppression that occurs during nms operation to improve the detection accuracy of the network. huang et al designed a variable residual convolutional branching module with retinanet as the base framework to improve the detection accuracy of various types of targets. however, with the improvement of detection capability, the network structure becomes more and more complex, the number of parameters, and the model size also become larger, leading to the decrease of detection speed. based on the above problems, this paper performs light weighting on the basis of yolov5s, and introduces od dynamic convolution to improve the feature extraction capability of the network by in order to compensate for the loss of model accuracy after light weighting. the improved network can guarantee the detection capability on the basis of lightweighting. it is beneficial to be deployed on in-vehicle devices. 2. related work yolov5 algorithm is the latest version of the current yolo series detection algorithm, proposed by ultralytics yolov5 main structure is shown in figure 1, the model consists of four parts: input side (input), backbone network (backbone), multi-scale feature fusion network (neck), and detection network (yolohead). figure 1. yolov5 network yolov5 input consists of spp structure, foucs structure, and c3 structure, which are used to extract the image network features.neck side consists of multi-scale pyramid fpn+pan structure, through such a pyramid structure to increase the resolution of the image, so that the image can be divided into more size pyramids. the more layers of the pyramid, the more 135 details can be extracted. in addition, a batch normalization layer is used, which can effectively prevent the occurrence of overfitting. the prediction side consists of three detection heads, corresponding to large, medium and small size targets. the yolov5 structure is shown in figure 1. 3. method in this paper, we optimize yolov5s from two aspects: lightweight and attention. firstly, the yolov5s backbone network is replaced with efficientnetv2 network to reduce the computational complexity and make the detection model more lightweight, and secondly, the conventional convolution is replaced with odconv dynamic convolution in the output layer, which uses a multidimensional attention mechanism to learn complementary attention along four dimensions of the kernel space through a parallel strategy. 3.1. lightweight efficientnetv2 is a lightweight network that combines training perceptual neural architecture search and scaling, which better balances the relationship between accuracy, training speed and number of parameters.efficientnetv2-s structure table is shown in table x. table 1. efficientnetv2s structure table stage operator stride channel layers 0 1 2 3 4 5 6 7 conv3x3 fused-mbconv1, k3x3 fused-mbconv4, k3x3 fused-mbconv4, k3x3 mbconv4,k3x3,se0.25 mbconv6,k3x3,se0.25 mbconv6,k3x3,se0.25 conv1x1&pooling&fc 2 1 2 2 2 1 2 24 24 48 64 128 160 272 1792 1 2 4 4 6 9 15 1 to address the problem of slow speed due to dw convolution in the mbconv module in efficientnet, the efficientnetv2 network addresses the problem of accuracy degradation and slower training by using the fused-mbconv structure instead of the mbconv structure in the efficientnet network.the fusedmbconv replaces the 1x1 normal convolution and 3x3 deep separable convolution in mbconv by 3x3 normal convolution, and then uses the nas technique to search for the best combined structure, the network structures of mbconv and fused-mbconv are shown in figure 2, figure 3 figure 2. mbconv module figure 3. fused-mbconv module the structure of the yolov5s backbone network after replacing it with efficientnetv2 is shown in figure4. figure 4. yolov5sefficientnetv2 structure 3.2. odconv odconv convolution takes into account the dynamics of the null field, input channel, output channel and other dimensions, so it is called full-dimensional dynamic convolution. odconv adopts multidimensional attention mechanism to learn complementary attention in four dimensions of convolutional kernel: input channel, output channel, kernel space and number of kernels through parallel strategy, which enhances the feature extraction ability of convolution in all aspects. the structure of odconv comparison is shown in figure 5. figure 5. dyconv and odconv structure comparison diagram the above figure shows a schematic comparison of the structures of dyconv (a),odconv (b). unlike condconv and dyconv, which compute a single attention scalar, for the convolution kernel odconv utilizes a new multidimensional attention mechanism that computes four types of attention in parallel along all four dimensions of the kernel space. the four types of attention convolution are illustrated in figure 6 figure 6. odconv illustration diagram (a), (b) (c) (d) represent the position multiplication along the spatial dimension, the channel multiplication along the input channel dimension, the filter multiplication along the output channel dimension, and the kernel multiplication along the kernel dimension of the convolution kernel space, 136 respectively. these four types of attention are complementary, and by progressively multiplying the convolution with different attentions along the position, channel, filter, and kernel dimensions will make the convolution operation differ for each dimension of the input, providing better performance to capture rich contextual information. therefore, odconv can significantly improve the feature extraction capability of convolution. the structure of the network after adding dynamic od convolution is shown in figure 7. figure 7. yolov5sefficientnetv2-od structure diagram 3.3. dataset the kitti dataset, co-founded by karlsruhe institute of technology and toyota institute of technology, is the largest international dataset for evaluating computer vision algorithms in autonomous driving scenarios. the kitti includes real image data from urban, rural, and highway scenes, with up to 15 vehicles and 30 pedestrians per image, and various levels of occlusion and truncation. the original dataset is classified and subdivided into car, van, truck, pedestrian, pedestrian(sitting), cyclist, tram, and misc. in this paper, the original kitti dataset consists of car, truck, van as car, pedestrian, person_sitting as person, and cyclist as rider, and the final kitti dataset consists of car, person, and rider. these three categories. 3.4. configuration the operating system of the experimental platform in this paper is window10, the hardware configuration is intel(r) core (tm) i7-10875h 2.30ghz processor, geforcertx2060 graphics card with 6gb of video memory size, and the software environment equipped with anaconda, cuda11.4.0, using pytorch1.7.1 deep learning and yolov5 target detection framework. 3.5. evaluation indicators average precision (ap): the ap value is the area enclosed by the p-r curve (consisting of the values of precision p and recall r at different confidence thresholds) and the coordinate axes, and the larger the area enclosed by the p-r curve, the better the detection performance of the network model. 𝐴𝑃 = ∫ 𝑃(𝑅)𝑑𝑅 1 0 (1) mean average precison (map): indicates that the ap of multiple categories is averaged and calculated by the following formula: 𝑚𝑎𝑝 = ∑ 𝐴𝑃𝑖 𝑛 𝑖=1 𝑛 (2) n denotes the number of categories. detection speed (fps): reflects the real-time nature of the algorithm, and being able to detect obstacle targets in realtime is a requirement for self-driving cars. the common metric for detection speed is frame per second (fps), which indicates the number of images that can be detected per second, and the larger the fps, the faster the model detects and the better the real-time performance. 3.6. training strategies this experiment was conducted on the dataset kitti, and 5000 images in kitti were selected and divided into training set, validation set, and test set in the ratio of 8:1:1. the divided training set is 4000 images, and the validation set and test set are 500 images each. the input image size is 640×640, the batchsize is 16, the test batchsize is 1, the initial learning rate is 0.01, the learning rate momentum is 0.937, and the training epoch is 200 rounds. adaptive anchor is used to set the initial anchor box size, adaptive moment estimation (adam) optimizer is used to optimize the model, and mosaic data augmentation is used to augment the dataset, which increases the diversity of the dataset and the number of targets, so that the algorithm has better generalization ability. the other parameters are set according to the official default parameters of yolov5s. 4. experiments 4.1. lightweight improvement experiment in order to verify the effectiveness of lightweight networks, the efficientnetv2 lightweight network was replaced with the original yolov5s and yolov5-nano and mobilenetv3 were replaced with the original yolov5s network. comparative experiments were conducted using the same dataset under the same configuration environment. the comparison results are shown in table 2 table 2. lightweight experimental results models backbone size par map0.5 fps yolov5s csp1_x 14.4 7.07 83.5 60 ynano csp1_x 3.7 1.76 78.2 93 ymbv3 mobv3 7.3 3.55 76.1 73 yeffv2 effv2 11.2 5.43 81.4 66 yolov5s-nano is short as ynano, yolov5s-mobilenetv3 is short as ymbv3 yolov5s-efficientnetv2 is short as yeffv2. from the results of the lightweight experiments in table 2, we can see that the performance of all networks tested in the data set, yolov5s has the highest indexes, with map@0.5 reaching 83.5; among the lightweight networks, yolov5smobilenetv3 has the lowest accuracy rate, map@0.5 value among all networks, and the map@0.5 of yolov5sefficientnetv2 reaches 81.4, which is higher than the 76.1 of yolov5s-mobilenetv3 network and 78.2 of yolov5s-nano, and is the best performance among all lightweight networks. 22.2%, 23.2%, and the fps is higher than the 60 frames per second of the original yolov5s. it is slightly lower than the 73 frames per second of yolov5s-mobilenetv3. 4.2. add odconv moudle in order to compensate for the loss of accuracy after light weighting, the od dynamic convolution is fused in the light weighting network and the comparison experiments are conducted as follows. yolov5s-efficientnetv2-od is abbreviated as yeffv2-od. from table 3, we can see that after adding odconv convolution to the lightweight network yolov5s efficientnetv2, the map@0.5 value improved by 1.4% with 137 better detection capability for small targets, although the fps decreased slightly by 7 frames per second. the original image and the detection effect are shown in figure 8 and figure 9 table3. add odconv experimental results models odconv map0.5 fps yolov5s 83.5 60 ynano 78.2 93 ymbv3 76.1 73 yeffv2 81.4 66 yeffv2-od √ 82.8 59 figure 8. original image figure 9. detection effect picture 5. conclusion in this paper, firstly, the efficientnetv2 lightweight network replaces the yolov5s backbone network, which reduces the number of network model parameters and computation, and secondly, the odconv dynamic convolution is added to make the model feature extraction ability stronger, after experimental comparison, the improved yolov5s efficientnetv2-od network model map@0.5 reaches 82.8 and the pfs is 59, which reduces the requirements for the performance of on-board devices while ensuring the lightweight and detection accuracy. references [1] girshick r, donahue j, darrell t, et al. rich feature hierarchies for accurate object detection and semantic segmentation [j]. 2013. [2] girshick r. 2015 ieee international conference on computer vision (iccv); proceedings of the ieee international conference on computer vision, f, 2015 [c]. [3] ren s, he k, girshick r, et al. faster r-cnn: towards real-time object detection with region proposal networks; proceedings of the nips, f, 2016 [c]. [4] wei l, dragomir a, dumitru e, et al. ssd: single shot multibox detector [j]. 2016. [5] redmon j, divvala s, girshick r, et al. you only look once: unified, real-time object detection; proceedings of the computer vision & pattern recognition, f, 2016 [c]. [6] redmon j, farhadi a. yolo9000: better, faster, stronger; proceedings of the ieee conference on computer vision & pattern recognition, f, 2017 [c]. [7] redmon j, farhadi a j a e-p. yolov3: an incremental improvement [j]. 2018. [8] bochkovskiy a, wang c y, liao h. yolov4: optimal speed and accuracy of object detection [j]. 2020. [9] ge z, liu s, wang f, et al. yolox: exceeding yolo series in 2021 [j]. 2021. [10] ren j c x h, liu j b, et al. accurate single stage detector using recurrent rolling convolution [j]. ieee conference on computer vision and pattern recognition, 2017, honolulu, hi, usa. new york: ieee press,: 752-60. [11] al l x w w w l e. generalized focal loss: learning qualified and distributed bounding boxes for dense object detection. advances in neural information processing systems, 2020. [12] huang wenhan y g, geng keke, et al. target detection in complex driving scenes based on adaptive fusion of dilated convolutional features [j]. journal of southeast university natural science edition, 2021, (51(06)): 1076-83. [13] li chao z a y a. omni-dimensional dynamic convolution [eb/ol] https://arxivorg/pdf/220907947pdf, [2022-09-11]. [14] lin t y, dollár p, girshick r, et al. feature pyramid networks for object detection [j]. 2016. [15] liu s, qi l, qin h, et al. path aggregation network for instance segmentation [j]. 2018. [16] q t m l. efficientnetv2: smaller models and faster training [j]. international conference on machine learning, 2021: 10096106. [17] c t m l q e r m s f c n n. efficientnet: rethinking model scaling for convolutional neural networks [j]. proceedings of the 36th international conference on machine learning, 2019: 6105-14.r https://arxivorg/pdf/220907947pdf frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 1 research on intelligent sensing technology of traffic volume in yancheng inland trunk waterway yinyin lu 1, *, delu huang 1, le wang 2, xu huang 2, haichao xu 2 1 yancheng transportation bureau, yancheng 224005, china; 2 china design group co., ltd, nanjing 210014, china * corresponding author: yinyin lu abstract: in order to solve the problems that the existing channel traffic monitoring methods for ships in yancheng city cannot meet the actual monitoring needs and the existing channel traffic monitoring methods cannot meet the requirements of development planning. this paper realizes automatic collection and accurate acquisition of channel traffic data by using intelligent sensing technologies such as ais, video surveillance and lidar, and builds an integrated channel traffic monitoring system platform which integrates multi-dimensional perception, fusion processing and statistical analysis. keywords: channel traffic volume; ais; video surveillance; lidar; intelligent perception. 1. introduction channel traffic monitoring is an indispensable part of the channel development strategy, which provides important basis for the future development and positioning of the channel, the determination of the scale of channel infrastructure construction and the formulation of channel management strategy. guided by the top-level design of smart harbor and navigation in the whole province and guided by high-quality development such as digitalization, intelligence and intelligence, we will deepen the deep integration of new generation of information technology in the field of harbor and navigation, strengthen scientific and technological tackling of key fields and key links, advance the digitalization of harbor and navigation elements and the intelligence of management and operation, and support the construction of modern harbor and navigation. real-time monitoring data of ship traffic flow is an important part of intelligent channel construction and the most basic measure to characterize the water traffic condition of a certain section of water. only when the inland ship traffic volume is reasonably determined can the scale, safety level and navigation capacity of the ship traffic in the channel or waters be known and reliable basis for channel planning and construction be provided. with the widening of navigation channel and the increasing of navigation route, the distribution of water traffic flow field is changed[2–3].in order to improve the efficiency of ship's cargo transportation and ship's shipping capacity, many people in the industry apply computer, sensor and image processing technology to the field of water transportation[4– 5].therefore, it is very urgent to establish a perfect channel traffic flow acquisition system, which is of great significance to realize the intelligence of water supervision. 2. current situation of demand analysis for traffic monitoring observation this paper takes yancheng navigation channel traffic observation as an example. river ditches are longitudinally and horizontally in yancheng city, with dense water network. there are 12 large rivers over 50km long. ship flows are large, route distances are long, and personnel are especially inadequate. the accuracy of manual observation is not high. investigations into existing methods of observation reveal the following problems: (1) existing channel traffic monitoring methods cannot monitor actual demand. at present, the monitoring points of yancheng waterway traffic volume are still mainly manual monitoring mode (visual monitoring + registration). as shown in the table below, the data accuracy and continuity need to be improved, and the contradiction between large workload of manual monitoring and insufficient monitoring personnel is becoming increasingly prominent. (2) existing channel traffic monitoring methods cannot meet the requirements of development planning. in the document "fourteenth five-year plan" development of yancheng port and navigation (no. 2021, yanshijiao port), it is clearly pointed out that the construction of port and navigation "perception" capability should be accelerated, the layout and construction of monitoring equipment in key areas such as traffic monitoring points, water level stations, video monitoring points and locks should be improved, and information data collection, such as channel facilities, ship traffic volume, ship density, water level and lock flow should be strengthened. transmission and intelligent analysis. based on the above conditions, in response to the requirements of the fourteenth five-year plan of yancheng port and navigation, the construction requirements of trunk traffic flow monitoring facilities along the yancheng area are proposed, and the ship traffic flow operating parameters and relevant basic information at the monitoring points along the line are collected in real time to master the ship running situation of the trunk channel. this monitoring facility construction is helpful for the management department to grasp the basic information of navigating ships more intuitively and to promote the modernization level of navigation channels in yancheng city. by 2035, a provincial "two longitudinal and five horizontal" trunk navigation network system with smooth networking and reasonable layout will be basically built, thus realizing all the objectives of this round planning. 2 3. overall system architecture as shown in the diagram below, the system architecture is mainly divided into support layer of foundation, algorithm platform layer and application layer. the equipment layer is divided into outfield equipment and infield equipment, outfield equipment includes ship monitoring perception camera, ais equipment, lidar, and infield equipment includes application server, database server and algorithm server. the network layer is mainly composed of communication network and private optical fiber network. the algorithm platform layer includes ship flow statistics, ship type identification, ship cargo type identification, ship speed identification, ship registration and ship number identification, ship direction identification, ship size identification, ship draught identification, ship three-dimensional modeling, hydrological scale identification video review, video storage, video pushflow, video live broadcasting; the application layer includes flow statistical analysis, channel ship hot spot map, ship transit record, etc. and provides interfaces with relevant systems of harbor and navigation development center of jiangsu transportation department. algori thm platfo rm layer applic ation layer construction and operational security system founda tion suppor t layer field equipment inside field equipment video surveillanc e camera ais equipment lidar algorithm server application server private optical fiber network database server inland electronic channel map superposition anti-theft linkage manual observation data input overload identification water level determination device management behavior log management authority management data sharing applications visual map monitoring video management vessel speed determination classified data statistics flow summary analysis traffic volume list flow trend analysis ship channel visual ship size data analysis ship flow statistics hydrometric ruler identification ship type identification vessel speed detection artificial intelligence visual algorithm radar point cloud data algorithm data fusion algorithms ship tracking name ship number identification ship capture data processing of radar point cloud radar target recognition and tracking data fusion in fo rm at io n se cu ri ty s ys te m da ta re sou rce s tan dar d spe cif ic ati on gu ara nte e sys tem fig.1 overall structure diagram of channel traffic monitoring system design 4. design of analysis module for platform artificial intelligence algorithms 4.1. visual algorithm identification of ship number. the ocr character recognition algorithm is used to identify the ship's registered ship number, and then the ship number is output and recorded compared with the ship information database and ais information of provincial channel center. the effect of ship number identification is as follows: fig.2 ship identification effect diagram (1) ship type identification. the model of depth learning algorithm is used to identify the ship appearance in the image which has been connected to the visual acquisition equipment, and output the ship appearance color, ship type (such as dangerous chemicals ship, passenger and cargo ship, container ship, oil ship, etc.). (2) direction resolution of ships. the depth learning algorithm model is used to analyze the ship's trajectory in the images which have been connected to the visual acquisition equipment so as to distinguish the upstream and downstream of the ship and provide data support for channel traffic statistics. (3) ship trajectory tracking. by using image trajectory analysis algorithm and machine intelligent learning, real-time monitoring and recording information such as real-time position, course, speed and trajectory of past ships, and combining electronic map and ferry warning zone to forecast the ship's navigation situation. (4) channel traffic statistics. the algorithm model identifies all vessels in the image which have been connected to the visual acquisition equipment and carries out feature numbering and tracking, which achieves all vessels in the effective statistical cycle and avoids the situations of repeated counting and omission. (5) hydrological scale identification. using depth learning algorithm and ocr character recognition algorithm, the hydrological scale along the bank is analyzed to obtain remote real-time water level information. (6) ais data fusion. integration and output of ship information comparison between ais transceiver data and visual acquisition terminal data by artificial intelligence algorithm. 4.2. lidar algorithm (1) three-dimensional ship modeling. the position coordinates of transit ships at different times can be obtained by scanning transit ships with lidar, so that the three-dimensional effect of ships can be restored by point cloud at image level. provide data support for identification of ship speed, size and waterline. (2) vessel speed identification. the target ship is scanned by the rotation mirror method of the lidar, and the position coordinates of the ship at different positions are obtained by reflecting the information at different points while traveling, so that the speed of the target ship can be calculated in real time. (3) ship size identification. three-dimensional modeling of ship is used to obtain ship dimensions. if the ship is long, wide and high on the water, it will provide data for calculating the ship's draught line. (4) ship draught line identification. drainage line of target ship can be calculated based on three-dimensional ship modeling, ship size identification and water level identification in this area. radar 3d modeling results are shown in the following illustrations. 3 fig.3 effects of 3-d lidar modeling 5. design of database deployment architecture the database and channel traffic monitoring platform are uniformly deployed in yancheng port and navigation center. the data are divided into three categories: basic data of channel flow monitoring, statistical data and video data according to volume, as shown in the following table: table 1. database design of channel flow monitoring system data class data set data sources basic data channel basic data, ship basic data, route basic data, etc. port and shipping center statist ical data ship traffic volume data, channel throughput data, hydrological scale data, etc. ais、lidar video data video camera basic data, video data, etc. monitorin g video basic database includes static data such as channel basic data, ship basic data and route basic data, which is mainly used to provide basic data support for application layer. the statistical database is mainly dynamic data uploaded by ais, lidar and other equipment, which is convenient for external data reporting (including data transmission to provincial, port and navigation centers, etc.), local record storage and platform application. video database includes video camera basic data, video data, etc. video data needs to be stored separately because of its large volume and large bandwidth occupancy when calling. 6. conclusion based on the current situation of channel traffic volume monitoring in yancheng city, this paper constructs a channel traffic volume monitoring system according to the problems that the existing channel monitoring means cannot meet the future channel development planning in yancheng city. through the construction of the ship information perception terminal and the combination of artificial intelligence visual algorithm, radar point cloud data analysis algorithm, data fusion algorithm and other algorithm platforms, the credibility, accuracy and quality of the ship information data are greatly improved. the final recognition accuracy of ship track, ship name, ship number and ship type: no less than 90%; the rate of ship missing inspection: no more than 10%; after data fusion, the accuracy of ship type and cargo type shall not be less than 92%. references [1] chen guangjie, wang longxin. application of radar detection system for water transport traffic volume [j]. china's transportation informatization, 2011(s2): 86-90. [2] fangfang.zhou keyu, xu aijun, li huixia, et al. design and implementation of forestry data acquisition system [j]. journal of zhejiang agriculture and forestry university, 2015, 32(4): 491–496. [3] wang chenhui, wu yue, yang kai, et al. design of multichannel data acquisition system based on stm32 [j]. electronic technology application, 2016, 42(1): 51–53. [4] hu daidi, dong suge. research and simulation on data acquisition method of remote experiment information [j]. computer simulation, 2017, 34(4): 186–189. [5] li nan, chen yong. research on evaluation technology of improved ahp system based on agent data acquisition [j]. ship science and technology, 2015, 37(7): 120–123. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 16 application of eye movement tracking technology in web design chenyanzhe wu information technology academy, beijing normal university, zhuhai, 519087, china abstract: eye movement tracking technology is an emerging technology in recent years and has been widely used in many fields. tracking people’s eyeball movement can help to understand human’s emotion and behavior, reflect human’s subjective intention on things, and provide a basis for the research and development in many fields. this paper mainly reviewed the eyeball movement tracking technology, and made a brief analysis on its worldwide application, in order to lay a foundation for better understanding the research of eyeball movement tracking technology. keywords: eye movement tracking; movement trajectory; key technology. 1. introduction eyes are an important source of information for people. they can transfer 80% of external information to the brain and then get more information from the observed information. due to the directness, uniqueness and variability of human eyes staring at things, the research on eye movement has never stopped. regarding the early studies of eye movement, some scholars consider they can be traced back to greek era, but until mediaeval times, people truly used eyeball device to test the movement of eyeball. the idea of eyeball movement was firstly proposed in 1930, with its initial target at business level. but restricted by the development of computer and other technologies, electrooculogram (eog) develops very slowly. as the computer image technology advances and the high-quality electron device springs up, many research and development institutions are devoting to eye movement tracking technology of various applications. based on these, eye movement tracking technology has been improved, developed and then widely used. by using the eyeball trajectory tracking technology, we can track the trajectories of eyeballs and obtain the eyeball movement parameters such as fixation trajectory, fixation time, fixation frequency, pupil size and so on. meanwhile, by virtue of visual trajectory and fixation-focused image, it is feasible to get people’s most objective recognition of things and further acquire more accurate ways how people know the relation of things. 2. principle of eye movement tracking technology electrooculogram (eog) taking eyeball movement tracking technology as the basic principle has been widely used in every aspects of the society. eyeball movement tracking is a vision-based tracking technology, which integrates eyeballs with camera to acquire the infrared light produced by eyeballs so as to continuously record the changes of eyeball movement and track the target. eyeball movement tester uses infrared pupil camera to process eyeball images and determine the position of eyeballs. since 1967, yarbus had deemed eyeball movement as a comprehensive measurement method. he believed that every theme of the objects could have an effect on eyeballs, and eyeball movement can reflect human’s ideological activities. the most frequently used eye movement of people are trace convergence, vestibular eye movement, saccade, fixation, look back, etc. eyes can collect external information by these movements (as shown in fiugre1). the acting characteristics of eyeballs are a critical window to understand how the brain processes messages. during reading, people always acquire the necessary message by fixed gaze. during book reading, sometimes when the eyes look at one place, they need to stop for a while letting the message being processed at a higher layer and then shift to other places. this may happen when your brain can’t think. meanwhile, when the subjects are analyzing the meanings and think that the knowledge included can be used to predict the subsequent content, the saccade phenomenon may happen. when the subjects feel hard to understand the test statement, the saccade length of their eyeballs would be shortening and the gazing time would be lengthened. fig.1 extraction of sight feature parameters 17 3. technical type and characteristics of eye movement tracking system according to the professional approaches used, eyeball movement tracking system can be divided into mechanical, electromagnetic and optical systems; according to system structure and tracking means used, it can be divided into invasive and noninvasive systems; according to the wearing requirement of device, it can be divided into wearing and nonwearing systems. in 1898, delabarre used the convex lens characteristics of eyeballs for the first time, and transferred and measured the moving trajectories of human eyeballs during reading through a connecting rod. this is the first mechanical approach to track eyeball trajectory. besides, some scholars track the movement of eyes according to the subcutaneous voltage difference of body surface during internal rotation of eyeballs. this measuring method is called electrooculogram (eog). after the 20th century, as light guide and photography techniques developed rapidly, dodge and cline firstly adopted corneal reflex and photography techniques to shoot the eyeball movement of the subjects in 1901, enabling this technology to be widely applied and developed. in 1922, the world’s first noninvasive eyeball movement tracking device “guy thomas buswell in chicago” came out in chicago, usa. this product utilized eyes to refract the light on a thin film and then made records and determined their location. in the 1970s, with the blooming of eyeball movement tracking technology, it had been developed in reading and psychology fields. in the 1980s, as the eyeball movement tracking technology was universal, it was gradually used to solve the human-machine problems. a scientist from the university of regensburg in german discovered a computer operated by “sight” in an investigation, which was an approach based on users’ eye movement to assist the disabled to read and operate. furthermore, kumar et al. from the hci team of stanford university conducted an experiment named “eyescrolling” which based on the control of document navigation and browsing behavior, thus, a specific “reading model” was created which can decide the rate of page viewed and the viewing scope for readers in the process of reading [10]. therein, the mechanical method and electromagnetic method (invasive method) have been abandoned, because direct contact with eyes may result in injury and disturbance to human bodies. while, using camera to carry out nondestructive image collection on human body and extract eyeball characteristics from images produces little impact on the subjects and is easy to implement, so it is the most frequently used method at present. 4. application scenarios of eye movement tracking system in web reading contributing to the development of virtual reality technology, computer technology and machine-aided design technology, eyeball tracking technology has been widely applied in electronic reading, information retrieval, human factor analysis and other fields. a great number of experimental results indicate that the effect of using eyeball tracking technology for virtual reading is better than finger interaction. in present digital and mobile phone reading, eyeball tracking technology shows its important application and research value day by day. 4.1. aided web e-reading in the 2014 android developers conference, eye tribe company released an only 20x1.9x1.9 cm accessory which can operate laptop by eye movement, making it the world’s smallest eye tracking device at present. though this software, the users could move eyes to control e-books and web browsing and achieve pull-down, flip-over, labeling, searching and other functions. before this research result was published, the eye tribe accessories on windows was also released in advance, covering all windows devices including desktops, notebooks and laptops [11]. in the “fac⁃ tory 2016 fall”, tobii technology displayed an intelligent eyeball movement tracking glasses named “tobii pro glasses 2”. wearing these glasses, when the readers finish the last page, the interface will roll down and rebound back as expected. in addition, samsung, apple and software have installed eye movement tracking in their ios or android system [11]. 4.2. web assessment and design eyeball movement tracking technology can effectively record users’ eyeball movement on the web. by computing, the browsing sequence, attention allocation and readers’ interested fields can be obtained. finally, the map will label the “hot spot region” and point out which part of the page is the most attractive to readers. owens (2008) and nielsen (2006) had carried out a series of investigations on the access mode of web sites, and the results demonstrated that: due to natural habits, the users’ gazing center showed an e/f shape, while the hot spot was the upper right part of the web. this investigation put forward some suggestions on the content arrangement of websites, for example, a german company named eyequant utilized the above-mentioned principle to promote website design effect within a few minutes. 4.3. v-learning deep learning since 2016, a new craze for computer deep learning had upsurged all over the world. the vr+ education based on eyeball movement tracking technology has attracted more discussion in the investment and education circles. the learning of artificial intelligence era should pay more attention to man-to-man interaction and emotional interaction. though radio learning, internet e-learning, mlearning, moocs and other courses have become popular, they don’t have real situational penetration and should be improved in the interactions between teacher and students, between students and students, and between students and environment, in the teaching method and assessment method. however, vlearning is a brand-new teaching method combining visual technology with virtual technology [12]. 4.4. reading psychology and reader study during reading, the characteristics of human eye movement is a group of changes in eye movement and fixation points. using eye movement tracking to match the eye movement information captured with the progress of reading and understanding at real time can help to make delicate evaluation on psychological activities. the researchers are attempting to conduct cognitive processing learning by virtue of electrophysiology/brain image technology and also discussing how to fuse the two. taking erp as an example, when eye movement and erp 18 technologies are used to examine the reading comprehension process of chinese, it is discovered that both of the methods can retain a certain consistency in the initial effect of chinese reading comprehension. russia’s national commercial college announced in its official website on august 30th 2022 that, russia and german co-built the first russian-based eyeball movement database. this system can not only perform language retrieval but also timely check and rectify abnormal language functions. thereby, using eyeball movement tracking language to retrieve language and literacy has become a new development direction. 5. conclusion with the continuous development and improvement of eye movement tracking technology, more studies on this technology have been started in other fields. using eye movement tracking technology to capture human eyes and track eye movement can master people’s reaction and interest in external factors under conscious or unconscious status to a certain extent. this paper mainly introduced the application and analysis of eye movement tracking technology in various fields at home and abroad. however, some relevant studies abroad are much earlier than those in china and have been applied into real operation, and their achievements are ahead of those in china. it is believed that as technological technology advances, eye movement tracking technology will be applied to real life and creates a more scientific and convenient life. references [1] zhang zhiyun, li qiwei, xiang xiaohui, fang jiajia. application of digital teaching model based on eye tracking technology in eeg skills training [j]. medical education research and practice, 2022,30 (05): 641-647. doi: 10.13555/j.cnki.c.m. [2] sun jing, li shuping, dong wanying, xue liang. research on the influence of self-efficacy of chemistry normal students on problem solving based on eye tracking technology [j]. chemistry teaching, 2022(08):24-30. [3] li shuo, zhang chengzhi. visual analysis of the application of eye tracking technology in translation studies [j]. journal of baoding university, 2022,35 (04): 98-104. doi: 10.13747/j.cnki.bdxyxb.2022.04.015. [4] kang jiannan, han xiaoya, geng xinling, li xiaoli. research on abnormal face processing and recognition of children in autism spectrum disorder based on eye tracking technology [j]. china journal of rehabilitation medicine, 2022,37(07):933936. [5] dong wanying, yang yang, li haiqin, xue liang. the present situation and strategy of teaching material analysis ability of chemistry normal students based on eye tracking technology are discussed [j]. college chemistry, 2022,37(07):256-263. [6] zhu yujie, dong jiaying, weng yuxi, dong jianwen, wang minhua. audio-visual interactive evaluation of forest park environment based on eye tracking technology [j]. china gardens, 2021,37 (11): 69-74. doi: 10.19775/j.cla.2021.11.0069. [7] ouyang xue, li yuanrong. research on the difference of high school students' chemical problem solving based on eye tracking technology-taking "redox reaction" as an example [j]. chemistry education (chinese and english), 2021,42 (19): 7581. doi: 10.13884/j.1003-3884 [8] ji ming, xie xudong, qiu yan. application of eye tracking technology in flight cockpit human factors design [j]. packaging engineering, 2021,42 (18): 84-93+10. doi: 10.19554/j.cnki.1001-3563.2021. [9] liu linghan, wu meiyang, ma yimeng, qu haiyan. review on the application of eye tracking in landscape research [j]. journal of western human settlements, 2021,36 (04): 125-133. doi: 10.13791/j.cnki.hsfwest.20210416. [10] wang gang, wang zifan. research on usability evaluation of smart tv interface based on eye tracking [j]. packaging engineering, 2022,43 (18): 65-71. doi: 10.19554/j.cnki.10013563.2022.18.009. [11] xu jie, lin zerui, qin jingwen, liu mengqi. research on the optimization of original online literature websites based on eye tracking-taking qidian as an example [j]. publishing and printing, 2022 (02): 2-13. doi: 10.19619/j.issn.1007-1938.2007. [12] li jiaxuan. research on online learning cognitive engagement model and online course resource optimization based on eye tracking [d]. east china normal university, 2022. doi: 10.27149/d. cnki. ghd su.20002.00000000004. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 3, 2022 1 application of distributed wmps system in agv automatic navigation yingya zheng * college of artificial intelligence, wenzhou polytechnic, wenzhou 325000, china. * corresponding author: email: v2017021935@wzpt.edu.cn. abstract: agv vehicles play an important role in industrial automation production, and automatic navigation is the basis for automatic operation of agv vehicles. in order to improve the navigation accuracy of agv vehicles, based on the workspace measuring and positioning system (wmps), this paper proposes to use upright and top mounted transmitter stations to build precision coordinate measuring fields, and analyzes the construction process and layout optimization principle of precision measuring fields in detail, finally, the measurement accuracy of the coordinate field is illustrated through experiments. the experimental results show that the comparison error between the precision coordinate measurement field constructed by the method proposed in this paper and the measurement results of the tracker is controlled below 0.2 mm, which can effectively ensure the measurement accuracy and realize the automatic precision navigation of agv vehicles. keywords: agv navigation; positioning measurement system; measuring field; layout optimization. 1. introduction at present, china's industrial production fields, such as machining, parts assembly, splicing, are characterized by multiple tasks and strong repeatability. if manual operation is adopted, a large amount of labor needs to be invested, and processing technology and precision cannot be well guaranteed [1]. therefore, manufacturing enterprises are gradually introducing new industrial technology and information technology to realize the automation of production process. however, at present, the automation of the workshop is mainly concentrated on the unit level. for example, one station uses multiple industrial robots for automatic processing, but the transportation between stations still requires manual or semi mechanical methods, which also reduces the overall generation efficiency. in addition, it needs to establish multiple stations, which also increases the cost input [2]. the emergence of agv (automated guided vehicles) has solved some of the above problems and realized highly automated production and processing. agv car first appeared in the 1950s. it is an unmanned intelligent carrying car, belonging to a mobile robot. agv vehicles are generally equipped with automatic guidance devices, which do not require manual operation, and do not need to lay tracks, supports and other auxiliary equipment in their work areas. they have low requirements for the site, roads and surrounding environment, and are characterized by strong flexibility, good repeatability, good safety, and can work 24 hours a day, which can effectively improve the production efficiency and reduce costs, and the task scalability is very good [3][4]. the automatic processing system realized by agv car is mainly divided into parts processing area and agv car moving area [5]. as shown in figure 1, multiple processing areas can be set in the site, and each processing area can achieve different processing tasks. the processing tasks are completed by the industrial robot fixed on the agv car. when the processing task of one area is completed, the agv car's automatic navigation function and advance path planning are used to transport it to the next processing area, so as to complete the processing task of each area. it can be seen that in order to realize automatic processing of agv vehicles, it is necessary to realize automatic navigation of agv vehicles. due to the high precision requirements of the processed parts, when the agv car moves to a processing area, it needs to stop at the designated position. each designated position has four holes drilled. these four holes can be connected with the four retractable supports installed on the agv car to fix the agv car, so that the robot will not be affected by the agv's own shaking during the processing. in order to enable the agv vehicle to accurately move to the designated parking position in each processing area and dock with the four holes, highprecision navigation is required for the agv vehicle. figure 1. schematic diagram of agv automatic processing schematic diagram for automatic processing of agv traditional agv vehicle navigation mainly includes electromagnetic navigation, inertial navigation, visual navigation and other technologies, but these technologies mainly have problems such as poor anti-interference ability, low real-time, low precision, which can't meet the requirements of high-precision dynamic navigation processing. moreover, because of the large processing area and large navigation space, agv vehicles need to ensure high precision in the whole process of moving in large space. the workspace measuring and positioning system (wmps) is a new industrial distributed large-scale coordinate positioning system based on the photoelectric scanning principle, which 2 has the advantages of high precision, good scalability and parallel real-time measurement. this paper proposes a highprecision measurement field construction method based on distributed wmps, which can effectively ensure the accuracy of agv vehicle navigation process. 2. wmps related technologies 2.1. measuring principle the wmps is a new industrial distributed large-scale coordinate positioning system based on photoelectric scanning principle, mainly including laser transmitting stations distributed around the workspace and receivers located at various points to be measured, as shown in figure 2. figure 2. composition diagram of measuring system the uniform rotating turntable of the transmitting station drives two linear lasers that can emit sector laser to scan space at a uniform speed. when the photodiodes inside the receiver at the point to be measured perceive signals from different transmitting stations, the solving workstation can use the principle of forward space intersection to calculate its own spatial coordinates [6] [7]. during operation, the transmitting station turntable rotates counterclockwise at a constant speed driven by the motor. when the rotary head turns to a predetermined initial position, the transmitting station shoots an isotropic synchronous light signal into space as the starting point of timing. when the transmitting station laser plane scans the receiver, a scanning signal will be generated. according to the time difference between the two and the rotating speed of the transmitting station, the solution workstation can determine a virtual plane passing through the receiver. similarly, after obtaining at least three such planes, the spatial coordinate p(x,y,z) of the receiver can be calculated. one equation can be determined for each plane, and the equations [7] can be solved by using multi plane constraints as follows: [ ][ ] 0 mnm t n n mm nn n mn xa b c y z d    + + = r r t (1) where , , ,mn mn mn mna b c d represents the coefficient of the mth initial laser plane equation of the nth transmitting station, {1,2}m , n +n . mnr indicates the rotation of the laser plane θ rotation matrix of. nr 、 nt represent the rotation matrix and translation matrix from the global measurement coordinate system to the transmission station coordinate system respectively. 2.2. distributed wmps system the distributed wmps system has the characteristics of large measurement space, high precision, good real-time and strong scalability. therefore, using wmps to build a large space precision coordinate measuring field can solve the problem of high-precision navigation of agv vehicles. as shown in figure 1, the top mounted transmission station and the upright transmission station are used to jointly build a coordinate measuring field, so that they cover the working space of the entire agv vehicle. omnidirectional receivers are placed at the fixed positions of the four corners of the agv vehicle. when the agv vehicle moves, the position coordinates of the four receivers are measured through the wmps system, so that the position of the agv vehicle under the constructed coordinate system can be known, so as to achieve real-time accurate navigation. 2.3. layout optimization the measurement field constructed by wmps needs to place multiple transmitting stations, and the location of the transmitting station will affect the final measurement accuracy. in order to obtain the best placement location of the transmitting station and optimize the layout, an evaluation model is required first, that is, how to evaluate the advantages and disadvantages of a layout, analyze and solve the equations (1), finally, it can be simplified into the following linear equations model: =ax b (2) the condition number of coefficient matrix a is conda , because matrix a is full rank, 2 cond cond( )n a= (3) the smaller the condition number of a is, the smaller the relative change of solution is, and the higher the measurement accuracy is. therefore, the optimization of layout is to find parameters to minimize the conditional expression of a. genetic algorithm is a heuristic and adaptive global search algorithm [8]. this paper uses genetic algorithm to solve the optimal solution. 3. building a wmps measurement field the establishment of the measurement field needs to take into account many factors such as the measurement site interference, complex environment, and many obstacles. the constructed measurement field needs to achieve full coverage of the entire space while ensuring the accuracy, so as to ensure that the agv vehicle can get accurate navigation in the entire space to complete the measurement task. in order to improve the measurement accuracy of the construction, it is necessary to optimize the layout. the optimization strategy and method mainly use the relevant models and algorithms proposed in this paper. in order to better adapt to the on-site environment and needs, it is necessary to improve the construction and optimization process. the construction process of the measuring field is mainly divided into the following steps. (1) determine the measurement area. the size of the measurement area directly determines the number of transmission stations to be arranged. because the establishment of the measurement field is mainly used for the navigation of agv vehicles, the measurement area is the moving area of agv vehicles. considering that the agv car needs to stop at a precise position near the processing area, the accuracy is required to be high, while the accuracy is relatively low in other moving areas, so the measurement area can be divided into multiple parts, which is helpful for the subsequent layout and layout optimization of the launch 3 station. (2) determine the station layout area. the determination of the station layout area mainly considers the coverage of the transmitting station, obstacle avoidance, measurement accuracy and other aspects. considering the best working distance of the laser in the transmitting station, the coverage of the transmitting station is mainly a circle within 10 meters. the blind area of the transmitting station is roughly two cones with a top angle of 60 degrees, taking the z-axis of the transmitting station as the centerline. therefore, the greater the distance between the measuring areas in the z-axis direction, the greater the blind area. at the same time, due to the complexity of the on-site working environment, when processing, other processes and equipment should be considered to block the signal of the transmitting station. it is necessary to ensure that each position can receive at least two transmitting station signals. since the agv vehicle is required to move inside the measuring area, the transmitting station cannot be placed. it can be considered to use a top mounted transmitting station and a vertical transmitting station. (3) determine the initial layout. after the station layout area is determined, an initial layout can be determined according to experience. the transmitting stations can be placed in batches by using the previously divided multiple measuring areas to ensure that each measuring area is covered. considering the large measurement field, if the unified calibration computation is large and time-consuming, and the subsequent layout needs to be optimized, the optimized layout needs to be recalibrated. therefore, external parameter calibration can be carried out for the transmission stations in different regions. since there are fewer transmission stations in each region, calibration is more convenient. (4) determine the optimized layout. after the first three steps are completed, all three parameters required for layout optimization are available, and then the layout can be optimized through genetic algorithm. in the same way, the space of each measurement area divided previously is locally optimized. because the accuracy of the processing area is required to be high, first optimize the layout of the transmitting stations around the processing area, so as to determine the positions of some transmitting stations, and then optimize the layout of other transmitting stations as a whole, so that each transmitting station can achieve high accuracy in the measurement area covered by itself. after optimization, manually adjust the launch station to the optimized position according to the software prompts, and adjust the attitude of the top mounted launch station. finally, the external parameters of the whole measuring field need to be calibrated. 4. experiment in order to compare the measurement accuracy of the constructed coordinate measurement field, the following comparison experiment is designed. first, select the position to place the laser tracker, make its measurable area as large as possible, and take the global coordinate system as the tracker coordinate system. then the coordinate system of the measurement field of the wmps system is transferred to the global coordinate system through the method of multiple common points transformation. then make the agv vehicle move freely in the working area. when it moves to a position to be measured, first use the omnidirectional receiver of the wmps system to measure and record the data, then remove the omnidirectional receiver, replace it with a laser tracker target ball, and use the laser tracker to measure and record the data at the same position, thus completing a group of measurements. move the agv vehicle to multiple locations for the above measurement, so that multiple groups of measurement data can be obtained, and some data can be sorted out as shown in table 1. table 1. partial data comparison of wmps precision coordinate measuring field (mm) point number x y z dx dy dz 1 laser tracker -3765.155 4956. 667 818.661 0.181 0.118 0.059 wmps -3764.974 4956. 549 818.720 2 laser tracker -3731.107 6242. 841 826.394 0.167 0.121 0.08 wmps -3730.94 6242. 962 826.314 3 laser tracker -5218.944 6844. 735 811.053 0.123 0.139 0.132 wmps -5219.067 6844. 874 811.185 4 laser tracker -5711.576 5784. 552 796.472 0.137 0.125 0.065 wmps -5711.713 5784. 677 796.573 5 laser tracker -1242.292 2109. 69 819.472 0.112 0.160 -0.13 wmps -1242.18 2109. 85 819.602 6 laser tracker -452.60 7477. 672 818.835 0.128 0.121 0.053 wmps -452.728 7477. 551 818.782 from the experimental data in table 1, it can be seen that the precision coordinate measurement field constructed by the wmps has a high measurement accuracy, and the comparison error between the measurement results of each direction and the tracker is controlled below 0.2mm, which provides a guarantee for the automatic high-precision navigation of agv vehicles. in addition, the good scalability of the wmps system can ensure the high accuracy of the measurement when adding stations or measuring tasks to the agv automatic processing system. it can be seen that the precision coordinate measurement field constructed by wmps system has a very broad application prospect in the field of highprecision navigation. 5. conclusion the automatic navigation of agv vehicle is of great significance in the industrial automation production, and the automatic navigation requires very high accuracy. in order to ensure the high-precision automatic navigation of agv vehicle, this paper introduces the wmps system. the wmps measurement system has the characteristics of large range, high precision, multi task parallel, full space real-time measurement, and convenient space expansion. therefore, the measurement field based on wmps has high precision. in order to further improve the accuracy of the measurement field, this paper first analyzes the measurement principle of the wmps and the solution equation, then analyzes the principle of layout optimization, and then proposes a method for constructing high-precision wmps measurement field. finally, the comparative analysis is carried out through experiments. the results show that the comparison error between the constructed measurement field and the measurement results of the tracker is controlled below 0.2mm, 4 which can effectively meet the accuracy requirements of agv vehicle automatic navigation. considering the complexity of measurement requirements in practical applications, we can further study how to use wmps and other measurement systems to build high-precision coordinate measurement fields to improve the accuracy of measurement fields. references [1] bi na, research on intelligent manufacturing assembly line workshop layout considering agv path planning [j]. journal of zhejiang university of technology, 2022,50 (05): 568-573. [2] yu nana, multi agv task scheduling and path planning in automatic sorting system [d]. beijing university of science and technology, 2022. doi: 10.26945/d.cnki.gbjku.2022.000233. [3] feng hua, zang bing, hu tengfei, yang chao, hu changchun, structural design of heavy duty agv and its application in construction machinery production line [j]. construction machinery technology and management, 2022,35 (04): 96-99. doi: 10.13824/j.cnki.cmtm.2022.04.025. [4] li jingxin application of agv trolley in intelligent manufacturing standardization [j]. brand and standardization, 2022 (04): 13-14+17. [5] zhou wenchuan, ren yongjie, wmps system self-aligning receiver for agv positioning [j]. automation and instrumentation, 2020 (09): 1-6. doi: 10.14016/j.cnki.10019227.2020.09.001 [6] dong chao, lin jiarui, yang linghui, ren yongjie, zhu jigui, wmps angle measurement accuracy evaluation method [j]. nanotechnology and precision engineering, 2017, 15 (06): 466-472. doi: 10.13494/j.npe.20160057. [7] guo hongjie, zhao jianguo, li yunfei, chen haifeng, zou shijun, yang chao, gan zhichao, measurement and control technology of aircraft large parts docking based on wmps [j]. measurement and control technology, 2016, 35 (01): 149-152. doi: 10.19708/j.ckjs.2016.01.038. [8] zhu yu, wang huiling, zheng jinbo, qi xiaolong, overview of bayesian network structure learning based on genetic algorithms [j/ol]. laser journal: 1-9 [2022-10-08] https://kns-cnkinet.webvpn.wzvtc.cn/kcms/detail/50.1085.tn.20220928.1540 .010.html. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 25 a modified yolov5 helmet detection algorithm based on swin transformer zhongling liu, yi luo, chanyi liu * sichuan university of science & engineering, yibin 633000, china * corresponding author: chanyi liu (email: 1084400802@qq.com) abstract: for the current stage of helmet detection in complex environments with low accuracy, missed detection and not easy to manage wearing, this paper proposes a yolov5 face helmet detection algorithm based on swin transformer improvement from the overall semantics of the image. in this paper, experiments are conducted using a self-built dataset to further enhance the performance of the model and improve the accuracy of face helmet detection through mosaic data enhancement, label smoothing processing, adaptive weighted features combined with wconcat module and the application of c3tr and c3str modules to fuse multi-scale information, enhance the feature extraction capability of the network, and improve the generalization and robustness of the model with a self-built dataset . experiments show that the improved yolov5 face helmet detection algorithm map based on swin transformer improves 5.7% compared with faster rcnn, 6.1% compared with yolov3, 5.3% compared with yolov4, and 1.6% compared with the original algorithm. it performs well in helmet face detection tasks in complex environments, achieving real-time detection and higher accuracy, while reducing missed detections. keywords: safety helmet detection; yolov5; swin transformer. 1. introduction in recent years, the phenomenon that construction site operators do not wear helmets and cause safety problems occurs frequently [1]. the safety awareness of the workers is weak, the management personnel do not do their duty of supervision and supervision in time, and the situation of not wearing helmets as required is a huge safety hazard in construction. therefore, the detection of the helmet wearing situation of the workers and the identification of those who are not wearing helmets play an important role in the safety management afterwards [2]. target detection is an important topic in computer vision. with the rapid development of computer vision, deep learning methods for target detection are mainly divided into two technical paths: one stage detection algorithm and two stage detection algorithm. 2014 ross b. girshick of university of california, berkeley proposed the algorithm of r-cnn [3] to combine cnn with the field of target detection, which opened the era of two stage. in 2015, ross girshick of microsoft research proposed an improved fast r-cnn [4] algorithm, which borrowed the structure of spp-net algorithm to accomplish a highefficiency classification task based on the original research, and improved the training speed and accuracy by using multitask error against the shortcoming of r-cnn training into multiple steps. 2015, shaoqing ren and kai-ming he of microsoft research in 2015, shaoqing ren, kaiming he, and ross girshick of microsoft research used a region proposal networks (rpn) to compute posals, and the faster r-cnn [5] algorithm was proposed by rpn + fast r-cnn. 2017 tsungyi lin of facebook et al. proposed the fpn algorithm, which truly incorporates the whole process of object detection into a neural network. the two-stage approach represented by r-cnn algorithm faster almost achieves the optimal effect, but encounters a bottleneck in speed, and there is great room for improvement in real-time performance. the yolo algorithm proposed by joseph redmon et al. at the university of washington in 2015 inherited the overfeat algorithm, a regression-based one-stage method called yolo (you only look once), which abstracts detection as a regression problem. after improvements by joseph redmon et al. the yolov2 and yolo9000[6] algorithms were presented at cvpr 2017, enabling end-to-end training. in 2018 joseph redmon et al. proposed darknet-53 again, using three feature pyramids of different sizes to fuse features (feature map) making yolov3 [7] to achieve better classification performance. in april 2020, yolov4 [8] using csp (cross stage partial) darknet-53 as backbone and replacing the feature pyramid network with panet (path aggregation network) was proposed by alexey bochkovskiy et al. proposed. in june of the same year, the yolov5 [9] algorithm with improvements such as focus structure and mosaic data augmentation has greatly improved its performance in terms of speed and accuracy, and so far yolov5 has been released in v6.0 with many necks. recent years, more and more network models have been proposed and promoted to various detection tasks, among which the yolo series algorithms have many advantages such as simple structure, high versatility, fast speed, applicable to multiple scenes, low background misidentification rate, etc. with the continuous iterative update of the algorithm, the algorithm performance and possibilities are being explored. ding [10] et al. proposed a safety helmet detection method based on improved yolov3. for the problems of weak real-time performance and low detection accuracy in industrial site helmet wear detection, kmeans++ clustering algorithm is used to optimize the acquisition of helmet wear prior frame and introduce residual module in the network prediction stage to further improve the average accuracy. jing [11] et al. proposed a helmet wear detection algorithm based on the improved yolov4 based on three feature map outputs yue [12] et al. proposed an improved yolov5 based helmet wear detection algorithm based on a 128×128 feature map output with 8-fold sampling to 4-fold fusion of more small target features, to address the 26 drawback that yolov5 cannot get effective features by weight focusing, using the attention module and retaining more prediction frames using the soft-nms algorithm to improve the accuracy of prediction frames. facility cost problem proposed a safety helmet detection method based on lightweight deep learning model using a lightweight improved version of tiny-yolov3, lt-yolo, which greatly reduces the complexity of the model. in summary, the helmet detection wearing problem has been widely studied, however, although the above yolo helmet detection algorithm has achieved performance optimization in different aspects, it is still difficult to maintain high accuracy in the complex background of the construction environment with overlapping crowds of multiple small and medium-sized targets. the reason is that the complex construction environment, target occlusion, light and other factors are very easy to affect the detection results, and the helmet target in the original size of the image is relatively low to cause target miss detection and background false detection. inspired by the design ideas of transformer [14], which has achieved great success in cv field in 2020 (e.g., vit for image classification, detr model for target detection), transformer has achieved optimal results in detection, classification and segmentation in successive fields, with the features of strong data adaptation ability and more robust global information extraction. to address the problems of low accuracy of helmet detection in complex environments and the difficulty of construction parties to manage helmet wearing, this paper proposes a yolov5 face helmet detection algorithm based on the improved swin transformer from the overall semantics of images and collects 3000 images of faces and helmets in various environments from the web to build a helmet face detection dataset. while accurately distinguishing helmetwearing and non-helmet-wearing people, the network's feature extraction capability is enhanced by fusing multi-scale information based on transformer block and sliding window mechanism, and the accuracy of face helmet detection is improved. experiments show that the improved yolov5 face helmet detection algorithm map based on swin transformer improves 5.7% compared to faster rcnn, 6.1% compared to yolov3, 5.3% compared to yolov4, and 1.6% compared to the original algorithm. it performs well in helmet face detection tasks in complex environments and achieving real-time detection with higher accuracy. 2. improved yolov5 algorithms figure 1. the improved yolov5 network the neck introduces c3tr and c3str modules and location codes into the original network of yolov5, and replaces the bottleneck in the original c3 module with transformer block and swin transformer block modules. the retained c3 module aims to streamline the network structure of yolov5, reduce the computation and reduce the reasoning time of the model. on this basis, c3tr and c3str have stronger contextual learning ability. considering that c3tr has a strong ability to capture global information, but the number of parameters is large, it needs to calculate the self-attention of each region, and the speed is slow, while c3str has a relatively weak ability to capture global information, but fewer parameters than c3tr, window migration can make up for the limitations of c3tr in reducing the global field of sensitivity and capturing more comprehensive features. figure 8 shows the specific replacement method. the performance of the model is effectively improved in the complex environment where the target helmet occupies a relatively small part in the original drawing. 3. experimental results and analysis in order to verify the detection performance of the yolov5 algorithm combined with transformer, this paper compares it with the mainstream target detection algorithms that have emerged in recent years in the same data set and environment. the experimental results are shown in table 1 since there are many small and medium-sized targets in the helmet wearing detection task, faster r-cnn as the classical representative of two-stage target detection model is not conducive to the detection of small and multi-scale objects because its feature map is only a single layer and the two stages of rpn and rcnn are divided, and it takes the longest time with the lowest accuracy. yolov5 has added more tricks, and the yolov5 v6.0 version algorithm used in this paper has higher accuracy before improvement, but the recall is lower, which tends to affect the correct recognition of detection targets in complex situations. combined with the transformer structure of yolov5-tr although precision slightly decreased, but recall and map@0.5 increased by 4.9% and 1.6%, respectively. in meeting the requirements of realtime detection to obtain better detection results. table 1. three scheme comparing model p r map@.5 faster r-cnn 0.940 0.891 0.925 yolov3 0.967 0.868 0.921 yolov4 0.944 0.880 0.929 yolov5 0.976 0.929 0.966 yolov5-tr 0.968 0.978 0.982 since there are many small and medium-sized targets in the helmet wearing detection task, faster r-cnn as the classical representative of two-stage target detection model is not conducive to the detection of small and multi-scale objects because its feature map is only a single layer and the two stages of rpn and rcnn are divided, and it takes the longest time with the lowest accuracy. yolov5 has added more tricks, and the yolov5 v6.0 version algorithm used in this paper has higher accuracy before improvement, but the recall is lower, which tends to affect the correct recognition of detection targets in complex situations. combined with the transformer structure of yolov5-tr although precision slightly decreased, but recalland map@0.5 increased by 4.9% and 1.6%, respectively. in meeting the requirements of realtime detection to obtain better detection results. 27 4. conclusion in this paper, we propose the yolov5-tr algorithm combined with transformer module on the basis of yolov5, and conduct experiments using the home-built dataset to increase the generalization and robustness of the model through mosaic data enhancement, label smoothing processing, adaptive weighting features combined with wconcat module and the application of c3tr and c3str.experiments show that the improved yolov5-tr has high accuracy for multiple occlusion detection of small and medium-sized targets in complex situations, and reduces the leakage detection while satisfying real-time detection. transformer undoubtedly has superior performance and powerful potential compared with convolutional neural networks. the limitation of the improvement based on transformer in this paper is that the accuracy is higher while the model is theoretically more computationally intensive, and the hardware deployment conditions are more demanding. in future work, it is expected to discuss the impact of modules in different locations on the detection results and computational effort, and to establish an identification system to determine the information related to people not wearing helmets. it is hoped that better algorithms can be borrowed for future experiments and exploration. references [1] shi hui. research on deep learning based construction site helmet wearing detection algorithm [d]. wuhan institute of technology,2019.doi:10.27381/d.cnki.gwlgu.2019.001638. [2] yu bo. safety helmet detection based on intelligent video surveillance [d]. hebei university of technology, 2011. [3] gkioxari g , hariharan b , girshick r , et al. r-cnns for pose estimation and action detection[j]. computer ence, 2014.j.-m. chang, w.-t. hsiao, j.-l. chen, h.-c. chao, mobile relay stations navigation-based self-optimization handover mechanism in wimax networks, in: proc. 2009 international conference on ubiquitous information technologies & applications, 2009.b. smith, “an approach to graphs of linear forms (unpublished work style),” unpublished. [4] girshick r. fast r-cnn[c]// international conference on computer vision. ieee computer society, 2015. j.g. wilson, f.c. fraser (eds.), handbook of teratology, vols. 1-4, plenum press, new york, 1977-1978. [5] ren s , he k , girshick r , et al. faster r-cnn: towards real-time object detection with region proposal networks[c]// nips. 2016. w. strunk jr., e.b. white, the elements of style, third ed., macmillan, new york, 1979 (chapter 4). [6] redmon j , farhadi a . yolo9000: better, faster, stronger[c]// ieee conference on computer vision & pattern recognition. ieee, 2017:6517-6525. cancer research uk, cancer statistics reports for the uk2003 (accessed 13.03.03). http://www.cancerresearchuk.org/aboutcancer/statistics/cance rstatsreport/ [7] redmon j, farhadi a.yolov3: an incremental improvement[j]. arxiv e-prints, 2018.m. young, the techincal writers handbook. mill valley, ca: university science, 1989. [8] bochkovskiy a , wang c y , liao h . yolov4: optimal speed and accuracy of object detection[j]. 2020. [9] wang j , chen y , gao m , et al. improved yolov5 network for real-time multi-scale traffic sign detection[j]. 2021. [10] ding w-l, fei sh-min. research on helmet detection method based on improved yolov3 [j]. electronic testing, 2022. [11] jin yufang, wu xiang, dong hui, et al. improved helmet wearing detection algorithm based on yolo v4 [j]. computer science, 2021. [12] yue h, huang h, lin mh, gao m, li y, chen l. safety helmet wearing detection based on improved yolov5 [j]. computers and modernization,2022(06):104-108+126. [13] qin zh, lei m, song wg, zhang w. safety helmet detection method based on lightweight deep learning model[j]. science technology and engineering,2022,22(14):5659-5665. [14] vaswani a , shazeer n , parmar n , et al. attention is all you need[c]// arxiv. arxiv, 2017. [15] liu z, lin y, cao y, et al. swin transformer: hierarchical vision transformer using shifted windows[j]. 2021. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 1, 2022 62 research on the effect of focus-pdca quality management on improving the maintenance and use of monitors in hospitals qinfeng liu1, qianyu zhang2, jialan chen3, *, tao wang4 1 medical equipment management department, shaanxi provincial people 's hospital, xi’an shaanxi, china 2 school of life science and technology, xi 'an jiaotong university, xi’an shannxi, china. 3 department of gynaecology, shaanxi provincial people 's hospital,xi’an shaanxi, china. 4 department of medical imaging, hospital of stomatology, xi’an jiaotong university, xi’an shaanxi, china * corresponding author: jialan chen abstract: objective to explore the application value of focus-pdca in improving the maintenance and use management effect of monitors in hospital. methods a large hospital in xi'an adopted the focus-pdca quality improvement measures in the maintenance and management of monitors. through f(find), o(organize), c(clarify), u(understand), s(select), p(plan), d(do), c(check), and a(action), the management efficiency can be improved. the management effect before and after using focus-pdca management measures was compared. results after the implementation of focus-pdca quality improvement measures, the availability rate of all monitors in the hospital was improved significantly, from 92.96% before implementation to 98.46% after implementation, the ratio of uncharged monitors to be used and the ratio of monitors with stains on the surfaces decreased significantly (c2=76.900, 2=174.432; p<0.05), the pass rate of monitors in one inspection increased significantly (c2=45.133; p<0.05). conclusions in the maintenance and use management of monitors, the use of focus-pdca quality improvement can promote the daily maintenance and use management of monitors by medical staff, promote the preventive maintenance of monitors by clinical medical engineers. it can improve the availability rate of all monitors, and improve the management and use effect of monitors. focus-pdca has great value in the maintenance and use management of monitors in hospitals. keywords: focus-pdca; management effect; availability rate; application value. 1. introduction monitors are the most commonly used medical devices to measure the physiological parameters of patients in hospitals. when the monitoring values are found to be beyond the normal value ranges, monitors will issue sound and light alarms[1].they can continuously monitor the vital signs of patients, and have the function of storing and printing, so that doctors can analyze and compare historical data, so as to make diagnostic decisions on the abnormal value found, and carry out medical treatment in time to control the development of the patients’ conditions[2].at present, monitors are widely used in hospitals because they can help medical staff monitor the signs of patients, and have the characteristics of small size and easy operation. almost every clinical department will use them. however, due to various problems in the use and management of monitors, the failure rate of monitors is high, which affects the operation efficiency of clinical departments. focus-pdca was proposed by quality management experts in the united states. it is an important management method for continuous quality improvement. it is developed on the basis of pdca cycle management. while, it can improve the management efficiency through nine aspects of quality improvement measures: f(find), o(organize), c(clarify), u(understand), s(select), p(plan), d(do), c(check) and a(action).in recent years, pdca management method has been widely used in hospital management, and it has achieved good results[3-5]. this study discusses the effect of using focus-pdca quality management to improve the maintenance and use of monitors in hospitals. 2. research materials and methods 2.1. general materials since august 1, 2021, a large hospital in xi'an has adopted the focus-pdca quality improvement method in the maintenance and use management of monitors in the whole hospital. there are 1236 monitors, including 23 models of 8 brands. there are 412 mindray pm9000 monitors, 334 mindray ipm12 monitors, 137 philips g40 monitors and 116 philips g70 monitors, which are the top four models with the largest number of monitors. all the monitors used in the hospital were taken as the research objects. 2.2. research methods 2.2.1. f(find)-to find the problems the clinical medical engineers conducted a statistical analysis of the monitor maintenance records in the hospital and the equipment management and use records of the clinical departments within two years, and communicated with the manufacturer's engineers many times. finally, they found that the faults in the use of the monitors mainly included the following aspects. (1) medical accessories such as ecg lead wires, blood oxygen probes, blood pressure cuffs, etc. were damaged, resulting in inability to measure data, or large waveform interference, which affected the observation of measurement data. (2) the monitor’s rechargeable battery was low in power 63 or the rechargeable battery was damaged, so that the monitor could not continue to work after a power outage. (3) the motherboard memory battery was damaged, causing the system recording time to be inconsistent with the actual time. (4) the blood pressure control module inside the device was damaged, resulting in the failure to measure blood pressure, the failure of blood oxygen control module caused the failure to measure blood oxygen, and the failure of ecg module caused the failure to measure ecg. (5) the cooling fan was aging, causing the fan to make too much noise. (6) the monitoring alarm limit was unreasonable, resulting in frequent alarms. (7) the display screen and display control module were faulty. (8) the blood pressure, blood oxygen and ecg measurement interfaces were damaged, which led to the failure to insert the lead wire for corresponding inspection. (9) the device shell was damaged due to accidental fall 2.2.2. o(organize)-to establish the cqi group established the cqi (continuous quality improvement) group, whose members included relevant personnel from the medical equipment management department and clinical departments. the director of medical equipment management department was the leader of cqi, who was responsible for the coordination and implementation of the whole quality management process. 2.2.3. c(clarify)-to clarify the current management process according to the found problems, the existing management process of equipment maintenance and use was sorted out, and the weak links in the equipment maintenance system process and management process were found, and the root causes of the problem were found [6]. 2.2.4. u(understand)-to understand the reasons cqi held the quality improvement meeting, during which the members carried out brainstorming and discussion. according to the existing maintenance and use management system process, the root causes of the above problems were analyzed from the five aspects of man, machine, material, method and milieu. the root causes included the following aspects :(1) the medical staff were not careful enough in the finishing process of the monitor every day, so that the medical accessories such as blood pressure cuff, ecg lead wires and blood oxygen probes were damaged but not replaced in time, resulting in the monitoring data process reporting errors or inaccurate results; (2)medical staff did not check the battery status of monitors in time, and did not replace or charge batteries of medical devices in time; (3) the preventive maintenance of the monitor was not carried out, which led to the failure of the monitor function modules and the inability to monitor parameters, and it also caused problems such as excessive fan sound; (4) nursing staff were not skilled in the operation of monitors. when inserting the medical accessories into the interfaces of medical devices, they did not pay attention to the insertion direction or exerted too much force, which led to the damage of interfaces of devices or medical accessories;(5)nursing staff did not fully understand the patients’ vital sign parameters, and the alarm limit values of monitors were set irrationally; (6)in the process of moving medical devices to monitor inpatients or transferring patients, the nursing staff did not place monitors properly, resulting in the falling of monitors and damage to devices; (7) too many devices were placed near the beds, resulting in crowding of the devices and easy pulling of the device wires, which may lead to devices tipping and damage;(7) the ward environment was not cleaned in place and timely, resulting in too much dust in the ward environment, which entered devices through the monitors’ heat dissipation holes, resulting in device failures;(8) the hospital lacked the quantitative assessment system for medical staff to operate in strict accordance with the operation process, resulting in non-standard operation of medical devices[7]. 2.2.5. s(select)-to select an improved process plan according to the above reasons for the high failure rate of monitors, the members of the iqc group finally determined the following improvement process plan by reviewing relevant materials and holding meetings and discussions: (1) established a three-level preventive maintenance system for equipment, and the first-level maintenance was carried out by medical staff. completion, secondary and tertiary maintenance were performed by clinical medical engineers and the maintenance process was recorded; (2)medical staff carried out daily maintenance of monitors, including startup check, accessory check, charging power check, etc., and clean and maintain medical devices every day; (3)medical staff cleaned and dedusted the ward environment every day to ensure that the ward environment was free of dust;(4) trained medical staff on the principle and operation of medical devices; (5) trained medical staff on the process of patient transfer; (6) arranged the bedside devices reasonably and clean up the idle devices in time; (7) established the quantitative assessment system for the management and use of medical devices and associated it with individual year-end assessment of medical staff;(8) strengthened the awareness of safety and saving of medical staff and paid attention to the safety of electricity[8]. 2.2.6. p(plan)-to make the plan for the above improvement process plan, the implementation plan should be made, mainly including the following aspects :(1) cqi group members should develop training plans for equipment management and use, patient vital signs explanation and patient transfer process; (2) the cqi group formulated the daily management list of medical staff; (3) the cqi group should establish the annual implementtation plan of the three-level maintenance of medical devices; (4) the cqi group studied and established the implementation plan of quantitative assessment of medical devices management for medical staff. 2.2.7. d(do)-to carry out the plan strictly implemented the planned measures, including :(1) according to the developed equipment management and use training plan, the clinical medical engineers of the cqi group contacted the engineers of the monitor manufacturers to train the medical staff; (2) the cqi group invited the chief physicians of emergency medicine in the hospital to explain the patient's vital sign parameters; (3) the cqi team invited experts in transport and emergency treatment outside the hospital to train medical staff on the transfer process; (4) medical staff should strictly carry out the management of monitors and other medical devices according to the contents of the daily management list, including cleaning, disinfection, sorting, start-up test, etc.; (5) carried out the three-level 64 preventive maintenance of monitors and other medical devices according to the implementation time and implementation items of the three-level maintenance annual implementation plan; (6) quantitative assessment of medical staff was carried out according to the implementation plan of quantitative assessment of equipment management for medical staff. 2.2.8. c(check)-to check the implementation the cqi team conducted regular inspection on the implementation of improvement measures in the clinical departments, and random inspection was carried out, and the inspection results were recorded and summarized. 2.2.9. a(action) cqi team held a quality improvement and rectification meeting to discuss the problems found in the inspection, study and formulate rectification measures, and the rectification measures would be implemented in the next round of quality cycle. 2.3. observation indicators 2.3.1. availability rate statistics of all monitors in the hospital after the implementation of focus-pdca quality improvement for 3 months and before the implementation of quality improvement, the availability rate of all monitors in the hospital was statistically compared. 2.3.2. comparison of management effects of the monitors to be used before and after the implementation of focus-pdca quality improvement, 300 monitors to be used were randomly selected from clinical departments, and the status of the monitors was compared, including the number of uncharged monitors to be used, the number of monitors with stains on the surfaces, and the pass number of monitors in one inspection. 2.3.3. statistical analysis the availability rate of all monitors in 2.3.1 was expressed as a percentage; the monitor management effect data in 2.3.2 is count data, which was analyzed by chi-square test, p<0.05 indicates that the difference is statistically significant. 3. results 3.1. statistical results of the availability rate of the monitors in the hospital the availability rate of all monitors in the hospital before and after the implementation of focus-pdca quality improvement is shown in table 1 below. it can be concluded that after the implementation of focus-pdca quality improvement measures, the availability rate of all monitors in the hospital was improved significantly, from 92.96% before implementation to 98.46% after implementation. table 1. the availability rate of all monitors in the hospital before and after the implementation of focus-pdca quality improvement [n (%)] group total number availability number of monitors availability rate of monitors before 1236 1149 92.96% after 1236 1217 98.46% 3.2. comparison results of management effects of the monitors to be used the comparison of the management effects of the monitors to be used before and after the implementation of the focuspdca quality improvement is shown in table 2 below. it can be concluded that after the implementation of the focuspdca quality improvement measures, the ratio of uncharged monitors to be used, the ratio of monitors with stains on the surfaces decreased significantly (2=76.900, 2=174.432; p<0.05), and the pass rate of monitors in one inspection increased significantly (2=45.133; p<0.05). table 2. the comparison of the management effects of the monitors to be used before and after the implementation of the focus-pdca quality improvement [n (%)] group n number of uncharged monitors to be used number of monitors with stains on the surfaces pass number of monitors in one inspection before 300 92(30.67) 132(44.00) 246(82.00) after 300 11(3.67) 29(9.67) 295(98.33) 2 76.900 174.432 45.133 p 0.000 0.000 0.000 4. discussion monitors are the most commonly used medical devices in hospitals. the availability rate of all monitors in hospital can represent the overall operating status of the hospital. in recent years, with the development of medical technology, the hospital has more and more high-end and large medical devices. the hospital attaches great importance to the management and use of such devices, but ignores the use and management of small and medium-sized medical devices. as a result, small and medium-sized medical devices represented by monitors are heavily used, but lack of standardized management, resulting in high device failure rate and high medical accessories loss rate, affecting the operation efficiency of clinical departments, affecting the hospitalization experience of patients, and even causing adverse events related to medical devices. the effective maintenance and use management of monitors is an important part of medical equipment management [9]. focus-pdca is an effective management tool for quality improvement. in this study, focus-pdca was used to manage the monitors in the whole hospital. in this process, firstly, the problems in the use of monitors were summarized by finding problems, then the cqi group was established to organize and coordinate the implementation of the whole quality management process, and the existing equipment maintenance management process was sorted out to find out the weak management links where the problems occurred. then, through brainstorming discussion, the root causes of monitor management and use problems were analyzed. according to the root causes found, the improved process plan was selected, and the schedule of each process was made. furthermore, the improved process plan was promoted through pdca cycle, and the rectification plan was proposed for the problems found in the current cycle inspection and it would be executed in the next cycle. by adopting the focuspdca quality improvement measures, the manufacturer's engineers trained the medical staff on the operation of monitors, the medical experts in the hospital explained the patient's vital signs parameters, and the emergency transport 65 experts outside the hospital trained the patient's transport process. on the other hand, medical staff managed and maintained the monitor according to the contents of the daily management list every day, and clinical medical engineers carried out preventive maintenance of monitors. the above improvement measures significantly improved the availability rate of all monitors in the hospital, from 92.96% before implementation to 98.46% after implementation. as the medical staff cleaned and disinfected the monitor every day, checked the charging status of the devices, and monitors obtained effective preventive maintenance, the ratio of uncharged monitors to be used, the ratio of monitors with stains on the surfaces decreased significantly (2=76.900, 2=174.432; p<0.05), and the pass rate of monitors in one inspection increased significantly (2=45.133; p<0.05).focus-pdca effectively improved the availability rate and management effect of monitors. 5. conclusions in the maintenance and use management of monitors, the use of focus-pdca quality improvement can promote the daily maintenance and use management of monitors by medical staff, promote the preventive maintenance of monitors by clinical medical engineers. it can improve the availability rate of all monitors, and improve the management and use effect of monitors. focus-pdca has great value in the maintenance and use management of monitors in hospitals. acknowledgements this work was supported by grants from innovation capability support plan of shaanxi province(2017kct-36), natural science special project of shaanxi province(2020sf035), social development project of shaanxi provincial key research and development program(2021sf-173). references [1] weller robert s,foard kristina l,harwood timothy n,evaluation of a wireless, portable, wearable multi-parameter vital signs monitor in hospitalized neurological and neurosurgical patients.[j] .j clin monit comput, 2018, 32: 945951. [2] chenoweth james a,hougham aaron m,colby daniel k et al. monitoring the corrected qt in the acute care setting: a comparison of the 12‑lead ecg and bedside monitor.[j] .am j emerg med, 2018, 36: 777-779. [3] jin yingai,li chunyu,zhang xian et al. effect of focuspdca procedure on improving self-care ability of patients undergoing colostomy for rectal câncer.[j] .rev esc enferm usp, 2021, 55: e03729. [4] maraiki fatma,farooq faiyaz,ahmed mohamed,eliminating the use of intravenous glass bottles using a focus-pdca model and providing a practical stability reference guide.[j] .int j pharm pract, 2016, 24: 271-82. [5] khan mustafa,khalid parwaiz,al-said youssef et al. improving reports turnaround time: an essential healthcare quality dimension.[j] .stud health technol inform, 2016, 226: 205-8. [6] omar islam,shirazy mohamed,omar mayar et al. controlling nosocomial infection in adult intensive treatment unit: a quality improvement project.[j] .int j risk saf med, 2020, 31: 267-273. [7] chowdhury sharfuddin,mok dennis,leenen luke, development of the saudi arabian trauma system. [j] .j med life, 2022, 15: 34-42. [8] abu-shaheen amani,al badr ahmad,al fayyad isamme et al. streamlining and cycle time reduction of the startup phase of clinical trials.[j] .trials, 2020, 21: 115. [9] wu yi-hui,li fong-an,fan yin-ting et al. a study of medical device regulation management model in asia.[j] .expert rev med devices, 2016, 13: 533-43. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 22 research on interactive system of movie subtitle speech based on machine learning technology jiahang li shandong rizhao no. 1 middle school, rizhao, china abstract: the composition elements of subtitles, from the early single text, have developed into the present text, graphics, colors, animation, special effects and other combinations. with the development of speech technology and natural language understanding, speech interaction system has become a hot research field. different from the traditional data interaction between keyboard, mouse and display, using hearing to transmit data makes the interactive system of movie subtitles more anthropomorphic and intelligent. it is the most natural and convenient means for human beings to exchange information with intelligent systems by incorporating machines and equipment with voice information processing capabilities into human voice interactive objects and endowing movie subtitle interactive systems with biological language recognition functions. a machine learning-based movie subtitle voice interactive system is constructed, which can well expand the application of voice interactive system and improve the user experience. in this paper, a movie subtitle voice interactive system based on machine learning technology is proposed, so as to better and effectively realize human-computer voice interaction. keywords: machine learning; movie subtitles; voice interaction system. 1. introduction with the development of internet technology, film and television works have gradually penetrated into people's lives, and people can watch film and television works anytime, anywhere through terminals such as computers, televisions and smart mobile devices [1]. with the development of speech technology and natural language understanding, speech interaction system has become a hot research field [2]. in the process of interaction, people usually transmit their commands to the computer through input devices such as keyboard and mouse. for inexperienced people, humancomputer interaction becomes an obstacle, while the voicebased interaction system becomes a bridge between people and computers, and people can communicate with computers freely and conveniently [3]. language is the most natural and portable way for human beings to communicate their thoughts, opinions and emotions. cloud computing bears the longstanding dream of mankind to use computing power as infrastructure, and may change most information technology industries [4]. for example, we can treat software as a service to make it more attractive, or change the way it hardware is designed and purchased. it is the most natural and convenient means for human beings to exchange information with intelligent systems by incorporating machines and equipment with speech information processing capabilities into human speech interactive objects and endowing movie subtitle interactive systems with biological language recognition functions [5]. the composition elements of subtitles, from the early single text, have developed into the present text, graphics, colors, animation, special effects and other combinations. auditory system is an important part of movie subtitle speech recognition system, and its purpose is to better complete the information interaction between people and movie subtitle interactive system [6]. different from the traditional data interaction between keyboard, mouse and display, using hearing to transmit data makes the interactive system of movie subtitles more anthropomorphic and intelligent. the realization of traditional intelligent interactive technology is often realized on the platform of voice interactive system itself, such as simple speech recognition algorithm, video capture and basic processing, etc., and it is difficult to realize more complex algorithms [7]. because of their high requirements for the operation speed of movie subtitle speech recognition system, and the problems of large-capacity data storage of pattern recognition system also limit the further development of offline speech interactive system [8]. as the leading direction of intelligent computer research and the key technology of man-machine language communication, speech processing technology has received extensive attention. in this paper, a movie subtitle voice interactive system based on machine learning technology is proposed, so as to better and effectively realize human-computer voice interaction. 2. interactive system of movie subtitle speech based on machine learning voice interaction with the human movie subtitle speech recognition system, first of all, the movie subtitle speech recognition system needs to collect the interactive voice through the microphone, specifically through pyaudio component, which provides python language version and is a cross-platform audio i/o library. using pyaudio, you can play and record audio in python programs. dialogue management is at the core of the interactive system, which integrates speaker recognition and keyword recognition technologies to form a personified intelligent interactive system [9]. compared with other single-chip microcomputers, it has a very complete operating system, and it carries its own interface, so it can use the corresponding programming to realize the effective application of various software. by networking, intelligent voice interaction with open cloud recognition technology and simple switch can be realized, and various software and hardware of voice interaction can be effectively controlled, and the combination of online and offline can also be effectively realized. the microphone 23 collects and generates the voice wave file, and transmits the wave voice file to the voice recognition server through the internet. the recognized text will be sent to the movie subtitle speech recognition system through the internet, and the movie subtitle speech interaction system will look up the best reply information in the knowledge base through the incoming text content and context, and send it back to the movie subtitle speech recognition system terminal through the internet. the overall framework of the voice interaction system is shown in figure 1. figure 1. framework and process of speech recognition system errors in keyword recognition and speaker recognition can be corrected by certain strategies in dialogue management to improve the success rate of system interaction, so how to build a dialogue management module is the key to successfully realize the system. at present, most voice interaction systems only use front-end voice keyword or whole sentence recognition and back-end dialogue management, and dialogue management only receives single input information, which leads to single feedback of voice system and is not humanized enough. this system integrates speaker recognition and voice location into the system, which can receive more detailed user information. using the effective connection of multiple interfaces such as internet speech recognition, offline speech recognition and cloud open speech recognition, we can effectively collect external speech information and some simple action information, and transmit them to the main board for certain processing [10]. after the processed information is output, a simple switch and speaker are used to give some feedback and interaction to the information, and then the switch equipment and networking connection are used again to realize the effective control of the wireless switch. through speaker recognition and judgment, the personality information database is introduced, and different users are fed back according to their different preferences, so that the speech system has a certain memory function. the subtitle speech recognition system plays the reply speech file through the audio output interface to complete the final speech data output. 3. speech recognition process and parameter estimation with the continuous improvement of speech processing technology, the processing algorithm becomes more and more complex, and the real-time system requires higher computing speed and storage capacity. in the specific operation process, relevant software systems can be used to effectively identify keyword information. in the working process, the module usually sends out the corresponding bytes in time as long as it captures some voice information. the processing process of speech recognition system is that the user inputs a speech signal through a speech input device at first. the design of the system architecture needs to first define the requirements, select appropriate technologies for planning, and use complete tools to realize a complete system. the voice data is transmitted to the cloud server through the network, and the recognition results are obtained and returned by using cloud computing technology. because of the abundant resources in the cloud, the knowledge base resources can be better utilized to complete the interaction between people and the voice system, and online video resource retrieval. the overall process of the speech recognition model is shown in figure 2. figure 2. the overall framework and process of voice interaction system voice interaction and touch interaction are similar in system architecture. the terminal of voice interaction is a smart speaker, and the terminal of touch interaction is a mobile phone. apart from the interaction, smart speakers and mobile phones can be regarded as the terminal devices of smart video users. after the text is effectively identified, it can be sent to the movie subtitle speech recognition system by using the internet, and the movie subtitle speech recognition system can fully identify the content of the text by combining its context, and then find the most matching data in the whole database. intelligent video system is an intelligent system that integrates many technologies, including not only communication transmission protocol, terminal wireless networking technology and equipment automation control technology, but also terminal control software for managing equipment. after the speech signal is input, it is necessary to process the speech signal, and the processing process is speech enhancement, which generally exists in the speech processing system as a preprocessing or front-end processing module. the parameter estimation process of speech recognition model is shown in figure 3. the inter-network communication between subtitle network and broadcast network is realized by accessing ip in the two lans with their respective switches as the main communication equipment. when the subtitle editing workstation or subtitle broadcasting workstation needs to obtain the information of the on-air program list of the 24 broadcasting network, it sends out an access application. after receiving it, the subtitle database confirms it, and then communicates with the broadcast network switch through the subtitle network switch. the speech recognition system is implemented from bottom to top. first, the functions of each module are realized separately, and then the functions of each module are integrated together for debugging. after receiving the problem of the movie subtitle speech recognition system, you can search the text data or speech data in the cloud speech system in time, and then send it to the movie subtitle speech recognition system in speech format, and the movie subtitle speech recognition system can play these subtitles. figure 3. parameter estimation process of speech recognition model 4. conclusions with the development of internet technology, film and television works have gradually penetrated into people's lives, and people can watch film and television works anytime and anywhere through terminals such as computers, televisions and smart mobile devices. in fact, speech recognition is an advanced technology in which the speech system uses its own hardware or software system to effectively process the received information and then form the corresponding speech or file. the realization of traditional intelligent interactive technology is often realized on the platform of voice interactive system itself, such as simple speech recognition algorithm, video capture and basic processing, etc. it is difficult to realize more complex algorithms. in this paper, a movie subtitle voice interactive system based on machine learning technology is proposed, so as to better and effectively realize human-computer voice interaction. the centralized management of film and television materials broadcast by subtitles and the realization of multi-task and multi-window network operation have greatly improved the efficiency of broadcast workflow. after the text is effectively identified, it can be sent to the movie subtitle speech recognition system by using the internet, and the movie subtitle speech recognition system can fully identify the content of the text by combining its context, and then find the most matching data in the whole database. this technology can effectively promote the natural and friendly relationship between human-computer interaction, and is the main development direction of human-computer interaction in the future. references [1] pan huilin, han zhiyan, wang shurui, et al. emotion recognition method based on two-channel speech to image [j]. electronic design engineering, 2021, 29(15):5. [2] qi baoliang, wang xu, lin yupu, et al. design of a parking guidance system with voice interaction function [j]. computer measurement and control, 2019, 27(6):5. [3] hou yong, wang zheng, shu qiaoye, et al. a voice assistant system to prevent voice errors of power grid dispatchers [j]. microcomputer application, 2019, 35(12):4. [4] yu lei, li taotao. design of intelligent speech control system based on ros [j]. electronic measurement technology, 2019, 42(23):5. [5] wang tao, wang jiaxin, zhang xinke. intelligent guide companion based on voice interaction and positioning system [j]. application of single chip microcomputer and embedded system, 2019, 19(11):4. [6] li jian, he hanwu, wu yueming, et al. voice interactive ar operation guidance system for electronic taxation [j]. modern electronic technology, 2021, 44(22):5. [7] zhu lili, wang jianxiang, miao peixian, et al. design and implementation of intelligent voice sand table control system based on stm32 [j]. electronic design engineering, 2019, 27(14):5. [8] wenquan, xia xiaochun, li yao. system implementation method of airborne speech recognition technology [j]. measurement and control technology, 2018, 37(09):3. [9] xu xiufu, lu xiaonan. design of smart home voice control system for android phone [j]. application of single chip microcomputer and embedded system, 2018, 18(1):5. [10] niu heng, chen chile, zhang wenjing, et al. multifunctional blind guide system based on image perception and location matching [j]. automation and instrument, 2021, 36(10):5. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 26 wise rescue, safety accompanying -dawning intelligent rescue system ruoxin ma, rui xu, yutao sun anhui university of finance and economics, bengbu, anhui 233000, china abstract: according to the survey data, the annual death toll due to traffic accidents in the world reaches 1.25 million, in china is as high as 104,000, ranking first in the world. in the death rate of traffic accidents, more than 60% are caused by early warning or rescue in time. at present, there are many problems in china's traffic accident emergency rescue, such as low efficiency, rescue in time. according to the demand of smart city construction, the traditional emergency rescue mode of traffic accident is facing transformation. the rapid popularity of tachograph in recent years can be seen that car owners' awareness of safe driving is strengthening. however, the functions of the traditional tachograph are mostly limited to being the evidence carrier of traffic disputes. the latest multifunctional recorder on the market also aims to improve user experience, increase intelligent voice, navigation and other functions, and has not been applied in traffic accident emergency rescue. keywords: smart city; smart rescue; travel safely; big data; optimal algorithms. 1. industry background 1.1. social background a smart city is a city that uses information and communication technology to sense, analyze and integrate key information in the core system of urban operation, so as to make intelligent responses to various needs, including people's livelihood, environmental protection, public safety, urban services and industrial and commercial activities. the essence of smart city is to use advanced information technology to realize smart city management and operation, thus creating a better life for people in the city and promoting the harmonious and sustainable growth of the city. with the continuous development of human society, cities will carry more and more people in the future. in order to solve the problems of urban development and realize the sustainable development of cities, the construction of smart cities has become an irreversible historical trend of urban development in today's world. among them, smart transportation is one of the important projects of smart city construction. smart transportation is the construction of "digital transportation" project, through monitoring, monitoring, traffic flow distribution optimization and other technologies, improve the public security, urban management, highway and other monitoring systems and information network systems, to establish a unified intelligent urban traffic management and service system construction focusing on traffic guidance, emergency command, intelligent travel, taxi and bus management and other systems. to realize the full sharing of traffic information, real-time monitoring and dynamic management of highway traffic conditions, comprehensively improve the level of monitoring and intelligent management, to ensure the safety and smooth traffic. 1.2. policy background at present, with the deepening development of the information society, the way of production and life in modern society is undergoing fundamental changes.as an important carrier for the centralized application and display of modern information technology, smart city has become an important force to promote the upgrading of economic and social construction. in order to seize the opportunities brought by the construction of smart cities, in august 2013, china issued several opinions on promoting information consumption and expanding domestic demand (guofa [2013] no. 32), which officially listed the construction of smart cities as an important development strategy and encouraged pilot demonstration construction of smart cities in cities where conditions permit. the national new urbanization plan (2014-2020) released in march 2014 clearly proposed to promote the construction of smart cities, and formulated specific goals and strategies. therefore, the construction of smart city has officially entered the period of practical promotion from the concept-oriented period, and the joint efforts of the whole society are needed to achieve various construction goals. 2. overview of the system 2.1. system design at present, cloud services are gradually mature, 5g has been launched, and artificial intelligence has been attached great importance by various industries at home and abroad. such development situation provides better conditions than before for the realization of cloud monitoring traffic accidents. the maturity of cloud service technology provides a platform for cloud monitoring, the advent of 5g era will ensure more efficient data transmission efficiency, and the development of internet of vehicles technology has stimulated the passion and vitality of this project. with the rise of the internet of things and the rapid expansion of the market scale of dashcam and sensor, the technology maturity is gradually improving. this project carries out secondary development with the help of ordinary tachograph, builds the "cloud + terminal" traffic accident emergency rescue system, and develops the "dawning wisdom rescue" app to cooperate with it. the "cloud + terminal" traffic accident emergency rescue system is divided into three subsystems, which are information acquisition subsystem, information transmission subsystem and comprehensive early warning subsystem. demo of the new 27 dashcam product is shown in figure 1. fig.1 demo of the new dashcam product 2.2. system innovation comprehensive warning: on the basis of the original technology of dashcam, stm32 and hi3516 chips are added to it, which play the functions of sensor data acquisition and transmission and video transmission respectively, so as to realize the function of vehicle accident alarm system. dual positioning: beidou navigation system is adopted, which can provide all kinds of users with high-precision and reliable positioning, navigation and timing services all day long and all day long all over the world. at the same time with the use of gps for dual positioning, to make up for the defects of a single method. data processing: in the cloud platform of the integrated early warning subsystem, the communication models of terminal access, rule-based heterogeneous data storage and historical data management, user-device communication and device-device communication are completed, and the massive data received by the cloud platform is periodically replaced and stored to ensure the stable operation of the whole system. intelligent and fast mobile client: with the development of the app of the accident alarm system, the user information can be fully input to achieve the unique matching of the cloud platform information. multi-interactive emergency rescue system: the traffic accident emergency rescue system based on "cloud + terminal" implanted in the new dashcam can notify 110 rescue center, 120 first aid center, fire emergency center and insurance company emergency center in the first time when the traffic accident occurs, to ensure that the traffic accident is dealt with comprehensively and efficiently in the first time. 2.3. system functions based on the understanding and analysis of the cloud realtime monitoring traffic accident emergency rescue system, the system is divided into the following five main functions: accurate positioning: the beidou navigation and positioning system can provide rescuers with the precise location of the accident, and provide the specific position coordinate information in the accident message, so as to facilitate the understanding of the source of the accident. information processing: collect the parameters of the acceleration sensor and gravity sensor in the process of vehicle driving, calculate the alarm threshold of the accident to carry out the analysis of the risk parameters. sms transmission: the specific information of the accident will be transmitted to the rescue personnel communication equipment in the first time, so that it can be the first time in the accident for rescue preparation. video transmission: when the alarm information is sent, the video before the accident is automatically retrieved from the cloud server, which can help rescue workers to understand the situation of the accident site. comprehensive warning: when the warning value exceeds the threshold, the system can request the cloud platform server to retrieve the dashcam video and the driving vehicle location information, which can be displayed to the rescue personnel in the form of mobile phone messages to help them understand the scene, so as to achieve the purpose of rescue in the first time and reduce the probability of secondary accidents. 3. research and development and technical implementation of traffic accident emergency rescue system 3.1. 3.1. accident recognition algorithm the realization of accurate judgment of traffic accidents is the premise of ensuring the accuracy of the system warning, as well as the premise of determining the risk parameters. among the existing accident identification algorithms, the method based on acceleration sensor and gravity sensor is more suitable to be used as the trigger algorithm of accident early warning because of its strong comprehensiveness and simple calculation. based on the analysis, a trigger algorithm based on gravity sensor and acceleration sensor is proposed to monitor and judge whether the vehicle has an accident by taking the driving state such as acceleration and inclination angle of the vehicle. the accident recognition algorithm adopted can judge whether the vehicle has a collision by detecting the acceleration and whether the vehicle has rollover by detecting the horizontal inclination angle. by detecting the acceleration, the following methods can be used to determine whether the vehicle has a collision accident: set the peak value of vehicle acceleration, emergency braking time and other parameters under different working conditions, specifically: in emergency braking, the peak value of vehicle acceleration is set as -0.65g ~ -0.75g, and the acceleration signal rises sharply in a short time after emergency braking, and the peak time is long; under normal braking, the peak acceleration of the vehicle is -0.35g ~ -0.45g, and the braking time is longer than that of emergency braking, the peak acceleration is about ±0.2g;when passing the roadblock, the peak acceleration of the vehicle is -0.25g ~ 0.35g. when the acceleration signals are integrated, their respective integral curves will be significantly different, according to which the collision accident of normal braking of the vehicle can be judged. the peak value of acceleration, emergency braking time, peak duration, acceleration signal climbing amplitude and other parameters are analyzed and processed, and the judgment value is obtained, and compared with the preset value under different working conditions. when the judgment value falls into the preset value range of emergency braking, it is judged that the vehicle has a collision accident; when the judgment value does not fall into the preset value range of emergency braking, it is judged that the vehicle 28 is normal. by detecting the inclination angle between the vehicle and the horizontal plane, the following methods are used to determine whether the vehicle rollover occurs: set the lateral inclination angle of the vehicle relative to the horizontal plane in advance, specifically: set the output of the neutral sensor when the vehicle maintains the horizontal state with the horizontal plane is, the output when the inclination angle is, and the output under the action of acceleration is. the calculation formula is: 0v  v g1 v 01sin/ vggvv +=  ]/)arcsin[( 0 vvv −=  then the inclination angle of the vehicle in the lateral direction and the longitudinal direction are respectively: x y ]/]arcsin[[],/]arcsin[[ vvvvvv yyxx −=−=  compare the lateral inclination angle and longitudinal inclination angle of the vehicle with the threshold. if the lateral inclination angle and longitudinal inclination angle exceed the set threshold, it is judged that the vehicle rollover occurs. the rollover threshold of the vehicle's lateral and longitudinal inclination relative to the horizontal plane is 60 degrees. 3.2. information acquisition subsystem the main devices of vehicle information acquisition subsystem are three-axis acceleration sensor, gravity sensor and traffic recorder. the supply voltage of the sensor is 4.9 ~ 5.5v, the input range is -25 ~ 25g, and the sensitivity is 80mv/g. the three-axis acceleration sensor can obtain the acceleration signal of the vehicle in the process of driving, and the gravity sensor can obtain the inclination angle of the vehicle and the horizontal plane. tachograph can be divided into card type, hidden type and rearview mirror type. 3.3. information transmission subsystem sensor transmission data module: the stm32 chip can obtain sensor signals and send them to the esp8266 wifi module through the uart serial port communication. then, they can be forwarded by the router through wifi and uploaded to the cloud platform server. fig. 2 flow chart of sensor data transmission module dashcam video transmission module: the original video is converted into digital video data to be encoded by the acquisition program, and the original video data is compressed and encoded by the h.264 compression coding technology inside the hi3516 chip, and the data is packaged under the support of rtp protocol. the design of the mobile terminal of the client of the vehicle video monitoring system, that is, the "administrator" user, is shown in figure 3 below. the session between the user and the tachograph on the device is carried out through rtsp for data information exchange, which is transmitted from rtp to the mobile terminal, and the encoded data transmitted to the mobile terminal is decoded by the corresponding video decoding module of the mobile terminal, and then played. the decoding module of this video monitoring system is decoded and played directly by the player, because the android system can decode flv files directly. fig.3 design diagram of real-time video retrieval process on the client side 3.4. integrated early warning subsystem the integrated early warning subsystem mainly relies on the cloud platform, which is divided into communication gateway area, data analysis area and data storage area according to the functional needs. the communication gateway area uses flume framework for data collection, uses the unified data format json, distributes to kafka for temporary storage, the data analysis area uses spark streaming to receive kafka data and analyzes. the data storage area uses the non-relational database mongodb to store the data of the accident vehicle and the video uploaded by the dashcam. 4. expected results the project development of tachograph is based on the existing traditional tachograph technology, secondary development, the formation of a new tachograph with "cloud + terminal" traffic accident emergency rescue system, and synchronically equipped with "dawn wisdom rescue" multifunctional app." cloud + terminal" traffic accident emergency rescue system is based on traffic accident recognition algorithm, with the help of vehicle built-in sensor data collection, construction of driving vehicle risk data monitoring cloud platform, when an accident occurs, cloud platform monitoring data reaches the warning threshold, immediately send an alarm message, through the system alarm message to obtain the accident location information. at the same time, the system sends a video request to the server. after receiving the request, the server will upload the recorded video before the accident to the "dawn wisdom rescue" app of 110 rescue center, 120 first aid center, fire emergency center and emergency center of the insurance company through coding, compression and decoding. rescue personnel can understand the accident situation through the video, and formulate the optimal rescue plan. acknowledgements this paper belongs to the research results of the national undergraduate innovation training project of anhui university of finance and economics "dawn smart rescue intelligent rescue system for traffic accidents based on the internet of things" (project number: 202110378125). 29 references [1] lu yinhua, chen xuming, chen jian. wisdom of fire fighting and emergency rescue services combined with exploration. [c] / / proceedings of 2020 annual meeting of science and technology of china fire protection association. [publisher unknown], 2020:615-618. the doi: 10.26914 / arthur c. nkihy. 2020.065640. [2] liu hongbo, zhao yer wei. (in chinese) intelligent security: the new trend of urban public safety management [j]. journal of south china university of technology (social science edition), 2015 (03) : 62-68. the doi: 10.19366 / j.carol carroll nki. 1009-055 x. 2015.03.009. [3] pan s z. research on traffic accident prediction and rescue resource scheduling algorithm based on rnn [d]. nanjing information engineering university, 2019. doi: 10.27248 /, dc nki. gnjqc. 2019.000674. [4] qian chao. research on traffic control and emergency rescue plan of highway tunnel emergencies [d]. chang 'an university,2009. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 3, 2023 99 key factors influencing network resilience in dynamical networks xian yan * school of artificial intelligence and automation, huazhong university of science and technology, wuhan hubei, 430074, china abstract: there has been much recent research focusing on the resilience of networks, providing theoretical insights into the effective response of real-world systems systems to disasters. however, few studies have analyzed the factors that affect the resilience of networks. and the network operation process varies greatly so that the dynamic behavior of the network is a factor that has to be considered. to bridge these gaps, we analyze the factors affecting dynamic network resilience in terms of network dynamics. there are two main influencing factors: differentiation of failure probability, differentiation of impact. we build a generic resilience model for the network and validate these influencing factors by simulating them in different networks. by summarizing these factors, we point out constructive strategies. these strategies can help dynamic networks enhance network resilience, which is an important criterion for reducing network failures in real-world systems. keywords: network resilience; dynamic network; spontaneous recovery. 1. introduction there are various networks in our lives, and network science provides many useful tools to help us understand them. from economic sciences, social sciences, communication sciences and power sciences to biological sciences, many real-world systems can be abstracted into complex networks to allow us to explore the functions and characteristics of the systems[1]. almost all networks are exposed to a wide variety of perturbations that can severely disrupt the system leading to network failures. for example, environmental degradation may lead to species extinction in ecological networks[2], cascading failure attacks on power grids may lead to widespread power outages[3]. so how to improve network resilience and thus avoid network failures is a hot topic. the resilience of the network structure refers to the ability of the network structure to cope with shocks in the face of external disturbances and to recover, maintain or improve the original system characteristics and functions[4]. according to the study of gao et al., there are three main factors of network failure[5]: network structure, network dynamics and failure mechanism. on the one hand, real-world networks are dynamic. networks vary in shape, structure, and size, but the process of "running" the system varies even more. many real-world networks are not static. on the other hand, the states of nodes of real-world networks propagate to each other. from transport structures to human bodies, the propagation of failures and damage is the basis of many network systems[6]. for example, during transmission or exposure, it is possible for disease to spread from an infected source to other neighboring individuals. whereas many phenomena are characterized by complex contagion, nodes need to be connected to multiple sources to induce a change in their state[7]. finally, nodes of real-world networks tend to have spontaneous recovery. recently, it has been found that some systems exist to recover autonomously. for example, traffic may recover smoothly after congestion[8], the patient may recover spontaneously after a seizure[9]. based on these general features, majdandzic et al.[10] make the nodes also spontaneous recoverable so that there are three basic processes in the system: failure, damage conduction and recovery, and find interesting recoverable hysteresis phenomena. podobnik et al.[11] modify the exogenous failure principle on its basis to make it more suitable for degree heterogeneous networks. however, the above studies all stop at the discovery of recovery phenomena without identifying the factors that influence network resilience. in this work, we develop a framework for the resilience of dynamic networks and discover several factors that influence network resilience. in our framework, the network rapidly switches states when it reaches a certain critical point in both failure and recovery processes. the dynamic behavior of the network under the same parameter varies while the active state of the network varies, presenting a hysteresis phenomenon. the location of the critical point and the active state of the network can be used to indicate the resilience of the network, which can be used to observe the influence of the factors. we find that the average degree of the network in terms of network dynamics, there are two main influences: the differentiation of failure probability and the differentiation of impact. we perform simulations in different network models to verify the general validity of this factor. 2. methodology 2.1. construction of spontaneous recovery model we build a model to simulate the failure and recovery process of a dynamic network. for a network, each of its nodes has two states: active and failed. during the dynamic change of the network, nodes may be in four different states: internal failure, external failure, internal recovery, and external recovery: a) internal failure: an active node in the network may fail at any time, and this probability is the internal failure probability p. b) external failure: a node has a certain probability of failure when the proportion of active neighbors is below the threshold fm , and this probability is the external failure probability r. 100 c) internal recovery: the failed nodes in the network will recover spontaneously after a period of time, and the defined time interval is the recovery time t . d) external recovery: the node turns active when its neighbor active ratio is higher than the threshold fm . a network with an initial state that changes dynamically over time eventually reaches a state of dynamic equilibrium. this means that the internal state of the network is still changing, but the overall network state is balanced. we use the average proportion of active nodes z in the network to represent the state of the network. adjusting parameters such as the failure probability and recovery time of the network, the network state will change again to reach a new equilibrium. according to majdandzic et al.[10], recovery time t and average internal failure probability p jointly determine the average internal failure score *p of network ( * 1 pτp e  ). so we can analyze the relationship between *p and network state z to provide insights for network resilience improvement. the nodes in the network may undergo internal failure or external failure, and the total failure probability is the superposition of both. the change in the average internal failure score *p indicates the recovery or failure of the network as a whole, so we analyze the effect of changing *p on the network state. figure1 shows the failure and recovery processes of the network, demonstrating a clear hysteresis phenomenon. when the same network is in two different processes of recovery and failure, the states may also be different under the same parameters. during the slow failure of the network, a sudden first-order phase transition occurs at 'p . threshold 'p serves as a significant observation point, reflecting the resilience of the network. figure 1. the failure and recovery process of the network in the er network 2.2. construction of the network model we first use the classical erdös-rény(er) networks model. when the network size reaches a certain scale, the state of the network is almost independent of the scale size. in order to fit the real-world network and make our system generalizable, we use the number of nodes n is 10000, the number of linked edges is 50000, and the degree k of each node is about 10. scale-free(sf) networks are widely used because they have the scale-free property of real-world networks. we modeled the sf network similarly. sf networks with power-law exponent of 2-3 have power-law distributions that are more realistic. here we use sf networks with power-law exponent of 2.4. the rest of the properties are the same as those of the er network. finally, we also selected the real network for validation. large network in the delaware valley region of the philadelphia network (13,389 nodes, 40,003 links), courtesy of dr. w. thomas walker, manager, office of corridor/ system planning, delaware valley regional planning commission, philadelphia, pennsylvania. 3. experiments figure 1 shows the sudden first-order phase transition at 'p during the slow failure of the dynamical network. threshold 'p serves as a significant observation point reflecting the resilience of the network. the degree of a node is an important parameter to measure the importance of the node. we consider that the difference in the distribution of node degrees affects the network resilience. therefore, we change the weights of the parameters in the resilience model according to the degree of the nodes. here, we consider the nodes with large degree as key nodes. it is worth mentioning that our experiments are based on the premise that the total network resources are guaranteed to be constant, i.e., the parameters of the remaining nodes may decrease when the parameters of some nodes are raised accordingly. this approach also fits our realistic system, where resources are not infinite and reasonable resource allocation is the key to study. we validated the two influencing factors we find in three different networks. 3.1. differentiation of failure probability different degrees of nodes have different internal failure probabilities, resulting in the variability of internal failure probabilities of nodes. so the differentiation of failure probability affects the resilience of the network. in real systems, key nodes are more robust. the key nodes tend to have stronger protection and fault tolerance strategies. so we initially assign a weight to all nodes, the higher the degree, the smaller the weight, and the total weight of all nodes in the network is constant. here, the greater the degree of the node, the smaller its probability of internal failure *p . accordingly, if the degree of a node is less than the average degree of the network k , the probability of internal failure of the node can increase accordingly. according to this strategy, we simulate different network models separately [see figure 2]. figure 2. comparison of the dynamic change process between the base networks and the networks in which the internal failure of key nodes is weakened. where (a) is the er network, (b) is the sf network, and (c) is the real network. the ‘base’ curve is the dynamics of the baseline network and the ‘strategy1’ curve is the dynamics of the network in which the internal failure of key nodes is weakened. 3.2. differentiation of impact different degrees of nodes have different impacts on neighboring nodes, i.e., differential probability of failure, which affects the resilience of the network. we assign a weight to all nodes, and the higher the degree the greater the weight. the weight represents the influence factor of the node, i.e., the node with the higher degree has more influence on 101 other nodes. this fits well with our realistic system, where often the key nodes cause more impact. for example, in a traffic network, a congestion at a critical intersection has a greater impact on other roads. in our model, the comparison of the weighted average of nodes' active neighbor nodes with the threshold value indicates whether the node is likely to experience external failure. we simulate the simulation on different network models [see figure 3]. figure 3. comparison of the dynamic change process between the base networks and the networks in which the external failure caused by key nodes is enhanced. where (a) is the er network, (b) is the sf network, and (c) is the real network. the ‘base’ curve is the dynamics of the baseline network and the ‘strategy2’ curve is the dynamics of the network in which the external failure caused by key nodes is enhanced. 4. results and discussion 4.1. results of the effect of differentiation of dynamic parameters between nodes our experiments demonstrate the impact of our proposed three factors on network resilience. figure 2 shows the comparison of the dynamic change process between the base networks and the networks in which the internal failure of key nodes is weakened, demonstrating that the weakening of internal failures of key nodes can help the network improve its resilience. the figure 2(a) indicates that the er network in which the internal failure of key nodes is weakened has a lager critical value of network state transition during failure than the baseline er network, and the overall state of the network is more active. the figure 2(b) demonstrates the generality of the effect in the sf network. the figure 2(c) shows a comparison of the two networks in a real network. in the real system, it is difficult for us to change the internal failure probability of the nodes. however, discovering such influences can help us to use key node protection schemes. for example, in economic networks, large financial companies tend to use more schemes to keep themselves up and running, which improves the resilience for financial networks. figure3 shows the comparison of the dynamic change process between the base networks and the networks in which the external failure caused by key nodes is enhanced, demonstrating that enhancing the external failure caused by key nodes can help the network improve its resilience. the figure 3(a) indicates that the er network in which the external failure caused by key nodes is enhanced has a lager critical value of network state transition during failure than the baseline er network, and the overall state of the network is more active. the figure 3(b) shows that in the sf network, the failure threshold of the network disappears after changing the node influence, but the network is more active overall. the figure 3(c) shows a comparison of the two networks in a real network. the difference in the influence of nodes in the network clearly influencing the network resilience. in response we propose a strategy to help the network improve its resilience. we should increase the influence of the key node so that the key node has a deeper influence on the rest of the nodes. also when a new node is created or rebuilt, this node should be more dependent on the key node. 5. conclusion resilience is a very important feature of the network. how to improve the resilience of a network has been a hot topic. here, we find two factors that specifically affect the resilience of a network. we built three types of network models to verify their popularity. the er networks are commonly used in the field of complex networks, the sf networks fit real networks in probabilistic power-law distribution, and the philadelphia road network is a real network. then we develop a dynamic framework of the network considering the node failure, failure propagation and spontaneous recovery phenomena of the real network. by analyzing the dynamic behavior of the network, we find the factors affecting the network resilience in terms of network dynamics. there are the difference of failure probability and the difference of impact. we validate the impact of these two factors on network resilience on different network models and propose three strategies to improve network resilience: protecting key nodes, increasing the impact of key nodes, which has important practical implications. references [1] c. m. schneider, a. e. a. moreira, j. e. s. andrade, s. havlin, h. j. herrmann. mitigation of malicious attacks on networks. proceedings of the national academy of sciences. 2011, 108(10): 3838-3841. [2] s. pilosof, m. a. porter, m. pascual, s. k e fi. the multilayer nature of ecological networks. nature ecology \& evolution. 2017, 1(4): 1-9. [3] r. cohen, k. erez, d. ben-avraham, s. havlin. breakdown of the internet under intentional attack. physical review letters. 2001, 86(16): 3682. [4] y. l. c. g. chong peng. evaluation and optimization strategy of city network structural resilience in the middle reaches of yangtze river. geographical research. 2018, 37(6): 1193. [5] j. gao, x. liu, d. li, s. havlin. recent progress on the resilience of complex networks. energies. 2015, 8(10): 1218712210. [6] t. verma, f. russmann, n. a. ara u jo, j. nagler, h. j. herrmann. emergence of core--peripheries in networks. nature communications. 2016, 7(1): 1-7. [7] m. granovetter. threshold models of collective behavior. american journal of sociology. 1978, 83(6): 1420-1443. [8] t. ezaki, r. nishi, k. nishinari. taming macroscopic jamming in transportation networks. journal of statistical mechanics: theory and experiment. 2015, 2015(6): p6013. [9] t. d. hernandez, t. schallert. seizures and recovery from experimental brain damage. experimental neurology. 1988, 102 (3): 318-324. [10] a. majdandzic, b. podobnik, s. v. buldyrev, d. y. kenett, s. havlin, h. e. stanley. spontaneous recovery in dynamical networks. nature physics. 2014, 10(1): 34-38. [11] b. podobnik, a. majdandzic, c. curme, z. qiao, w. zhou, h. e. stanley, et al. network risk and forecasting power in phaseflipping dynamical networks. physical review e. 2014, 89(4): 42807. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 1, 2023 60 research on speech emotion recognition analysis based on deep learning ailiang yin*, chunhao li school of electronic information, southwest minzu university, chengdu, china * corresponding author: ailiang yin abstract: this paper combines two aspects of feature selection and building deep neural networks to carry out targeted research to improve recognition accuracy. firstly, speech preprocessing techniques are introduced to extract the speech spectrogram and lay the foundation for building the speech emotion recognition network model study. the focus is on building a speech emotion recognition network model based on residual network improvement and comparing experiments with alexnet model network and resnet-18 network model. keywords: speech spectrogram; residual network; speech emotion recognition. 1. introduction in addition to the basic semantic information, speech signals also contain a variety of complex human emotions, which play a very important role in human communication and life. the importance of speech emotion recognition in the field of artificial intelligence is self-evident. with the development of science and technology, artificial intelligence is becoming more and more mature, but the development of self-awareness and self-awareness of artificial intelligence is slow, which hinders the natural interaction process between human and machine. one important way to solve the selfawareness and self-awareness of ai is to make the machine understand human's emotional state, so that the intelligent machine has the ability of emotion.[1][2] this is an important way to address the self-awareness and self-awareness of ai is to enable machines to understand human emotional states, so that intelligent machines have emotional capabilities. in recent years, deep learning algorithms have achieved excellent results in the field of natural language, and the classic result is the recurrent neural network (rnn).[3] rnns have been shown to be effective in solving serialization problems, making use of contextual information, but they suffer from gradient explosion and vanishing problems in the solution process, and are ineffective in processing long texts. however, rnns suffer from the gradient explosion and disappearance problems during the solution process, and are not effective for long text. the problem has been effectively solved by the proposed long-short term memory neural network (lstm), which is suitable for solving long sequential problems by adding three "gates" in the hidden layer to control cell states.[4][5] it is suitable for solving long sequence problems. speech emotion recognition, as a crucial technology to realize human-computer interaction, has a wide range of applications in many fields with natural human-computer interaction needs. for example, we can track the emotional changes of depression patients to understand the specific condition of patients from these emotional changes, so as to make corresponding diagnosis and treatment; we can monitor the emotional changes of each student in real time in the teaching classroom to find out the interest of each student in the lecture content from these emotional changes, so as to make timely adjustments to the lecture content and lecture style.[6] the class is monitored in real time to detect each student's interest in the lecture content, so that adjustments can be made to the lecture content and lecture style. 2. related work this paper adopts the features of the speech spectrum map as the input data of the network structure, which solves the problem that the data structure is not similar to the twodimensional structure of image data. the traditional convolutional neural network has serious data loss problems in information transfer, and the gradient disappears or explodes as the number of layers of the network deepens.resnet network can effectively solve the above problems, and this paper will use resnet network as the backbone network structure. 2.1. speech pre-processing technology emotion feature extraction is important in speech emotion recognition. currently, there are many effective emotion features commonly used in the field of speech emotion feature research, and they express the emotions embedded in speech at different levels respectively. in this thesis, the extracted speech spectrograms are used as the dataset for model training. the speech spectrogram represents the speech signal in visual form and contains many essential information of the speech signal, such as: fundamental period, amplitude, etc. in a speech spectrogram, a two-dimensional plane is used to represent three-dimensional information, the horizontal axis shows the time and the vertical axis shows the frequency, and the intensity of a frequency at a certain moment can be indicated by the color shade or the gray scale of the point, and the energy value can also be indicated by the color shade, the darker the color of a point means the stronger the energy at that place.[7][8] the darker the color of a point, the stronger the energy at that point. the specific speech spectrum extraction technique is shown in figure 1. the speech spectrogram is obtained by fourier analysis of the speech signal. first, the discrete speech signal 𝑥 (𝑛) is represented as 𝑥(𝑚), n = 0, 1 , n-1 after framing, 𝑚 is the sample point number within a frame, 𝑛 and n denote the frame number and frame length, respectively. the short-time 61 fourier transform of the signal 𝑥 (𝑛) is shown in the following equation. figure 1. the process of extracting the language spectrum map ( ) ( ) ( )jw jwm n m x e x m w n m e   − =− =  −  (1) w(𝑛) is the window function, and the discrete time domain fourier transform and discrete fourier transform of x(𝑛) are as follows. ( ) 1 0 21 0 x n, ( ) x(n,k) ( ) n jw jwm n m kmn j n n m e x m e x m e  − − = − − = = =   (2) where 0 ≤ k ≤ n 1, x(n, k) denotes the short-time amplitude spectrum estimate of x(𝑛), and the spectral energy density function p(𝑛,k) at 𝑚 can be expressed as: 𝑃(𝑛, 𝑘) = |𝑋(𝑛, 𝑘)|2 = (𝑥(𝑛, 𝑘)) × (𝑐𝑜𝑛𝑗(𝑋(𝑛, 𝑘))) (3) the horizontal coordinate is 𝑛 and the vertical coordinate is k. the values of p (𝑛, k) are represented in color or gray, and finally the speech spectrum diagram is obtained. the speech spectrogram is generally a gray or colored twodimensional image, and each point contains the corresponding time, frequency, energy and other information of the speech signal. the speech spectrogram of a speech segment of anger class in casia chinese emotion dataset is shown in figure 2. figure 2. the emotional spectrum of the anger category in casia chinese emotional database from figure 2, we can clearly see many horizontal stripes, i.e., sound patterns, which are formed by the aggregation of dark-colored pixels, i.e., by the extension of the duration points of time, indicating that the frequency component at that moment has a large proportion and is easily perceived. the greater the proportion of stripes represents the greater the proportion of effective information in the whole speech signal, and the more obvious the influence on the speech emotion recognition rate. there is a lot of information that can be obtained from the speech spectrogram, such as the change of sound intensity in a certain period of time, the frequency distribution and sound intensity strength of the whole speech, etc. for different emotions of speech, there is a certain degree of difference in the speech spectrogram, and through these differences, different emotions can be classified[9][10] . 2.2. att-res speech emotion recognition network model construction based on residual network improvement in this paper, the language spectrum map is selected as the primary feature for network input. compared with the combination of artificial features, the language spectrogram features bring more comprehensive and rich information, which can be further extracted by deep neural network for deep features. at the same time, the spectrogram features bring redundant information with emotionally irrelevant information due to the comprehensive speech information they contain, which brings impact on the final recognition accuracy. the attention mechanism simulates human brain vision, learns the weight distribution from the features and imposes it on top of the original features, focuses on the effective features and weakens the invalid features, which can effectively improve the feature extraction efficiency. the structure of the spatial visual attention mechanism is shown in figure 3. the spatial attention module first performs the input feature map by channel𝐹 maximum pooling and average pooling operations are performed. maximum pooling is to keep the maximum value for the pooling window. the average pooling is to keep the overall data features for the pooling window and calculate the average value. the two pooling results are concatenated by channel to represent the input holistically, and then a 1× 1 convolution layer for feature extraction by convolution, followed by using the 𝑠𝑜𝑓𝑡𝑚𝑎𝑥 activation function to convert the obtained single-layer feature maps into probability distributions to obtain the attention mechanism scores for each element of the input features. the larger the attention score, the more the information of the corresponding element is worthy of attention in identifying the sentiment category, and conversely, the smaller the attention score, the less impactful and less valuable the information of the corresponding element is in identifying the sentiment category, and can be ignored. finally, the attention score matrix and the input values𝐹 a dot product operation is performed to adjust the model to the input𝐹 importance of different spatial locations. feature f [maxpool,avgpool] conv layer spatial attention refined feature f figure 3. spatial attention mechanism in this paper, we combine the residual network and introduce the spatial attention mechanism in the residual block to build the res-a module, aiming at the training process when the network pays more attention to the sentiment features and ignores the redundant information. the structure of the res-a module is shown in figure 4. 62 bn,relu,conv bn,conv max pooling concat conv feature f refined feature f relu average pooling figure 4. res-a module in this paper, based on the res-a module, we design and build the att-res network structure with 15 layers, as shown in figure 5. in the neural network model, it is experimentally proven that a smaller convolutional kernel can be used instead of a larger convolutional kernel to obtain better training results, and inception network structure proposes to use 1× 1 and 3× 3 convolutional kernels can be used instead of 5× in the inception network structure, it is proposed that 1 1 and 3 3 convolutional kernels can replace 5 convolutional kernels and obtain better results. in the development of neural networks, 3 × 3 convolutional kernel size is the most commonly used convolutional kernel in the development of neural networks, and it appears many times in classical networks such as transformer, vggnet, inception, etc. the convolutional kernel size of 3 is also chosen for att-res network.× for network models such as resnet for image processing, the data input to the network appears to pass through 64 or more convolutional kernels, and the convolutional kernel size is larger, such as 7× 7 or 5× 5 convolutional kernels to speed up the training efficiency. the size of the speech spectrogram data varies with the length of the speech, so in order to standardize the size, the size is modified to 128 after extracting the spectrogram for each speech signal using the cv2.resize function.× 128 and then input to the network for training. the spectrogram size is small compared with the image size, so the input layer of the att-res network is chosen to have 32 3× 3 convolutional kernels. the speech sequences are temporal in nature, and the speech spectrogram is also stitched according to the time axis of the speech frame data. therefore, the convolution step in the input layer of the att-res network is set to 1 to extract the continuous shallow links. subsequent data pass through a normalization layer, a maximum pooling layer, a constant link block, and again through data passing through two block-a blocks, each block-a consisting of a convolutional layer, a normalization layer, a maximum pooling layer, and a res-a block. one of the convolutional layers contains 64 or 128 3× the final features are identified by a fully connected layer and a softmax classifier for sentiment classification. the network layer activation functions all use the relu function. conv,3x3,1 bn max pooling conv,3x3,2 bn conv,3x3,2 x2 bn max pooling conv,3x3,2 bn x2 max pooling average pooling concat conv,3x3,1 dense global average pooling dense softmax output x2 figure 5. att-res network structure 3. experimental setup, results and analysis this paper selects casia chinese sentiment dataset recorded by the institute of automation of chinese academy of sciences, and conducts training and testing on this dataset. the training framework adopts nvidia gtx2060 graphics card, deep learning pytorch environment, which supports python, deep learning model training, its package of libraries is complete and complete, easy to quickly build models, support gpu acceleration this environment supports python, deep learning model training, is complete, easy to build models quickly, supports gpu acceleration, and enables fast scientific computing, which provides the conditions for smooth experiments. 3.1. experimental setup in this paper, the casia dataset is used for the experiments. the experiments are mainly set up as a set of ablation experiments to verify the effectiveness of the proposed module and a set of comparison experiments to verify the effectiveness of the proposed network model. block-a is composed of one layer of convolution, one layer of normalization, one layer of maximum pooling and one module of res-a. if block-a is in the input layer of the network, the step size of the convolution layer is 1, otherwise the step size is set to 2 to speed up the training. conv bn max pooling conv bn max pooling (a) block (b) block-a identity block res-a figure 6. block and block-a in order to better analyze the impact of res-a module on the performance of the overall network model, this paper uses the att-res0 network constructed by three blocks as the 63 backbone network to extract features, and gradually replaces blocks with block-a to constitute four network structures, att-res1, att-res2, att-res and att-res3, and the five network structures are shown in figure 7 shows. block block block block block block-a block-a block-a block block-a block block-a block-a block-a block-a (a) att-res0 (b) att-res1 (c) att-res2 (d) att-res (c) att-res3 figure 7. att-res0, att-res1, att-res2, att-res and att-res3 network structure to discuss the effects of the two approaches, res-a module and adding spatial attention mechanism directly after feature extraction, on the network model, this paper constructs an attres0-att network based on the att-res0 network, aiming to add the spatial attention mechanism before the global averaging layer to form a comparison experiment with the attres1 network model. att-res0-att network is shown in figure 33 shows. in this paper, five network structures are ablated with the baseline network to analyze the effect of block-a modules on the accuracy of emotion recognition and the effect of the number and position of block-a modules on the accuracy of emotion recognition. conv,3x3,1 bn max pooling conv,3x3,2 bn x2 max pooling average pooling concat conv,3x3,1 x3 block dense global average pooling dense softmax output input figure 8. att-res0-att network structure in order to better analyze the effectiveness of the network model on the speech emotion recognition task, this paper further analyzes the effectiveness of att-res network for small sample english speech emotion recognition by comparing the experimental results with resnet-18, svm, alexnet and other network models. in the experiments, the data set is randomly divided according to the ratio of 80% being the training set and 20% being the test set. the adam optimizer was chosen to continuously optimize the learning network parameters, and a total of 25 iterations were trained. 3.2. results and analysis the test set accuracies for att-res0, att-res0+att, att-res1, att-res2, att-res and att-res3 are shown in table 1. comparing the experimental results in table 1, we can find that the improvement effect of the att-res0+att model on recognition accuracy is significantly lower than that of the attres1 network model, indicating that the res-a layer is better than the direct addition of the attention mechanism layer in extracting effective features, which verifies the effectiveness of the res-a layer. the recognition rates of the network models with the block-a module added are all better than those of att-res0 composed of the block module only. the biggest difference between the block-a module and the block module is that the res-a layer proposed in this paper replaces the constant residual layer in the residual network, which effectively improves the network sentiment recognition accuracy by entering spatial attention. in the four network models composed of a mixture of block-a modules and block modules, the recognition accuracy increases as the number of block-a modules increases. however, the recognition accuracy decreases when the number of block-a modules is 3. the casia data are small sample data, and the excessive introduction of attention mechanism tends to make the network in an overfitting state, which reduces the model effect. in the network consisting of two layers of block-a modules and one layer of block modules, we explored the effects of introducing res-a layers at different locations. this is because the number of deeper features extracted when the network is deeper has more semantic information, and then adding the attention mechanism can further extract the emotional features. table .1 ablation experiments experimental group dataset methods accuracy 1 casia att-res0 57.2% 2 attres0+att 58.7% 3 att-res1 64.4% 4 att-res2 67.3% 5 att-res 69.8% 6 att-res3 66.1% finally, to verify the effectiveness of the att-res model extracted in this paper for speech emotion recognition, this subsection compares five commonly used network models for the casia dataset, where experimental groups 4, 5, and 6 all use the speech spectrogram as the input to the network. the experimental results are shown in table 2. table 2. speech emotion recognition on casia dataset experimental group dataset methods accuracy 1 casia cnn 46.9% 2 lstm+cnn 49.2% 3 svm 50.2% 4 alexnet 51.7% 5 resnet-18 50.3% 6 att-res 69.8% compared with the resnet-18 network structure, the recognition accuracy of the improved att-res network based on the residual network is higher because the incorporated spatial attention mechanism can autonomously learn the distribution of emotion features and weight them by backpropagation, thus achieving the effect of reducing the interference of redundant information on the recognition accuracy. finally, comparing all the experimental results in table 3-2, the improved att-res network of the model in this paper can improve the accuracy of the network model recognition in the comparison experiments. att-res network 64 model improves the speech emotion recognition rate by 22.9% compared with the cnn network model and 19.5% compared with the resnet-18 network, which verifies the model's effectiveness. 4. summary in this paper, we introduce attention mechanism into constant residual block, propose a res-a module based on constant residual block, design six network models of attres0, att-res0+att, att-res1, att-res2, att-res and att-res3 for this module, verify the effectiveness of this module with ablation experiments, and the experimental results prove that the res -a module can effectively improve the speech emotion recognition rate. finally, this paper proposes an att-res speech emotion recognition network structure based on residual block improvement based on the res-a module, and trains the model on casia dataset. by comparing with four advanced network models and a traditional classifier on the same dataset, the results demonstrate that the att-res network model improves speech emotion recognition to a certain extent and verifies the feasibility of the model. acknowledgments this work was supported by the southwest minzu university for nationalities graduate student innovative project no. (yb2022753) fund. references [1] hong zhaogin,wei chenyang,zhuang yuan,wang ying,wang yiting,zhao li. speech emotion recognition and personality analysis based on deep neural network[j]. information technology research,2020,46(01):48-53. [2] tao, h.w., cha, c., liang, r.y., et al. a speech spectrogram feature extraction algorithm for speech emotion recognition. journal of southeast university (natural science edition),2015,45(5):817-827. [3] irsoy o, cardie c. deep recursive neural networks for compositionality in language[j]. advances in neural information processing systems, 2014(3).2096-2104. [4] shah a, bhowmik t. a comparative study on mfcc and fundamental frequency based speech emotion classification[c]//international conference on distributed computing and internet technology. springer, cham, 2022: 173-184. [5] han wj, li hf, ruan hb, et al. a review of research advances in speech emotion recognition[j]. journal of software,2019,25(1):37-50. [6] qiu xue. research on multimodal fusion for student emotion recognition and state analysis[d]. supervisor: li mingyong. chongqing normal university,2021. [7] gao l, qi l, chen e, et al. discriminative multiple canonical correlation analysis for information fusion[j]. ieee transactions on image processing, 2017, 27(4): 1951-1965. [8] new t l, foo s w, de silva lc. speech emotion recognition using hidden markov models[j]. speech communication, 2003, 41(4): 603-623. [9] liu, jingjing, wu, xiaofeng. multimodal sentiment recognition and spatial annotation based on long and short term memory networks [j]. journal of fudan (natural science edition),2020,59(05):565-574. [10] chen jia. speech emotion recognition based on deep learning [d]. nanjing university of posts and telecommunications, 2019. 000586. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 3, 2023 51 glucose electrocatalysis of multi‐walled carbon nanotubes/polyvinyl alcohol conducting hydrogel composite platinum electrode shumin liu 1, jia chen 2 and jinpeng sun 1 1 school of materials science and engineering, north china institute of aerospace engineering, langfang 065000, china 2 school of foreign languages, north china institute of aerospace engineering, langfang 065000, china abstract: a porous conductive hydrogel electrode film of multi-walled carbon nanotubes (mwcnts)/polyvinyl alcohol (pva) was prepared by electrophoretic deposition technology, and the selective catalytic ability of mwcnts/pva on glucose was verified by cyclic voltammetry and open-circuit voltage. the electrochemical and physicochemical properties of mwcnts/pva porous conductive hydrogel electrode films were also characterized. the synergistic catalytic effects of mwcnts/pva porous conductive hydrogel electrode films and platinum electrode on the electrochemical oxidation of glucose in different ph solutions were studied. keywords: conductive hydrogels; implantable fuel cells; platinum electrode. 1. introduction with the development of low power mems implantable devices, providing long-term stable power supply for implantable micro-power devices has become a research hotspot. it is a feasible way to solve the problem of power supply in vivo to study the non-biological catalytic implantation of glucose fuel cells with simple structure, high energy density, long-term stable performance and high biological safety. implant surface glucose fuel cell is a promising type of non-biocatalytic glucose fuel cell. the main advantage is that the surface of the implanted device is used as the electrode film of the battery, without the need to implant additional battery housing. however, this kind of fuel cell has some problems, such as low electroactive area, electrochemical short circuit, implantable immune rejection, and complex preparation process [1-3]. these problems can only be improved by modifying the material design of the electrode film of glucose fuel cell on the surface of the implant. porous conducting hydrogels have the dual characteristics of ionic and electronic conduction and good biocompatibility. it is the great exploration value to develop hydrogel electrode films that can selectively oxidize glucose in complex reaction systems with various components and apply them to glucose fuel cells on the surface of implants [46]. in this chapter, a porous conductive hydrogel electrode film of mwcnts/pva was prepared by electrophoretic deposition technology, and the selective catalytic ability of mwcnts/pva on glucose was verified by cyclic voltammetry and open-circuit voltage. the electrochemical and physicochemical properties of mwcnts/pva porous conductive hydrogel electrode films were also characterized. the synergistic catalytic effects of mwcnts/pva porous conductive hydrogel electrode films and platinum electrode on the electrochemical oxidation of glucose in different ph solutions were studied. 2. experimental materials and instruments 2.1. experimental materials multi-walled mwcnts (mwcnts), shenzhen nanoport co., ltd ;cetyltrimethyl ammonium bromide (ctab), sinopharm chemical reagent co. ltd ;polyvinyl alcohol (pva) 17-99 ,beijing xisi chemical raw materials co., ltd; ethanol ,sinopharm chemical reagent co. ltd; acetone, sinopharm group chemical reagent co. ltd; hydrogen peroxide ,group chemical reagent co. ltd; sodium hydroxide, pharmaceutical group chemical reagent co. ltd; potassium ferricyanide, chemical reagent co. ltd; perchlorate ,sinopharm group chemical reagent co. ltd; potassium chloride ,chinese medicine group chemical reagent co. ltd; phosphate ,chinese pharmaceutical group chemical reagent co. ltd; dextrose ,chinese medicine group chemical reagent co. ltd; sinopharm sulfate, group chemical reagent co. ltd; polyvinylidene fluoride film, shanghai shuo optoelectronic technology co. ltd;. 2.2. experimental equipment glassy carbon electrode, glassy carbon diameter 4mm, tianjin aida hengsheng; saturated calomel electrode, type 232, shanghai rez; platinum electrode, 10mm× 10mm× 0.1mm, beijing cuiplatin; auxiliary platinum electrode, 20mm×20mm×0.1mm, beijing cuiplatin; dc electrophoresis instrument,dyy-6c, beijing liuyi instrument factory; electrochemical workstation,chi618d, chenhua, shanghai; centrifuge,hc-3018, anhui zhongke zhongjia instrument; electronic balance,bs210s sartorius; water bath ultrasound,kq-200m, keqiao ultrasonic equipment; pressure sterilization pot,lx-l, hefei huatai medical equipment; constant temperature heating magnetic agitator,cl-4, yuhua instrument co., ltd. low temperature refrigerator, bcd-285wnmvs, samsung electronics, suzhou; freezedrying machine,lgj-10, matsuyuan huaxing technology; constant temperature hot table optical microscope,tkc1031ec,jvc kenwood co., ltd.; scanning electron 52 microscope, apollo 300, camscan uk; four probe tester, rts-9, guangzhou probe technology; digital micrometer, 76720532-7, shanghai constant; high precision video contact angle measuring instrument,oca15+, dataphysics, germany; flowmeter,mf5712-n-200, nanning, guangxi. 3. electrode film preparation and testing 3.1. the preparation of electrode film mwcnts/pva conductive hydrogel electrode film was prepared on the surface of glassy carbon electrode by electrophoretic deposition and freeze-thawing process. the preparation process is as follows: (1) pva dissolution: 10wt% pva aqueous solution is configured under the preparation process of 90℃ water bath stirring. (2) washing of mwcnts: an appropriate amount of mwcnts was ultrasounded in 30% h2o2 for 30min and reflow for 2h at 80℃. the resulting suspension was filtered with a 0.2 micron polyvinyl fluoride membrane, and then washed with deionized water until neutral and dried. (3) configuration of electrophoretic sedimentation fluid: appropriate amount of ctab (2mg/ml) and mwcnt (2mg/ml) were placed in deionized water and ultrasonic bath for 2h. then according to different pva mass ratio (0%, 0.05%, 0.1%; 0.2%; 0.3%; 0.4%; 0.5%; 1%; 2%) were prepared with ctab-mwcnts-pva suspension and heated in stirred water bath for 1h. (4) glass carbon electrode pretreatment: (a) grinding: the surface of gce was roughed with 0.5μm al2o3 particles, and then finely ground with 50nm al2o3 particles until the surface of gce was smooth and clean; (b) cleaning: soak the polished gce in ethanol solution and clean it with ultrasonic cleaner for 10 minutes to remove the surface oil; (c) polishing: polishing the gce until smooth on a polishing machine; (d) electrochemical activation: gce was inserted into a threeelectrode system as a working electrode, and cyclic voltammetry was carried out with dilute sulfuric acid solution with a concentration of 0.5 mmoll-1 for multiple scanning. the electrochemical activity of the surface of gce could be improved while the electrode was cleaned. (5) platinum electrode pretreatment: (a) cut the platinum electrode into 10mm10mm0.15mm electrodes. (b) put the electrode in acetone and wash it in ultrasonic shock cleaner for 10 minutes to remove the surface oil. (c) a dilute sulfuric acid solution was prepared, the platinum electrode was removed and placed in dilute sulfuric acid. the electrode was again placed in an ultrasonic shock cleaner and cleaned for 3 minutes to remove the surface oxide layer. (d) take out the platinum electrode, wash it with anhydrous ethanol, and dry it with nitrogen. (6) electrophoretic deposition process: the above ctabmwcnts-pva suspensions were added as electrophoretic deposition droplets in the deposition tank, and then the platinum electrode were immersed in the electrophoretic solution (the immersed area was 1cm2). then the negative extremes of the electrophoresis apparatus were connected to the glass carbon electrode, and the positive electrode was connected to the platinum electrode (the distance between electrodes was 1cm). adjust the parameters of the electrophoresis apparatus (the voltage is 30v, the deposition time is 2min). the electrophoretic deposition process is shown in figure 3-2. after the deposition is completed, the electrophoresis instrument power is turned off. (7) freezing and thawing process: the electrode was removed from the solution, and when the deposited film was stable and non-flowing, it was frozen in the refrigerator at 26℃ for 10h, and then thawed at room temperature for 4h. after 4 cycles of cyclic freezing/thawing, mwcnts/pva conductive hydrogel electrode film was finally formed, and the prepared electrode film was placed in neutral pbs solution for reserve. 3.2. testing synergistic effect of mwcnts/pva conductive hydrogel electrode film and platinum electrode: 0.10mol /l hclo4, 0.10mol /lnaoh and 0.1mol /l pbs solutions were configured respectively. in the solution system under different ph, cyclic voltammetry was used to test the electrocatalytic activity of mwcnts/pva hydrogel film modified platinum electrode, mwcnts modified platinum electrode and bright platinum electrode on glucose, scanning speed: 50 mv/s, through nitrogen deoxygenation. 4. results and discussion figure 1. mwcnts/pva conductive hydrogel modified platinum electrode (a) platinum electrode (b)mwcnts (c)mwcnts/pva figure 1. (a) shows a physical picture of a mwcnts/pva conductive hydrogel modified platinum electrode. for comparison, a carbon tube modified platinum electrode and a platinum electrode are also displayed. the platinum electrode appears silver white, and the mwcnts modified platinum electrode has white spots on the surface, which is caused by the removal of mwcnts during the preparation of electrode film. the platinum electrode modified with mwcnts/pva electrode film showed uniform and permeable black without shedding phenomenon, which indicated that pva was conducive to the fixation of mwcnts and would not cause the agglomeration of mwcnts on the electrode surface. figure 2 shows the electrocatalytic activity of mwcnts/ pva-modified platinum electrode against glucose under acidic conditions. cyclic voltammetry tests were also performed on the mwcnts/ pva-modified platinum electrode and platinum electrode as a control. as shown in fig. 3-11 (a), in an acidic environment, platinum sheet has no obvious electrochemical oxidation peak for glucose, but glucose increases the electrochemical active area of platinum sheet. at the same time, a reduction peak is observed near the potential of -0.25v, but this is not reflected by the electrochemical oxidation of glucose. this should be caused by the adsorption and desorption of a small number of hydrogen ions [114]. as shown in figure 3-11 (b), the platinum electrode modified by mwcnts did not have an obvious oxidation peak for glucose. as shown in figure 3-11 (c), the platinum electrode modified by mwcnts/pva did not have an obvious oxidation peak for glucose. by comparing figures 3-11 (a) and 3-11 (b), it was found that 53 mwcnts enhanced the adsorption capacity of platinum plates for hydrogen ions [115]. by comparing figure 3-11 (a) and figure 3-11 (c), mwcnts/pva composite hydrogel electrode film also increased the electroactive area of platinum sheet. -0.5 0.0 0.5 1.0 1.5 2.0 potential (v)vs.sce c ur re nt d en si ty (m a /c m 2 ) 5 m a /c m 2 a b c figure 2. cv curves of different electrodes in 0.1 mol/l hclo4 solution (a is platinum electrode, b is mwcnts modified platinum electrode, c is mwcnts/pva composite hydrogel platinum electrode, dotted line is blank hclo4 solution, solid line is hclo4 solution mixed with 5mm glucose solution, scanning rate: 50mv/s) on the whole, mwcnts/pva composite hydrogel electrode films showed no significant electrocatalytic activity against glucose in acidic solution. due to the obvious swelling property of pva hydrogel in an acidic environment , the electrode film may fall off from the surface of the platinum electrode. therefore, pva/mwcnts gel membranes are not suitable for catalyzing glucose in acidic environments[7-9]. -1.0 -0.5 0.0 0.5 1.0 potential (v)vs.sce c ur re nt d en si ty 5 m a /c m 2 5 m a /c m 2 a b c figure 3. cv curves of different electrodes in 0.1 mol/l naoh solution (a is platinum electrode, b is mwcnts modified platinum electrode, c is mwcnts/pva composite hydrogel platinum electrode, dotted line is blank naoh solution, solid line is naoh solution mixed with 5mm glucose solution, scanning rate: 50mv/s) figure 3 shows the electrocatalytic activity of mwcnts/ pva-modified platinum electrode against glucose under alkaline conditions. as a control, cyclic voltammetry was also performed on the mwcnts modified platinum electrode and platinum electrode. as shown in figure 3-12 (a), the cyclic voltammetry curve of platinum electrode in alkaline environment shows three obvious glucose oxidation peaks near -0.55v, -0.1v and 0.25v during the scanning process from negative potential to positive potential of the electrode. as shown in figure 3-12 (b), the cyclic voltammetry curve of the mwcnts modified platinum electrode in the alkaline environment. in the scanning process of the electrode from negative potential to positive potential, there was an obvious oxidation peak to glucose at the potential of -0.7v, and the intensity of the current peak was relatively high, indicating that mwcnts also had an obvious electrocatalytic activity to glucose. as shown in figure 3-12 (c), the cyclic voltammetry curve of mwcnts/ pva-modified platinum electrode in an alkaline environment. in the scanning process of the electrode from negative potential to positive potential, an obvious glucose oxidation peak appeared at the potential of -0.7v, and the intensity of the current peak was relatively high. this indicates that mwcnts/pva electrode film has electrocatalytic activity for glucose. by comparing fig. 3-12 (a) and fig. 3-12 (b), it was found that mwcnts greatly increased the electroactive area of platinum sheet in the alkaline environment, and mwcnts significantly shifted the oxidation peak of platinum sheet electrode to glucose, which should be caused by the synergistic effect of mwcnts and platinum electrode on the electrochemical catalysis of glucose. by comparing figure 312 (a) and figure 3-12 (c), mwcnts/pva electrode film can also increase the electroactive area of platinum plate in alkaline environment, making the oxidation peak of platinum plate electrode to glucose obviously negative shift, which indicates that mwcnts/pva electrode film and platinum electrode also have synergistic effect on the electrocatalysis of glucose. by comparing figure 3-12 (a) and figure 3-12 (c), we found that the addition of mwcnts and glucose reduced the oxygen evolution potential of platinum tablets. this issue is not the focus of this paper, but the reduction of oxygen evolution potential of platinum tablets is also a significant research direction. -1.0 -0.5 0.0 0.5 1.0 5 m a /c m 2 c ur re nt d en si ty potential (v)vs.sce a b c figure 4. cv curves of different electrodes in 0.1 mol/l pbs solution (a is platinum electrode, b is mwcnts modified platinum electrode, c is mwcnts/pva composite hydrogel platinum electrode, dotted line is blank pbs solution, solid line is pbs solution mixed with 5mmol/l glucose solution, scanning rate: 50mv/s, ph=7.5) on the whole, mwcnts/pva composite hydrogel electrode film has an obvious promotion effect on platinum electrode electrocatalysis of glucose in alkaline environment. however, an alkaline environment with a ph greater than 9 can only be provided in the human gut environment, while the humoral environment has a neutral ph. therefore, it is necessary to study the synergistic effect of mwcnts/pva composite hydrogel electrode film and platinum plate on electrocatalytic glucose under neutral environment. figure 4 shows the electrocatalytic activity of mwcnts/ pva-modified platinum electrode against glucose under alkaline conditions. as a control, cyclic voltammetry was also performed on the mwcnts modified platinum electrode and 54 platinum electrode. as shown in figure 3-13 (a), platinum electrode has no significant electrocatalytic activity on glucose in neutral solution environment, and very small oxidation peaks are observed in the process of scanning from negative potential to positive potential, which may be related to the formation of hemiacetals on glucose molecules [117, 118]. as shown in figure 3-13 (b), the glucose oxidation peak was still not obvious, indicating that mwcnts had limited electrocatalytic activity for glucose in a neutral environment. as shown in figure 3-13 (c), the conductive hydrogel electrode film of mwcnts/pva did not weaken the electroactive area of mwcnts, but it inhibited the diffusion of oxygen, thereby reducing the overall current. on the whole, mwcnts/pva composite hydrogel electrode film has a significant promoting effect on platinum electrode electrocatalysis of glucose in alkaline environment.[10-11] 0 1000 2000 3000 4000 5000 -0.2 -0.1 0.0 0.1 0.2 0.3 0.4 time(s) o pe n ci rc ui t vo lta ge (v ) a b c glucose figure 5. open circuit voltage of different electrodes in pbs and glucose mixtures with nitrogen and oxygen mixture at 7% oxygen partial pressure (a) platinum electrode (b) mwcnts/pva conductive hydrogel electrode film modified platinum electrode (c) mwcnts/pva conductive hydrogel electrode film modified glassy carbon electrode it was shown that the open circuit voltage of mwcnts/pva electrode film was continuously tested for 5000s in the mixture solution of pbs and glucose with oxygen saturation concentration of 7%. in order to exclude the influence of electrode substrate, the open circuit voltage of glassy carbon electrode modified by mwcnts/pva electrode film and platinum electrode were respectively tested. the open circuit voltage of a pure platinum sheet in pbs solution is also listed. the open circuit voltage of the mwcnts/pva modified glassy carbon electrode is about 0.09v, and the open circuit voltage remains unchanged during the experiment. the open circuit voltage of mwcnts/ pvamodified platinum plate finally stabilized at about 0.2v. during the experiment, the open circuit voltage gradually increased from 0.1v to 0.2v, because the platinum electrode gradually affected the open circuit voltage of the electrode film during the permeation of the solution in the electrode film. the open circuit voltage of the bright platinum electrode was about 0.25v. after adding glucose, the open circuit voltage of the platinum electrode decreased slightly, by about 15mv. none of the three electrodes caused a significant decrease in the open-circuit voltage after the addition of glucose, which was caused by the fact that none of the three electrodes showed significant catalytic activity against glucose in pbs solution. this indicates that neither platinum plate nor mwcnts/pva electrode film can be used as anodes for glucose cells on the surface of implants. 5. conclusion all manuscripts must be in english, also the table and figure texts, otherwise we cannot publish your paper. please keep a second copy of your manuscript in your office.the cocatalytic experiments of mwcnts/pva conducting hydrogel electrode film and platinum electrode showed that: the synergistic effect of platinum electrode and mwcnts/pva hydrogel could not catalyse glucose in neutral pbs and acidic solution, but platinum electrode and mwcnts/pva hydrogel composite electrode had strong catalytic activity on glucose in alkaline solution with ph > 9. this suggests that mwcnts/pva conducting hydrogel electrode membranes may be used to implant glucose fuel cells in the human gut. acknowledgments this paper was supported by hebei natural science foundation (e2019409072). references [1] santiago,navarro.e, raso.m.a and leo.t.j: review of implantable and external abiotically catalysed glucose fuel cells and the differences between their membranes and catalysts, applied energy,vol. 179(2016) no.4, p.497-522. [2] sharifi, mahdieh, et al:trends of biofuel cells for smart biomedical devices,international journal of hydrogen energy 46.4 (2021): 3220-3229. [3] frei, m., et al:power supply for electronic contact lenses: abiotic glucose fuel cells vs. mg/air batteries., journal of power sources 401.oct.15(2018):403-414. [4] rapoport, b. i. , et al:a glucose fuel cell for implantable brain–machine interfaces,plos one 7.6(2012):e38436. [5] yazdi, a. a, et al.: rechargeable membraneless glucose biobattery: towards solid-state cathodes for implantable enzymatic devices., journal of power sources 343.mar.1 (2017): 103-108. [6] jeon, s. , h. an , and y. chung :high performance of the flowtype one-compartment hydrogen peroxide fuel cell using buckypaper and narrow fuel pathway under physiological conditions,sustainable energy & fuels 6.3(2022):841-850. [7] bae, i , et al.: in situ fourier transform infrared reflection absorption spectroscopic studies of glucose oxidation on platinum in acid.,journal of electroanalytical chemistry and interfacial electrochemistry ,284. 2(1990):335-349.. [8] hosseinzadeh, h. .synthesis and swelling properties of a poly(vinyl alcohol)-based superabsorbing hydrogel. current chemistry letters 2.3(2013):153-158.. [9] padavan, d. t. , et al. synthesis, characterization and in vitro cell compatibility study of a poly(amic acid) graft/cross-linked poly (vinyl alcohol) hydrogel. acta biomaterialia 7.1 (2011): 258-267. [10] heitbaum, j., c. h. hamann, and s. ernst. the electrooxidation of glucose in phosphate buffer solutions. journal of electroanalytical chemistry & interfacial electrochemistry 100.1 (1979):173-183. [11] ernst, s., j. heitbaum, and c. h. hamann . the electrooxidation of glucose in phosphate buffer solutions: kinetics and reaction mechanism. ztschrift fr elektrochemie, berichte der bunsengesellschaft fr physikalische chemie 84.1 (2010):50-55. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 28 intelligent switch based on passenger flow detection of urban rail transit xinxin teng, zhenyu li, zixuan huang, yiheng wu, peike chen, yilei wang wenzhou polytechnic, wenzhou 325200, china abstract: according to the demand of intelligent station construction in urban rail transit, the intelligent control of station hall, platform and other equipment places is improved, and the electrical equipment in the station is adjusted by intelligent passenger flow detection switch, so as to achieve the power consumption principle of " needed and supplied", which can ensure the use of equipment when the passenger flow in the station increases and realize energy saving and emission reduction when the passenger flow decreases. the application of intelligent switch device based on passenger flow detection in subway stations helps urban rail to grasp the passenger flow in time, reduces energy consumption, and effectively realizes energy saving and emission reduction while improving the efficiency and safety of intelligent management of station operation. keywords: intelligent switch; urban rail transit; energy-saving; passenger flow. 1. introduction with the comprehensive promotion of smart cities, the increasing passenger flow and increasingly complex routes have brought new challenges to rail transit as the pulse of urban growth, accelerating the construction of smart urban rail as a strategic breakthrough in the construction of a powerful transportation country. stations are not only the basic management unit and external service window for urban rail operations, but also the pilot test field for smart urban rail, in the future, it will definitely become a trend of vigorous development. the construction and operation of smart stations will directly affect whether the goals of energy conservation, personnel reduction, efficiency enhancement, and improvement of management and service levels can be achieved, so as to achieve simultaneous management of economy and ecology, actively play a leading role in demonstration, and drive the construction of smart cities. the application of intelligent switches in smart stations can, on the one hand, accurately detect passenger flow to improve the monitoring and operation capabilities of the station, thereby ensuring passenger safety and reducing the labor intensity of staff; on the other hand, it is possible to predict passenger flow to brake corresponding equipment switches in real time, achieving "what you need is what you supply", to reduce unnecessary energy consumption and waste. currently, some existing stations in rail transit still have the following problems: the labor intensity of on-site operations in various disciplines is large, and the workload of station inspection and other operations is large, which occupies a large amount of staff time and increases their work intensity. take passenger flow statistics as an example: agm can calculate daily od passenger flow, and data acquisition has a lag. at present, the judgment of the passenger transport organization level of large passenger flows is mostly based on the experience of staff, who use the naked eye to detect it. during peak hours of operation, there will also be a certain lag. in the future, with the continuous improvement and popularization of smart urban rail construction, rail transit, as the "brain of urban communication", will definitely become the main tool for people to travel, and the passenger flow at stations is bound to increase. effective and timely control of passenger flow at stations has important safety value and significance. the integration efficiency of station equipment is not high, the equipment is complex, and the buttons are jumbled. some existing line staff have encountered situations of "oversupply" or even "oversupply" in equipment control and execution, breaking the principle of "what is supplied is what is needed", resulting in low energy utilization efficiency and increasing the waste of unnecessary energy. based on the above reasons, in addition to vigorously promoting the construction of smart stations for new railway lines, some existing stations are also being targeted for smart station reconstruction. through the transformation and upgrading of existing equipment, it is possible to achieve intelligent ride safety, efficient and automated management, and green and energy-saving operation. this article analyzes the shortcomings of the traditional station switching process execution process for operational scenarios such as morning departure and evening outage, and proposes optimization suggestions. based on the background of intelligent transformation and upgrading of existing stations, the upgrading and upgrading of the original switch has added passenger flow prediction and analysis and automatic switch control functions, combined with infrared wide-angle cameras, raspberry pie, mobile power supplies, and other devices, to achieve intelligent one-button switching stations, making the station efficient, automated, and energysaving in the process of starting in the morning and stopping in the evening. 2. intelligent switch operation scenario the morning departure and evening shutdown of the station mark the beginning and end of daily subway operations, and are important operational scenarios that station managers focus on and implement. as a preparation for operation, it is necessary to ensure that the environmental control equipment and corresponding modes operate normally, the station lighting is turned on normally according to the specified mode, the passenger information system display screen correctly publishes information, and the automatic fare collection gate operates normally. at the same time, the escalator should operate correctly according to the defined upward and 29 downward directions, and the entrance and exit rolling shutter doors should be opened normally. accordingly, nighttime outages also need to be implemented correctly based on scenario requirements. 2.1. operation of traditional station switches traditional station equipment switches need to be manually triggered and executed according to a specific time. enable a device to operate in a corresponding scenario at a corresponding time. such functions are only limited to regularly starting (or closing) the environmental control mode in the morning and evening, and regularly releasing voice announcements and passenger information during operation. the switch for automatic control of morning and evening operation in traditional stations is limited to the control equipment of the electromechanical equipment monitoring system and the voice broadcasting system of the platform station hall; for safety reasons, equipment such as escalators and roller shutter doors will not be automatically controlled, but will be manually operated. this means that all large and small equipment in the station need to be confirmed and enabled (or closed) by the station staff one by one. the entire process will be very cumbersome and inefficient, not only posing certain safety hazards, but also causing unnecessary energy waste. 2.2. operation of intelligent station switches traditional station equipment switches still have certain shortcomings and need to be continuously optimized and improved. for example, during holidays, it is necessary to manually adjust and set the device switches accordingly, and even devices that could have been automatically implemented need to re edit the operation (or shutdown) time. using intelligent switching devices can effectively solve the imbalance between time and equipment. firstly, infrared cameras and wide-angle lenses are used to acquire and preprocess image information, detect and track pedestrians in the station hall and platform, and then raspberry pie is used to process and analyze background data, so as to achieve on-off braking control of corresponding equipment based on actual passenger flow conditions. through the application of intelligent switching devices, precise control of station equipment switches can be achieved, meeting passenger flow needs and improving service levels based on the full use of energy. 3. application of intelligent switch in urban rail station the intelligent switch is a modification and upgrade of the original switch, mainly composed of infrared cameras, wideangle lenses, sensors, mobile power supplies, and raspberry pie, which are combined to form a smart switch device that can achieve "one touch" for the station. the intelligent switching device mainly includes the following functions: accurately detecting passenger flow; automatically switch on and off the braking equipment based on passenger flow conditions, monitor the predicted number of passengers, and adjust the departure interval and driving speed. (1) accurate detection of passenger flow using hog+svm algorithm to achieve pedestrian detection under top view, automatically acquire real-time images to count real-time passenger flow within the station. according to the actual situation, implement corresponding traffic plan. (2) active braking device switch calculates the traffic volume through image processing code, and adjusts the lighting system in the area based on realtime traffic volume. when the traffic in the area is greater than 0, send a bluetooth signal to turn on the lighting system in the area; when the traffic in the area is less than 0, a bluetooth signal is sent again, and the lighting system in the area is turned off. control electricity reasonably according to the flow of people to achieve the effect of energy conservation. (3) monitoring, prediction, and adjustment of operations based on the detected traffic data, raspberry pie conducts data analysis in the background, calculates the stops of regional traffic during different periods, and outlines the flow curve. intelligent detection and prediction of passenger flow to assist efficient operation and management of urban rail transit. 4. future prospects for intelligent switches based on the response to the policy of transforming from a "transportation power" to a "transportation power", smart urban rail is bound to become a major trend of future development, and smart stations are a breakthrough that cannot be underestimated. intelligent station refers to a new generation of technologies such as artificial intelligence, big data, and cloud computing, based on the original station, to achieve digital intelligent transformation of traditional stations and accelerate the deep integration of the internet and transportation. smart stations are characterized by "intelligence", but focus on "operation and service". in order to further create safe operation and convenient service, the innovative functions of smart stations mainly focus on five categories: holographic perception, automatic operation, intelligent diagnosis, autonomous service, and active evolution. this product takes intelligent diagnosis as the starting point, and will optimize and upgrade the original functions. at this stage, this product can control the brightness of the lighting system through bluetooth reception signals based on the actual passenger flow situation. when the area's traffic volume is greater than 100, send a bluetooth signal, turn on the area's lighting system, and adjust the light to level 2; when the traffic in the area decreases to 0, the device sends a bluetooth signal again, and the lighting system in the area adjusts the light to position 1. in the future, this product will expand to four levels of lighting control based on the original basic lighting. according to different actual operating conditions received, it will introduce three levels of lighting control corresponding to low, normal, and peak hours. during low operating hours, it will implement one level of lighting control, and gradually increase brightness. for large passenger flows of level 1, level 2, and level 3, the lighting system will continue to maintain the minimum basic lighting brightness and issue pop-up reminders at different levels based on the actual situation. while ensuring that the basic lighting needs are met, the staff will be notified in a timely manner to take corresponding emergency measures to ensure the safety of train operation with intelligent diagnosis and accuracy, thereby improving passenger comfort. 5. conclusion the construction of smart stations for urban rail transit will 30 greatly improve the modern management level of urban rail transit, as well as improve quality service and operation management capabilities. the intelligent one button switching station utilizes intelligent switching devices to accurately detect and predict passenger traffic through infrared wide-angle cameras and raspberries, thereby braking the equipment in real time, greatly reducing the labor intensity of staff, improving the level of operational management, and achieving intelligent ride safety, efficient and automated management, and green and energy-saving operation during the morning departure and evening shutdown operations based on the principle of "what is needed is provided". with the continuous progress of artificial intelligence technology, smart stations will be given a new definition, transforming towards intelligent intelligence, and truly realizing intelligent services and green operations. acknowledgements this work is supported by national nature science foundation of china study on the impact of epidemic prevention and control measures on passenger travel behavior in rail transit underground stations (xj2022002410). references [1] wu shuchu, liu baoyin. spectral characteristics of ground objects and color infrared remote sensing [j]. progress in marine science, 1990 (04): 86-90. [2] li yanfang. application of infrared light [j]. middle school physics: junior high school edition, 2005,23 (3): 52-53. [3] li heng, liu haibo. methods and devices for image processing, cn103559692a [p]. 2014. [4] discussion on passenger flow analysis methods based on big data of urban rail transit operations (journal) electromechanical engineering technology 2022 (10). frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 3, 2023 6 named entity recognition of electronic medical records based on multi-feature fusion xiaoqin tan* school of electrical engineering, southwest minzu university, chengdu, china abstract: named entity recognition (ner) is a very basic task in natural language processing (nlp). the paper studies the problem of named entity recognition in chinese electronic medical records, and proposes a method based on the bert-bi-lstmcrf model. in addition, the model incorporates the functionality of radical components and dictionaries to improve the recognition accuracy. the complexity of chinese medical record entities, the ambiguity in language expression, and the lack of adequate labeled data make traditional rule-based or machine learning methods less effective. to address this problem, we adopt the bert-bi-lstm-crf model, which effectively captures contextual information and semantic relationships to improve entity recognition accuracy. furthermore, to further enhance the model's performance, we introduce the functionality of radical components and dictionaries. radical components are an important component of chinese characters and can be used to assist in identifying entities and improve the model's generalization ability. we also utilize medical dictionaries to assist in entity recognition. these dictionaries contain rich medical terms and vocabulary, which can effectively help the model identify entities. the proposed method is evaluated on the public dataset ccks2019, and the experimental results demonstrate that it outperforms traditional methods, achieving an f1 score improvement of nearly 7 percentage points, and achieves good experimental results. keywords: chinese electronic medical records; named entity recognition; bert-bi-lstm-crf model; deep learning. 1. introduction named entity recognition (ner) is the extraction of required entities from structured or unstructured text. in 1996, the muc-6 conference first proposed the task of named entity recognition and specified the main task as identifying entities in the text to be processed. with the widespread application of chinese electronic medical records, it has become increasingly important to automate the processing and mining of the rich medical information contained within them. among them, named entity recognition is an important part of automated processing of electronic medical records, whose purpose is to automatically identify entities in text and label them as different categories, such as diseases, drugs, surgeries, examinations, and tests. however, named entity recognition in chinese electronic medical records faces challenges such as numerous entity types, complex expressions, and ambiguity, and traditional methods have poor performance. therefore, a named entity recognition method based on the bert-bi-lstm-crf model is proposed, which combines the functions of radical components and dictionaries to improve the accuracy and generalization ability of chinese electronic medical record named entity recognition. specifically, this method first uses a pre-trained bert model to obtain contextual information of the text, then uses a bilstm network for feature extraction and sequence labeling, and finally uses a crf model to constrain the labeling results to obtain the final entity recognition results. the ccks2019 chinese electronic medical record dataset was used for experimental evaluation, and comparison and analysis were performed with traditional methods. the experimental results show that the proposed named entity recognition method achieves good performance, with significant improvements in precision, recall, and f1-score compared to other methods. the proposed method can not only effectively solve the problem of named entity recognition in chinese electronic medical records but also achieve better results in practical applications, and has certain promotional and application value. 2. related work named entity recognition methods can be classified into three categories: rule-based methods, traditional machine learning methods, and deep learning-based methods. among them, deep learning-based methods have become a research hotspot in recent years due to their ability to automatically capture input sentence features and achieve end-to-end named entity recognition. some recent research work has applied deep learning-based methods to the named entity recognition task. huang et al applied the bidirectional long short-term memory network (bilstm) and conditional random field network to named entity labeling. however, bilstm has limited encoding ability for long sequences and performs poorly in terms of computational speed. strubell et al. used convolutional neural networks (cnn) for named entity recognition. compared with recurrent neural networks like bilstm, cnn has faster computational speed. however, cnn may lose a large amount of global information despite its good local capturing ability. previous research has improved the transformer encoder by supplementing directional information, enhancing its encoding ability. however, shallow transformer encoders have the disadvantage of insufficient structural ability at the encoding layer level. due to the unique characteristics of the chinese language, chinese named entity recognition is more challenging than english named entity recognition, even though it has been developed earlier. yang et al. used a segmentation tool to segment chinese sentences before labeling word sequences. however, word segmentation tools inevitably make errors in word segmentation, leading to errors in identifying entity boundaries. this is because, unlike in english where delimiters are used to identify word boundaries, chinese words do not have natural boundaries, making segmentation 7 more difficult. word-enhancement methods can reduce segmentation errors and increase chinese semantic and boundary information, but wu et al. argued that this method ignores the information in chinese character structures and proposed a multi-dimensional data embedding method that combines chinese character features and radical information for improvement. studies have shown that character-level named entity recognition is more effective than word-level [9,10]. however, a clear disadvantage of character-based named entity recognition is the loss of rich information in words. therefore, fully integrating dictionary information into character models is a major research focus in chinese named entity recognition. the lattice-lstm model proposed in literature [11] improves model recognition capabilities by combining dictionary information with the model. specifically, the model uses the gate mechanism of long short-term neural networks to automatically match each character in the sentence with the corresponding word and incorporates the word information that is most compatible with the sentence semantics into the sentence representation. li et al [12]. proved chinese glyph embedding by using the "wubi" stroke coding method to represent chinese character structural patterns and improve overall performance in chinese named entity recognition. xu et al [13]. rgued that the feature information contained in chinese character radicals can also help improve the ability to recognize named entities. this work proposes using three different levels of embedding, i.e., character, word, and radical, in the model to enrich the character representation in the sentence and validates the effectiveness of radical information. the success of these works also confirms the effectiveness of multi-level feature information in chinese. to further improve the performance of the model, this paper introduces external information, i.e., dictionary and radical information, into the model. 3. bert-bi-lstm-crf model this paper proposes a multi-feature fusion model for chinese electronic medical record named entity recognition, which consists of two parts. the first part is a bert-bilstm-crf model, and the second part incorporates radical components and domain dictionaries. the bert-bi-lstmcrf model is a deep learning-based text sequence labeling model that integrates bert [14,15]. brectional long shortterm memory networks (bi-lstm), and conditional random fields (crf), mainly used for named entity recognition (ner) tasks. the model structure is shown in figure 1. fig.1 named entity recognition framework based on bert-bilstm-crf in the bert-bi-lstm-crf model, the input text sequence is first processed by the bert model to obtain contextualized word embeddings for each word. these embeddings are then fed into the bi-lstm layer to learn feature representations that capture contextual information. finally, the crf layer labels the output of the bi-lstm layer to obtain the final output sequence. by using bert as the input layer, the model can learn contextual representations and apply them to tasks such as text classification and named entity recognition. the bi-lstm acts as a feature extractor that captures context information, including the preceding and following words in a sentence. the crf layer considers dependencies between labels, leading to more accurate label predictions. compared to other text sequence labeling models, the bert-bi-lstm-crf model effectively utilizes contextual information and label dependencies, resulting in improved predictive ability and accuracy. as a result, this model has achieved good performance in ner tasks and has been widely applied to various natural language processing tasks. 3.1. bert pre-trained language model bert (bidirectional encoder representations from transformers) is a pre-trained language model proposed by google in 2018[14]. it is designed based on the transformer model architecture and can use massive amounts of unlabeled text data for pre-training, followed by fine-tuning for various natural language processing tasks. the main contribution of the bert model is its ability to utilize both context information and bidirectional processing of text, which makes it perform well in various natural language processing tasks [15]. the bert model adopts two pre-training tasks, masked language model (mlm) and next sentence prediction (nsp). the mlm task randomly replaces some words in the input text with the [mask] symbol, and then trains the model to predict the replaced words. the nsp task is to train the model to understand the relationship between sentences in the input text, by determining whether two sentences are consecutive. the bert model has shown good performance in various natural language processing tasks, and in the medical field, it performs very well in electronic medical record named entity recognition. nowadays, most studies on named entity recognition in electronic medical records use bert model for word vector representation. the diagram of the bert model is shown in figure 2. fig. 2 structure of bert 3.2. bi-lstm network long short-term memory (lstm) networks are an improved version of recurrent neural networks (rnns) that were introduced in 1997 by hochreiter et al. to address the issues of vanishing and exploding gradients in rnns [16]. lstm is a type of time-recursive neural network that 8 introduces "gates," including an input gate, forget gate, and output gate [17]. lstm is an effective technique for solving the problem of long-term dependencies. as a variant of rnn, lstm is widely used in the field of natural language processing (nlp). in the lstm model, only unidirectional transmission exists, and it only considers the information content of the "previous context," but not the "next context." in reality, entity named recognition needs to consider all information content in all input orders. therefore, the current approach to entity named recognition in electronic medical records typically uses bidirectional lstm (bi-lstm) networks [18], as shown in figure 3. fig. 3 lstm structure in figure 3, xt is the input at time t; ft is the output for t+1 at time t; ot is the output at time t; ht is the hidden layer representing the output at time t; σ and tanh are the sigmoid function; ct is the cell state at time t. the gate unit calculation formulas in lstm are shown below: 𝑓𝑡 = 𝜎(𝑊𝑓[ℎ𝑡−1, 𝑥𝑡] + 𝑏𝑓) (1) 𝑖𝑡 = 𝜎(𝑊𝑖[ℎ𝑡−1, 𝑥𝑡] + 𝑏𝑖) (2) 𝑜𝑡 = 𝜎(𝑊𝑜[ℎ𝑡−1, 𝑥𝑡] + 𝑏𝑜) (3) �̃� 𝑡 = 𝑡𝑎𝑛ℎ(𝑊𝑐[ℎ𝑡−1, 𝑥𝑡] + 𝑏𝑐) (4) 𝐶𝑡 = 𝑓𝑡⨀𝐶𝑡−1 + 𝑖𝑡⨀�̃� 𝑡 (5) ℎ𝑡 = 𝑜𝑡⨀𝑡𝑎𝑛ℎ (𝐶𝑡) (6) in the formula, wi, wf, and wo are weight matrices that connect to the gate unit; bi, bf, and bo are the bias values, represents element-wise multiplication. 3.3. radical embedding unlike english, chinese characters are ideographic, and most of the radical components still retain their original meanings, with rich intrinsic features. for example, "口" (mouth) often appears in symptom entities, such as vomiting; "月" is a simplified form of "肉" (meat), which is often related to body parts such as the heart and chest; "疒" often appears in symptom descriptions, such as pain. therefore, measuring the similarity between entities to some extent through radical features is feasible [19]. in addition, radical embedding can enhance the semantic information of characters, such as improving the model's generalization ability for characters that appear only in the test set and not in the training set [20,21]. to fully utilize the potential intrinsic features in electronic medical record texts, a cnn-based radical extraction framework is designed. the cnn network is used to extract the implicit radical information inside characters and fine-tune during the training process. the network consists of three parts: radical embedding layer, convolutional layer, and max-pooling layer. all radicals in this paper are obtained from the corpus. 3.4. dictionary embedding clinical texts contain many specialized terms, which are constructed into a term dictionary as features for the model [22]. given a sentence 𝑋 = (𝑥1, 𝑥2, … , 𝑥𝑛) of length n, a feature vector 𝑑𝑖is constructed for each character 𝑥𝑖based on the dictionary d and the context. dictionary d is constructed at the entity level, while the text sequence is based on character-level tagging, so different schemes are used to represent dictionary features. through the construction steps of the dictionary feature vector, given a sentence x, the character embedding 𝑒𝑖 and the feature vector di for each character 𝑥𝑖 are obtained. in common models, the original bi-lstm-crf model only takes 𝑒𝑖 as input. since dictionary features can provide valuable information for chinese electronic medical record named entity recognition tasks, they are integrated into the bert-bi-lstm-crf model. 4. experiments and results 4.1. experimental environment and experimental data set the specific experimental environment is as follows: python was chosen as the development language, the cpu model is amd ryzen 7 4800h, and pycharm was chosen as the development tool. in this study, the ccks2019 dataset was used for experimentation. ccks2019 (china conference on knowledge graph and semantic computing) is an academic conference on knowledge graphs and semantic computing, as well as a chinese-based natural language processing (nlp) competition. the named entity recognition (ner) part of the ccks2019 dataset mainly includes annotated data of entities related to medical fields, including 6 types of entities, namely diseases and diagnoses, surgeries, drugs, anatomical sites, imaging examinations, and laboratory tests, with a total of 1379 data. the specific entity types are shown in table 1. table 1. ccks2019 dataset ccks2019 disease and diagnosis imaging examination laboratory test operation drug anatomical site train 2116 222 318 765 456 1486 test 682 91 193 140 263 447 4.2. evaluation metrics the precision (p), recall (r), and f1-score were used as the evaluation metrics in the experiments, and their formulas are as follows: 𝑃 = 𝑇𝑃 𝑇𝑃+𝐹𝑃 (7) 𝑅 = 𝑇𝑃 𝑇𝑃+𝐹𝑁 (8) 𝐹1 = 2×𝑃×𝑅 𝑃+𝑅 (9) in the formula, tp represents true positive which is the 9 number of positive instances that are correctly predicted as positive, fp represents false positive which is the number of negative instances that are wrongly predicted as positive, and fn represents false negative which is the number of positive instances that are wrongly predicted as negative. f1-score takes into account both precision and recall of a classification model, and is the harmonic mean of precision and recall. 4.3. experimental result an improved feature fusion method for electronic medical record named entity recognition based on bert-bi-lstmcrf is proposed by combining chinese radical and domain dictionary features with deep learning models. by studying the distribution of radicals for different entities in the dataset, the basic features of chinese characters are embedded into the model to enrich the semantic features. three models are compared, and the bert-bi-lstm-crf model with fusion of radical embedding and domain dictionary has improved the performance of chinese electronic medical record named entity recognition. on the ccks2019 dataset, the f1 scores based on radical embedding and domain dictionary features have increased by 4.92% and 6.90%, respectively, compared to the bert-bi-lstm-crf model, indicating that adding radical embedding and dictionary features can effectively improve the performance of the model. table 2. comparison of experimental results of different models model p r f1 bert-bi-lstm-cr 72.25% 71.69% 71.62% radical embedding 78.36% 76.88% 76.54% dictionary embedding 81.28% 78.34% 78.52% 5. conclusion based on the named entity recognition data set provided by ccks2019 (chinese conference on knowledge graph and semantic computing), this paper proposes a chinese named entity recognition method based on bert-bi-lstm-crf model, and introduces the function of side radical and dictionary to improve the recognition ability of the model. specifically, the author adds the partial radicals and dictionary information to the input layer, and inputs them together with the bert representation vector into the bi-lstm layer for feature extraction. then, the model is trained and predicted using crf layer, and the model is tested and evaluated in detail. the results show that the introduction of partial radicals and dictionary information can significantly improve the recognition ability of the model, and the combination of bert-bi-lstm-crf model can further improve the recognition accuracy. in conclusion, the proposed chinese named entity recognition method based on bert-bi-lstm-crf model introduces the functions of side radicals and dictionaries at the same time, which can significantly improve the recognition ability of the model and has good practical value. future research direction can further explore how to apply this method to more complex natural language processing tasks, such as text classification, relation extraction, etc. in addition, other techniques such as transfer learning and confrontation training can be combined to improve the performance and efficiency of the model. references [1] chinchor n.muc-6 named entity task definition (version 2.1) [c]. proceedings of the 6th conference on message understanding, columbia, maryland, 1995:142-194. [2] xiang xiaowen, shi xiaodong, zeng hualin a chinese named entity recognition system that combines statistics and rules [j]. computer applications, 2005, 25 (10): 3. [3] zhang chuanyan, hong xiaoguang, peng chaohui, et al mesh entity activity extraction based on support vector machine and extended conditional random field [j]. journal of software science, 2012, 23 (10): 16. [4] huang z, wei x, kai y. a bidirectional lstm-crf model for sequence labeling [j]. computer science, 2015. [5] strubelle e, verga p, belanger d, etc. fast and accurate entity recognition using iterative expansion convolution [j]. two thousand and seventeen. [6] yan h, deng b, li x, et al. tener: adaptive transformer encoder for named entity recognition [j]. two thousand and nineteen. [7] yang j, teng z, zhang m, et al. combining discrete and neural features for sequence labeling [j]. two thousand and seventeen. [8] wu s, song x, feng z. mect: a cross transform based on multivariate data embedding for chinese named entity recognition [j]. two thousand and twenty-one. [9] liu z, zhu c, zhao t. chinese named entity recognition based on sequence marking method: based on characters or words? [j] . springer press, 2010. [10] yang x, mao k. using comprehensive knowledge to learn multi prototype word embedding from single prototype word embedding [j]. expert systems and applications, 2016, 56 (september): 291-299. [11] zhang y, yang j. net enrollment rate in china using lattice lstm [j]. 2018. chung j, gulcehre c, cho k h, et al. empirical evaluation of gated recurrent neural networks for sequence modeling [j]//arxiv preprint, 2014: arxiv: 1412.3555. [12] li jie, meng ke. mfe-ner: multi feature fusion embedding for chinese named entity recognition [j]. two thousand and twenty-one. [13] devlin j, chang m w, lee k, et al. bert: pre training of deep bidirectional converters for language comprehension [j]. two thousand and eighteen. [14] yu tongrui, jin ran, han xiaozhen, li jiahui, yu ting. review of research on natural language processing pre training models [j]. computer engineering and applications, 2020,56 (23): 12-22. [15] hochreiter s, schmidhuber j, long term and short-term memory [j]. neurocomputing, 1997, 9 (8): 1735-1780. [16] wu zongyou, bai kunlong, yang linrui, et al a review of research on text mining in electronic medical records [j]. computer research and development, 2021, 58 (3): 15. [17] zhao r, wang d, yan r, et al. machine health monitoring based on local feature gated recursive unit networks [j]. ieee industrial electronic trading, 2018. [18] wu s, song x, feng z. mect: a cross transform based on multivariate data embedding for chinese named entity recognition [j]. two thousand and twenty-one. [19] xu c, wang f, han j, et al. using multiple embedding technology for chinese named entity recognition: 10.1145/33577384.3358117 [p]. 2019. 10 [20] zhang yunqiu, wang yang, li bocheng. chinese electronic medical record named entity recognition based on roberta wwm dynamic fusion model [j]. data analysis and knowledge discovery, 222,6 (z1): 242-250. [21] zhang y, yang j. net enrollment rate in china using lattice lstm [j]. two thousand and eighteen. [22] peng m, ma r, zhang q, et al. simplify the use of vocabulary in chinese ner [j]. two thousand and nineteen. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 110 divide-and-conquer template attack on scloud yang zhou* school of cybersecurity, chengdu university of information technology, chengdu 610200, china * corresponding author email: 496056734@qq.com abstract: since shor proposed the quantum algorithm, the traditional public key cryptosystem is facing the risk of being breached. to address this issue, post-quantum cryptography (pqc), also known as anti-quantum cryptography, has been developed. among the various pqc techniques, lattice-based cryptography has emerged as a significant area of research due to its many advantages. this paper studies the leakage of post quantum cryptography cloud on physical devices. discovered that the matrix calculation operation of the scloud algorithm has an impact on key security. based on the characteristics of the curve, we propose a divide and conquer template attack method and introduce convolutional neural network technology for template construction. on the cortex-m3 board, we have demonstrated that the proposed attack can effectively recover the key. keywords: post quantum cryptography; side-channel attack; template attack; convolutional neural networks. 1. introduction with the continuous development of quantum computing technology, the field of traditional cryptography faces unprecedented security threats. in particular, the proposal of shor's algorithm has proven that quantum computers can decrypt widely-used cryptographic systems such as rsa [1] and elliptic curve cryptography (ecc) within polynomial time. in response to this challenge, researchers have been seeking encryption methods that still possess security in the quantum computing environment for the past few decades, known as post-quantum cryptographic algorithms. among the various post-quantum cryptographic methods, lattice-based cryptography is considered one of the most promising research directions. there are several schemes for latticebased cryptographic algorithms, with the main categories being based on learning with errors (lwe) [2] and its derivative forms (ring-lwe [3] and module-lwe [4]). their keys are usually composed of several sets of smaller integer vectors, but with significant differences in the methods of operating these vectors for calculations. ring-lwe and module-lwe typically rely on number theoretic transform (ntt) for polynomial multiplication calculations, while lwe uses matrix multiplication for calculations. scloud is a lattice-based cryptographic algorithm based on the lwe problem, featuring public-key encryption schemes and key encapsulation mechanisms. scloud relies on the equation b=as+e, where a, b, s, and e are various matrices in ℤ𝑞 with q being a power of 2. the dimensions of these matrices, the modulus q, and the distributions for generating errors e and secrets s are parameters of this scheme. although lattice cryptography has theoretically proven its security in the design phase, it may still be susceptible to sidechannel attacks when implemented on physical devices. a recent investigation into side-channel attacks in the nist pqc project has found that post-quantum algorithms have side-channel attack (sca) [5] vulnerabilities in their physical implementations. side-channel attacks were proposed by paul kocher and have since seen many encryption schemes being broken by sca. sca uses physically-measured side-channel information to recover secret information (e.g., encryption keys). side-channel information includes power consumption, electromagnetic radiation, emitted sounds, and execution time during the operation of encryption devices. therefore, sca poses a major threat to the implementation of encryption schemes, especially for embedded device applications. in this paper, we propose a divide-and-conquer template attack based on convolutional neural networks (cnns) [6] for the scloud algorithm. our goal is to attack three points of interest, corresponding to loading a secret value into a register, the actual ℤ𝑞 multiplication, and updating the accumulator with the result. all positions of the s matrix are attacked independently, allowing for easy template creation. we introduce convolutional neural networks to construct the templates, eliminating the need for precise selection of points of interest on the power consumption curve. 2. preliminaries 2.1. template attack template attack [7] is an attack method based on sidechannel attacks, which collects a large amount of leaked information during the cryptographic implementation process and uses statistical analysis techniques for attacks. the core of a template attack is to establish a relationship between specific information leaked during the encryption process and sensitive information. the classic template attack involves building noise templates. this is because, in signal processing, the observed samples are usually modeled as a combination of the intrinsic signal generated by the operation and noise, which can be either intrinsically generated or environmental noise. although for repeated calls of the operation, the signal part is the same, the noise is best modeled as samples randomly drawn from a noise probability distribution, which depends on the operation and other environmental conditions. for an attacker attempting to find the correct hypothesis given a single sample s, the optimal method is to use the maximum likelihood method, i.e., the best guess is to choose the operation that maximizes the probability of the observed noise in s. calculating this probability requires the attacker to accurately model the intrinsic signal and noise probability distribution for each operation. template attacks usually consist of two phases: the template building phase and the attack phase. in the template building phase, the attacker first needs to obtain the execution 111 information of a series of different keys on the same hardware device, such as power consumption, electromagnetic leakage, etc. through in-depth statistical analysis of this information, the attacker can create characteristic templates for that hardware implementation. these templates contain the relationship between specific operations (such as encryption, decryption, etc.) and the observed side-channel information. in the attack phase, the attacker needs to collect side-channel information generated by the victim's hardware device when executing the target key operation. the attacker then compares this information with the previously built templates to determine which template matches the information generated by the victim's device. in this way, the attacker can gradually recover part or all of the target key information. 2.2. convolutional neural networks convolutional neural networks (cnn) are neural networks commonly used in fields such as image recognition, computer vision, and natural language processing. they are mainly composed of convolutional layers, pooling layers, and fully connected layers. cnns were initially designed for image classification. their main principles are local receptive fields and weight sharing. local receptive fields refer to the fact that the convolutional layer, when processing input data, only focuses on the local region of the input data and ignores the influence of other regions. the advantage of this approach is that it can reduce the dimensionality of the input data, making the convolutional neural network more efficient. weight sharing means that in the convolutional layer, the weight parameters in the convolutional kernel are the same for different input data, which can significantly reduce the number of parameters that need to be trained, thus lowering the risk of overfitting. the main advantage of cnns is that they can extract highlevel features from raw data and perform classification on these features. in the context of template attacks, the role of convolutional neural networks (cnn) is primarily as a classifier. in template attacks, cnns are commonly used to map the input side-channel leakage data to specific secret key values. the attacker trains the cnn to learn how to extract specific patterns from the side-channel leakage data, which are associated with the values of the secret key. the attacker can use these patterns to identify the secret key values of the algorithm being executed on the target device. 2.3. scloud scloud is a lattice-based cryptographic scheme based on the lwe problem, which includes public-key encryption and key encapsulation mechanisms. figure 1 describes the encryption process of scloud. the initiator first generates public parameters a from a random seed seeda, samples figure 1. scloud process secret error terms (s and e) from a specific distribution, and calculates the message (b, b), which is sent to the receiver along with the seed. given b and a, neither a classical computer nor a quantum computer should be able to compute the small error terms s and e, due to the lwe problem. the responder then achieves information encryption by generating the ciphertext (b', v) using his temporary error samples and sends it to the initiator. the core operation of scloud is computing b←as + e. without loss of generality, we will focus only on a single column of the secret matrix s, denoted as s, in the following content. therefore, our target operation is b←as + e, trying to recover the small value s from the known a and b based on the leakage of the matrix multiplication as. for a given a and b, the correctness of a guessed s can be checked by examining whether b−as is within the supported range. this is sufficient, as an incorrect s would make the result pseudorandom. algorithm 1 describes the matrix multiplication of scloud, where for each iteration of the outer loop, the accumulator sum is initialized to zero and updated n times through an equal number of ℤ𝑞 multiplications. this implies that for each secret entry s[i], the attacker can exploit portions of n power traces, i.e., each time it is used in line 5, prompting the use of horizontal attacks. algorithm 1 matrix multiplication in scloud 1: 𝐛 ← 𝐞 2: 𝐟𝐨𝐫 𝑖 = 1, … , 𝑛 𝐝𝐨 3: 𝑠𝑢𝑚 ← 0 4: 𝐟𝐨𝐫 𝑗 = 1, … , 𝑛 𝐝𝐨 5: 𝑠𝑢𝑚 ← 𝑠𝑢𝑚 + (𝐀[𝑖, 𝑗] ∙ 𝐒[𝑗] 𝑚𝑜𝑑 𝑞) 6: 𝐛[𝑖] ← (𝐛[𝑖] + 𝑠𝑢𝑚) 𝑚𝑜𝑑 𝑞 7: 𝐫𝐞𝐭𝐮𝐫𝐧 𝐛 2.4. experimental setup we implemented the scloud algorithm on a cortexm3 platform, using the inspector em probe for data acquisition and a lecroy waverunner 640zi oscilloscope with a sampling frequency of 2.5ghz. the collected data was not processed in any way except for alignment. the convolutional neural network environment is based on gpu tensorflow (tensorflow gpu 2.8.0). the operating system is linux, and the gpu is a combination of two nvidia geforce rtx 3080 and four nvdia geforce rtx 2080ti. 3. divide-and-conquer template attack each entry of the subkey s is independently and randomly sampled from the same distribution, so we can attack each position. therefore, we consider a divide-and-conquer template attack. a significant advantage of this approach is that the total number of templates is relatively small, allowing us to preprocess the analysis data. we use cnn to extract features directly from the entire operation curve. for each input s, the distinguisher can calculate a distinguishing score vector based on the obtained information, making it easier to determine the correct target value. the probability of correctly identifying the target value by selecting the element with the highest score (corresponding to the maximum a posteriori probability estimate) is referred to as the first-order success rate. based on the first-order success rate of the subkeys, we use the first-order subkey group success rate to measure the experimental performance, i.e., 112 the probability of successfully selecting the highest scoring value as the correct key for each subkey in the key group. due to the use b – as for verification, a sub key group contains n sub keys and the first-order subkey group success rate has only two possible values, 0 and 1. we independently attack each position of s, but the results are similar for all positions. figures 2 and 3 show the training accuracy and loss function. figure 2. accuracy rate figure 3. loss function from the above two figures, it can be observed that the loss values of the training and validation sets gradually decrease during the training process, indicating that the model is continuously optimized during the learning process. similarly, the accuracy and validation accuracy are steadily improving, further proving that the model's performance gradually improves during the training process. in the later stage of training, the improvement speed of accuracy and loss values slows down, indicating that the model is approaching convergence. for a single matrix calculation, each position participates in the calculation n times, i.e., there are n curves. in this experiment, the algorithm parameter n = 640, which means there are 640 curves for attacking one position and a subkey group contains 640 subkeys. under this condition, the firstorder subkey group success rate is shown in figure 4. from figure 4, it can be seen that the divide and conquer template attack has shown good results in the practical application of attacking key groups, and can recover most of the key groups. the main reason why this attack strategy is effective is because the row size of the key matrix is large, which determines the number of times a single sub key is repeatedly operated on. the higher the value, the lower the security of the key. figure 4. first-order key group success rate 4. conclusion encryption algorithms play a crucial role in large-scale communication protocols. since these protocols operate with ephemeral secrets, the side-channel analysis of their encryption algorithms may potentially be overlooked. in this paper, we demonstrate that the divide and conquer template attack is a feasible method that exhibits good performance in attacking key groups, which means there is a high probability of recovering complete keys. references [1] rivest, r.l., shamir, a. and adleman, l. a method for obtaining digital signatures and public-key cryptosystems. communications of the acm, 21(2), 1978, pp. 120-126. [2] regev, o. on lattices, learning with errors, random linear codes, and cryptography. journal of the acm (jacm), 56(6), 2009, pp. 1-40. [3] peikert c, regev o, stephens-davidowitz n. pseudorandomness of ring-lwe for any ring and modulus. inproceedings of the 49th annual acm sigact symposium on theory of computing 2017 jun 19 (pp. 461-473). [4] chunhuan z, zhongxiang z, xiaoyun w, guangwu x. distinguishing lwe instances using fourier transform: a refined framework and its applications. cryptology eprint archive. 2019. [5] erdfelder e, faul f, buchner a. gpower: a general power analysis program. behavior research methods, instruments, & computers. 1996, pp. 1-11. [6] albawi s, mohammed ta, al-zawi s. understanding of a convolutional neural network. icet 2017, pp. 1-6. [7] chari, s., rao, j. r., & rohatgi, p. template attacks. in cryptographic hardware and embedded systems-ches. 2002. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 10 review of rssi-based positioning algorithm and accuracy tianhao wu* school of mechanical engineering & automation, bei hang university, beijing, 100191, china * corresponding author: email: 18374174@buaa.edu.cn. abstract: the demand for high-precision, low-cost, and widely used wireless sensor network positioning technology continues to increase, and the algorithms for positioning using wireless sensor networks have been suffering from the problem of insufficient accuracy. this paper introduces and analyzes the steps and principles of the rssi algorithm, which has low hardware requirements and can achieve high accuracy positioning, and describes the mathematical model and related algorithms used. finally, we conclude and provide an outlook on the future and development of rssi. keywords: rssi; positioning; accuracy. 1. introduction 1.1. wsn positioning wireless sensing technology is a rapidly developing technology of information and communication. currently, the computing and communicating capabilities of wireless sensors are gradually increasing, therefore, wsn, which is composed of multiple wireless sensors, are being more widely used, and their use scenarios have been expanded. an important application is the usage of wsn for positioning, such as satellite positioning and cell phone positioning have become very common, also, various types of positioning methods are used in military, transportation and production [1-2]. the common application scenarios of wireless sensor network localization today are mainly outdoor wide-area localization, such as the localization of vehicles and cell phones, which usually do not have high accuracy; in scientific researches, one of the popular research directions is the positioning of mobile robots and robot crowds, which usually target the positioning of two-dimensional planes. for positioning needs in indoor scenarios, higher positioning accuracy and lower system cost are often required, so positioning solutions used in outdoor environments are not suitable. indoor localization techniques and localization algorithms have become one of the current research hotspots in wireless sensing technology. 1.2. positioning technologies and algorithms there are multiple ways of classifying algorithms for positioning techniques, one of the common ones is based on whether the distance between nodes needs to be measured, which divides the algorithms into positioning algorithms based on ranging and positioning algorithms without ranging, the former includes toa (time of arrival), tdoa (time difference of arrival), aoa (angle of arrival), rssi (received signal strength indication) and other algorithms, while the latter includes the center-of-mass method, indeterminate algorithm, apit, dv-hop and other algorithms. these algorithms have advantages and disadvantages. this paper analyzes and discusses the rssi-based positioning algorithm, which is mainly because that the rssi algorithm meets the low hardware requirements and meanwhile its own characteristics allow it to achieve high accuracy positioning under suitable conditions, which is in line with the development trend of wsn positioning of low power consumption and low cost. in addition, most of today's research on rssi localization has been improved on the basis of the original rssi algorithm, which has more optimization directions from the principle, which are analyzed and classified in this paper to provide some entry points and help for others' research. 2. rssi-based positioning algorithm rssi-based positioning algorithm could be divided into four main steps: receive the signals sent by each node. calculate the signal attenuation during propagation based on the signal strength values of the transmitting and receiving nodes. obtain the distance by using the model equation. calculate the location of the node based on the distance using the positioning algorithm. it can be concluded that the rssi algorithm is only used for accurate distance measurement in the complete positioning process, and it is combined with other positioning algorithms to derive the exact position of the node. 2.1. signal attenuation model the rssi algorithm is an algorithm for distance measuring using the degree of signal attenuation, which requires the use of a signal attenuation model equation to calculate the distance. for empirical models, the more realistic shadowing model is generally used, and its expression is expressed as follow: pr(d) = pr(d0) – 10nlg( 𝑑 𝑑0 ) + e (1) where d is the distance between the transmitting node and the receiving node, pr is the signal power received by the receiving node, d0 is the reference distance (generally taken as 1 2m), n is the signal loss factor (generally taken as 2 4), e is a zero-mean gaussian random variable representing the interference such as reflection and interference received by the signal during the propagation process. 11 2.2. localization algorithm localization using rssi requires a combination of corresponding localization algorithms. common localization algorithms include trilateral localization algorithm, weighted center-of-mass algorithm, etc. 2.2.1. trilateral localization algorithm assuming that the coordinates of the three known nodes a, b, and c are (x1, y1), (x2, y2) and (x3, y3), and the coordinate of the unknown node p is (x, y), the distances from p to the three known nodes are d1, d2, d3, a system of equations can be established as follows: { 𝑑1 = √(𝑥1 − 𝑥) 2 + (𝑦1 − 𝑦) 2 𝑑2 = √(𝑥2 − 𝑥) 2 + (𝑦2 − 𝑦) 2 𝑑3 = √(𝑥3 − 𝑥) 2 + (𝑦3 − 𝑦) 2 (2) solving this system of equations yields the coordinates of point p. 2.2.2. weighted center-of-mass algorithm in the same assuming scenario as above, according to the general center-of-mass algorithm, introduce a weighting factor k, a system of equations can be created as follows: { 𝑥 = 𝑥1 (𝑑1 + 𝑑2) 𝑘 + 𝑥2 (𝑑2 + 𝑑3) 𝑘+ 𝑥3 (𝑑1 + 𝑑3) 𝑘 1 (𝑑1 + 𝑑2) 𝑘 + 1 (𝑑2 + 𝑑3) 𝑘+ 1 (𝑑1 + 𝑑3) 𝑘 𝑦 = 𝑦1 (𝑑1 + 𝑑2) 𝑘 + 𝑦2 (𝑑2 + 𝑑3) 𝑘+ 𝑦3 (𝑑1 + 𝑑3) 𝑘 1 (𝑑1 + 𝑑2) 𝑘 + 1 (𝑑2 + 𝑑3) 𝑘+ 1 (𝑑1 + 𝑑3) 𝑘 (3) 3. improvement of algorithm accuracy 3.1. causes of errors based on the analysis of the steps and principles of the rssi-based localization algorithm in section 2, the causes of various aspects that lead to localization errors could be derived. in steps a and b, signals are sent and received through wireless sensors, and propagation losses are inevitably generated during the propagation of electromagnetic wave energy. in addition, this process is subject to interference caused by environmental factors such as temperature and obstacles, resulting in noise and other errors in the data. in step c, a model equation is fitted to obtain the distance, and the accuracy of the fit of the model equation determines the accuracy of the final positioning. in step d, it is necessary to use the positioning algorithm that uses distance for calculation, and then the accuracy of the positioning algorithm directly affects the accuracy of the calculation results. 3.2. filtering filtering is generally an optimization process that reduce the noise and fluctuation of the initial signal in the whole positioning process, so that the obtained signal and the calculated attenuation are more reliable and accurate. commonly used filtering algorithms include mean filtering, gaussian filtering and kalman filtering, etc. mean filtering is simpler to calculate but the filtering effect is not ideal; gaussian filtering algorithm is more complicated, but the effect is obvious; kalman filtering is more suitable for the optimization of motion nodes. in recent studies, some new filtering algorithms have also been used in optimization, such as particle filtering, set-membership filtering, etc. the positioning process can be optimized by using various filtering methods. lu et al introduced the rof model to optimize and improve the gaussian filter, which solved the problem that the general gaussian filter could not deal with the numerical error caused by the fluctuation area of high probability data, and made the rssi smoother. feng et al used particle filter to observe the position of moving nodes, and then optimized the results of particle filter with kalman filter to achieve the prediction of the motion trajectory of moving nodes and real-time positioning. wang used set-membership filtering and combined with sequential fusion algorithm to improve the computational efficiency and enable more accurate estimation and localization of moving node positions. 3.3. algorithm optimization the rssi algorithm itself relies on empirical model equation for computation, and the fitness of the model affects the accuracy of the algorithm. therefore, an entry point for improving the algorithm arises. in some studies, researchers perform different ways of optimization in this step to obtain as accurate distance values as possible when converting the rssi values sent by nodes into distance calculations. anbalagan loganathan et al. designed an algorithm to filter rssi values using a smoothing metric, establish a curve smoothing formula for the case of uniform node motion, and select the appropriate smoothing value through multiple experiments to estimate the positioning of moving objects. wu et al introduced a node coverage model and proposed a multi-objective optimization model considering obstacles to improve the effective coverage of wsn. chen et al proposed a context-adaptive rssi localization method for indoor complex environments by selecting multiple fitting models, segmenting the filtered data for heterogeneous fitting and calculating the fitting error separately, and selecting the segmentation point with the smallest error as well as the fitting model. these methods improve the adaptability to different environments. another aspect is the optimization of the localization algorithm. since positioning using rssi requires the assistance of other localization algorithms, there are also many studies that try to improve the accuracy of the localization calculation process. the study by jiang et al improved the weighted center-of-mass algorithm in the localization phase by using the exponential power of the inverse of the distance as the weight, while using the idea of iteration to maximize the node coverage, which significantly improved the localization accuracy. nie et al studied the smoothness and distribution properties of rssi, noting that the probability density function of rssi approximates a gaussian distribution, and used bayesian estimation to obtain each weight in the discrete space and calculated the position with the largest weight as the localization result. 3.4. algorithm fusion rssi itself has low hardware requirements, but is also susceptible to environmental influences. when hardware conditions allow, rssi and other algorithms can be combined to complement each other to improve the localization accuracy. for example, zhang et al used a gauss-markov migration model in the face of 3d spatial localization, using rssi for close-range ranging and toa for long-range ranging to compensate for the problem that toa algorithm is prone to excessive errors and rssi accuracy is greatly affected by the environment when used alone. wang combined aoa and 12 rssi algorithms, and after using various ways to accurately obtain the data obtained from aoa parameters, the kalman filter is used to combine the aoa and rssi information to complete the fusion localization. 3.5. advanced algorithmic techniques with the development of computers, information technology, advanced algorithms, such as computer vision and neural networks, are becoming popular research directions in the computer and information industries and are also able to be applied in wireless sensing and positioning algorithms. for example, bp neural networks were used to optimize rssi ranging algorithms by yao et al, a research group that proposed a ranging method that applied a bp neural network model based on the k-means clustering algorithm, divided the distance intervals for the sample data during ranging, fed the classified data into the neural network, built the model and calculated the measured distances. lou first proposed in her study a propagation model environment parameter adaptive strategy and cluster-based adaptive perception, then proposed a new optimization scheme based on machine learning, joint adaptive algorithm, solving the problem that the general improvement algorithm cannot be applied to the multiple ranging and positioning model and effectively improve the accuracy. jiang et al chose image processing as the optimization method, then the original signal was subjected to gaussian filtering, kalman filtering, after a series of processing such as fingerprint library establishment and k-d tree establishment, the initial localization points are screened out by the improved knearest neighbor algorithm, and then image processing is used for localization, which achieves the same accuracy as traditional rssi positioning with more nodes in the case of fewer nodes and reduces the equipment requirements and algorithm complexity. irsan taufik ali et al selected the deepfi-lorain technique to train the rssi values and use the resulting model for location prediction in dynamic environments, which reduces the environmental impact during data collection and improves the localization accuracy. 4. conclusion the rssi-based positioning algorithm has considerable application prospects and conditions for promotion, but due to the characteristics of the algorithm itself, its accuracy problem makes it not yet competent for higher precision work and applications. it is notable that many researchers have improved the rssi-based positioning algorithm from several perspectives. with the development of technology and the emergence of new algorithms, different kinds of improvements and optimizations are making the ranging accuracy of rssi and the positioning accuracy with the application of rssi more accurate, and optimized algorithms with higher accuracy and more application cases will definitely appear in the future. references [1] ou, s. q. & chen, j. (2013). the research overview and development prospects of wireless sensor network. computer knowledge and technology (33),7418-7419. [2] cao, a. l., zhang p. & liu, t. (2017). review on localization technology of wireless sensor networks. journal of yichun college (06),15-22 [3] tang, m. s. (2018). overview of wireless sensor network application technologie. science & technology information (36),42-43. [4] liu, b. n. (2018). indoor space location method based on zigbee technology, unpublished master’s dissertation, beijing institute of technology, beijing. [5] zhang, b. s., tong, z. y., tang, s. f., tong, m. m. & xu, c. l. (2018). overview of rssi based indoor positioning technologies. computer era (07),1-4+8. [6] han, l. (2021). research on positioning technology based on joint filter fusion prediction, unpublished master’s dissertation, chongqing university of posts and telecommunications, chongqing. [7] lu, z. z., lu, x. p., ma, l. t. & zhang, h. (2019). gaussian filter rssi ranging algorithm based on rof model. journal of navigation and positioning (01),54-58. [8] feng, f., wu, c, & chen, j. h. (2020). rssi-based indoor localization algorithm combining with particle filter and kalman filter. technology of iot & ai (05),24-29. [9] wang, t. t. (2021) research on rssi indoor localization algorithm based on set-membership filtering, unpublished master’s dissertation, shanxi university, taiyuan, shanxi. [10] loganathan, a & ahmad, n. s. (2020). indoor localization of a mobile object via zigbee-based rssi. international journal of electrical and electronic engineering & telecommunications(2), 100-104. [11] wu, h., liu, z. & hu, j. (2021) multi-objective optimization of rssi sensor deployment considering obstacles for indoor positioning. geomatics and information science of wuhan university, 1-12. [12] chen, y. x., liu, r. r, chen, y. q, wang, s. q. & jiang, x. l. (2017). a context-adaptive segmentation heterogeneous rssi fitting positioning method. computer engineering & science (07),1288-1294. [13] jiang, w. x., liu, d., zhao, s. r., chen, b. z. & wei, s. f. (2022). optimization of centroid localization algorithm for wireless sensor networks based on rssi. computer systems & applications (06),294-299. [14] nie, d. w., zhu, h., wu, f. & han, x. f. (2022). weighted localization method based on rssi probability distribution with bayesian estimation. gnss world of china (02),52-59. [15] zhang, l. p., yang, z. y., zhang, s. l. & yang, h. h.(2019).three-dimensional localization algorithm of wsn nodes based on rssi-toa and single mobile anchor node. journal of electrical and computer engineering. article id 4043106. [16] wang, j. c. (2018). research on fusion localization algorithm based on aoa and rssi. unpublished master’s dissertation, chongqing university of posts and telecommunications, chongqing. [17] yao, j., zhen, z. y. & ma, y. j. (2021) rssi ranging optimization algorithm based on bp neural network. chinese journal of radio science (04), 663-669. [18] lou, x. y. (2019). research on rssi indoor environment perception and location technology based on machine learning. unpublished master’s dissertation, xidian university, xi’an, shaanxi. [19] jiang, w. b. & huang, c. h. (2021). indoor localization algorithm based on image processing and rssi signal. transducer and microsystem technologies (07),126-129+133. [20] irsan taufik ali,abdul muis & riri fitri sari.(2021).a deep learning model implementation based on rssi fingerprinting for lora-based indoor localization. eureka: physics and engineering (01), 40-59. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 3, 2023 1 one-shot based knowledge graph embedded neural architecture search algorithm wenli li, gang wu* school of computer and engineering, northeastern university, shenyang 110819, china * corresponding author: gang wu (email: wugang@mail.neu.edu.cn) abstract: the quality of embeddings is crucial for downstream tasks in knowledge graphs. researchers usually introduce neural network architecture search into knowledge graph embedding for machine automatic construction of appropriate neural networks for each dataset. an existing approach is to divide the search space into macro search space and micro search space. the search strategy for micro space is based on one-shot weight sharing strategy, but it will lead to all the information obtained from the previous supernet training is discarded and the advantages of one-shot algorithm are not fully utilized. in this paper, we conduct experiments on common datasets for two important downstream tasks of knowledge graph embedding entity alignment and link prediction problems, respectively-and compare the search performance with existing manually designed neural networks as well as good neural network search algorithms. the results show that the improved algorithm can search better architectures for the same time when experiments are performed on the same dataset; the improved algorithm takes less time to search architectures with similar performance. also, the improved algorithm searched the model on the dataset due to the human optimal level. keywords: one-shot algorithm; weight sharing strategy; knowledge graph embedding. 1. introduction knowledge graph (kg) is a method to represent and store things and their relationships through graph models. however, the information contained in a knowledge graph is often incomplete, and as knowledge accumulates, many new knowledges will be generated. at this time, the problems of difficult inference of the relationships between entities and severe data sparsity in knowledge graphs are constantly highlighted. this brings inconvenience to the further application of knowledge graphs in industrial production. in recent years, knowledge graph embedding (kge), which is the core technology of knowledge representation, has made new research breakthroughs, and the main technical implementation route of kge is to use the translation invariance of word vectors to embed the high-dimensional entities and relations in the knowledge graph into the lowdimensional vector space, so that the semantic reasoning process of entities and relations can be converts the semantic inference process of entities and relations into the computation of distances between objects in the vector space. the interstellar [6] algorithm greatly improves the search efficiency of nas and the performance of searching to architectures. however, the interstellar algorithm initializes the microarchitecture parameter probability distribution matrix by taking the mean value when searching for the corresponding microarchitecture for each microarchitecture. this algorithm design makes it difficult to reuse the information related to the microarchitecture learned in each round. considering that the microarchitecture is a supernet with shared parameters, a one-time evaluation strategy is used. inspired by this, we consider using the probability distribution matrix of microarchitecture parameters updated in the previous round to initialize the information for the next round to better utilize the information from the previous round and improve the search efficiency. in this paper, we first introduce the current research status of algorithm-related theories, next introduce the idea of search space partitioning, and provide a specific description of algorithm improvement, ideas and algorithm flow, and describe the analysis of experimental setup and experimental results. the performance of the improved algorithm is compared with the architecture searched by the original algorithm and the excellent architecture designed by human hand, and finally a summary and a discussion of future work are given. 2. related work 2.1. knowledge graph embedding (kge) the main research objective of the kge task is to map the entities and their relations in a knowledge graph representing a high-dimensional space one by one into a low-dimensional continuous vector space, which is also called representation learning in knowledge (rlk). a knowledge graph is composed of a triad representing entities and relationships. therefore, kge models can be divided into triplet-based models and path-based models. in terms of organization, knowledge graphs are complex network structures consisting of entities and relationships, and researchers have also proposed some graph-based models (gcn-based). triplet-based models interpret the interactions between triads in a different way, path-based models can learn both relations and entities and relations on the path, and graph-based models can make full use of graph structure features to provide more accurate and explanatory semantic embeddings for entities and relations. 2.2. neural architecture search (nas) with the success of deep learning, neural networks are used in more and more fields, different network architectures are developed and applied to different fields, neural networks become more and more complex, and the difficulty of designing neural networks manually is increasing. the 2 concept of neural architecture search (nas) was first introduced in 2017.nas focuses on how to make machines automatically search for neural networks with better performance faster. currently, neural networks built using nas methods have outperformed neural networks designed by humans on these tasks for tasks such as image classification, target detection, and semantic segmentation. there are three main research directions of nas [2]: how to construct a complete and efficient search space, how to search neural networks quickly, and how to evaluate the performance of the searched neural networks more scientifically. the relationship between the search space, search strategy, and performance evaluation strategy is shown in figure 1. figure 1. example of a generic nas algorithm idea the search strategy selects one or several architectures from a predefined search space a. these architectures are passed to the performance evaluation module, which feeds the performance evaluation scores of these architectures to the search strategy to guide the optimization of the next search. we first consider the search space, which should be complete so as to ensure that the search space contains the optimal architectures, but when the search space is too large, the search process consumes a lot of time and computational resources, and it is difficult to find the optimal architectures. therefore, researchers generally tailor specific search spaces for specific tasks to improve the search space according to the characteristics of the tasks to be solved. the search strategy and performance evaluation strategy are often closely related, with the search strategy describing the way we search the search space and the performance evaluation strategy describing the way we evaluate the performance of the searched architecture and guide the next architecture search process. currently, there are two main mainstream approaches for nas, a stand-alone evaluation strategy (stand-alone method) and a one-time evaluation strategy [3] (one-shot method). the difference between them mainly lies in whether the architectural parameters are shared among different architectures in the search space. the independent evaluation strategy starts from the initial state to train and evaluate each model, which is a more reliable evaluation method because of the accurate evaluation results. the core idea of one-time evaluation lies in parameter share, which treats the search space as a supernet, and different neural networks as subnets on the supernet, and different subnets share the parameters of the supernet, this method avoids training each model from scratch and is more efficient, but the accuracy of evaluation decreases as the search space increases, therefore, the one-time evaluation strategy is mostly used on small search spaces. 3. introduction of preliminary algorithms the networks commonly used to solve the knowledge graph embedding problem are graph neural network (gnn) and recurrent neural network (rnn) [4]. here we use recurrent neural network, which is good at processing sequential data, as the target architecture. in this problem, the recurrent neural network obtains the embedding of 𝑠1, 𝑟1 by iteratively processing 𝑠𝐿, 𝑟𝐿. the input of the architecture at each step t is 𝑠𝑡,𝑟𝑡 , ℎ𝑡−1, and the output is 𝑣𝑡,ℎ𝑡. the whole architecture can be defined as the following recursive function. [𝑣𝑡 , ℎ𝑡] = 𝑓(𝑠𝑡 , 𝑟𝑡 , ℎ𝑡−1), ∀𝑡 = 1…𝐿 (1) where, ℎ𝑡 is the implicit state in the architecture, initially ℎ0 = 𝑠1. the output 𝑣𝑡 is used to predict the tail entity 𝑜𝑡. in the search process, if all the parameters to be searched are put into one search space, the search space will be quite huge. if a stand-alone evaluation method is used to evaluate the architecture, it will give accurate feedback on the performance of the architecture, but it will take a long time and consume huge resources [5]. if a one-time evaluation method is used to evaluate the architectures, an accurate performance evaluation of the candidate architectures cannot be obtained because of the huge search space.the interstellar algorithm [6] proposes to define all possible architectures as a search space and divide the entire search space into a macroscopic search space and a microscopic search space according to the degree of impact on information flow. the results of the delineation are shown in the following table 1. there are about candidate architectures in the search space before the search space partition, which is quite large and the search process is extremely computationally intensive. there are architectures in the macro space and architectures in the micro space after the partition. it can be seen that after the partitioning, both the macroscopic space and the microscopic space achieve an exponential decrease in size compared with the space before the partitioning. the macroscopic search space is larger and uses an independent evaluation strategy, while the microscopic space is smaller and uses a one-time evaluation strategy. table 1. description of macrospace and microspace division macro-level micro-level connections combinators activation weight matrix ℎ𝑡−1, 𝑂𝑠, 0, 𝑠𝑡 +,,,gated identity, tanh, sigmoid {𝑊𝑖}𝑖=1 6 . 𝐼 4. algorithm introduction the current mainstream evaluation methods for neural network architectures are independent evaluation methods and one-time evaluation methods. the independent evaluation methods start from initialization to train each subnet and get their performance information, but this will bring huge time overhead and computational cost. to solve this problem, researchers have proposed the one-time evaluation method. the core idea of the one-time evaluation method is that the subnets share the parameters of the supernet and trade accuracy for speed. this strategy greatly reduces the time of the whole process and becomes the current 3 mainstream evaluation strategy. in order to take full advantage of the one-shot algorithm in microspace, we make the following improvements to the instellar algorithm. in the original algorithm, when searching for the corresponding micro-architecture for each macroarchitecture, the micro-architecture parameter probability distribution matrix is initialized using the mean value method. in order that each search for microarchitecture can utilize the information from the previous round, we choose to initialize the matrix with the updated probability distribution matrix of microarchitecture parameters from the previous round for the next round. the flow of our algorithm is roughly. algorithm 1 initialize the macro-architecture parameter probability distribution matrix 2 sample the macro architecture 3 initialize the micro-architecture parameter probability distribution matrix with the mean if it is the first round; if it is not the first round, initialize it with the microarchitecture probability distribution matrix obtained in the previous round. 4 neural network training, update the micro-architecture probability distribution matrix by back propagation 5 sampling micro-architecture 6 update the macro-architecture parameter probability distribution matrix 7 repeat steps 2-6 until a suitable architecture is searched 5. experiment 5.1. experimental setup we use a biased random walk approach to sample paths, using two basic tasks in knowledge mapping, entity alignment and link prediction, as applicable scenarios. ranking-based mrr, hit@1 and hit@10, are used as task metrics. the experiments are run on a single geforce rtx3090 64gb using the pytorch framework [7]. 5.2. introduction to the experimental dataset for the entity alignment task, we chose three crosslanguage and cross-database datasets, which are subsets of dbpedia and wikidata, namely dbp-wd, en-fr, and ende. for each dataset, by divided into normal and dense versions. the normal version of the dataset samples the triples with degrees that approximate the nodes in the original knowledge graph. this sampling method makes the dataset more realistic and closer to the original knowledge graph. the dense version of the dataset randomly removes the entities with lower degrees from the original knowledge graph. this version of the dataset more closely resembles the dataset used by existing methods [8]. for the link prediction task, the commonly used datasets are wn18 and fb15, but they are prone to test leakage through inverse relations. that is, the test triples often contain many triples obtained by performing inverse operations on the triples in the training set. to solve the problem of link leakage, datasets wn18-rr and fb15k-237, which are subsets of datasets wn18 and fb15, have been created without inverse relations. table 2. dataset version data source dbp-wd en-de en-fr dbpedia wikidata english french english german normal version number of relationships 253 144 211 177 225 118 number of entities 38421 40159 36508 33532 38281 37069 dense version number of relationships 220 135 217 174 207 117 number of entities 68598 75465 71929 66760 56983 59848 table 3. data sets without inverse relations dataset number of entities number of relationships number of entity pairs in the training set number of entities pairs in the validation set number of entity pairs in the test set wn18rr 40943 11 86835 3034 3134 fb15k37 14541 237 272115 17536 20466 5.3. experimental results and analysis the metrics commonly used for the evaluation of knowledge graph embedding tasks are mrr, hit@1, hit@10, etc. since the performance of an architecture is objective and does not vary substantially with the measurement metrics, next, we perform the result comparison with hit@1 as the main evaluation metric for the search process demonstration. for a fair comparison, we take the same path sampling scheme and data partitioning scheme on each dataset. the following line graph gives a comparison of the performance of the original algorithm and the improved algorithm searching out the architecture on different datasets. the solid blue line represents the architecture searched by the original algorithm, the dashed green line represents the improved algorithm, and the red implementation represents the optimal neural architecture currently designed by humans on this dataset. as can be seen from the line graph, the performance of the optimal architectures searched in the dbp_wd, en_de datasets after adding the clustering algorithm are close to or higher than the performance of the optimal architectures searched by the original search algorithm. among them, the performance of the optimal architecture searched in the dense version of dbp-wd dataset is better than the performance of the current human hand-designed architecture. the algorithm searched the first thirty search rounds and found architectures that were very close to the performance of the human hand-designed optimal architecture. this demonstrates that our improvement of the search strategy is effective and enables the algorithm to search for better performing architectures based on the original 4 search architecture. figure 2. experimental results and demonstration 6. conclusion and outlook knowledge graph embedding is a very important form of knowledge graph representation. existing knowledge graph embedding models have limited scalability and are required for both downstream tasks and datasets of knowledge graphs. existing approaches combine neural network architecture search with knowledge graph embedding. we further perform algorithm optimization based on the interstellar algorithm to improve the initialization method of the probability distribution matrix of microscopic parameters. after validation on different downstream tasks and datasets of the knowledge graph, our improvements are found to be effective and improve the search efficiency. in reference [7], researchers applied neural architecture search techniques to find scoring functions for knowledge graph tasks, and in the future, if we can combine the searched neural networks with the searched scoring functions, we believe that we can not only solve the tasks in knowledge graphs better, but also improve the automation to a great extent. most previous studies on knowledge graph embedding learning have focused on triad-based models, in this paper we emphasize the use of relational paths to learn from knowledge graphs, using neural networks to balance short-term and long-term information in the paths, and if this approach is applied to inference tasks of knowledge graphs it is believed that it will also perform well. references [1] barret zoph, vijay vasudevan, jonathon shlens, et al. learning transferable architectures for scalable image recognition [a], ieee conference on computer vision and pattern recognition[c], conference on computer vision and pattern recongnition press, 2018: 8697-8710. [2] thomas elsken, hendrik jan, and frank hutter. neural architecture search: a survey[j]. j mach learn res, 2019, 20: 55:1-55:21. [3] youhei akimoto, shinichi shirakawa, nozomu yoshinari,et al. adaptive stochastic natural gradient method for one-shot neural architecture search. in international conference on machine learning [j], 2019:171-180. 5 [4] hanxiao liu, karen simonyan, and yiming yang. yao: differentiable architecture search[r]. in international conference on learning representations ,2019. [5] auer s, christian bizer, georgi kobilarov, et al. dbpedia: a nucleus for a web of open data[a]. iswc/aswc [c], 2007:722-735. [6] yongqi zhang, quanming yao, lei chen. interstellar: searching recurrent architecture for knowledge graph embedding[a]. h larochelle. advances in neural information processing systems[c], curran associates, inc: 2020: 1003010040. [7] quanming yao, ju xu,weiwei tu, et al. efficient neural architecture search via proximal iterations. american association for artificial intelligence press[c], 2020:66646671. [8] lingbing guo, zequn sun and wei hu. learning to exploit long-term relational dependencies in knowledge graphs. international conference on machine learning [j], 2019:25052514. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 2, 2022 21 research on the impacts of philanthropy pressure on enterprise financial performance yuer hong 1, * 1 finance, east china university of political science and law, shanghai, 201600, china. * corresponding author: email: 13365958862@163.com. abstract: with the spreading of the coronavirus (covid-19), donations from all sectors of society are also increasing, of which enterprises are undoubtedly the main donators. why do profit-seeking firms still engage in philanthropy during the covid-19 pandemic? based on the panel data of china's a-share listed companies from 2014 to 2020, this paper empirically tests the relationship between philanthropy pressure and enterprise financial performance from the perspective of organizational fields. the result shows that the philanthropy pressure from the region enhances enterprise performance, and the level of legal region environment can negatively moderate this relationship. the philanthropy pressure from the industry can improve the enterprise performance, and the enterprise visibility will positively moderate this relationship. keywords: philanthropy pressure; financial performance; organizational fields; legal environment; enterprise visibility. 1. introduction since december 2019, covid-19 began spread rapidly throughout china and worldwide. people from all sectors of society in china continued to donate money and materials to fight covid-19 in different ways and through various channels, and enterprises are undoubtedly the main donators. for the profit-oriented enterprises that pursue the maximization of shareholders' equity, charitable donation expenditure is a cost burden. the altruistic behavior of charitable donation seems to be contrary to the profit-seeking purpose of enterprises. so why do most enterprises still participate in charitable donations during the covid-19 pandemic period? especially during which time period that their business may not be good? on the one hand, according to porter and kramer’s (2006) theory of strategic philanthropy, charitable giving is not only responsible for the stakeholders, but also can help the government solve social problems. since the enterprise could take this opportunity to draw closer to the government, which is beneficial to the acquisition of key external resources, by improving its corporate reputation and obtaining competitive advantages (gao and hafsi 2017). on the other hand, an opposite view represented by friedman (2007) believes that charitable donations occupied a part of the resources that could have been exchanged for profits, causing the loss of resources and violating the fundamental purpose of pursuing maximum profits (schaltegger and burritt 2018; ohalehi 2019; masulis and reza 2014). currently, the academic community has not formed a unified argument on whether and how charitable donations improve corporate performance. galaskiewicz's study of the philanthropic cities of minneapolis and st. paul found that the philanthropic giving of firms within regions and industries create isomorphic institutional pressures, which makes firms imitate the behavior of other firms to engage in philanthropic giving, resulting the phenomenon of philanthropic "contagion" between organizations. therefore, philanthropic giving within a certain region or industry will lead to philanthropy pressure on firms, which will encourage firms to imitate philanthropic giving to influence firms’ performance, and on the other hand, other firms in the region or industry will gain more resources from the government and obtain consumer recognition through philanthropic giving, which will intensify market competition and affect firm performance as well. although both region and industry philanthropy pressure have an impact on firm performance, the mechanisms behind these impacts are different: when faced with region philanthropy pressure, firms pay more attention to the government, which is the major stakeholder in the region. while when faced with industry philanthropy pressure, firms are more likely to focus on industry stakeholders, customers and suppliers. based on this, this paper proposes two moderating factors: legal environment level related to regional factors, and enterprise visibility related to industry factors, to research the impact of philanthropy pressure on corporate performance in different organizational fields. the main contribution of this paper is that (1) taking the environment of the organization as the main research perspective and focusing on the region and industry, the two most direct and adjacent organizational fields of the enterprise, which can make a more complete and detailed study of the impact of philanthropy pressure on corporate performance. (2) the study of the relationship between charitable giving and corporate performance also fails to integrate the dynamic environment in which enterprises operate into the study, and fails to focus on the impact of pressure from other enterprises and their external stakeholders, such as the government, the public, and industry, on corporate performance. this paper links the firm’s environment and the firm's performance to improve the existing theoretical shortcomings. 2. literature review current researches on charitable giving mainly focus on the influencing factors of charitable giving and the relationship between charitable giving and corporate performance. the influential factors can be divided into three categories: institutional level, organizational level and individual level (aguinis 2012). at the institutional level, it is found that government intervention and corporate political connection 22 (zhang, marquis, and qiao 2016; xu and liu 2020; chan and feng 2019) can affect charitable giving; the organizational level researches analyze the purpose of charitable giving is to improve corporate image (ballings, mccullough, and bharadwaj 2018; gautier, and pache 2015) and access government resources (gao and hafsi 2017; cull et al. 2015); and the individual level researches focus on the influence of managers' gender, place of birth, and values on charitable giving (byron and post 2016; lin et al. 2018; luo, xiang, and zhu 2017; ben selma, yan, and hafsi 2020). the relationship between philanthropic donation and corporate performance has the possibility of positive correlation (plewnia and guenther 2017; lev and radhakrishnan 2010), negative correlation (cowan et al. 2013; schaltegger and burritt 2018; ohalehi 2019; masulis and reza 2014) and other correlation (wang et al. 2008; barnett and salomon 2012; brammer and millington 2008; gao, yang, and hafsi 2019), so the conclusions are inconsistent. after analyzing these researches at home and abroad, the following deficiencies were found: (1) existing researches are inconclusive on whether charitable giving can improve corporate performance. (2) from the influencing factors of charitable giving, it can be seen that past researches mainly focus on factors such as political connections and the institutional environment, but few researches have been conducted on the moderating role of industry and regional factors in the organizational fields. therefore, this paper expands the research objects, focusing on the impact of pressure from the main regional stakeholder government and the main industry stakeholder suppliers and customers on corporate performance. it also chooses the level of legal environment and enterprise visibility as the moderating factors. 3. research hypothesis and research design 3.1. research hypothesis this paper analyzes the impact of region and industry philanthropy pressure on corporate financial performance and the moderating effect of the level of legal environment and enterprise visibility on it. there are two sources of philanthropy pressure in a region: first, the attention and recognition of the major regional stakeholder government to charitable behavior will form institutional strength, thus creating institutional pressure on companies to make charitable donations; second, the government's recognition of corporate philanthropy will tilt resources in favor of companies actively making charitable donations, and the increased competitiveness of competitors will bring competitive pressure. under these two pressure mechanisms, market competition intensifies, and firms would respond strategically to improve their performance. as adam smith pointed out in the wealth of nations: "monopoly is the worst enemy of good management, so economists believe that competition is an effective way to improve business performance." past scholars have also confirmed through various studies that the fiercer the market competition, the faster the performance improvement (holmstrom 1982; baggs and de 2007; giroud and mueller 2011; grossman and hart 2004; nickell 1993; grosfeld and tressel 2002; januszewski, koke, and winter 2002). similarly, the impact of industry philanthropy pressure on corporate financial performance is consistent with the region philanthropy pressure mechanism, except that the industry's main stakeholders are customers and suppliers. 3.1.1. the main effect of region and industry philanthropy pressure when companies in a region make charitable donations, they receive attention and recognition from the government, which is the main stakeholder of the region, and receive resource compensation or subsidy income from the government (gao and hafsi, 2017). therefore, there is a strong tendency for firms to make charitable donations in order to gain government support. this can lead to a high dependence on government resources, so firms will actively seek opportunities to build relationships with the government in order to exchange resources. the relatively significant stakeholders for firms in the industry are customers and suppliers. therefore, within the industry environment, a company will pay more attention to the needs of its customers and suppliers. firms fulfilling their responsibilities can improve their corporate image, attract customers, deepen their understanding and recognition of the company, and thus generate brand preference (lenz, wetzel, and hammerschmidt 2017; mishra and modi 2016; müller, fries, and gedenk 2014). therefore, government recognition of charitable donations creates philanthropy pressure in the region, and customers and supplier’s recognition of charitable donations create philanthropy pressure in the industry. h1: region philanthropy pressure has a positive effect on enterprise financial performance. h2: industry philanthropy pressure has a positive effect on enterprise financial performance. 3.1.2. the moderating effect of the level of the legal environment where the legal system is very loose, ambiguous legal rules leave a lot of room for interpretation (ahlstrom and bruton 2001). in such an environment, the government has a higher right to interpret the law and has the ability to bring risks to enterprises. enterprises will actively build relationships with the government in order to reduce transaction costs and uncertainty. when a company is in a poor legal environment, the formal legal system is unable to better protect the rights and interests of the company's operations, and the resources required by the company are largely controlled and allocated by the government. at the same time, the economic level is generally weaker in a region where the legal environment is poorer, the government will have higher expectations for enterprises to assume social responsibility, and will correspondingly provide policy and resource support in return. the combined forces of regional institutional environment and region philanthropy pressure make enterprises more sensitive to government demands, and region philanthropy pressure has a greater impact on enterprise performance. h3: the level of legal environment negatively moderates the positive relationship between region philanthropy pressure and enterprise financial performance. 3.1.3. the moderating effect of enterprise visibility enterprise visibility refers to the amount of attention a firm receives from stakeholders such as the public, the media, and the government, and reflects the company's reputation, exposure, and attractiveness. the higher the visibility, the greater the exposure, the greater the stakeholder attention, and therefore the greater the pressure to comply with social norms (wang and qian 2011). at the industry level, high visibility will provide industry customers and suppliers with a clearer 23 understanding of the characteristics and level of enterprise social behavior, and will raise their expectations of the company (brammer and millington 2006). on the other hand, enterprises can also make use of their existing visibility advantages and high attention from stakeholders, making stakeholders respond positively to the enterprises’ decisionmaking behavior and better enhancing reputation. therefore, enterprises with high visibility not only bear more philanthropy pressure, but also make strategic responses to the pressure pass on to financial performance more quickly. h4: enterprise visibility positively moderates the positive relationship between industry philanthropy pressure and enterprise financial performance. 3.2. research design 3.2.1. data the data were obtained from the following sources: csmar, wind and annual reports of listed companies. this paper selects the data of china's a-share listed companies from 2014-2020 as the original sample data. after dropping firms with missing key variables and non-conforming conditions, we created a final panel consisting of 9451 observations. 3.2.2. variables (1) dependent variables performance: this paper used an accounting-based measure of performance: return on assets (roa), which is the ratio of net income to total assets, to measure the financial performance of a company in the current period. (2) independent variables region philanthropy pressure (regiond): the level of regional charitable donations, which is expressed by dividing the amount of enterprise charitable donations by the operating revenue in that year, in order to control for the effect of size on the absolute amount of charitable donations. according to the administrative district in which the firm is registered, the average of the charitable giving levels of all businesses in the same region is calculated as the region philanthropy pressure. industry philanthropy pressure (industryd): the level of industry charitable donations. industry classification used the 2012 version of csrc industry classification. according to the industry classification, calculate the average value of the enterprise charitable donation level of all enterprises in the same industry as industry philanthropy pressure. (3) moderating variables legal environment level: this paper adopts china justice index of each province from 2016 to 2019 in “report on china justice index”. since there is no clear pattern of change in the justice index, the data for 2015 and 2014 are missing and no reasonable estimation method can be found, and then the data fo 2020 has not been updated, this variable only used four years’ data. enterprise visibility: the more an enterprise invests in advertising and marketing and other sales expenses, the more attention it receives and the more visibility it has (wang and qian 2011). in this paper, we use the marketing expense ratio of the year, i.e., marketing expense divided by operating revenue to represent the relative investment in advertising and other marketing activities to reflect the degree of visibility of the enterprise in the market. 3.2.3. models based on the above assumptions and variables, the following models are constructed to examine the hypothesis. ε +growthα +levα+ ageα + sizeαregiondααeperformanc t5t4t3t2t10t ++= (1) ε +growthα +levα+ ageα + sizeαindustrydααeperformanc t5t4t3t2t10t ++= (2) ε growthα levαageα sizeα legal regiondαlegalαregiondααeperformanc t7t6t5t4 tt3t2t10t +++++ +++= (3) ε growthα levαageα sizeα visibility industrydαvisibilityαindustrydααeperformanc t7t6t5t4 tt3t2t10t +++++ +++= (4) 4. result 4.1. descriptive statistics and correlation result according the descriptive statistics and correlation results of all variables, the firm performance variable roa is significantly correlated with industry philanthropy pressure (industryd) at the 1% level, which tentatively proves that the level of industry philanthropic donations has a significant positive relationship with firm performance, consistent with h2. the positive relationship between region philanthropy pressure (regiond) and roa is positive, but not significant, and needs to be further tested by multiple regression in the following sections. 4.2. regression result this paper use panel data for the analysis, so the hausman test is needed to choose whether the fixed effect model or the random effect model should be used. according to the analysis results, the p value of all models is 0.0000, so the null hypothesis is strongly rejected and the fixed effect model is adopted. the regression results are shown in table 1. table 1. regression results variables roa model 1 model 2 model 3 model 4 regiond 3.756** 302.80** (1.970) (2.29) industryd 6.1062*** 4.4304** (3.13) (2.18) legal 0.0024** (2.15) regiond* legal -4.1218** (-2.19) visibility -0.0463*** (-3.60) industryd* visibility 28.1383*** (2.86) lnsize control control control control age control control control control lev control control control control growth control control control control n 14315 14315 14315 14315 r2 0.0582 0.0587 0.1290 0.0598 f 135.89 137.10 120.79 99.88 note: *p<0.1; **p<0.05; ***p<0.01 model 1 and 2 are used to test h1 and h2. the results show 24 that roa is significantly positively correlated with region and industry philanthropy pressure at 5% and 1% levels respectively, indicating that region philanthropy pressure will positively affect enterprise financial performance and industry philanthropy pressure will positively affect enterprise financial performance. model 3 are used to test h3. the results show that after adding the legal environment interaction term, region philanthropy pressure is significantly positively correlated with roa at the 5% level. the coefficient of regiond*legal interaction term is significant negative at the 5% level, indicating that regional legal environment level will negatively moderate the relationship between region philanthropy pressure and enterprise performance, which verifies h3. model 4 are used to test h4. the results show that after adding the interaction term for enterprise visibility, industry philanthropy pressure is positively related to roa at the 5% significance level. the coefficient of the industryd*visibility interaction term is significant at the 1% significance level, supporting h4. 5. discussion 5.1. research conclusions (1) within a region, positive philanthropic activity is recognized by the region's most prominent stakeholder the government. within an industry, positive philanthropic philanthropy is recognized by the industry's most prominent stakeholders customers and suppliers. therefore, region and industry charitable giving brings institutional pressure and competitive pressure makes the market more competitive, and in order to adapt to competition and gain a competitive advantage, companies may increase their own charitable giving to obtain corporate resources, suppliers, customer favor, and even continuously improve their own management and sales capabilities.(2) in regions with low legal systems, where the formal legal system is lax and the government controls most of the resources and has great freedom to allocate them. at this time, regional charitable donation will bring greater institutional pressure and competition pressure. enterprises will also regard such pressure as an opportunity and will be more proactive in adopting strategies to reduce risk and improve performance. (3) for firms with higher visibility, industry customers and suppliers will be more aware of the firm's characteristics and behaviors, and will have higher expectations of the firm, which can lead to higher institutional and competitive pressures from philanthropic giving. by taking advantage of their visibility, enterprises can adopt proactive strategies to respond to this pressure, increase their moral capital, and improve their financial performance. 5.2. research suggestions (1) the government should introduce positive preferential policies to encourage enterprises to donate, such as preferential tax and loan policies. and the public should pay more attention to the philanthropic donation behavior of enterprises, so as to urge enterprises to regard philanthropic donation as a kind of "non-price" competitive advantage similar to advertising. (2) establish an effective social responsibility communication mechanism among enterprises, governments and the public. high visibility will bring a higher level of supervision and a lower level of information asymmetry, making enterprises more efficient in coping with pressure and faster in feedback from stakeholders.v (3) enterprises should actively make donations according to their own conditions and adjust their response strategies according to the actual situation. enterprises' charitable donation can form the region and industry philanthropy pressure, driving the regional and industry charitable donation, forming a good market competition pressure to promote the common development of the industry and the region and establish a good operating environment. references [1] ahlstrom, d., and g. d. bruton. 2001. learning from successful local private firms in china: establishing legitimacy. the academy of management executive 15(4):72-83. [2] abebe, m., and w. cha. 2018. the effect of firm strategic orientation on corporate philanthropic engagement. management decision 56(3):515–33. [3] aguinis, h., and a. glavas. 2012. what we know and don’t know about corporate social responsibility: a review and research agenda. journal of management 38(4), 932–68. [4] baggs, j., and b. j. e. de. 2007. product market competition and agency costs. the journal of industrial economics 55(2):289–323. [5] ballings, m., h. mccullough, and n. bharadwaj. 2018. cause marketing and customer profitability. journal of the academy of marketing science 46(2):234–51. [6] barnett, m. l., and r. m. salomon. 2012. does it pay to be really good? addressing the shape of the relationship between social and financial performance. strategic management journal 33(11):1304–20. [7] ben selma, m., w. yan, and t. hafsi. 2020. board demographic diversity, institutional context and corporate philanthropic giving. j manag gov. [8] brammer, s., and a. millington. 2005. corporate reputation and philanthropy: an empirical analysis. journal of business ethics 61(1):29–44. [9] brammer, s., and a. millington. 2006. firm size, organizational visibility and corporate philanthropy. an empirical analysis. business ethics: a european review 15(1):6-18. [10] brammer, s., and a. millington. 2008. does it pay to be different? an analysis of the relationship between corporate social and financial performance. strategic management journal 29(12):1325–43. [11] byron, k., and c. post. 2016. women on boards of directors and corporate social performance: a meta-analysis. corporate governance: an international review 24(4):428–442. [12] candid and center for disaster philanthropy.2021. philanthropy and covid-19: measuring one year of giving. [13] chan, k. c., and x. feng. 2019. corporate philanthropy in a politically uncertain environment: does it bring tangible benefits to a firm? evidence from china. the european journal of finance 25(3):256–78. [14] cowan, a., c. h. huang, p. padmanabhan, and c. h. wang. 2013. the determinants of foreign giving: an exploratory empirical investigation of us manufacturing firms. international business review 22(2):407–20. [15] cull, r., w. li, b. sun, and l. c. xu. 2015. government connections and financial constraints: evidence from a large representative sample of chinese firms. journal of corporate finance 32(1):271–94. [16] pfeffer, j. and g. r. salancik. 1978. the external control of organizations: a resource dependence perspective. new york: harper and row 23(02):123–33. https://www.emerald.com/insight/search?q=michael%20abebe https://www.emerald.com/insight/search?q=wonsuk%20cha https://www.emerald.com/insight/publication/issn/0025-1747 25 [17] powell, w. w., and p. dimaggio. 1983. the iron cage revisited: institutional isomorphism and collective rationality in organizational fields. american sociological review 48(2):147–60. [18] freeman, r. e. 1984. strategic management: a stakeholder approach.advances in strategic management 1(1):31–60. [19] friedman, m. 2007. the social responsibility of business is to increase its profits. corporate ethics and corporate governance. zimmerli w.c., holzinger m., richter k. ed. springer, berlin, heidelberg. [20] galaskiewicz, j. 1997. an urban grants economy revisited: corporate charitable contributions in the twin cities, 1979–81, 1987–89. admin. sci. quart 42(3):445–71. [21] gao, y., and t. hafsi. 2015. government intervention, peers’ giving and corporate philanthropy: evidence from chinese private smes. journal of business ethics 132:433–47. [22] gao, y., and t. hafsi. 2017. political dependence, social scrutiny, and corporate philanthropy: evidence from disaster relief. business ethics-a european review 26:189–203. [23] gao, y., h. yang., and t. hafsi. 2019. corporate giving and corporate financial performance: the s-curve relationship . asia pac j manag 36:687–713. [24] gautier, a., and a. pache. 2015. research on corporate philanthropy: a review and assessment. journal of business ethics 126(3):343–69. [25] guo f., s. gan, c. zhan, and z. li. 2020. research on ceo power and charitable donation: evidence from china. proceedings of the fourteenth international conference on management science and engineering management. advances in intelligent systems and computing, vol 1190. springer, cham. [26] giroud, x., and h. m. mueller. 2011. corporate governance, product market competition, and equity prices. the journal of finance 66(2):563–600. [27] grosfeld, i., and t. tressel. 2002. competition and ownership structure: substitutes or complements? evidence from the warsaw stock exchange. economics of transition 10(3):525– 51. [28] grossman, s. j., and o. hart. 2004. corporate financial structure and managerial incentives. social science electronic publishing 107–40. [29] gwartney, j., and r. lawson,. 2009. economic freedom of the world: 2009 annual report. toronto: fraser institute. [30] holmstrom, b. 1982. moral hazard in teams. bell journal of economics (13):324–40. [31] huang, q. h., h. w. zhong, and e. zhang. 2020. research report on corporate social responsibility of china (2020). 1st ed. china: social sciences academic press. [32] januszewski, s. i., j. koke, and j. k. winter. 2002. product market competition, corporate governance and firm performance: an empirical analysis for germany. research in economics 56 (3):299–332. [33] jones, t. m. 1995. instrumental stakeholder theory: a synthesis of ethics and economics. academy of management review 20(2):404–37 [34] lenz, i., h. a. wetzel, and m. hammerschmidt. 2017. can doing good lead to doing poorly? firm value implications of csr in the face of csi. journal of the academy of marketing science 45(5):677–97. [35] lev, b., and s. radhakrishnan. 2010. is doing good for you? how corporate charitable contributions enhance revenue growth. social science electronic publishing 31(02):182–200. [36] li, h. b., l. s. meng, q. wang, and l. a. zhou. 2008. political connections, financing and firm performance: evidence from chinese private firms. journal of development economics 87(2):283–99. [37] lin, t. l., h. y. liu, c. j. huang, and y. c. chen. 2018. ownership structure, board gender diversity and charitable donation. corporate governance: the international journal of business in society 18(4):655–70. [38] liu, x. 2018. corporate philanthropy in china: response to institutional pressure and stakeholders’ requirements. handbook of chinese management. springer singapore. [39] luo, j., y. xiang, and r. zhu. 2017. military top executives and corporate philanthropy: evidence from china. asia pac j manag 34:725–55. [40] maas, k., and k. liket. 2011. talk the walk: measuring the impact of strategic philanthropy. journal of business ethics 100(03):445–464. [41] masulis, r. w., and s. w. reza. 2014. agency problems of corporate philanthropy. ssrn electronic journal 28(02):592– 636. [42] meyer, j., b. rowan. 1977. institutionalized organizations: formal structure as myth and ceremony. american journal of sociology 83(2):340–63. [43] mishra, s., and s. b. modi. 2016. corporate social responsibility and shareholder wealth: the role of marketing capability. journal of marketing 80(1):26–46. [44] müller, s., a. j. fries, and k. gedenk. 2014. how much to give?the effect of donation size on tactical and strategic success in cause-related marketing. international journal of research in marketing 31(2):178–91. [45] nickell, s. j. 1993. competition and corporate performance. journal of political economy 104(4):724–46. [46] ohalehi, p. 2019. fraud in small charities: evidence from england and wales. journal of financial crime. [47] ouyang, z., p. cheng, y. liu, and r. yang. 2020. institutional drivers for corporate philanthropic activities in china: mediating roles of top management participation. corporate social responsibility and environmental management 27(1):244–55. [48] plewnia, f., and e. guenther. 2017. the benefits of doing good: a meta-analysis of corporate philanthropy business outcomes and its implications for management control. journal of management control 28(117):1–30. [49] porter, m. e., and m. r. kramer. 2006. the link between competitive advantage and corporate social responsibility. harvard business review 84(12):78–92. [50] schaltegger, s., and r. burritt. 2018. business cases and corporate engagement with sustainability: differentiating ethical motivations. journal of business ethics 147(2):241–59. [51] scott, w. r. 2013. institutions and organizations: ideas, interests, and identities. sage publications. [52] sen, s., and c. bhattacharya. 2014. doing better at doing good. california management review 47(1):10. [53] tan, s., m. habibullah, h. ong, and a. mohamed. 2019. moderating effect of slack resources on the charitable giving and firm performance nexus. jurnal ekonomi malaysia 53(3). [54] wang, h. and c. qian. 2011. corporate philanthropy and corporate financial performance: the roles of stakeholder response and political access. academy of management journal 54(6):1159–81. 26 [55] wang, q., t. j. wong, and l. xia. 2008. state ownership, the institutional environment, and auditor choice: evidence from china. journal of accounting and economics, 46(1): 112–134. [56] xie, j. 2018. an empirical study on the relationship between female executives and corporate philanthropy—from the enterprise life cycle perspective. modern economy 9:149–59. [57] xu, s., and d. liu. 2020. political connections and corporate social responsibility: political incentives in china. business ethics: a european review 29(4): 664–93.r frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 1, 2023 1 prediction of telecom customer churn based on mipca-xgboost method chen zhuo* school of control and computer engineering, north china electric power university, beijing 102200, china * corresponding author email: cherrybombczz@163.com abstract: in order to solve the problem that the nonlinear information of data in the field of telecom customer churn prediction is not fully used, or even ignored, which leads to inaccurate prediction, this paper introduces the mutual information feature selection method (mipca) to filter the features and reduce the dimensions of customer data, and proposes an xgboost method based on the mutual information feature selection method(mipca-xgboost), which improves the accuracy of the prediction results. by using the data set of telecom industry customers published on kaggle website, compares the prediction result of this method with that of machine learning algorithms commonly used in this field, and proves the accuracy, recall and f_score of mipca-xgboost method is higher than other algorithms. keywords: customer churn; telecom customers; mutual information feature selection; xgboost algorithm. 1. introduction nowadays, the market of china's telecom industry is becoming increasingly saturated, the competition between enterprises is becoming more and more fierce, and the customer churn rate is gradually rising. many enterprises focus on how to use novel marketing models to attract new customers and further develop them into loyal customers. however, studies show that the cost of time and money required for a company to develop a new customer is far greater than the cost of maintaining an existing customer [1]. therefore, it is imperative for enterprises to build a model that can accurately predict the customer churn tendency, understand the customer churn tendency in time and adjust the customer maintenance strategy to reduce the customer churn rate. customer churn is a complex problem, and the prediction methods for different industries are different. at present, there are a large number of domestic literatures on customer churn, involving a wide range of fields. zhang lili [2] and others used decision tree algorithm to predict airline customer churn, and successfully improved the seating rate; yan chun [3] and others used bp-adaboost algorithm to predict the clustered life insurance industry customers, providing a higher prediction accuracy; in the field of e-commerce, wu yongchun [4] fused multiple methods to establish a prediction model, which shortened the prediction time. however, the customer data in the telecommunications industry has the characteristics of large quantity and high dimension. although the above research has made important contributions to the research on customer churn prediction in the fields of aviation, life insurance, e-commerce and so on, it does not mine the important features of the data set, resulting in information redundancy and even dimension disaster [5], which will have an impact on the customer churn prediction in the telecommunications industry and reduce its prediction efficiency and accuracy. at present, the data feature selection in the field of customer churn prediction is generally based on the traditional statistical principal component analysis and linear discriminant method [6]. its advantages are that the theoretical basis is solid and the method is simple and easy to operate, but the nonlinear relationship between attributes is ignored, the information is not fully utilized, and even important information is lost. the mutual information feature selection method can retain most of the original information while effectively reducing the dimension, and take into account the nonlinear relationship between variables [7]. in addition, xgboost algorithm has full application in shortterm photovoltaic power generation prediction [8-11], flight delay prediction [12-14], food safety risk prediction [15-18] and other prediction fields. these studies show that xgboost has the advantages of high flexibility, fast execution speed, and high accuracy of prediction results. based on this, this paper proposes an xgboost prediction method based on mutual information feature selection to solve the problem of customer churn in the telecommunications industry, and compares the accuracy, recall, and f_ score and other indicators, and the analysis proves the effectiveness of the method proposed in this paper in telecom customer churn prediction. 2. mipca-xgboost customer churn prediction method 2.1. mipca method in information theory, mutual information is a measure of interdependence between random variables, which can also be understood as the amount of information of another random variable contained in one random variable [11]. in feature selection, the principal component analysis method in traditional statistics is to analyze the linear relationship between two variables, but cannot reflect the nonlinear relationship in the data. therefore, this paper considers introducing mutual information to feature selection, which is very helpful for evaluating the interdependence between variables, and is no longer limited to the linear relationship. here we introduce information entropy h, which is used to represent the uncertainty of a random variable. suppose there are random variables x and y in data set m, and there are joint distributions 𝑝(𝑥, 𝑦) and marginal distributions 𝑝(𝑥) and 𝑝(𝑦), then there are 2 𝐻(𝑋, 𝑌) = 𝐻(𝑋) + 𝐻(𝑌|𝑋) = 𝐻(𝑌) + 𝐻(𝑋|𝑌) (1) where, 𝐻(𝑋|𝑌) and 𝐻(𝑌|𝑋) are conditional information entropy, which represents the information entropy of its own information after deducting other conditions, which can be expressed as 𝐻(𝑋|𝑌) = − ∑ 𝑝(𝑥, 𝑦)𝑙𝑜𝑔𝑝(𝑥|𝑦)𝑥∈𝑋 (2) 𝐻(𝑌|𝑋) = − ∑ 𝑝(𝑥, 𝑦)𝑙𝑜𝑔𝑝(𝑦|𝑥)𝑦∈𝑌 (3) for random variables x and y, the amount of information of another variable contained in one variable can be expressed by mutual information [11], which is defined as 𝐼(𝑋, 𝑌) = 𝐻(𝑋) − 𝐻(𝑋|𝑌) = 𝐻(𝑌) − 𝐻(𝑌|𝑋) (4) the information entropy of random variables x and y can be expressed as 𝐻(𝑋) = − ∑ 𝑝(𝑥)𝑙𝑜𝑔𝑝(𝑥)𝑥∈𝑋 (5) 𝐻(𝑌) = − ∑ 𝑝(𝑦)𝑙𝑜𝑔𝑝(𝑦)𝑦∈𝑌 (6) therefore, we can further obtain the mutual information 𝐼(𝑋, 𝑌) of random variables x and y as 𝐼(𝑋, 𝑌) = ∑ ∑ 𝑝(𝑥, 𝑦)𝑙𝑜𝑔 𝑝(𝑥,𝑦) 𝑝(𝑥)𝑝(𝑦)𝑦∈𝑌𝑥∈𝑋 (7) in the principal component analysis method, the mutual information matrix is used to replace the covariance matrix, and the relationship between the eigenvector and the eigenvalues of the mutual information feature selection method is obtained as 𝐴𝑇 𝛴𝐼 𝐴= 𝐵 (8) among them, 𝛴𝐼 is the mutual information matrix corresponding to the data set m, 𝐴 is the matrix formed when the eigenvector of the mutual information matrix is a column vector, and 𝐵 is the eigenvalue matrix of the mutual information matrix. in 𝛴𝐼 , the elements on the diagonal represent the self-information of variables, while the elements on the non-diagonal represent the mutual information of variables. when the two variables are not related, the mutual information is 0. the principal component 𝑐 of mutual information matrix 𝛴𝐼 is 𝑐𝑘 = 𝛼𝑘 𝑇𝑥 (9) among them, 𝛼𝑘 𝑇(𝑘 = 1,2, . . . , 𝑛) ∈𝐴𝑇 , is conversion coefficient of 𝑐𝑘 . define the contribution rate of the kth feature as 𝜎𝑘. the formula 𝜎𝑘 = 𝜇𝑘 ∑ 𝜇𝑘 𝑛 𝑘=1 (10) 𝜇𝑘 is the 𝑘 th largest eigenvalue of the mutual information matrix. in this paper, the first m principal components whose cumulative contribution rate of 𝛽 is about 90% are selected as the output of the feature selection results, and the dimensionality reduction of the data set is realized. 2.2. principles of xgboost model xgboost algorithm is a model that uses cart tree as the base learner for training and combines multiple base learners to construct a strong classifier. xgboost is used to train the data set, divide the sample data into each leaf node according to different classification characteristics, calculate the gain value of the tree model before and after classification, and finally obtain a training model with the minimum loss value. the objective function can be expressed as 𝑂𝑏𝑗 = ∑ 𝑙(𝑥, 𝑥�̂�) + ∑ ω(𝑓𝑡)𝑇 𝑡=1 𝑛 𝑖=1 (11) where 𝑙 is the loss function, 𝑥𝑖 is the true value of the ith sample data, 𝑥�̂� is the predicted value of the ith sample, n is the total number of samples, ω(𝑓𝑡) is the penalty term controlling the complexity of the model in the t th tree, and t is the number of training trees. xgboost is a superposition training model. when training the t-th tree, the objective function of the t-th tree is 𝑂𝑏𝑗𝑡 = ∑ 𝑙 (𝑥𝑖 , 𝑥�̂� (𝑡−1) + 𝑓𝑡(𝑥𝑖)) + ω(𝑓𝑡) + 𝑐𝑛 𝑖=1 (12) 𝑓𝑡(𝑥𝑖) = 𝑤𝑞(𝑥𝑖) (13) where, 𝑓𝑡(𝑥𝑖) is the weight of sample 𝑥𝑖 in the t-th tree, and its formula is shown in equation (13), c is a constant, 𝑞(𝑥𝑖) is the position of the ith sample on the t-th tree, which is specifically represented by the number of leaf nodes it falls on, and 𝑤𝑞(𝑥𝑖) represents the weight of the leaf node. the second-order taylor series is used to expand the loss function, and the objective function after processing is 𝑂𝑏𝑗𝑡 = ∑ [𝐺𝑘𝑤𝑘 + 1 2 (𝐻𝑘 + 𝜆)𝑤𝑘 2] + 𝛾𝐾𝐾 𝑘=1 (14) ∑ 𝑔𝑖 = 𝐺𝑘𝑖∈𝐼𝑘 (15) ∑ ℎ𝑖𝑖∈𝐼𝑘 = 𝐻𝑘 (16) where, 𝐼𝑘 represents all samples falling on the kth leaf node, and 𝑔𝑖 and ℎ𝑖 are the replacements of the first and second derivatives of the loss function respectively. for each sample that has been trained t-1 times, its g and h are known. 𝐺𝑘 and𝐻𝑘 are the sum of g and h of all samples on k leaf nodes respectively. by observing the simplified objective function formula, it can be seen that this is a quadratic equation with one variable, and the extreme value is 𝑤∗ = − 𝐺𝑘 𝐻𝑘 + 𝜆 (17) by substituting the extreme value into equation (14), the expression of leaf nodes in the tree to be trained can be written as 𝑂𝑏𝑗 = − 1 2 ∑ 𝐺𝑘 2 𝐻𝑘 + 𝜆 𝐾 𝑘=1 + 𝛾𝐾 (18) xgboost model calculates the gain value by calculating 𝑂𝑏𝑗𝑂𝐿𝐷 − 𝑂𝑏𝑗𝑁𝐸𝑊: 𝐺𝑎𝑖𝑛 = 1 2 [ 𝐺𝐿 2 𝐻𝐿 + 𝜆 + 𝐺𝑅 2 𝐻𝑅 + 𝜆 − (𝐺𝐿 + 𝐺𝑅)2 𝐻𝐿 + 𝐻𝑅 + 𝜆 ] – 𝛾 (19) the higher the gain score, the higher the feature importance score of the split node, and the more important its corresponding feature. 2.3. mipca-xgboost step the procedure is as follows: 1)feature screening was performed on the data set by mipca method, and the first m principal components were obtained as new features, and the dimensionality reduction of the initial data set was realized; 2)randomly divide the new data set after feature selection processing, and the divided training set is used as the data input of the model, and the test set is used to verify the trained model. the flow chart of mipca-xgboost is shown in figure 1. 3 telecom customer data set mipca decomposition deaverage build sample mutual information matrix 计算特征值与特征向量 select principal components import xgboost set initial parameters data training test set prediction output results whether the maximum number of iterations has been reached no yes fig. 1 the flow chart of mipca-xgboost method 3. data preparation 3.1. experimental data the telecom industry customer data set used in this paper has 48,712 pieces of data, including 9876 pieces of lost data and 38,836 pieces of non-lost data. the amount of lost data is about 20% of the total data set. in the experiment, the data set is randomly divided into 40% test set and 60% training set, which comes from kaggle website. each piece of data in the data set includes 57 characteristics and attributes, such as account opening time, remaining accounts, recharge period, online duration, and total call duration. some attributes are shown in table 1. table 1. part properties of dataset data classification data attributes basic information customer id, age, package, account opening time billing information account balance, recharge period, credit limit, etc network duration time spent online, time spent online on weekdays, time spent online on weekends, etc communication information number of calls, total call duration, number of calls, number of calls, etc network usage information uplink traffic, downlink traffic, traffic overflow, etc status of complaints the number of complaints, the response time of complaints, etc the data is preprocessed, 0 is used to fill the missing values in the data attributes, unique thermal coding is adopted for discrete attributes, and standardization is carried out for continuous attributes, so that the processed data can meet the standard normal distribution. 3.2. feature selection mipca method was used to select the feature of the data set, and the feature selection results of the data set were compared with the principal component analysis method. the comparison results were expressed as the principal component characteristic value μ and the cumulative contribution rate β, as shown in table 2. table 2. principal component eigenvalue and cumulative contribution rate principal component pca mipca 𝜇 𝛽 𝜇 𝛽 pc1 16.34 30.07% 22.23 43.30% pc2 8.56 46.87% 8.34 56.67% pc3 5.23 57.13% 4.27 64.71% pc4 4.12 65.22% 3.68 70.35% pc5 2.85 69.81% 2.64 76.75% pc6 2.21 73.15% 1.93 80.65% pc7 1.80 76.68% 1.43 83.77% pc8 1.48 79.59% 1.04 86.34% pc9 1.23 82.64% 0.84 88.76% pc10 1.01 84.76% 0.65 89.93% pc11 0.88 85.60% 0.63 91.14% pc12 0.76 85.72% 0.57 92.22% pc13 0.64 86.43% 0.54 93.27% pc14 0.64 87.14% 0.49 94.12% pc15 0.62 87.80% 0.44 95.03% pc16 0.58 88.47% 0.37 95.87% pc17 0.56 89.22% 0.34 96.21% pc18 0.55 89.75% 0.32 96.54% pc19 0.55 90.28% 0.29 96.84% from the extraction results of principal components in table 2, it can be seen that mipca has a higher cumulative contribution rate when principal components of the same dimension are selected. for example, to achieve a cumulative contribution rate of 90%, pca method needs to select 19dimensional principal components, while mipca method reduces the value to 11-dimensional, which indicates that mipca method can make full use of nonlinear information. thus, the original information can be retained to a greater extent, which is helpful to improve the accuracy of subsequent prediction. in this paper, when the cumulative contribution rate reaches 90%, the first 11 dimensional principal components screened by mipca method are selected for xgboost customer loss prediction. 4. customer churn forecast 4.1. evaluation index according to the confusion matrix, the prediction accuracy 𝐸𝑎𝑐𝑐 , the recall rate 𝐸𝑟𝑒𝑐𝑎𝑙𝑙 , and the 𝐹_𝑆𝑐𝑜𝑟𝑒 were calculated as the evaluation index of the algorithm. the calculation formula of each evaluation index is shown as follows, and the classification of customer state prediction results [12] is shown in table 3. table 3. customer status classification true customer status loss of prediction results the prediction result is not churn actual loss tp fn actual nonchurn fp tn 𝐸𝑎𝑐𝑐 = 𝑇𝑃+𝑇𝑁 𝑇𝑃+𝑇𝑁+𝐹𝑃+𝐹𝑁 (20) 𝐸𝑟𝑒𝑐𝑎𝑙𝑙 = 𝑇𝑃 𝑇𝑃+𝐹𝑁 (21) 4 𝐹_𝑆𝑐𝑜𝑟𝑒 = 2×𝑇𝑃 2×𝑇𝑃+𝐹𝑃+𝐹𝑁 (22) 4.2. important parameter settings of xgboost algorithm the experiment running environment in this paper is a 64bit windows10 operating system, and the specific hardware settings are as follows: 16 gb memory and 12th gen intel(r) core(tm) i5-12490f @ 3.00 ghz cpu. python3 and related toolkits were used in the experiments. after many experiments, the parameters of xgboost are finally set in table iv. table 4. the important parameters of xgboost parameter parameter configuration max-depth 5 min-child-weight 3 learning-rate 0.3 gamma 0.1 subsample 0.76 n-estimators 200 4.3. analysis of prediction results in this paper, mipca-xgboost algorithm is applied to customer churn prediction in the telecom industry, and random forest and logistic regression algorithms commonly used in this field are used for comparison experiments. the comparison results of precision, recall and 𝐹_𝑆𝑐𝑜𝑟𝑒 of related algorithms are shown in table 5. table 5. comparison of prediction results of various algorithms(%) type of algorithm 𝐸𝑎𝑐𝑐 𝐸𝑟𝑒𝑐𝑎𝑙𝑙 𝐹_𝑆𝑐𝑜𝑟𝑒 rf 84.12 84.36 83.25 lr 81.43 83.03 80.13 xgboost 86.37 84.58 84.73 mipca-xgboost 90.56 90.23 89.64 observing the prediction results of various algorithms in table 5, on the whole, the accuracy of three methods of random forest, logistic regression and xgboost is more than 80%, and the mipca-xgboost algorithm has the highest score, with an accuracy of 90.56%, a recall rate of 90.23%, and a 𝐹_𝑆𝑐𝑜𝑟𝑒 value of 89.64%. the accuracy of the random forest algorithm is 84.12%, and the accuracy of the logistic regression algorithm is 81.43%, which indicates that the mipca-xgboost method is more suitable for application in this field. secondly, through the comparison of the xgboost algorithm mipca-xgboost algorithm, it can be seen that the mipca feature selection method improves the prediction accuracy of the xgboost algorithm in this experiment, its accuracy is increased by 4.19%, the recall rate is increased by 5.65%, and the 𝐹_𝑆𝑐𝑜𝑟𝑒 value is increased by 4.91%. 5. conclusion from the perspective of making full use of the original information of the data set, this paper introduces the mutual information feature selection method in the study of customer churn prediction in the telecom industry, and proposes the mipca-xgboost method, which successfully improves the prediction accuracy. by selecting the telecom customer data set from kaggle website for experiments, the results show that the prediction accuracy of mipca-xgboost method is as high as 90.56%. it can be seen that the algorithm is helpful for the further research of customer churn prediction in the future, and provides a new idea for enterprises to solve the problem of customer churn, helping enterprises to be more targeted and accurate in formulating customer maintenance strategies. the research of this paper also has some shortcomings :1) at present, the rapid development of internet communication has become an inseparable part of people's communication and contact. under this impact, many users' communication behaviors will be affected by instant messaging tools. in the future, we will consider the third-party communication software and internet platform data for research. 2) the data in this paper are from a single telecom industry customer data, and in the future, multiple operators in the same time period will be considered for joint research to make the research more comprehensive. in future research, it is necessary to classify the customers who have been predicted to have churn trend, create a classification model, and then propose an effective customer retention strategy. in addition, in the study of customer churn prediction, it is necessary to pay attention to the interaction between customers, which may be an important factor affecting customer churn, which is of great significance for the research in this field. references [1] hadden j, tiwari a, rajkuar r, dymitr r. (2007) computer assisted customer churn management: state-of-theart and future trends[j].computers and operations research, 2007, 34(10):2902-2917. [2] zhang l l ,ma y q. (2019) analysis of airline customer churn and consumer segmentation based on data mining algorithm using r[j].mathematics in practice and theory,2019,49(06):134-142. [3] yan c, zhang x y. (2022) life insurance customer churn prediction algorithm based on improved k-means ang bpadaboost[j]. journal of shandong university of science and technology (natural science),2022,41(01):54-65. [4] wu y c. (2020) prediction of churn rate of e-commerce customers in context of big data[j]. modern electronics technique,2020,43(11):144-147. [5] xing w, wang s y,zhang q h, et al. (2011) dual channel supply chain equilibrium strategy considering channer fairness[j].systems engineering-theory &practice,2011,31(07):1249-1256. [6] lemmens a, croux c. (2005) bagging and boosting classification trees to predict churn[j]. journal of marketing research, 2005 ,43(2):276-286. [7] fan x l, feng h h,yuan m. (2013) pca based on mutual information for feature selection[j].control and decision, 2013, 28(06):915-919. [8] tan h w, yang q l,xing j c, et al. (2022) photovoltaic power prediction based on combined xgboost-lstm model[j].acta energiae solaris sinica,2022,43(08):75-81. [9] peng s y , zheng g d,huang s j, et al. (2020) multiplefeature short-term photovoltaic generation forecasting based on xgboost algorithm[j].electrical measurement & instrumentation, 2020,57(24):76-83. [10] lu s, xu w m,liu w l, et al. (2020) short-term forecasting of pv power generation based on clustering and later regression[j].zhejiang electic power,2020,39(07):48-54. [11] huang c.prediction of power genereation capacity of photovoltatic system base on artificial neural network.[d].wuhu:anhui polytechnic university,2016. 5 [12] tang h, wang d,song b, et al. (2021) classification of flight delay based on nonlinear weighted xgboost[j].journal of system simulation,2021,33(09):2261-2269. [13] wang h, zhang w j,liu j, et al. (2022) flight delay prediction model based on cart algorithm[j]. journal of civil aviation university of china,2022,40(03):35-40. [14] lu m d, wei p,he m s,teng y l. (2021) flight delay prediction using gradient boosting machine learning classifiers[j]. journal of quantum computing,2021,3(1). [15] wang x y, wang z y,zhao z, et al. (2022) a food safety risk forecast model integrated with improved ahp and xgboost algorithm: a case study of rice[j]. journal of food science and technology,2022,40(01):150-158. [16] ma h d. food safety risk warning based on decision tree and random forest model[d]. dalian: dongbei university of finance and economics,2020. [17] wang j y, dian y f,zhang r f, et al. (2019) prediction of meat product quality risk based on extreme learning machine[j]. computer simulation,2019,36(10):413-418. [18] geng z q, duan x y,li j t,chu c,han y m. (2022) risk prediction model for food safety based on improved random forest integrating virtual sample[j]. engineering applications of artificial intelligence,2022,116. [19] ding b x, zhang h,wang g. (2019) research of network intrusion detection method based on mi and svm[j]. journal of west anhui university,2019,35(05):45-49+63. [20] wang c r, hang d m. (2017) a study on internet customer churn prediction based on social network analysis and xgboost [j]. cyber security and data governance, 2017, 36(23):58-61. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 97 improvement of association algorithm based on matrix optimization yang chen school of information, yunnan university of finance and economics, kunming, yunnan 650221, china 511926706@qq.com abstract: in order to solve the problems of high memory usage and low efficiency of frequent itemsets generation in the process of data mining, the existing association algorithm is improved. the data information is expressed in the form of a boolean matrix, and the matrix is continuously simplified in the operation to optimize the item set connection method, thereby reducing memory consumption and improving algorithm efficiency. keywords: frequent itemsets; boolean matrix; simplified matrix; optimal connection. 1. introduction the earliest concepts related to data mining were put forward by r. agrawal, swami and imielinskih [1] in 1993. they analogized the connection rules between users in different transactions and generated consumer behavior patterns. then apriori algorithm is proposed, which is the most classical algorithm in the field of association rules. toivonen [2] and other researchers optimized the generation process of frequent itemsets in the classic apriori algorithm through tests. yjhan [3] [4] and other researchers improved the traditional algorithm and proposed the fpgrowth algorithm, which puts the data in the database into the nodes of the tree in turn according to rules, avoiding repeated scanning of the database during the mining process. 2. basic concepts and principles of association algorithms 2.1. basic concepts the main purpose of association algorithm is to find out the connection between data in a given data set, that is, strong association rules [5]. at the beginning of the algorithm, the user defines the minimum support and minimum confidence according to the actual situation. support (count): the number of times customers purchase some products at the same time is called support count, and the ratio of the count to the number of times of all products in database d is called support. the threshold for measuring whether the customer purchases the product frequently is called the minimum support (count), which is recorded as min_support. confidence degree: under the condition that customers purchase some commodities a at the same time, the probability of purchasing other commodities b at the same time, that is, the conditional probability p(b|a) of the rule (or implication) a⇒b, is recorded as confidence(a= >b), the threshold for measuring the frequent purchase of some products by customers and the frequent purchase of other products is called the minimum confidence, which is recorded as min_confidence. 2.2. algorithm principle scan the database d, extract and count each product, and generate c1 item set . c1 is a special candidate item set, which can directly calculate the support count of each item in the item set , and delete the item set whose support count is less than the minimum support count . generate frequent itemsets l1 . connection step: in order to find the frequent itemset lk+1, connect lk with itself to generate a set of candidate k+1 itemsets (lk▷lk⇒(generate)ck+1), set lk={l1,l2,.. .,lm} l1={a1,a2,...,ak} l2={b1,b2,...,bk} only guaranteed condition a1=b1,a2=b2,...,ak-1=bk -1,ak2). starting from the frequent binomial set, put the frequent binomial set matrix into a queue in order according to the divided groups. if the number of vectors in the group is less than 2, just give up (because the and operation cannot be performed to generate a new vector), and then carry out each group in turn according to step 2, and then continue to put it at the end of the queue after a new group is generated. when the queue is empty, it means that no new frequent itemsets can be generated, exit the loop, and find all frequent itemsets. 4. algorithm analysis and experimental comparison 4.1. algorithm analysis compared with the apriori algorithm and existing improved methods, this algorithm has the following advantages: this algorithm records the data read from the database in the form of a matrix. support counting only needs to perform an and operation on the matrix vector without scanning the database multiple times. in the process of operation, a new frequent item set, that is, a new matrix vector, will be generated to replace the previous vector, thereby continuously reducing and compressing the matrix and improving memory utilization. group the newly generated frequent itemsets starting from frequent binomial sets, such as {i1, i2, i3} {i1, i2, i4} into a group {i1, i3, i5}, {i1, i3, i6} divided into a group, this is done by referring to the connection step of the original apriori algorithm, which can make the newly generated itemset unique and orderly, avoid generating duplicate item sets, thus saving a lot of time. when putting the newly generated item set group into the queue, if the number of items sets in the item set group is less than 2, it will be discarded, which has a certain pruning effect and saves a certain amount of time. 4.2. example analysis the following is an example to analyze the data mining process of the improved algorithm. the data set selected in this research comes from the default of credit card clients data set data set in the uci data set. here, 9 of the data are intercepted for instance analysis, and the minimum support is set to 3. the data are shown in the table below. table 1. example analysis data set tid (transaction) item set t1 i1,i2,i3 t2 i2,i4,i5 t3 i1,i2,i3,i6 t4 i2,i4,i6 t5 i2,i3,i4 t6 i1,i3,i4 t7 i1,i2,i3,i6 t8 i3,i4 t9 i1,i3,i4,i5 (1) read the database in turn, set the items that exist in the transaction to 0, and set the items that do not exist to 1. for example, the items read from transaction t1 are i1, i2, and i3, and the matrix vector obtained is 111000. read all things generate the following boolean matrix:                             = 011101 001100 100111 001101 001110 101010 100111 011010 000111 d calculate the support count of the grid column as shown in the following table: table 2. support count item set {i1} {i2} {i3} {i4} {i5} {i6} support count 5 6 7 6 2 3 it can be seen that the support count of the itemset {i5} is 2, which is less than the minimum support count of 3, so the itemset {i5} is an infrequent itemset, if it is deleted, the frequent item set is {{i1},{ i2}, {i3}, {i4}, {i6}}, generate a new frequent item set matrix as shown in the figure below, where the rows and columns of the matrix have been converted, which is a matrix converted while pruning, without extra time consuming. 99                     = 001001100 100000010 110111010 111110101 001011111 101100101 d 6 5 4 3 2 1 i i i i i i (2)the candidate binomial set vector is obtained by performing and operation on the frequent item set matrix from the first row vector, such as the first row {i1} and the second row {i2} to generate {i1,i2}= {1,0,1,0,0,0,1,0,0}, and its support count is calculated as 3, which meets the requirements of the minimum support count, and {i1,i2} is a frequent binomial set. the following steps can be followed to obtain the frequent binomial set matrix:                 = 110110000 000011010 001010101 101100101 001000101 d }4,3{ }4,2{ }3,2{ }3,1{ }2,1{ ii ii ii ii ii (3)while obtaining the frequent binomial set matrix, group the vectors of the matrix, {i1,i2}{i1,i3} into a group, {i2,i3}{i2,i4} into a group, {i3, i4} divide into one group, record the number of vectors in each group, create a vector queue queue, and put the divided groups with the number of vectors greater than or equal to 2 into the queue in turn, as shown in the following table: table 3. vector grouping 0 1 {i1, i2} {i1, i3} {i2, i3} {i2, i4} (4) enter the loop when the queue is not empty, take out the vector group at the top of the queue, and execute step (2). get a new itemset {i1, i2, i3}, and calculate the support count of the second frequent itemset to be 3, so this item set is a frequent itemset. however, since there is only one vector generated by this group, new vectors cannot be generated by connecting within the group at this time, so it does not need to be placed at the end of the queue. loop in this way until the queue is empty, exit the loop, and find all frequent itemsets. 4.3. analysis of mining results in order to compare the efficiency of the improved algorithm and the classic algorithm, this paper adopts the method of controlling variables, respectively controlling the amount of transactions and the basis of support, controlling the number of items and counting of support, and controlling the amount of transactions and the number of items. these three experiments verify that the improved algorithm is running there are certain advantages in terms of efficiency. figure 1. comparison of efficiency of different item numbers figure 2. comparison of the number of items of different things 0 5 10 15 20 10 12 15 20r u n n in g t im e /s number of items / piece 6600 transactions, 0.5 support count ratio apriori improved algorithm 0 2 4 6 8 2500 4000 5000 6000 ti m e /s number of transactions / piece 15 items, support rate count 0.5 apriori 100 figure 3. comparison of counting efficiency with different support degrees it can be seen from figure 1 and figure 2 that the improved algorithm is more efficient than the classical algorithm. however, in the case of the same transaction volume and number of items in figure 3, the efficiency of the improved algorithm is lower than that of the classical algorithm when the support count is low. this may be because the improved algorithm is represented by a matrix. when the support count is relatively low, it will make the amount of matrix simplification in the connection process is small, which increases the amount of calculation and thus increases the operation time. in the follow-up improvement, it can be considered to carry out targeted processing on the case where the number of items is large and the number is large. for example, when the number of items and the number are large, the generated data matrix is likely to be a sparse matrix. without changing the original matrix optimizing the matrix in the absence of meaning should greatly improve efficiency. 5. conclusion this paper has made some improvements to apriori, which effectively enhances the efficiency of the algorithm and reduces the time and space consumption of the algorithm, but there are still some defects, such as matrix redundancy under a large amount of data, etc., and then we will address these deficiencies further improvement, gradually improve the improved algorithm, and at the same time think about the applicable direction of the algorithm to improve the flexibility of the algorithm application. references [1] r. agrawal, t. imielinski, and a. swami. mining association rules between sets of items in large databases. proc, 1993 acm-sigmod int, conf. management of data (sigmod' 9 3), pp. 207-216, washington, dc, may 1993. [2] m. zaki. scalable algorithms for association mining. ieee trans. knowledge and data engineering, 12:372-390, 2000. [3] ian h. witten, eibe frank and mark a. hall. data mining: practical machine learning tools and techniques [m]. china machine press. 2014. [4] jiawei han, micheline kamber, jian pei, data mining concepts and techniques third edition [m]. china machine press. 2019. [5] cui yan, bao zhiqiang. a survey of association rule mining[j]. application research of computers, 2016,33(02):330-334. [6] cai weijie, zhang xiaohui, zhu jianqiu, zhu yangyong. a survey of association rules mining [j]. computer engineering ,2001(05): 3133+ 49. 0 5 10 15 20 25 0.1 0.2 0.5 0.8 ti m e /s support count ratio 6600 transactions, 15 items apriori improved algorithm frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 44 insulator defect detection algorithm based on improved yolov5 xin lian1 *, dewen wang2 1 school of control and computer engineering, north china electric power university, baoding 071003, china 2 engineering research center of intelligent computing for complex energy systems, ministry of education, baoding 071003, china * corresponding author: xin lian abstract: aiming at the problems such as small target scale, complex background, difficult detection, false detection and leakage detection of aerial insulators in transmission lines, this paper proposes an insulator defect detection algorithm based on improved yolov5. firstly, cbam attention module is added to the backbone network of yolov5 to improve the feature extraction capability of insulator pictures. secondly, in the feature extraction part, panet structure is replaced by bifpn structure to make full use of the underlying feature information. finally, the improved k-means algorithm is used to determine the prior frame and improve the defect detection accuracy of the insulator. experimental results show that this method can improve the identification accuracy of insulator defect detection in transmission lines. keywords: yolov5; a small goal; an insulator; defect detection; bifpn; cbam attention mechanism; k means++ algorithm. 1. introduction insulator is a special insulating control in the power system. it is responsible for fixing the current-carrying conductor in the overhead transmission line to prevent the current from returning to the ground, and it is an essential equipment in the power system [1]. insulator power failure will directly threaten the safety and stability of the line. according to incomplete statistics, insulator failure accounts for more than 50% of power equipment failures [2]. in order to ensure the safety of power grid, insulator fault detection has become the primary task of power system maintenance. with the development of deep learning, various object detection algorithms have been proposed. the research on insulator target detection makes a great contribution to the location detection of aerial insulator in power inspection. on this basis, it is necessary to further classify and identify the state of insulators. at present, scholars at home and abroad have also made some researches on the defect detection of insulators. the traditional defect identification methods still use graph segmentation and machine learning, etc. literature [3] preprocessed insulators, converted rgb values into brightness space, and avoided the impact of illumination on images. then otsu algorithm was used to segment and morphological method was used to analyze the defects the segmented image is denoised. finally, the number of pixels on the insulator string is determined to determine whether there are self-explosion and other damage defects. traditional methods mainly focus on image segmentation, and the algorithm is complex. the realization of insulator segmentation algorithm in different scenes is different, and it is difficult to meet the defect detection of a large number of aerial photography insulators with complex background. the convolutional neural network does not need to do too much data preprocessing, but extracts the features of the input image as a whole, and autonomously learns the features of the image to realize defect detection. in literature [4], ssd model was used to detect the state of insulators, densenet was introduced as a feature extraction network to enhance the classification ability of the model, and data enhancement was used to solve the problem of sparse data and improve the accuracy of the model. in literature [5], random forest algorithm is used to segment insulators for target identification, and then convolutional neural network is used to judge whether there are defects on insulators. finally, faster r-cnn network is used to locate the location of defects on insulators. in literature [6], faster r cnn algorithm was used in the detection of uav power line inspection image parts, and the detection effect of power parts was better, but it could not meet the real-time requirements. literature [7] proposes an aerial insulator detection method based on u-net deep network, which is an effective insulator detection method. however, the background of insulator image is relatively simple, so it cannot be accurately detected under complex background. literature [8] uses the random sample consensus, ransac) designed the missing insulator detection algorithm and combined with the single shot multibox detector (ssd) algorithm to locate the missing insulators in the picture, but the method of fitting the line to detect defects had poor anti-interference ability. through research and investigation, there have been many researches on deep learning in the field of insulator detection, which provides new ideas for power inspection. moreover, insulator defect detection has become the main trend of deep learning in power inspection research, which has advantages over traditional detection methods in terms of detection accuracy, speed and generalization ability of model application. however, at present, there is still a great room for improvement in the research of insulator defect detection in power inspection. there are few public data sets, and most of the data sets used in research experiments are difficult to meet the actual needs. the number of layers in the feature extraction network is too few, and the features extracted from the insulator image with complex background are fuzzy. the defect size is smaller than the insulator size target, and the method for improving the defect detection accuracy of small target is single. therefore, an insulator defect detection algorithm based on 45 improved yolov5 is proposed in this paper in view of the small target scale, complex background, difficult detection, false detection and leakage detection of aerial insulators in transmission lines. firstly, cbam attention module is added to the backbone network of yolov5 to improve the feature extraction capability of insulator pictures. secondly, in the feature extraction part, panet structure is replaced by bifpn structure to make full use of the underlying feature information. finally, the improved k-means algorithm is used to determine the prior frame, so as to improve the stability of the generated prior frame and the detection accuracy of insulator defects. 2. principle of yolov5 algorithm yolov5 has four network models of different sizes, s, m, l and x, among which yolov5s is the smallest, and other models are the product of increasing network depth and width on its basis. although its detection performance is constantly enhanced, the size of the model is getting bigger and the detection speed is getting slower and slower. the yolov5s was chosen as the base model in order to make the model lightweight and easier to port to embedded devices. there are many yolov5 versions, this article uses version 5.0, and the activation function has changed from the leakyrelu and hardswish unity of the early days to the silu activation function. in addition, the c3 module is adopted to replace the original bottleneckcsp module. the c3 module eliminates one convolutional layer in bottleneckcsp compared to bottleneckcsp module, which improves the overall model size and reasoning speed. although the accuracy is decreased by 0.8% compared with the 3.0 version, compared with the speed improvement, this accuracy loss is still acceptable. this experiment is an improvement based on the 5.0 version model. the model of yolov5 is mainly composed of backbone and head. backbone, as the feature extraction module, mainly consists of focus, c3 and spp modules, while the head part mainly includes neck and detect modules for extracting fusion features. its network model is shown in figure 1. the backbone consists of three modules. figure 1. yolov5 network structure 1)focus module. this is the unique structure of yolov5. its main idea is to cut the input image through slicing operation, periodically extract pixels from the high resolution image and reconstruct them into the low resolution image, that is, stack the four adjacent positions of the image. by gathering w and h dimension information into c channel space, the receptive field of each point is improved while the computation is reduced, avoiding the loss of original information. 2)cross stage partial network (csp) module. the feature map of the base layer is divided into two parts and then combined with the cross-stage hierarchical structure to achieve a richer gradient combination. the author of yolov5 also uses this structure for reference. however, compared with yolov4, which only uses csp structure in the backbone, the author of v5 designs two csp structures, respectively for the backbone and neck. later, the author improves this structure by removing a convolutional layer in the bottleneck structure and changing it into c3 mode block. 3)spatial pyramid pooling network (spp) module. this module is based on the sppnet proposed by he keming in 2014, also known as the spatial pyramid pooling network. by means of maximum pooling k=(1x1, 5x5, 9x9, 13x13), feature maps of different scales are splicing to realize the fusion of features of different scales, thus improving the sensitivity field and extracting important features. in the head part, y0lov5 uses the structure of the feature pyramid fpn+pan. the fpn layer transmits and integrates the feature information of the upper layer and the lower layer through up-sampling, while the pan layer splice the feature of the lower layer with the feature of the upper layer, so that the feature of the lower layer with high resolution is transmitted to the upper layer. based on the structure of fpn+pan, the feature aggregation of different detection layers from different trunk layers can effectively solve the multi-scale problem. 3. improved yolov5 model 3.1. integrate cbam attention module cbam is a lightweight attention module that is simple and effective, can be directly integrated into the cnn architecture, and can be trained end-to-end. given a feature map, cbam deduces the attention map along two independent dimensions, channel and space, and then multiplies the attention map with the input feature map for adaptive feature refinement. the structure of cbam module is shown in figure 2. in literature [9], cbam module is integrated into different models of different data sets and different classification tasks, and the model performance is greatly improved, which proves the effectiveness of cbam module. figure 2. cbam attention module the target size of insulator defect is small, the features are few and not obvious. adding cbam attention module to the backbone network can enhance the network's ability to extract the target features, and directly improve the feature fusion of the neck network. in the detection task, the cbam attention module can help the model effectively extract the attention area and improve the detection performance. 3.2. weighted bidirectional feature pyramid network bifpn [10] network is an efficient multi-scale feature fusion method integrating bidirectional cross connection and weighted fusion. since fpn[11] was proposed, fpn has been widely used in multi-scale feature fusion. in recent years, more multi-scale feature fusion network structures, such as panet [l2], m2det[13] and nas-fpn[14], have been proposed by researchers. however, when input features of different levels are fused, most work summarizes them indiscriminately. however, these different input features have different resolutions and have different contributions to the 46 fused output features. to this end, literature [15] proposes a simple but efficient weighted bidirectional feature pyramid network (bifpn), which introduces a learning weight factor to represent the importance of different input features, while repeatedly applying top-down and bottom-up multi-scale feature fusion. in order to make full use of the underlying characteristics of the target, this paper improved the neck network and replaced the original panet network with bifpn network to improve the detection accuracy. its structure is shown in figure 3. although panet in yolov5 achieved good multiscale feature fusion results through top-down and bottom-up path aggregation, it required a large amount of computation, and the input features in the bottom-up feature fusion stage did not contain the original output features generated by the backbone network. bifpn uses cross-connection to remove nodes that contribute little to feature fusion in panet, and adds a skip connection between input nodes and output nodes at the same scale, which fuses more features without increasing the cost. on the same feature scale, each bidirectional path is regarded as a feature network layer, and the same layer is repeatedly used to achieve a higher level of feature fusion. figure 3. improved neck network 3.3. improved distance standard k-means algorithm using k-means algorithm to determine prior box has become an indispensable step of target detection. the kmeans algorithm provided by yolov5 can cluster new prior boxes on its own data set, but it takes the euclidean distance between sample boxes as the distance measurement, which will lead to a larger proportion of prior boxes when calculating losses. however, the purpose of clustering is to make the prior box and the adjacent real box have larger iou values. the following two cases obviously have the same iou values, so the ratio should be the same in loss calculation. the improved calculation formula is as follows: 𝑑 = 1 − 𝐼𝑂𝑈(𝑏𝑜𝑥, 𝑐𝑒𝑛𝑡𝑟𝑜𝑖𝑑) the average iou of prior boxes obtained by the improved k-means algorithm is 85.68%, 3.1% higher than that before the improvement. nine prior boxes are obtained by using the improved k-means algorithm, which respectively correspond to the feature maps of different scales. 4. results and discussion 4.1. experimental environment and data set experimental environment: the operating system used in the experiment was windows10, the gpu model was tesla v100-pcie 32gb, and the cpu model was intel(r) xeon(r) gold 5218 cpu @ 2.30ghz. all models are based on pytorch 1.8 and use cuda 10.1 to accelerate the gpu. data set: as there are few insulator data sets disclosed in the current power inspection, in order to better achieve the purpose of the experiment, this paper collected and sorted out the existing insulator data, and finally summarized a total of 848 insulator pictures, including 600 normal insulator images and 248 defective insulators. labelimg image annotation tool is used to label all images. the insulator is labeled as insulator and the defect position is labeled as defect. in order to improve the generalization ability of the network model, the data set was divided by 4/6, with the training set accounting for 40%, the test set accounting for 60%, and the positive and negative samples accounting for 50% respectively in the training set and the test set. 4.2. analysis of experimental results experimental environment: the operating system used in the experiment was windows10, the gpu model was tesla v100-pcie 32gb, and the cpu model was intel(r) xeon(r) gold 5218 cpu @ 2.30ghz. all models are based on pytorch 1.8 and use cuda 10.1 to accelerate the gpu. in order to realize the optimal performance of the model, sgd(stochastic gradient descent) and adam (adaptive moment estimation) optimizers are used for comparison. the results of different optimizers are shown in table 1. table 1. experimental data of sensor measurement accuracy network model sgd adam map @0.5 map@0. 5:0.95 map@ 0.5 map@0.5: 0.95 yolov5 0.953 0.854 0.947 0.846 improved yolov5 0.972 0.95 0.969 0.93 it can be seen from table 1 that the average accuracy of using sgd optimizer is generally higher than adan. therefore, sgd is selected as the optimizer by default in the subsequent experiment for continuous network training. the changes of various parameter indexes of the improved yolov5 model along with the training cycle are shown in figure 4. as can be seen from figure 4, with the continuous training of the model, the position loss and category loss of the training set continue to decline. after 50 training cycles, the position loss of the verification set tends to be stable at about 0.01, the confidence loss is stable at about 0.005, the class loss is close to 0.0005, and the accuracy and recall rate of the model detection are stable at about 0.98. figure 4. paramter index of improved yolov5 in order to check the performance of the model before and after improvement, different models were used for testing, 47 and the results were shown in table 2. as can be seen from table 2, the improved insulator detection network model greatly improves the speed on the basis of ensuring the accuracy, and can meet the task requirements of uav power inspection. the improved network model can locate the insulator and defect positions accurately. it is a feasible insulator defect detection algorithm, in which the insulator positions are mapped by insulator and defect positions by defect. the detection effect before and after improvement is shown in figure 5. table 2. contrast experiment network model precision recall map@0.5 yolov3 0.932 0.948 0.938 yolov5 0.945 0.944 0.953 improved yolov5 0.985 0.981 0.97 (a) before improvement (b) after improvement figure 5. image of yolov5 test before and after improvement 5. conclusion in this paper, an improved yolov5 insulator defect detection algorithm is proposed to solve the problems of small target scale, complex background, difficult detection, false detection and leakage detection of aerial insulators in transmission lines. firstly, cbam attention module is added to the backbone network of yolov5 to improve the feature extraction capability of insulator pictures. secondly, in the feature extraction part, panet structure is replaced by bifpn structure to make full use of the underlying feature information. finally, the improved k-means algorithm is used to determine the prior frame, so as to improve the stability of the generated prior frame and the detection accuracy of insulator defects. a large number of experiments have proved the effectiveness of the proposed method. references [1] gao youhua, wang caiyun, liu xiaoming, et al. analysis of electric field of basin-type insulator existing metal particles and its influence on surface flashover [j]. new technology of electrical engineering,2015,34(8) :56-61. [2] huang ruiying, huang daochun, zhou jun, et al. research on bird damage risk region of 400kv dc transmission line [j]. new technology of electrical engineering, 2017, 36(2): 68-73. [3] chen wenhao, yao lina, li fengzhe. insulator defect detection and location in uav power grid inspection [j]. computer applications, 2019,39(s1); 210-214. [4] tan jicheng. automatic insulator detection for power line using aerial images powered by convolutional neural networks[j]. journal of physics: conference series, 2021, 1748(4). [5] fan p, shen h m, zhao c, wei z, yao j g. zhouz q. fur, hu q. defect identification detection research for insulator of transmission lines based on deep learning[j]. journal of physics: conferenceseries,2021,1828(1). [6] wang wanguo, tian bing, liu yue, et al. research on power component recognition of uav inspection image based on rcnn [] journal of geo-information science, 2017, 19(2) : 256-263. [7] chen jingwen, zhou xin, zhang rong, et al. aerial photo insulator detection based on u-net network [j]. journal of shaanxi university of science and technology, 2018, 36(4): 153-157. [8] du fenglin. application of object detection algorithm based on deep learning [d]. hefei: anhui university,2018. [9] woo s, park j, lee jy, et al. cbam: convolutional block attention module. proceedings of the 15th european conference on computer vision. munich: springer, 2018.3-19. [10] tan mx, pang rm, le qv. efficient det: scalable and efficient object detection. 2020 ieee/cvf conference on computer vision and pattern recognition (cvpr). seattle: ieee, 2020. 10778-10787. [11] lin ty, dollar p, girshick r, et al. feature pyramid networks for object detection. 2017 ieee conference on computer vision and pattern recognition (cvpr). honolulu: ieee, 2017.936944. [12] liu s, qi l, qin hf, et al. path aggregation network for instance segmentation. 2018 ieee/cvf conference on computer vision and pattern recognition. salt lake city: ieee, 2018. 8759-8768. [13] zhao qj, sheng t, wang yt, et al. m2det: a single-shot object detector based on multi-level feature pyramid network. proceedings of the 33rd aaai conference on artificial. intelligence. honolulu: aaai, 2019.92599266. [14] ghiasi g, lin ty, le qv. nas-fpn: learning scalable feature pyramid architecture for object detection. 2019 ieee/cvf conference on computer v ision and pattern recognition. long beach: ieee, 2019.7029-7038. bai hy, wen s, chan shg. crowd counting on images with scale variation and isolated clusters. 2019 ieee/cvf international conference on computer vision workshop (iccvw). seoul: ieee, 2019. 18-27. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 1, 2023 13 development of electric power networks inspection information management system based on mapworld api jingran zhong 1, bi he 1, *, chuanzhi geng 2 1 school of civil engineering, shandong jiaotong university, jinan, 250023, china 2 beijing sunway technology co., ltd, beijing, 102206, china * corresponding author: bi he (email: 204018@sdjtu.edu.cn) abstract: according to the management requirements of a large number of spatial data and attribute data generated by daily inspection of power system, the power inspection information management system is developed by using webgis (web geographic information system) technology. firstly, the user layer of the whole system is developed by using html and css as tools, and then the basic data is managed by using sky map api and javascript as tools, combined with the relevant functions of sky map api, the functional modules of the system are developed to realize the functions of visual information management and two-way query. the system can provide corresponding solutions for the management of power patrol information. keywords: mapworld; webgis; power inspection; information system. 1. introduction electric power system is the core infrastructure of national economic construction and residents' life. in order to ensure the safe and stable operation of electric power system, strict daily inspection is required. in the daily patrol inspection process of power system, the patrol objects involved, such as lines, stations, transformer stations, etc., are spatially presented in the form of points, lines, planes, etc. at the same time, a large amount of attribute information is generated in the patrol inspection process. scientific and effective management of these patrol objects and patrol information is the basis for giving play to the patrol inspection effect and ensuring the safe operation of the power grid. according to the characteristics of patrol objects and patrol information, which have both spatial location information and attribute information, an effective way to manage such information is to run geographic information system (gis) technology. this paper uses this technology to design and develop a set of electric power patrol information management system. 2. mapworld api when geographic information system technology manages information, it will run in a unified data management mode and data operation mode according to the characteristics of spatial information and attribute information, which can play a standardized effect. in order to better use these unified management and operation modes, developers integrate these modes into a set of standard instructions, which are called api (application program interface), the secondary developers only need to call the corresponding functions to complete the corresponding standardized operations, which greatly reduces the development workload and reduces the possibility of program running errors. the mapworld api is a map api platform established by the national basic geographic information center. it mainly provides two functions, one is to provide vector map data including conventional ground objects, which omits the process of re mapping basic ground object vector data by secondary developers; second, it provides function call interfaces including common functions such as map operation, object search, and object creation, which greatly simplifies the development workload of secondary developers. this paper uses the mapworld api as a tool to make use of these two functions to better achieve the design goal. 3. overall design of system the overall design of the system is to design the overall structure of the system at the macro level, which is the basis for the development and implementation of the software system. the quality of the overall design determines the operation quality of the software throughout its life cycle, and is the basic guidance for the development work. 3.1. user requirements analysis according to the early investigation, the users of the electric power networks inspection information management system developed in this paper need to specifically include the following: 3.1.1. informatization operation of on-site patrol inspection the most basic and main function of the electric power networks inspection information management system is to realize the whole process information operation of on-site inspection. it is subdivided into operator identity login management, automatic transfer of inspection items, and image and text data entry of inspection results. 3.1.2. wireless upload of inspection data on site patrol inspection uses smart phones to collect inspection result data. after data entry, it needs to be synchronously uploaded to the data center of the system wirelessly. 3.1.3. unified management of inspection data the data uploaded from the mobile terminal or its multi system data terminal, after entering the management center, it needs to be managed uniformly in the management center. 14 therefore, a function module for unified data management needs to be designed. 3.2. structure design of system the software system developed in this paper runs in network mode and adopts b/s architecture. the overall structure of the system is shown in figure 1. figure 1. overall structure of system the system is generally composed of front-end (b end, browser end) and back-end (s end, server end). the front end runs on the mobile device of the operator, mainly used to complete the collection and entry of the electric power patrol inspection, and upload the entered information to the server. the back end is mainly composed of two layers, namely the business layer and the data layer. the data layer mainly completes the centralized storage and management of data, connects with the business layer through the data engine interface, provides data to the business layer, and receives the processed data from the business layer. the business layer undertakes the main business processing tasks of the entire system, which is composed of different functional modules. 4. calling of mapworld api the map foundation of the system is realized by calling the mapworld api, which is referenced in the header file of the web page file on the server side. the main code is as follows: after calling the mapworld api, we can obtain the basic map data and complete the basic data settings of patrol information map visualization. 5. function design of system the functional design of the system is to complete the design of each functional module planned in the overall design, so that each functional module can complete the corresponding work. the main functional modules of the system designed in this paper include: user information management, data browsing, data management, information query. the function module of system can be expressed by figure2. figure 2. function module of system 5.1. user information management the user information management module is a functional module that stores and manages the user name, user information and login password. its design idea is to establish a user information table in the system database. when a user logs in, the user name and password entered match the preset information in the user information table. if the information matches, the user is allowed to log in. if the information does not match, the user is refused to log in. this module not only classifies users' identities to provide different functions, but also guarantees system security. 5.2. field inspection module the field inspection module runs on the mobile terminal, and its main function is to provide the patrol inspectors with operation tools. after logging in, the patrol inspectors can see various inspection items, provide the security inspectors with input windows, and provide the function of taking photos, so that the security personnel can take photos of the site situation. after the patrol inspectors complete the inspection data entry and taking photos, the module stores relevant information. 5.3. data transmission and warehousing module the function of the data transmission and warehousing module is to transmit the inspection result information of the mobile terminal to the server and store it in the data table of the server. here, we mainly use java under the android platform environment to develop the data transmission function, and use php to develop a receiving function on the server side to place the information in a separate table. after the data processing module verifies the data, it will be stored in the system database. 5.4. data processing and filing module the data processing and filing module runs on the server side and is mainly developed by php. the function of this module is first to verify the data transmitted from the mobile terminal. when the data is correct, the module stores the data in the information table corresponding to the project in the database and archives the data according to the time and other parameters of the inspection task. 15 5.5. information browsing and query module the information browsing and query module also runs on the server side. its function is to provide information services for users by using attribute data and spatial data interconnection based on archived patrol data. there are two forms of query service. one is to query the figure objects according to the attribute data, and the other is to directly query the attributes of the figure objects. 6. conclusions electric power inspection is a basic and important work in the electric power industry. the data generated by the inspection is a direct reflection of the operation situation of the power system, which has great research and application value. how to manage and use these data is an important work to better play the role of electric power inspection. the comprehensive management ability of spatial data and attribute data provided by gis technology, as well as the excellent performance of spatial analysis, can well realize the management, analysis and use of patrol information. at the same time, with the development of artificial intelligence and big data technology, as well as the introduction and use in this system, the analysis ability of the system will be further improved, and the value of electric power patrol data will be better excavated, which is the next development direction of this system. references [1] herbuela von ralph dane marquez et al. integrating behavior of children with profound intellectual, multiple, or severe motor disabilities with location and environment data sensors for independent communication and mobility: app development and pilot testing.[j]. jmir rehabilitation and assistive technologies, 2021, 8(2). [2] daojiang wang et al. a novel application of educational management information system based on micro frontends[j]. procedia computer science, 2020, 176 : 1567-1576. [3] narindro laser et al. development of accountability for academic performance model based on management information system[j]. vine journal of information and knowledge management systems, 2020, ahead-ofprint(ahead-of-print) : 47-63. [4] kunyu cao and yongdang chen and bingbing qiang. research on the construction of green management information system for sustainable development[j]. iop conference series: materials science and engineering, 2019, 688(5). [5] laumal folkes e. et al. development of web-based coffee management information system to support the management of regional superior products[j]. journal of physics: conference series, 2019, 1424 : 012008-012008. [6] yuwei liu. development of comprehensive archives management information system based on b/s structure[j]. journal of applied science and engineering innovation, 2019, 6(3). [7] andy a. lapada. development and evaluation of a management information system with sms notification technology in a philippine military camp[j]. international journal of engineering and advanced technology (ijeat), 2019, 8(5) : 1174-1177. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 2, 2022 56 research on a uuv cluster communication model hai fu* shandong qingdao, china. * corresponding author: email: 864853960@qq.com. abstract: the characteristics of low bandwidth and high packet loss of underwater communication restrict the research and development of uuv cluster. this paper proposes a uuv cluster communication model, which increases the overall network throughput and improves the overall data transmission efficiency within the cluster network. keywords: uuv; underwater; cluster communication. 1. introduction in recent years, with the development of unmanned platforms, many countries have also increased their research efforts on unmanned underwater vehicles (uuv) [1]. however, the performance of a single uuv is difficult to meet the requirements, and its functions and scope of action are constrained. therefore, researchers began to focus on multi uuv clusters. multi uuv clusters has great potential. it can expand the perception range of a single uuv, improve efficiency, and can be used for tasks such as detection of seabed mineral resources, detection of underwater targets [2]. at the same time, they have the advantages of low cost, high scalability, high efficiency, strong fault tolerance, and reconfiguration [3]. in recent years, the swarm intelligence technology based on multi uuv clusters has also begun to receive attention and research [4]. the swarm intelligence technology is derived from the research on social organisms such as ants, bees, and is called the next generation artificial intelligence technology, which has high application value. however, the realization of multi uuv cluster and group intelligence depends on highspeed real-time communication between all individuals in the cluster, and the characteristics of underwater environment make the speed and stability of underwater communication difficult to meet the requirements, which has become a bottleneck problem restricting the development of underwater cluster cooperation and group intelligence [5]. underwater communication has always been the focus of research in various countries, and the current research mainly focuses on the following aspects.1. radio communication. as the main transmission mode of modern communication, radio communication has the advantages of long distance and high bandwidth. however, the electromagnetic wave attenuates rapidly underwater, and the higher the frequency is, the greater the attenuation is. the propagation distance of ordinary electromagnetic wave underwater is very limited. therefore, radio communication mainly relies on vlf and ultra-low frequency communication, and the communication distance can reach hundreds of meters. however, the disadvantage is that the transmission rate is extremely low. generally, the amount of data transmitted per minute is a few bytes, and only commands or short codes can be transmitted. 2. underwater acoustic communication. using the bionic principle and referring to the practice of dolphins, whales and other underwater creatures transmitting information through sound, the research will transform the signal into sound wave for transmission, and the receiver will convert the sound wave into electrical signal to complete communication. this method has small attenuation and long transmission distance, but it is easy to be affected by underwater noise of different densities, temperatures and types. the communication effect is very poor, the bit error rate is very high, and the transmission rate is not high. 3. new communication methods. with the breakthrough of science and technology, research on underwater communication using other technologies has also emerged, such as blue green laser communication, neutrino communication, quantum communication, etc. the blue green laser has strong penetration ability in water, low attenuation, high transmission rate, large information capacity, strong anti-interference, small receiving antenna, etc., but the directivity of the laser is too strong, so it is necessary to know the accurate location information of the communication partner, therefore, there are great difficulties in practical application; the physical characteristics of neutrino and quantum communication determine their strong penetrability, confidentiality and anti-interference ability. however, the research on these two kinds of communication is still in the initial stage, and there is still a long way to go from practical application. to sum up, it can be seen that both radio communication and underwater acoustic communication have the characteristics of low transmission rate, short communication distance, large interference and high packet loss rate. therefore, how to effectively solve these shortcomings and improve the efficiency of underwater communication is the key to realize the cooperative work of multiple uuv systems and promote the research of underwater group intelligence. 2. underwater multi uuv cluster communication model the communication between uuvs in the underwater environment, whether in radio or underwater acoustic mode, can be broadcast around, that is, uuvs in a certain range around can receive information. these uuvs that can communicate directly constitute a lan. each uuv in the network has the ability to store and forward, and assume the function of a routing node. therefore, the cluster composed of multiple uuvs is logically similar to the routing multicast communication when communicating with each other, but the links between nodes are characterized by low transmission rate, high packet 57 loss rate, instability and dynamic change. each uuv individual in the cluster has the function of store and forward, similar to a router in the network. when the two uuvs cannot communicate directly due to the long distance and strong interference, it can be understood that the link between the two routers in the network is disconnected, and data relay transmission can be completed with the help of other nodes. at the same time, with the relay transmission of uuv nodes, data transmission between underwater uuv clusters and ships, air planes, space satellites, ground receiving stations and other underwater communication nodes can also be realized. when a uuv rises to the surface, it acts as a relay node between the underwater cluster and the communication nodes on the water. other uuvs in the underwater cluster do not need to rise to the surface, which not only avoids the risk of exposing, but also enables communication with the nodes on the water. in addition to floating a uuv out of the water as a real-time relay transmission node, in order to reduce the time of exposure on the water surface, it can also use the uuv's own data storage capacity to transmit all other uuv data to the relay node uuv through the cluster networking underwater. after receiving the data from all nodes, the uuv will automatically go to surface and transmit all the data to the node on the water through the normal high-speed radio. because the radio transmission speed on the water is very fast, the exposure time of the relay uuv on the water can be reduced, thus reducing the risk of being found. fig.1 uuv relay transmission 3. optimization strategy of the model the realization of multi uuv cooperative operation and uuv group intelligence often requires that the information of one uuv in the cluster can be transmitted to all other uuvs in the cluster. therefore, the communication in the cluster needs to solve two levels of problems. first, from the overall perspective of the entire network, it is necessary to realize that the data of each uuv in the cluster can be transmitted to all other uuvs as quickly as possible under the condition of limited underwater communication bandwidth. second, the point-to-point communication between two nodes should be fast and efficient. in traditional wireless lan, multicast is usually used to realize data transmission from node to all other nodes. however, due to the limited point-to-point transmission bandwidth in underwater environment, it is necessary to make full use of the transmission bandwidth to achieve the maximum multicast capacity. to solve this problem, we use the advantages of network coding technology in traditional routing multicast, and apply network coding technology to underwater multi uuv cluster communication network to adapt to the scene of limited underwater communication bandwidth. network coding combines the concepts of coding and routing. by coding and combining information from different links, network nodes can realize both routing and coding functions. under this network structure, you can make full use of the link bandwidth between nodes. with the help of the node's own sufficient storage and computing capabilities, you can store the received data for coding calculation, and then forward the encoded data, thus reducing the amount of data transmitted on the link. therefore, it is particularly suitable for network scenarios where the node has sufficient computing capacity and limited link bandwidth. the underwater multi uuv cluster networking transmission just belongs to this type of scenario. network coding can effectively improve the performance of network multicast, improve the capacity of multicast network, improve link load balance, save node energy consumption, improve network connection robustness, and improve network error correction efficiency. in addition, aiming at the high packet loss rate of point-topoint communication in underwater environment, the combination of packet coding and automatic retransmission is used to optimize. in the field of network transmission, the traditional feedback retransmission mechanism is that the sender triggers retransmission of lost packets according to the packet loss information received from the receiver. this technology is suitable for transmission scenarios with low packet loss rate and delay. when encountering scenarios with high packet loss rate and high time delay, the transmission efficiency will become very low. especially in the case of high packet loss rate underwater, the use of feedback retransmission may lead to multiple feedback retransmissions of data before it can be completely transmitted to the opposite end, which is extremely time-consuming. in this scenario, the combination of packet coding and automatic retransmission can be used to optimize, that is, the sender will automatically send the original packet again no matter whether it is lost, so that the sender does not need to wait for the packet loss information from the receiver, thus avoiding the time loss of waiting for feedback. however, the disadvantage is that automatic retransmission of the original packet will double the amount of data transmitted, in the case of limited underwater communication bandwidth, the transmission efficiency will also be reduced. therefore, the automatic retransmission mechanism can be combined with the packet encoding technology to change the data packets sent during the automatic retransmission from the original packets to the encoded packets calculated by the data groups composed of several data packets. the receiver can calculate the original packets according to the received encoded packets through the decoding operation, thus avoiding the problem of doubling the amount of data transmitted due to the automatic retransmission of redundant packets. taking the link packet loss rate of 0.25 as an example, every three original packets between normal transmission packets 1 and n will automatically send a redundant encoded packet. the three original packets and encoded packets form a data group. the encoded packets in the group are calculated 58 from three original packets. if any one of the three data packets in the group is lost, the receiver can calculate the lost data packet by using the remaining two original data packets and coded packets, without having to feed back the packet loss information to the sender and wait for the sender to retransmit, which saves time and improves efficiency. if all the packets in the group are received, this coded redundant packet can check whether the original packets in the block are correct, or even correct errors. 4. summary this paper describes the great advantages and broad prospects of uuv cluster cooperative work and group intelligence technology in the current underwater environment, and briefly introduces the development status and defects of underwater communication technology. a multi uuv communication model is proposed, and network coding technology is applied to optimize it, so as to improve the utilization of communication link bandwidth and the transmission efficiency between nodes. this technology does not depend on the bottom communication mode, and can be used for underwater wireless communication, underwater acoustic communication, laser communication and other communication methods, with strong practicability and popularization. references [1] ruixin wang,beidong zhang. study on route selection and collision avoidance of uuv based on fuzzy control[j]. journal of physics: conference series,2021,2044(1). [2] ma yan,feng wei,mao zhaoyong,li heng,meng xiangyao. path planning of uuv based on hqpso algorithm with considering the navigation error[j]. ocean engineering,2022,244. [3] papadopoulos c,vlachos s,yakinthos k. conceptual design of a fixed wing hybrid uav uuv platform[j]. iop conference series: materials science and engineering,2022,1226(1). [4] watson simon,duecker daniel a,groves keir. localisation of unmanned underwater vehicles (uuvs) in complex and confined environments: a review.[j]. sensors (basel, switzerland),2020,20(21). [5] zheping yan,jinzhong zhang,jialing tang. modified whale optimization algorithm for underwater image matching in a uuv vision system[j]. multimedia tools and applications,2020,80(prepublish) . frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 2, 2022 19 research on application of mathematical modeling based on matrix theory xueyan song school of xinjiang production and construction corps no. 2 middle school, xinjiang 830002, china abstract: as a simple tool for understanding complex things, matrix has been widely used in various disciplines and mathematical modeling. the development of any discipline is closely related to quantitative analysis and research, and mathematics plays a vital role in quantitative research. matrix is one of the most basic mathematical concepts, and it is also a simple thinking tool for people to grasp the essence of complex practical things. matrix is widely used in mathematical modeling. in the process of mathematical modeling, we often encounter some mathematical models that can be handled by graphs and adjacency matrices of graphs. using adjacency matrix to represent graphs is simple and intuitive, and adjacency matrix can represent some practical information of graphs. in this paper, the application of adjacency matrix in mathematical modeling is analyzed and studied, and on this basis, the application of matrix in mathematical modeling is further studied and popularized. keywords: matrix; mathematical modeling; thought tool. 1. introduction it is the mother of mathematical science and the common foundation of many disciplines. with the rapid development of computer and the arrival of information age, people pay more and more attention to quantitative research in most research fields [1]. in the process of mathematical modeling, we often encounter some mathematical models that can be handled by graphs and adjacency matrices of graphs [2]. using adjacency matrix to represent graphs is simple and intuitive, and adjacency matrix can represent some practical information of graphs [3]. matrix is one of the most basic mathematical concepts, and it is also a simple thinking tool for people to grasp the essence of complex practical things. in mathematical modeling, matrix is widely used, such as mathematical programming, analytic hierarchy process, markov chain model, input-output, data fitting, etc., and matrix analysis is mainly used to solve problems [4]. no matter what kind of practical problems are solved by mathematical methods, the establishment of mathematical models is a crucial step, and it is also a very difficult step. by observing and studying the inherent characteristics and laws of practical objects, we should grasp the essence of things, establish a quantitative relationship that reflects practical problems, and then use mathematical theories and methods to analyze and solve problems [5]. it is one of the most important concepts in matrix mathematics and an important mathematical tool. it is widely used in various branches of natural science [6]. matrix is also widely used in mathematical modeling, such as mathematical programming model, linear algebraic model, differential equation model and data fitting. with the deepening of scientific research, the application of matrix theory is more and more extensive [7]. it plays an irreplaceable role in many disciplines and fields, such as the first-order approximation of multivariate functions in mathematical analysis and the existence theorem of implicit functions are closely related to matrix theory [8]. matrix is a numerical table, and the data in the table can be operated and transformed by algebraic methods. it can simplify complex and abstract practical problems, so that we can see the essence of practical problems clearly. therefore, the use of matrix in solving practical problems will often get twice the result with half the effort [9]. there are countless examples of the application of matrix theory in other mathematical disciplines and research fields. therefore, we should not study it independently, but apply it to other mathematics courses and combine them organically, so as to deepen our understanding of higher algebra. in this paper, the application of adjacency matrix in mathematical modeling is analyzed and studied, and on this basis, the application of matrix in mathematical modeling is further studied and popularized. 2. heterogeneous modal data denoising with the rapid development of computer and the arrival of information age, people pay more and more attention to quantitative research in most research fields. it can be said that the development of any discipline is closely related to quantitative analysis and research, and mathematics plays a vital role in quantitative research [10]. matrix theory is the core content of higher algebra, and many ideas and methods in matrix theory greatly enrich the algebraic theory of mathematics. when matrix theory is applied to these mathematical disciplines, such as optimization and graph theory, compared with the conventional methods, it often has unique effects and makes many problems simple and clear. assume that the one-dimensional integrated network signal function ( )xf is projected onto each step j of the subset ( )012 vvvv j  . the projection is set by integrating the scale product kjc , of the network signal function ( )xf and the scale function ( )xkj , , and the projection setting formula is: ( ) ( )xxfc kjkj ,, ,= (1) ( ) ( )kxx jk kj −= −− 22,  (2) where: ( )x stands for low-pass filter, also called scaling function. assuming ( )xh represents a wavelet 20 function, the scaling function ( )x can be expressed as follows: ( ) ( ) −=      x nxxh x  22 1 (3) kjc ,1+ can be solved by kjc , : ( )=+ n kjkj cnhc ,,1 (4) the scale product of wavelet coefficient kjw , can be expressed as: ( ) −= k kjkj ckngw ,, 2 (5) ( )kng 2− wavelet coefficient set. and so on until the length of the one-dimensional integrated network signal function ( )xf becomes 1. transformations other than down sampling need up sampling before filtering convolution of each scale, so that kjc ,1+ and discrete wavelet coefficients can be expressed as: ( ) ++ = l jlkjkj clhc 2,,1 (6) ( ) ++ = l jlkjkj clgw 2,,1 (7) where l represents the maximum step of the subset ( )012 vvvvj  . the redundancy of this wavelet transform is helpful to highlight the characteristics of data signals, especially in noise extraction. 3. estimation of matrix eigenvalue the traditional error bound estimation of matrix eigenvalues is described as the distance between the eigenvalues of the original matrix and the eigenvalues of the disturbance matrix. the characteristic coefficient of polynomial plays a key role in the application of quantum physics, especially it provides such information. if the matrix a is a normal matrix, the binomial value becomes smaller. at this time, the elementary symmetric function is aimed at all singular values instead of the maximum value, which can get better coefficient constraints. for the lower bound of the minimum eigenvalue ( )1−aaq 。 of the had-amard product of matrix a and its inverse 1−a , it is obtained that: ( ) n aaq 11 −。 (8) and guess: ( ) n aaq 21 −。 (9) when the order of a matrix is very large, the result of this estimation formula is not good. improved results: ( ) ( ) ( ) ( ) ( )  2 1 2 1 21 11 1 ,1max + +− −+ + − n n jn j jaaq   。 (10) due to the complexity of ( )j calculation, it is concluded from the elements of the matrix that: ( )           + −     − ij ji iiii ni s rsa aaq 1 min1。 (11) including:   nissij a r dar ij ij i kk k k ij iji = ==    ,max, , (12) 4. feature extraction of heterogeneous modal data in integrated networks when the number of columns in the matrix is the same as the number of elements in a certain column vector, multiplying the matrix by the vector will get another vector, which is the linear transformation of the vector. when the matrix is square, the linear transformation can continue. that is, a new vector is obtained by multiplying a matrix by a vector, and another new vector is obtained by multiplying the same matrix by the new vector. the essence of this operation is to multiply the initial vector by the power of the matrix. let the heterogeneous modal data matrix of the basic network after denoising and classification be as follows:   nm n rxxx = ''''' ,, (13) each column vector represents the original data points with m spectral bands, and nmf aims to find two nonnegative matrices   rm ir ruu == and   rn jr rvv == . multiply these two non-negative matrices, the product can represent 'x , and take mr  . at this time, iv represents the low-dimensional representation of hyperspectral data '' ix on the basis vector set  rrur ,,1= , and the spectral feature extraction is completed by matrix reconstruction. in order to solve this problem, when most of the highdimensional data are distributed in a highly nonlinear way, the concept decomposition is regarded as an improved nmf , a non-negative linear combination of the highdimensional data and the data set represented as basis vectors '' 'j x and ru respectively:  =  r r rjrj vux 1 '' '' (14)  =  n j rjjj sxu 1 '''' ''' (15) when using euclidean distance to measure the reconstruction error, it is necessary to obtain the optimization result according to the minimization objective function: 21 ( ) ( )2'' 2 ' ztrxxtr xsvx t t cf −= −= (16) where tr is matrix trace, z is auxiliary matrix, t is transposed symbol, and txsv represents reconstruction error set. the calculation formula for obtaining the optimal solution of the objective function by the iterative updating method is as follows: t n j rjrj xsv x ss ' ''  (17) t n j rjcfrj xsv xj vv ' ''  (18) to solve this optimization problem, the kernel method is introduced to calculate the inner product, and the category information of labeled samples is regarded as a hard constraint to ensure that labeled data with the same category attributes are projected to the same area in the lowdimensional space. 5. conclusions the application of analytic matrix operation must consider not only the need of constructing matrix theory, but also the actual need of teaching. the basic purpose of studying matrix operations and their operation laws is to make full use of these operations to introduce new matrix concepts, and at the same time to grasp the relationship between matrices, so as to gradually construct the whole matrix theory system. therefore, the application of matrix operation in the construction of matrix theory is very common, and it has become a basic tool to study matrix problems. usually, in the structural information of network data, the attribute information of each node is different, which will also affect the matching accuracy of network nodes. how to design a more effective node matching algorithm by combining the attribute of nodes with the topology of the network will be a meaningful thing. macroscopically, matrix operation is a great tool to discuss matrix problems, but it is not the only one. in fact, elementary transformation of matrix is not only the application basis of matrix theory in the whole higher algebra, but also a powerful tool to analyze matrix theory itself. with the development of science and technology, there will be more and more intersections among various disciplines and fields, and the penetration of matrix application will be deeper and deeper. therefore, the research and popularization of matrix application is helpful to tap the potential of matrix, and has positive significance for the increasingly complex and interdisciplinary mathematical modeling in the future. references [1] wang ling, li xiuying. application of matrix theory in mathematical modeling [j]. knowledge base, 2019, 469(21):187-188. [2] chang hong. analysis and research on mathematical modeling process of economic and environmental game [j]. environmental science and management, 2018, 043(008):4750. [3] wang zhen, zhang juan, he jing, et al. mathematical modeling and adaptive routing configuration of spacewire spaceborne network [j]. space electronics technology, 2018, 15(1):7. [4] chang hong. analysis and research on mathematical modeling process of economic and environmental game [j]. environmental science and management, 2018, 43(8):4. [5] manepalli p h, alavi s. mathematical modeling of mechanical and barrier properties of poly(lactic acid)/poly(butylene adipate-co-terephthalate)/ thermoplastic starch based nanocomposites[j]. journal of food engineering, 2019, 261(11):60-65. [6] liu jing, lian dongyan, hu shuangnian. mathematical modeling and simulation of synchronous control of asymmetric coupled sensor network [j]. computer simulation, 2019, 36(10):5. [7] gao ting. fuzzy mathematical modeling analysis of electrohydraulic servo vibration table life [j]. journal of weapon equipment engineering, 2021, 42(8):6. [8] liu qin. mathematical modeling of intelligent management of water supply system [j]. smart city, 2022, 8(3):3. [9] zhao bingxin, cui bo, liu yihong, et al. a mathematical modeling and evaluation method of cable component complexity [j]. spacecraft engineering, 2019, 028(002):91-96. [10] martins-costa m l, alegre d m, bastos d, et al. a hyperbolic mathematical modeling for describing the transition saturated/unsaturated in a rigid porous medium[j]. international journal of non-linear mechanics, 2017, 95(10):168-177. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 63 communication efficient federated personalized recommendation lingtao wei * college of computer science & technology, qingdao university, qingdao shandong, china * corresponding author: email: qduwlt@163.com abstract: recommendation systems that can correctly predict user preferences in the information age have become an important factor for business success. however, recommendation systems require users' personal information, and centralized collection and processing of user data may lead to serious privacy risks. good progress has been made in recent years using federated learning techniques for privacy-preserving recommendations, but several key challenges remain to be addressed: most federated recommender systems ignore communication process optimization, inequities in aggregation of federated models, and lack of personalization to users. in this paper, we propose a communication efficient and fair personalized federated recommendation approach (cffr) to address these challenges. cffr uses adaptive client group selection to personalize models while accelerating the training process. a fair-aware model aggregation algorithm is proposed that adaptively captures the performance and data imbalance among different clients to address the unfairness problem. extensive experimental results demonstrate the effectiveness and efficiency of our proposed method. keywords: recommendation; federated learning; grouping. 1. introduction users in the digital age are overwhelmed by the vast amount of information on the internet and have difficulty getting the information they need. recommender systems (rs) help users discover the most useful information or services at the right time and in the most appropriate way. a recommendation system that can correctly predict user preferences becomes a key element of business success. recommender systems need to collect user data to perform analytical modeling to analyze user preferences in order to provide services to users. however, with introduction of data privacy laws, increased regulation, and growing public unease about how personal data is collected and used, it has become increasingly important for recommendation systems to find a better balance between personalization and privacy. to address this issue, many studies on the protection of personal information in recommender systems have been conducted, and good progress has been made in recent years on privacy-preserving recommendations using federated learning techniques, but several key challenges remain to be addressed: most federated recommender systems only consider model performance and privacy-preserving capabilities and ignore communication process optimization, inequity problems in aggregation of federated models, and the systems, and insufficient research on personalization of federated recommender systems. we aim to develop a more efficient way to train recommendation models faster in a federated environment so that users can enjoy accurate recommendations without spending unnecessary effort and suffering from high communication costs. the user in a federation learning scenario bears most of the costs involved in training the model. specifically, users may experience performance degradation and increased communication load during training, especially if they have to wait for a long time to enjoy quality personalized recommendations, which can reduce their acceptance of the service. in this paper, we propose a communication-efficient and fair personalized federated recommendation method (cffr) to address these challenges. cffr introduces a communication-efficient scheme that uses adaptive client group selection to achieve model personalization while accelerating the training process. a fair-aware model aggregation algorithm is proposed, which can adjust the parameter aggregation weights according to the imbalance state of performance and data among different clients to solve the unfairness problem. extensive experimental results demonstrate the effectiveness and efficiency of our proposed method. the remainder of this paper is organized as follows. section 2 discusses related studies. section 3 elaborates on our proposed cffr method. section 4 describes extensive experiments. finally, we summarize our work in section 5. 2. related works 2.1. federated learning for recommender system federated learning [1] is a machine learning technique that allows multiple clients to directly participate in model training without directly sharing data. recommendation algorithms can be migrated to a federation learning scenario in order to achieve protection of users' private information, using users' local data for model training and implementing predictive inference. typical federated learning-based recommender systems are fcf [2] and fed-mvmf [3], but the protection of the gradient data uploaded by each client is not implemented in the two methods, since the user's rating information can be inferred if given the gradients of a user uploaded in two continuous steps [4]. the model updates sent to the server may contain enough information to discover the original data, fedrec [5] propose to give some (instead of all) unrated item to be randomly sampled and to assign with some virtual ratings. fedrec++ [6] extends the fedrec [5] to eliminate the nose in a privacy-aware manner by allocating 64 some denoising clients. 2.2. local differential privacy (ε -local differential privacy, ε -ldp [7]) a randomized algorithm f :𝕋 → 𝕐 with domain 𝕋 and range 𝕐 satisfies ϵ-ldp if and only if, for any inputs t, t′ ∈ 𝕋 and output y ∈ 𝕐: pr[f(t) = y] ≤ eε pr[f(t′) = y] (1) where ε is the privacy budget that controls the balance between utility and privacy protection? we implement 𝑓 with a laplace mechanism by adding well designed noise to the data. 3. methodologies 3.1. system overview some commercial behaviors of users, such as paid purchase records on movie and video websites are required to be kept by the server, i.e., user item interaction records cannot be hidden from the server, but the specific preferences of users for items, i.e., user item rating data, can still be stored locally on the user's device rather than uploaded to the server, thus reducing the privacy risk of users to some extent. we assume that there are n users u1, … , un and m items i1, … , im . firstly, we calculate user similarity based on the user item interaction records stored on the server, and generate a grouping of target user i based on the user similarity, and the users in the group collaborate to train the recommendation model, and we also propose a new model aggregation method to speed up the model training in the model training. our method can serve small batches of users with similar preferences quickly and accurately. 3.2. the recommendation model any representation learning model can be used in our framework to obtain embeddings of users and items (e.g., mf [8], bpr [9], and gmf [10]). here, we employ generalized matrix factorization (gmf) to learn the representation vector of users and items. we define the user embedding as eu ∈ rk and the item embedding as ev ∈ rk , with k denoting the embedding dimension. the user embedding and item embedding are fed into the fully connected layer to obtain the prediction scores r̂uv. �̂�𝑢𝑣 = 𝑤𝑇(𝑒𝑢 ⊙ 𝑒𝑣) (2) where w ∈ r1×k are the parameters of the fully connected layer. gmf is used to train the model by minimizing the loss function between the predicted scores and their true values, and here we use the mean squared error for explicit recommendation. the optimization problem that minimizes the loss function can be expressed as follows: min ∑ (ruv − r̂uv)2 (u,v)∈rm×n + λ(||eu||2 + ||ev||2) (3) during model training, we use ldp to add perturbations to the gradient to better protect user privacy since the gradient can be used to infer the real information of the user. the local model gradient is defined as g , which is perturbed by the stochastic algorithm m as follows: m(g) = clip(g,δ) + la(0,λ) (4) clip(g,δ) denotes a gradient clipping technique that limits the gradient g to the δ scale to prevent gradient explosion and better train the model. la(0,λ) denotes laplace noise with mean 0 . λ controls the intensity of laplace noise. the larger λ is, the higher the noise is and the higher the degree of privacy protection is. after randomizing the gradient operation using ldp technique, it is almost impossible to infer the original user data from the weights. the weights on the client are then uploaded to a central server for aggregation. 3.3. grouping method the ideal user grouping should be a good representation of the user pattern, and the interaction records of user items within that grouping must have a high density. therefore, user grouping should consider the following two factors. one is to estimate how similar the interaction records of other users are to those of the target user. recommendation performance will be enhanced if the target user is grouped with other users having similar interaction patterns. the second is to evaluate the density of user records. the more user rating data there is, the denser the data within the grouping and the more useful information can be captured. therefore, we define a group scoring function as a weighted sum of user rating frequency scores and similarity scores. for a group of size k, user i, other user j, (1 ≤ j ≤ n), the group score function is defined as follows. score(i,j) = { 1,i = j l ∗ freq(j) + (1 − l)sim(si, sj),i ≠ j (5) where l = k n . jaccard similarity [11] is used to evaluate the behavioral similarity of users, and si and sj are the interaction records of users stored on the server as bit vectors. sim(si, sj) = |si∩sj| |si∪sj| (6) freq(j) is the rating frequency function of user j, defined as the proportion of the number of interaction items of user j to the total number of items? the grouping process is as follows, the server calculates the grouping scores with other users for the target user i, sorts the users in descending order of the grouping scores, and extracts the top k − 1 users to form a grouping ui (k) with grouping size k with the target user i. 3.4. parameter aggregation method the data on the client side is non-iid, the local dataset is usually heterogeneous between clients in terms of size and distribution, and the effect of model initialization, the local model performance of each client during model training may be less than optimal. therefore, we propose a weighting strategy to handle the differences in model performance and data size between clients. first, we denote the performance of client i as pi, denoted as pi = 1 rmse(i) (7) rmse(i) is the error between the predicted score of the user i 's local model and the true value, and a larger value indicates a larger local model error and a worse performance of its local model. then we normalize it: pi ′ = pi ∑ pi i∈u i (k) (8) secondly, for the effect of data sample size imbalance, the user rating frequency score reflects the sample data size on the user's device, thus we define qi = freq(i) , which is normalized as follows: 65 qi ′ = qi ∑ qi i∈u i (k) (9) finally, we get the final parameter aggregation function: aggi = γαtpi ′ + βqi ′ (10) wt+1 = ∑ aggi ∑ aggi i∈u i (k)i∈u i (k) wi t+1 (11) where wt+1 is the global model updated by t + 1 rounds of aggregation, α and β are two hyperparameters? as the model is updated by multiple rounds of aggregation, the performance of each local model will be improved, and then the main factor affecting the aggregation of the model will be shifted to the number of samples of each client, so we gradually weaken the influence of the performance of each local model when re-aggregating the parameters, i.e., the parameter αt+1 used in the t + 1 round of aggregation is obtained by multiplying the parameter αt used in the t round of aggregation by the discount factor γ , so that the value of α decreases with each round of the aggregation process. 4. experiments 4.1. data experiments are run on movielens 100k(ml-100k) and movielens 1m(ml-1m). all the dataset have been widely used in recommender systems literature to evaluate collaborative filtering algorithms. these datasets are commonly used benchmark datasets in recommendation system research. 4.2. evaluation for the evaluation metric, we adopt the root mean square error (rmse) as performance metrics, which is wide adopted in many related studies for performance evaluation. we group the users after randomly removing one local rating record, and the users within the group are trained for the federal model, and estimate the rmse between the prediction score and the original score for recommendation performance evaluation. rmse is calculated as follows: rmse = √ 1 n ∑ (ri − r̂i) n i=1 (12) where n = total number of rating data records for users in the current group in the test data, ri = original rating information, r̂i = predictive rating information. we compare our proposed cffr with the popular fedavg method using gmf as recommendation model. the goal of our evaluation is to compare the recommendation quality and convergence speed in a federated setting, so we omit comparisons with other classical centralized algorithms. users are grouped after randomly deleting a local rating record, and the users in the group are trained on the federation model and the error between the predicted and original scores is estimated for recommendation performance evaluation. the number of federation training rounds is set to 50, and the relevant parameters are set by default as follows:𝑙𝑟= 0.1, 𝛼 = 1.0,𝛾 = 0.98,𝛽 = 1 − 𝛼,𝑘 = 200,δ=0.01,𝜆=0.03. 4.3. prediction accuracy in this section, we identify the improvement of recommendation performance by grouping. first, let us consider the effect of group size on recommendation performance. the smaller the group size, the higher the density. however, the information about the rating patterns is reduced. conversely, if the group size increases, the information about the rating patterns increases, but the density decreases. therefore, the appropriate group size 𝑘 for grouping is important to improve the recommendation performance. figure 1. recommender performance comparison by group size in this section, we determine the improvement of grouping on recommendation performance. first, we analyze the effect of grouping size on recommendation performance. the smaller the group size, the higher the data density and the less information about user rating patterns, and conversely, if the group size increases, the information about user rating patterns increases, but the data density decreases. figure 1 shows that the performance of recommendation prediction is not satisfactory when the group size is very small or very large. the proposed method in this paper performs better in the ml100k dataset when the group size k is from 20 to 80. among them, the best performance is achieved at k = 40. in the ml1m dataset, the recommended prediction performs better when k is 80. this result indicates that an appropriate grouping size k can effectively improve the recommendation performance. 4.4. analysis of model convergence figure 2. convergence speed between cffr and fedavg in addition to the comparison of the effect of group size on performance, this paper also analyzes the convergence speed difference between the proposed method and the comparison method fedavg [12] by comparing the variation of rmse metrics with the number of model aggregations under different learning rate settings. since the federated recommender system needs to aggregate updates uploaded by multiple clients to perform global model updates, the convergence speed of the model is the focus of the scheme design. therefore, this section compares the changes in model accuracy between the proposed method and fedavg with different parameter settings as the number of aggregations 66 increases. set the group size k =200,𝛼 = 1.0,𝛾 = 0.98,𝛽 = 1 − 𝛼,and the learning rate is set to 0.05 and 0.1. the experimental results are shown in figure 2. under different learning rate settings, this scheme has a faster convergence speed than the fedavg method, and the effect is obvious at larger learning rates. this is due to the fact that in the early stage of federation model training, the performance of the locally trained model varies among clients, and the aggregated model is more affected by the performance of each client when the learning rate is larger. the proposed method can accelerate the convergence of the model by weakening the impact of updates of the poorly performing local models in the early stage of training. 4.5. ablation study figure 3. contributions of the individual components of cffr the proposed federal recommendation algorithm in this paper contains two main modules, the first part is the grouping strategy, and the second part is the parameter aggregation mechanism that incorporates the performance differences and data differences among client models. in order to explore the performance impact of the two modules on the final solution, this section conducts ablation experiments on two datasets, ml100k and ml1m, and analyzes the final results, which are shown in figure 3. in fig. 3, (-grouping) is the removal of user grouping module and (-pa) is the removal of parameter aggregation module. from fig. 3, it can be observed that the scheme in this paper achieves the best results on both datasets, which verifies the importance of the two key modules. among them, the model performance degrades significantly in the experiments where the user grouping module is removed, which proves that the lack of personalized grouping significantly reduces the learning capability of the framework. the absence of the parameter aggregation method still significantly degrades the model performance for the same number of aggregation rounds, demonstrating the importance of the impact of local model performance on the aggregated global model when the model is aggregated. each of the modules demonstrated by the ablation experiments improves the model performance in a different way and significantly. figure 4. comparison of model convergence performance figure 4 shows the change of model convergence after removing each module on the ml-100k dataset. when the parameter aggregation module (-pa) proposed in this scheme is removed, the convergence of the model slows down slightly, but when the user grouping module (-grouping) is removed, i.e., the same number of users are randomly selected to collaborate in model training, the convergence of the model slows down significantly, and at this time there are large differences in the preferences and scoring patterns of the users participating in the federal training, resulting in the inability to get the maximum benefit from the training of other users, thus affecting the global model this has an impact on the convergence speed of the global model. compared with traditional training methods, i.e., removing two modules (grouping and parameter aggregation), the proposed method has significant advantages in model convergence speed and prediction accuracy 5. conclusion in this paper, we propose a communication-efficient personalized federation recommendation method that uses adaptive client grouping to enable users with the same interests to collaborate in training the model, and assigns different aggregation weights to the current round of weighted aggregation of each client's updated model according to the amount of data and performance status among different clients in training, which reduces the communication burden and accelerates the model training at the same time. we have conducted experiments on real datasets, and the experimental results demonstrate the effectiveness of the proposed method in this paper. references [1] j. koneˇcn`y, h.b. mcmahan, et al.: federated learning: strategies for improving communication efficiency. arxiv preprint arxiv:1610.05492, 2016. [2] m. ammad-ud-din, e. ivannikova, et al.: federated collaborative filtering for privacy-preserving personalized recommendation system. arxiv preprint arxiv:1901.09888, 2019. [3] a. flanagan, w. oyomno, et a.l: federated multi-view matrix factorization for personalized recommendations. arxiv preprint arxiv:2004.04256, 2020. [4] d. chai, l. wang, k. chen, and q. yang: secure federated matrix factorization. ieee intelligent systems, vol. 36 (2020) no. 5 p.11-20. 67 [5] g. lin, f. liang, w. pan, and z. ming: fedrec: federated recommendation with explicit feedback. ieee intelligent systems, vol. 36 (2021) no. 5 p.21-30. [6] f. liang, w. pan, and z. ming. fedrec++: lossless federated recommendation with explicit feedback. in proceedings of the aaai conference on artificial intelligence (online february 2-9, 2021). vol.35, p. 4224. [7] x. ren, c.-m. yu, w. yu, s. yang, x. yang, j.a. mccann, s.y. philip: high-dimensional crowdsourced data publication with local differential privacy, ieee trans. inf. forensics secur. vol. 13 (2018) no.9 p.2151– 2166. [8] y. koren, r. bell, c. volinsky: matrix factorization techniques for recommender systems, computer , vol.42 (2009) no.8 p.30– 37. [9] s. rendle, c. freudenthaler, z. gantner, l. schmidt-thieme: bpr: bayesian personalized ranking from implicit feedback: proceedings of the twenty-fifth conference on uncertainty in artificial intelligence (montreal, canada, june 18-21, 2009). p. 452. [10] x. he, l. liao, h. zhang, l. nie, x. hu, t.-s. chua: neural collaborative filtering, proceedings of the 26th international conference on world wide web (perth, australia, april 3-7, 2017). p.173. [11] s. niwattanakul, et al.: using of jaccard coefficient for keywords similarity, proc. international multi conference of engineers and computer scientists (hong kong, china, march 13-15, 2013). vol.1, p.380. [12] mcmahan, h. b , et al. "communication-efficient learning of deep networks from decentralized data." 2016. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 109 object detection in junk image based on ssd model zhihao guan yunnan university of finance and economics, school of information, kunming 650221, china guanzhihao1997@163.com. abstract: this paper first introduces the background and significance of the direction in target detection, and introduces other target detection methods besides ssd. secondly, this paper also introduces the principle and implementation process of ssd. it describes in detail the important steps to implement ssd and attaches relevant codes. finally, the achieved results are compared with different methods, different data sets voc 07 and networks using different methods, and conclusions are drawn. keywords: target detection; ssd; single-shot multi-frame detection; taco dataset; garbage detection. 1. introduction 1.1. background and significance vision plays an extremely important role in human perception and acquisition of external world information, and images are the most reliable and direct carrier to convey visual information. computer vision is a discipline in which human beings’ study how to use computers to process and analyze image information like the human brain. as one of the most basic problems in the field of computer vision, object detection (object detection) lays the foundation for solving more complex or higher-level visual tasks such as image segmentation, image understanding, image captioning, object tracking, and activity recognition. at the same time, it has a wide range of applications in the fields of artificial intelligence and information technology, including robot vision, security, consumer electronics, autonomous driving, human-computer interaction, intelligent video surveillance, and reality augmentation. as shown, the definition of object detection is to determine whether any object instance from a certain category (such as human, bicycle, tv, dog and cat, etc.) exists in a given input image, and if so, return the spatial location and extent, which aims to locate and identify a wide range of natural object categories. the ideal goal for object detection is to develop algorithms that achieve two goals: high accuracy and high efficiency. however, in the field of target detection, it is often difficult to have both the detection speed and accuracy of the system. usually, high accuracy means that the speed is relatively slow, while high efficiency means that the accuracy is relatively low. high-accuracy detection must accurately locate and identify objects, distinguishing a wide variety of object classes. high efficiency requires detection tasks to run at a sufficiently high frame rate, that is, to achieve real-time detection. despite decades of research, the combined goal of high accuracy and speed has yet to be achieved. among these many target detection algorithms, the single shot multibox detector algorithm (single shot multibox detector, ssd) uses multi-scale features to detect targets of different sizes, which is a relatively fast and robust method, so as a the basic algorithm framework, which is widely used in face recognition, pedestrian detection and tracking, road vehicle detection, license plate recognition and security video surveillance and other fields, and has achieved good results. generally speaking, when the size of the target is relatively small relative to the size of the entire original image, it can be called a small target. in practice, objects with a scale smaller than 32×32 pixel values are roughly judged as small objects. since the ssd algorithm does not consider the connection between different output layers, it ignores the context information that is important for small target detection, which makes the use of feature information insufficient, which will lead to the problem that small target detection is not robust enough. at the same time, there are sample categories and multi-task imbalance problems in the training process. the accumulated loss value of a large number of easy-to-segment samples and particularly difficult-to-segment samples may overwhelm the loss of relatively few ordinary difficult-tosegment samples, directly increasing the positioning loss. the weight of will make the model more sensitive to outliers. this is not conducive to the improvement of the judgment of the model, and will limit the further optimization of the model to a certain extent. therefore, aiming at the shortcomings and deficiencies of the traditional ssd algorithm, this paper proposes and adopts three different improved methods based on deep learning to optimize the traditional ssd target detection algorithm, mainly including feature fusion, attention mechanism and loss function. direction. at the same time, an in-depth and detailed analysis of the proposed method is carried out, and quantitative and qualitative comparative analysis is carried out with popular algorithms under a fair experimental setting. for the field of target detection, the results of this paper have expanded new ideas in a sense, and can enrich the technical methods of target detection. 1.2. research status at home and abroad early research on object detection was based on template matching techniques and models of simple handcrafted features, focusing on specific objects with roughly rigid spatial layouts, such as eyes, mouths, and human faces. traditional object detection algorithms are generally based on manually designed geometric features as input. common artificially designed feature operators include: sift (scale invariant feature transform, scale invariant feature transformation), hog (histogram of oriented gradient, histogram of directional gradient) and surf (speeded up robust features, accelerated robust features), etc. then, use common statistical classifiers, such as neural network, support vector machine (support vector machine, svm) and adaboos , etc. to classify the target. by the late 1990s and 110 early 2000s, research on object detection had made remarkable progress. frameworks based on proposal regions and multi-class appearance features are continuously proposed, which makes these multi-level detection frameworks consisting of hand-drawn local description features and discriminative classifiers have been dominating various fields of computer vision, including object detection. until the important turning point in 2012, as dcnn achieved record-breaking results in image classification, the field of object detection also began to enter the era based on dcnn. however, the sliding window technology and multi-scale pyramid strategy proposed in the traditional field are still widely used in dcnn-based methods. since deep learning entered the field of target detection, various target detection methods based on deep convolutional neural networks have made remarkable progress and quickly become the mainstream. at present, the main target detection algorithms can be roughly divided into two categories: (1). the object detection algorithm proposed by the candidate region, that is, the two-stage detection framework algorithm. (2). regression-based target detection algorithm, that is, a one-stage detection framework algorithm. the mask rcnn proposed by he kaiming et al. uses the network structure of resnet and fpn to mine multi-scale information and feature extraction, and adds a fully convolutional network (fully convolutional network, fcn) at the end of the network to provide each target candidate the region outputs a binary mask, while avoiding the original roi the offset caused by the pooling layer , the roi align layer was proposed to maintain the pixel-level spatial correspondence, and mask rcnn achieved the best results at that time, but due to its complex network structure, its detection speed was too slow. the mask rcnn proposed by he kaiming et al. uses the network structure of resnet and fpn to mine multi-scale information and feature extraction, and adds a fully convolutional network (fully convolutional network, fcn) at the end of the network to provide each target candidate the region outputs a binary mask, while avoiding the original roi the offset caused by the pooling layer , the roi align layer was proposed to maintain the pixel-level spatial correspondence, and mask rcnn achieved the best results at that time, but due to its complex network structure, its detection speed was too slow. in addition, the researchers found that deep features in the basic backbone network have more semantic information, while shallow features have more content descriptions, and utilizing multi-scale features to generate discriminative feature pyramid representations is crucial for detection performance. most of the above detector structures only use single-scale features, such as r-cnn, fast r-cnn, faster rcnn and yolo, which only use the feature map of the last layer of the network to extract features and complete the detection task. in order to improve the detection accuracy of multi-scale objects, especially small-scale objects, some object detection model architectures have also made significant progress in multi-scale. among them, ms-cnn proposed two sub-networks, and introduced multi-scale features into fast r-cnn for the first time to improve the recognition ability of small targets. fpn exploits lateral connections and top-down paths to create feature pyramids and achieve more powerful representations. ssd uses multiscale features, and sets the corresponding default frame according to the size of the receptive field of the feature layer. therefore, ssd can detect objects of different scales and aspect ratios from multiple layers. on the other hand, since the basic backbone network of the target detection task is derived from the classification network, with the development of deep neural networks, the network structure is getting deeper and deeper, and basic backbone networks such as resnet and densenet that can obtain better feature information have emerged. in order to improve the accuracy of the ssd algorithm, dssd replaced the basic backbone network of the original ssd algorithm with resnet-101, and proposed to aggregate context information through deconvolution layers to enhance the high-level semantics of shallow features. dsod uses densenet with higher parameter efficiency than resnet as the basic backbone network to study how to train object detectors from scratch. 1.3. main research content and arrangement of each chapter this chapter mainly introduces the background and significance of target recognition, and also introduces the research status at home and abroad. next, this article will focus on the principle of ssd and its implementation process. 2. the principle and analysis of singleshot multi-frame detection 2.1. introduction to single-shot multi-frame detector algorithm in recent years, with the development of deep learning and target detection technology, there have been many methods to improve the detection accuracy of the ssd algorithm. for example, the dssd algorithm replaces vgg-16 with a more complex resnet to obtain a feature map with better representation capabilities, but the complex the network structure means a huge amount of network parameters, this method greatly increases the memory and computational complexity, and seriously reduces the detection speed. in addition, the researchers found that the deep features in the basic backbone network have more semantic information, while the shallow features have more content descriptions, that is to say, the deeper advanced features have a stronger ability to distinguish classification tasks, while the shallow features low-level features are more discriminative for the object location regression task. for example, in recent years, rssd has designed a rainbow connection method that uses pooling and deconvolution operations at the same time to perform feature fusion on different feature layers. fssd generates a large-scale feature by fusing multiple shallow feature layers of different scales, and then constructs a new feature pyramid for detection by downsampling on this largescale feature layer. refinedet effectively improves the accuracy of the ssd algorithm by refining and refining the position and size of the anchor frame. although the above methods have made good progress, their architecture is very complex, which greatly reduces the detection speed, but at the same time these methods reveal that the feature information of the shallow layer and the feature information of the deep layer are complementary in target detection. how to utilize shallow and deep features to effectively integrate feature pyramid representations determines the detection performance. among many object detection algorithms, single shot multibox detector (ssd) is a fast and robust method. as shown in the figure, it uses the feature maps of different output layers of the network to directly predict the target 111 category and bounding box, and adopts a multi-scale strategy to integrate the detection results of different layers, and finally uses the non-maximum value suppression method (non maximum suppression, nms) suppresses redundant detection frames. compared with many object detection algorithms, single shot multibox detector (ssd) is a fast and robust method. as shown in figure 2.1, it uses the feature maps of different output layers of the network to directly predict the target category and bounding box, and adopts a multi-scale strategy to integrate the detection results of different layers, and finally uses the non-maximum value suppression method ( non-maximum suppression, nms) suppresses redundant detection frames. unlike other twostage detection algorithms, ssd does not need to generate region proposals, it directly detects objects on the feature layer of the output layer, so ssd can achieve real-time detection. 2.2. principle of ssd algorithm as shown in the figure, the ssd algorithm uses vgg-16 as the basic backbone network. vgg-16 is a convolutional neural network model proposed by k. simonyan and a. zisserman in 2014. ssd uses the two full the connection layers fc6 and fc7 are converted into 3×3 convolutional layer conv6 and 1×1 convolutional layer conv7, then the dropout layer and the fully connected layer fc8 are removed, and then 4 convolutional layers are added to construct the network structure of the algorithm, finally, conv4_3, conv7, conv8_2, conv9_2, conv10_2 and conv11_2 are used to construct a multi-scale feature pyramid for detection tasks to complete detection and recognition tasks. based on the above network structure, the image is passed through a deep neural network to generate a series of feature maps. the traditional ssd abandons the region proposal step in the two-stage detection framework and instead uses multiscale feature maps for detection. first, a series of default boxes (default box) are generated for the six feature layers (feature maps) of different sizes in the feature pyramid according to the size and aspect ratio, and then the prior box (prior box) is selected for training, and finally the first the inspection box is the initial bounding box and returns it to the correct target ground truth . the whole process can be completed through one forward propagation of the network. the mechanism of default box is similar to anchor boxes in faster rcnn. for feature layers of different scales, the default boxes have different sizes and aspect ratios in order to detect targets of different scales. as shown in the figure, picture (a) is a picture marked with a real bounding box, picture (b) and picture (c) are feature layers of two different scales, respectively, 8 × 8 and 4 × 4 the default box is set for each unit of the feature layer a series of fixed-sized borders on a grid. assuming that the size of a feature layer is 𝑚 × 𝑛, and each cell has 𝑘a default box, for each default box, it is necessary to predict the confidence loss (confidence loss, conf) of all categories and the localization loss (localization loss, loc) of the border regression, then this feature layer has a total of 𝑘𝑚𝑛(𝑐 + 4)output. in practice, two 3 × 3 convolution kernels are used to convolve the feature map, and the confidence score conf for classification and the location information loc for regression are respectively output. for the pascal voc dataset, each default box generates confidence scores for 21 categories (including background) ((𝑐1, 𝑐2, . . . , 𝑐𝑝)) , and each default box generates 4 position prediction coordinate values ((𝑐𝑥, 𝑐𝑦, 𝑤, ℎ), which represent the center coordinates, width and height of the bounding box, respectively. in the actual training process, the algorithm needs to match the real bounding box with the default box. the purpose is to find a best matching default box for each real bounding box, which is called a priori box, which is the default box selected in the actual process. frame. the specific operation is as follows: firstly, for each ground-truth bounding box, find the iou) value of the prior box and match it to ensure that each real bounding box must match a certain prior box and be recorded as a positive sample. as shown in figure 2.4, in target detection, iou represents the ratio of the intersection and union of the predicted border and the real border. the calculation formula of iou is as follows: 𝐼𝑜𝑈(𝐺, 𝑝) = | 𝐺 ∩ 𝑃 𝐺 ∪ 𝑃 | on the contrary, if an prior box does not find any groundtruth bounding box to match it, then the prior box can only match the background and be recorded as a negative sample. secondly, for the remaining unmatched a priori boxes, if the iou value between them and a real bounding box is greater than the threshold 0.5, then the a priori box is also matched with the real bounding box . although one ground-truth bounding box can be matched with multiple prior boxes, the number of ground-truth bounding boxes is too small relative to the prior box, which leads to a lot more negative samples than positive samples. in order to ensure the balance of the number of positive and negative samples in the training process as much as possible, ssd adopts the strategy of mining difficult examples to arrange the negative samples in descending order according to the confidence error and sample them to ensure that the ratio of positive and negative samples in the training process is close to 1:3. among them, the smaller the confidence of the predicted background is, the larger the error is, and the top-k with the larger error is finally selected. feature layers of different scales have different receptive fields. therefore, the ssd algorithm matches the size of the receptive field by setting default boxes of different sizes on six feature layers of different scales. the setting of the default frame size of each layer mainly includes two aspects: scale and aspect ratio. the default boxes have different scales in different feature maps, and have different aspect ratios in the same feature map, so it can detect most objects of different scales. the scale formula of the default box for each feature layer is: 𝑆𝑘 = 𝑆𝑚𝑖𝑛 + 𝑆𝑚𝑎𝑥 − 𝑆𝑚𝑖𝑛 𝑚 − 1 (𝑘 − 1), 𝑘 ∈ [1, 𝑚] among them, 𝑚 represents the number of feature maps, 𝑆𝑘represents 𝑘the ratio of the size of the prior frame of the 𝑆𝑚𝑖𝑛 = 0.2feature map of the first layer to the original image, and 𝑆𝑚𝑎𝑥 = 0.9 respectively represents the ratio of the minimum and maximum scales of the prior frame to the original image is 0.2 and 0.9, and the length and width of the algorithm the value of the ratio is: , so the formulas for calculating the sum of the width 𝑎𝑟 = {1 , 2 , 3 , 1 2 , 1 3 } and height ℎ𝑘 𝑎of each default box 𝑤𝑘 𝑎are: 𝑤𝑘 𝑎 = 𝑆𝑘√𝑎𝑟 ℎ𝑘 𝑎 = 𝑆𝑘 √𝑎𝑟 in addition, when the aspect ratio is 1 , a scale is added as 𝑠𝑘 ′ = √𝑆𝑘𝑆𝑘+1the default box. the center of each default box 112 is distributed in the center of the position cell, namely: (𝑖 + 0.5 |𝑓𝑘| , 𝑗 + 0.5 |𝑓𝑘| ) , 𝑖, 𝑗 ∈ [0, |𝑓𝑘|), where |𝑓𝑘|represents 𝑘the feature map size of the th layer. in the detection stage of ssd, because multiple feature maps will generate a large number of target positioning frames according to the settings, but these target positioning frames contain many wrong, overlapping and inaccurate results, so the ssd algorithm needs to use nonthe maximum value suppression algorithm processes the prediction results to eliminate the positioning boxes and repeated boxes that do not contain the target, and obtain the final detection results. the loss function of the traditional ssd algorithm consists of the weighted sum of the bounding box localization loss function 𝐿𝑙𝑜𝑐 and the classification confidence loss function 𝐿𝑐𝑜𝑛𝑓: 𝐿(𝑥, 𝑐, 𝑙, 𝑔) = | 1 𝑁 | (𝐿𝑐𝑜𝑛𝑓(𝑥, 𝑐) + 𝛼𝐿𝑙𝑜𝑐(𝑥, 𝑙, 𝑔)), (𝑥 = 𝑥𝑖,𝑗 𝑝 𝜖{0,1}) among them, 𝑁the number of positive samples of the prior box 𝑥𝑖,𝑗 𝑝 is an indicator parameter. when 𝑥𝑖,𝑗 𝑝 = 1the th 𝑖prior box matches the th 𝑗real bounding box, and the category of the target object contained in the real bounding box is 𝑝, the predicted category confidence is 𝑐. 𝑙is the position prediction value of the bounding box corresponding to the prior box, 𝑔and is the position parameter of the real bounding box, and the weight coefficient 𝛼 is set to 1 and used to adjust the proportional weight between the bounding box regression loss and the classification loss through cross-validation. for the classification confidence loss function 𝐿𝑐𝑜𝑛𝑓 , softmax loss is used, and its formula is: 𝐿𝑐𝑜𝑛𝑓(𝑥, 𝑐) = − ∑ 𝑥𝑖,𝑗 𝑝 𝑁 𝑖∈𝑃𝑜𝑠 log(𝑐�̂� 𝑝 ) − ∑ log(�̂�𝑖 0) 𝑖∈𝑁𝑒𝑔 �̂�𝑖 𝑝 = exp (𝑐𝑖 𝑝 ) ∑ exp (𝑐�̂� 𝑝 )𝑝 among them, 𝑃𝑜𝑠denotes a positive sample, 𝑁𝑒𝑔denotes a negative sample, denotes the probability that the target in the th prediction frame of the target 𝑖 is the th 𝑝 category, denotes that there is no object in the prediction frame, that is, refers to the category number, and 𝑝𝑝 = 0 denotes the background. for the frame positioning loss function 𝐿𝑙𝑜𝑐 , smooth l1 is used and its formula is: 𝐿𝑙𝑜𝑐(𝑥, 𝑙, 𝑔) = ∑ ∑ 𝑥𝑖,𝑗 𝑝 𝑆𝑚𝑜𝑜𝑡ℎ𝐿𝐼(𝑙𝑖 𝑚 − �̂�𝑗 𝑚) 𝑁 𝑖∈𝑃𝑜𝑠∈{𝑐𝑥,𝑐𝑦,𝑤,ℎ} 𝑆𝑚𝑜𝑜𝑡ℎ𝐿𝐼 = { 0.5𝑥2 |𝑥| < 1 |𝑥| − 0.5 |𝑥| ≥ 1 among them, 𝑙𝑖 𝑚 is the 𝑖 th prediction frame, and 𝑖 the location information of the th prior frame is 𝑑𝑖denoted by , where 𝑑𝑖 = (𝑑𝑖 𝑐𝑥 , 𝑑𝑖 𝑐𝑦 , 𝑑𝑖 𝑤 , 𝑑𝑖 ℎ) is a four-dimensional vector, respectively representing the center coordinates, width and height of the prior frame. �̂�𝑗 𝑚in order to 𝑗convert the encoded value of the first ground truth bounding box relative to the prior box, the coordinate encoding formulas of the ground truth bounding box are :𝑔𝑗 = (𝑔𝑗 𝑐𝑥 , 𝑔𝑗 𝑐𝑦 , 𝑔𝑗 𝑤 , 𝑔𝑗 ℎ) �̂�𝑗 𝑐𝑥 = (𝑔𝑗 𝑐𝑥 − 𝑑𝑖 𝑐𝑥)/𝑑𝑖 𝑤 �̂�𝑗 𝑐𝑦 = (𝑔𝑗 𝑐𝑦 − 𝑑𝑖 𝑐𝑦 )/𝑑𝑖 ℎ �̂�𝑗 𝑤 = log ( 𝑔𝑗 𝑤 𝑑𝑖 𝑤) �̂�𝑗 ℎ = log ( 𝑔𝑗 ℎ 𝑑𝑖 ℎ ) 2.3. chapter summary this chapter introduces the main principles of the ssd network and summarizes the formulas. next, we will implement the ssd network and make it train the taco dataset and test its effect. 3. implementation of single-shot multiframe detection 3.1. configuration environment and preparations first of all, we need to install the deep learning framework, we choose pytorch here. open the pytorch official website and choose the version that suits us according to our conditions. what i choose here is the lts version in linux. we follow the prompts on the official website and enter in the terminal pip3 install torch==1.10.0+cu113 torchvision ==0.11.1+cu113 torchaudio ==0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html after the run is over, we have installed pytorch suitable for our c uda version. this string of code will also automatically install the latest cuda for us . we can query our cuda version using nvidia-smi . in addition to the need to install pytorch , we also need to install other packages. the list of packages is as follows: scipy , numpy , matplotlib , opencv -python , torch , torchvision , tqdm , pillow , h5py . we can manually install these packages using pip , or we can open my tacossd folder and run the following code: pip3 install -r requirements.txt in this way, the system will automatically install the required packages for us. i will put the download address of the tacossd file at the end of the article 3.2. introduction to taco dataset and dataset production the dataset we choose here is taco. t aco is a growing image dataset of garbage images. it contains images of garbage taken in various environments: woods, roads, and beaches. these images are manually labeled and segmented according to hierarchical classifications to train and evaluate object detection algorithms. taco dataset: https://github.com/pedropro/taco 15 different groups of pictures in the data set , and each group has about 100 pictures. in order to reduce the training time, we only select half of them, and first manually select some garbage and clear images, and delete the unclear images. in the end we are left with 502 images that meet the criteria. once the images are selected, we can start the production of the dataset. here we use label abelimg , label img is a software that is convenient for data scientists to make data sets, and it can manually mark labels in images . let's open the terminal first, and enter in it: pip3 install labelimg after the installation is complete, we enter in the terminal: lableimg in the picture, we can choose the folder to open and the location of the output xml file. here we choose jpegimages 113 as the folder where the picture is located, and annotations as the folder where the output xml is located. manually marking 502 pictures here, we can start the training of the network. 3.3. ssd network training due to the complexity of the ssd network, if we do not use pre-trained weights, it may be difficult to make the network converge with the discrete graphics card of my laptop. so we found other people's pre-trained weights on the internet using general-purpose datasets. put the s sd_weights.pth downloaded from the internet under the model _data folder. then activate the environment we configured before, and enter in the terminal: conda activate pytorch after activating the environment, we first run the file t ac o _annotation.py. t ac o _annotation.py is the code used to set which is the training set and which is the verification set. when we finish running, two files t aco_train.txt and t aco_val.txt will appear under the folder, which are the target information of the randomly selected images. usually, we choose a ratio of 9:1 for the training set and the validation set. when the above work is completed, we can start the training of our network. 3.4. spam detection the file with the smallest l oss in the logs file . here l oss is the smallest ep 98 , so we choose it as the weight we use for prediction. before we can predict, we also have to modify the model_path in the ssd.py file . change the previously selected s sd_weights.pth to our trained weight ep 98 . at this point we can run the predict.py file for garbage detection. we enter in the terminal: python3 predict.py then enter the image path: img /photo512/00000193.jpg 、 the result is as follows: other predictions: 4. summarize figure 1. average precision m ap of this garbage detection is 0.58811, which is still slightly insufficient compared with the 0.78 of voc 07+12 trained by this network. i have summarized several reasons. first, the number of training sets is too small. the training set i chose this time has only 500 pictures, which is too small compared to the 9000 pictures of voc 07. too few training sets may it lead to incomplete network training. if the amount of training set is increased, map may be improved. and i manually mark the pictures. if i want to mark 1500 pictures in the taco dataset, the workload is a bit heavy, so i can improve the labeling method and use some methods of image processing to reduce the workload. compared with the r cnn series and the yolo series, the ma p of the ssd still has a gap. it can be seen from the figure that the ssd series still has room for improvement. also, due to the limitation of the machine, i can't use pictures with more pixels for training. when the batch size is 16, my computer will report an error because of insufficient video memory. therefore, the next step to improve this network is to increase the quantity and quality of the data set, provide more data for network training, and use cloud gpu to train this network, and use pictures with more pixels for training. references [1] hochreiter s,schmidhuber j. long short-term memory[j]. neural computation,1997,9(8):1735-1780. [2] chung j,gulcehre c,cho k h,et al. empirical evaluation of gated recurrent neural networks on sequence modeling[j]. arxiv preprint arxiv:1412. 3555,2014. [3] mnih v, kavukcuoglu k, silver d, et al. human-level control through deep reinforcement learning [j]. nature, 2015, 518 (7540):529-533. [4] weston j,chopra s,bordes a. memory networks[j]. arxiv preprint arxiv:1410. 3916,2014. [5] [sukhbaatar s,weston j,fergus r. end-to-end memory networks [c] / / advances in neural information processing systems (nips),2015:2440-2448 [6] pritzel a,uria b,srinivasan s,et al. neural episodic control[c] / / international conference on machine learning(icml),2015. [7] graves a,wayne g,danihelka i. neural turing machines[j]. arxiv preprint arxiv:1410. 5401,2014. [8] graves a,wayne g,reynolds m,et al. hybrid computing using a neural network with dynamic external memory[ j]. nature,2016, 538(7626):471-476. [9] sukhbaatar s, szlam a, weston j,fergus r. end-to-end memory networks//proceedings of the annual conferenceon neural information processing systems. montreal, canada, 2015:2440-2448 [10] vaswani a,shazeer n,parmar n,etal .attention is all you need//proceedings of the annual conferenceon neural information processing systems . longbeach, usa, 2017: 5998-600 [11] lin l j. self-improving reactive agents based on reinforcement learning,planning and teaching[ j]. machine learning,1992,8(34):293-321. [12] schaul t,quan j,antonoglou i,et al. prioritized experience replay [c] / / international conference on learning representations (iclr),2016. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 54 logistics performance evaluation in west africa guangsheng wang1, zhiyi lei2, *, tong yu1, cheng zhang2, haijun sun1, and jéssica saturnino sabino de sousa2 1 china harbour engineering company ltd, beijing 100027, china. 2 college of harbour coastal and offshore engineering, hohai university, nanjing, jiangsu 210098, china * corresponding author: zhiyi lei abstract: with containerization and supply chains stimulating global trade each country has to apply measures and new strategies in order to maintain or develop a relevant position in this area. west africa have now the support and financial power to reach their full potential. by betting in infrastructure reform and resource integration, west african countries might achieve the desired goal of construction, industrialization and a better layout of sea and airports that enables the interconnection of transportation infrastructures. therefore, this thesis research focuses on the study and optimization of logistics performance evaluation through west africa. firstly, evaluating the current status of the logistics system in west africa. secondly, since the problem is complex and dynamic, to ensure the evaluation is successful, this research will mainly analyze and focus on the central logistics crossing the west african region; assess the intra-regional logistics systems and develop the logistics systems based on the importance of coastal ports, roads, railways and waterways present in the key geographical points. lastly, by crossing the actual west african regional statistics with past data and outlooks, a reliable source of information will help establish an optimal futuristic expectation. keywords: west africa; logistics performance; analytic hierarchy process. 1. introduction 1.1. research background the world’s economy has been in constant change and evolution. for each nation there has been growth or decline of said economy. as economy rules the world, those changes influence every aspect of the nation’s development and sustainability. west african communities are no different. especially when it comes to the economic impact in the engineering development and consequently in areas like trade, infrastructures and business. west african countries are mostly resource rich countries, and their economic development largely depends on resource exports. however, the long-term colonial history has led to the "imbalance and fragmentation" of the logistics system in the region, and the serious shortage of the quantity and capacity of its logistics infrastructure, which has become an important constraint to the regional economic development and integration process. due to historical reasons later explained in this paper, most west african countries are still in development and have now reached a crucial growth stage. a major part of its development is the import and export trade. to achieve a successful trade system is necessary not only to ensure a rightful functioning of road, railway, waterway and airway infrastructures as well as being able to handle the cargo input and output, have trained personnel to deal with any situations, smooth customs and border operations and establish a sustainable communication and transportation system. overall, it is needed to ensure good quality throughout the whole process. and that is what the logistics performance is all about [2,3]. 1.2. scope of study west africa has a superior geographical location, rich natural resources, a large population and broad development space. however, due to the colonial history and the development of urbanization after independence, the west africa region is fragmented and the gap between urban and rural development within countries is widened; at the same time, the widespread religious and ethnic differences and antigovernment armed forces in various countries in the region make the danger of local unrest still an important constraint on regional economic development. the geographical scope of this study covers 16 countries in west africa, including senegal, gambia, guinea bissau, guinea, sierra leone, liberia, c ô te d'ivoire, ghana, togo, benin, nigeria, cape verde, niger, burkina faso, mali and mauritania [4-11]. see figure 1 for the geographical distribution of countries in west africa (figure 1). figure 1. geographical map of west african countries 2. ahp – analytic hierarchy process looking at a regional logistics situation, it’s is an extremely complex situation. it involves a number of relevant factors: regional economic/social state, governance objectives and approaches, environmental, economic and social benefits to be achieved after the final decision, transportation structure, 55 infrastructures care, etc. facing such a complex system with such complex factors makes it nearly impossible to study it exclusively with a qualitative or quantitative approach. in systematic analysis of social, economic and management issues, is usual to be faced with an interrelated system of constraints. the analytic hierarchy process provides a concise and practical decision method for the analysis of such problems in this field [12-14]. this thesis evaluation shall abide by the following steps: step 1. hierarchic alize the problem according to the nature of the problem and the goal to be achieved the problem is divided into different components and the factors are grouped in different levels according to their connections and a multi-level analytical structural model is formed; step 2. reduce the system analysis according to the relative importance weight organize from the lowest importance to highest by single sorting each problem by comparing their importance to each other; step 3. quantify the comparative judgement by using the adopted 1-9 scale method and inserting it in the judgment matrix; step 4. calculate the maximum characteristic of the matrix and its corresponding eigenvector; input the elements of judgment matrix a , ( 𝐴 = (𝑎𝑖𝑗)𝑛×𝑛 )in turn to determine its matrix, in which 𝑎𝑖𝑗 = 1 𝑎𝑗𝑖⁄ ; calculate the n-th root of the product of the elements in each row of the judgment matrix a 𝑤𝑖 = √∏ 𝑎𝑖𝑗 𝑛 𝑗=1 𝑛 (i = 1, 2, … , n) (1) normalize vectors 𝑤 = (𝑤𝑖 , 𝑤2, … , 𝑤𝑛) 𝑇 𝑤𝑖 = 𝑤𝑖 ∑ 𝑤𝑖 𝑛 𝑖=1  (i = 1, 2, … , n) (2) the obtained w = (𝑤1, 𝑤2, … , 𝑤𝑛) 𝑇 is the eigenvector. calculate the maximum eigenvalue of the judgment matrix 𝜆𝑚𝑎𝑥 𝜆𝑚𝑎𝑥 = ∑ (𝐴𝑊) 𝑖 𝑛𝑤𝑖 𝑛 𝑖=1 (3) where (aw)i represents the nth element of the vector aw; step 5. sorting the calculated results giving relative importance from elementary to highest levels, with no less than one top level factor; step6. obtain the total ranking weight value of the hierarchy the relative weight of the lowest factor relative to the top layer (sort a sequential relative priority scheme from top to bottom). 3. analysis of west africa regional logistics system 3.1. characteristics of highway construction influenced by colonial history and geographical factors, west africa has not yet formed a road transportation system that covers the whole region, has a balanced distribution and has uniform standards. most of the road traffic lines go deep into the mainland from coastal ports, but they are not connected with each other, which is not conducive to the economic development of inland hinterland, nor to the overseas trade of inland regions and countries. table 1 shows the conditions of highways in west african countries. the current situation of road infrastructure in west africa is unsatisfactory. there are many low-grade roads, less than 30% of which are asphalt pavements, and the road density is only 1/3 of that in asia; as far as the modernization level of roads is concerned, in addition to the outstanding performance of the abidjan lagos corridor, road traffic in other west african countries is poor, showing the following characteristics in general: (1) the construction standards are diverse. due to historical reasons, the road construction standards of west african countries basically follow those of the former suzerain countries, resulting in significant differences in road construction standards in west africa. (2) unbalanced development. except senegal, the overall road conditions in western countries are poor. with abidjan as the boundary, the road conditions on the east side are obviously different from those on the west side. in larger cities, except that the main roads are mostly asphalt pavement, the rest are dirt roads with poor flatness. table 1. condition of regional road network network percentage road condition (%) road type (%) good fair poor un known paved un pa ve d un kn ow n burkina faso 58.2 33.6 8.2 0.0 100.0 0.0 0.0 cote d'ivoire 16.1 47.1 35.4 1.0 90.3 9.7 0.0 ghana 70.3 23.6 6.1 0.0 100.0 0.0 0.0 mali 66.6 21.7 0.0 11.7 99.6 0.4 0.0 senegal 39.8 15.1 45.1 0.0 99.8 0.2 0.0 source: aicd, various sources. 3.2. characteristics of railway construction the railway construction in west africa basically stayed in the former colonial period. in addition to a number of short distance railways (mainly standard tracks) newly built due to export demand in recent years, most of them are in a state of disrepair and out of service, with a large proportion of narrow tracks and poor connectivity. the overview of main railways is shown in table 2. currently, the west african railways account for a total of 11,242 km, but most of the sections are short distance. in order to improve the benin railway system, the government has been putting effort in bringing fresh capital to the country (through private investments). through a competitive process, in 2010 the concession of the railway was granted to a private company. and it is being developed further. although liberia has 3 private mineral railways, currently none of them is completely operational. recent deals and arrangements will allow rehabilitation of these railways. also, the nigerian government has been betting heavily in this transportation system, utilizing funds for several projects – railway related. ghana has its own railway company (ghana railways company) which operates on a national level, serving the country between accra-kumasi and takoradi. relatively to most railways in the west african region, grc has acceptable traffic levels and exhibits a mediocre operational performance. of the 4 countries possessing a link, cote d’ivoire and burkina faso have the smoothest operation: they conjointly own sitarail, a multinational railway. awarded as a concession to the private sector in 1995, this line is crucial in the transport of bulk cargo to and from both countries. 56 table 2. west african railway details country railways total length (km) track gauge(mm) shared links benin 578 1000 none burkina faso 622 1000 cote d'ivoire cote d'ivoire 660 1000 burkina faso ghana 1300 1067 none guinea 1086 1435/1000 none liberia 500 1000 none mali 729 1000 senegal mauritania 704 1435 none nigeria 3505 1067 none senegal 906 1000 mali sierra leone 84 1067 none togo 568 1000 none cape verde, g. –bissau, niger, gambia no railways source: by the author (with wikipedia and cia data). 3.3. characteristics of aviation construction west african countries have different numbers of large and small airports, but most of them are no civil airports, with small traffic volume, short voyage, few routes, and no navigation with many neighboring countries. see table3 for the information of major international airports in 2020. with the development of regional economy and the investment of international capital, the development of air transport in west africa will be further promoted. at present, there are 42 international airports in west africa, and the distribution of large international airports is also seriously unbalanced. the reason is the imbalance of economic development and the number of people. in fact, merely 72 of those airports are of public use, which means that only 34% of the west african airports actually have a purpose that benefits trade, the countries expansion and have a large span of destinations. besides that, most of the countries have 1 single hub airport, which is another disadvantage as the flow is all concentrated in one airport, and the lack of proper organization impedes its functioning at an optimal level. the other airports have a small traffic volume, short and few routes and don’t have a great number of connections with neighboring countries. table 3. west africa airways information country airlines hub airports airports commercial use paved runways* benin asky airlines cotonou 6 2 1 burkina faso air burkina ouagadougou 23 3 2 cape verde tacv cabo verde airlines praia 3 5 5 sal island cote d'ivoire air cote d'ivoire abidjan 5 1 0 air ivoire gambia afrinat international airlines banjul 1 1 1 gambia bird ghana ghana airways accra 10 5 5 starbow airlines guinea air guinee conakry 16 1 1 g-bissau none o. vieira 6 2 1 liberia lone star airways monrovia 12 2 2 mali air mali bamako 27 7 5 sta trans african airlines mauritania air mauritanie nouakchott 22 10 9 mauritania airways niger air niger agadez 19 1 1 nigeria arik air abuja 29 15 15 bellview airlines dana air lagos overland airways senegal air senegal international dakar 17 11 8 senegal airlines sierra leone fly 6ix freetown 8 5 3 togo westair benin lomé 7 1 1 *commercial use runways paved with asphalt or concrete on the positive side, out of the 72 commercial airports, 60 (83.3%) have paved runways, which is a positive point, as it facilitates airplane traffic in the airport. an exception to the norm is cape verde: despite its geographical challenges and small population, it has 3 international airports and all of them satisfy international security standards. against any odds, cape verde has an extensive airways network. although the prices improved, they are still relatively high, with a fare of nearly 146 usd is the price for a round trip between islands. 3.4. characteristics of shipping construction 3.4.1. port the coastline of west africa is 6065km long, and there are 9 large ports. as can be seen from table 4(data source: world bank and respective port authorities’ data). lagos port in nigeria, tema port in ghana, abidjan port in c ô te d'ivoire and dakar port in senegal are relatively large. on the whole, the ports in west african countries are 57 mainly small and medium-sized, and the infrastructure is generally poor. the number of container berths is small and the level is low. the maximum berthing capacity is 4500teu container ships. the customs clearance time is long and the port charges are high. since the vast majority of west african countries are resource exporting countries, their oil tanker terminals are constructed and operated by major multinational oil companies, and such terminals are preferred. table 4. west africa main ports relevant details country port channel depth (m) terminal size (km) container port throughput (teu) benin cotonou 11 11 353,000* cote d'ivoire abidjan 10,6 11,5~12,5 674,624** tema 12,5 11,5 956,374* ghana takoradi 11,5 10 53,381* guinea conakry 10,2 10,5 171,900* nigeria lagos 8 10,5~13,5 1,050,000* senegal dakar 11 11,6~13 570,500* togo lomé 14,5 9,5 1,193,800* teu: twenty foot equivalent unit *2017 **2018 3.4.2. inland navigation most west african countries do not have large-scale inland river transport, and there are sporadic activities such as sea river transit in guinea bissau, gambia, ghana, mali, nigeria and senegal. in gambia and guinea bissau, 85% of the residents live 20 kilometers away from the waterway navigation point, and can reach important ports through inland river transportation. therefore, river transportation and offshore sea transportation are important modes of transportation. due to the economic downturn, infrastructure and transport vessels are relatively backward. it is worth mentioning the volta lake in ghana, as shown in figure 3-6. at present, there are two freight docks built in 1984 in the lake area of volta lake. the route between the north and south ends is 420km long. the current transport capacity of the lake area includes one 700-ton dry bulk carrier and ten small barges. the ship draft is about 2.8-3m. it takes 8-10 days to go back and forth between the north and south ends. at present, there are two voyages per month. at present, the shipping development in the volta lake area is relatively low. the function of the lake area as a logistics channel connecting the north and south of ghana has not been fully utilized. the high-quality land along the lake area has not been reasonably developed. the whole lake area and its coastal areas have huge development potential. 4. logistics performance evaluation in west africa in order to conduct the west africa regional logistics performance evaluation, the ahp method will be used as a mean to process and quantify information. concerning to west africa, due to its environment and political state, it is important to also account for such social factors. including political stability in the evaluation is extremely important as it provides an insight and highlights the distinctive nature of the regions state. furthermore, it displays how the alleged stability (or instability) of a region can affect its levels of attractiveness and general business. unfortunately, there is a lack of information and study regarding to the west african region, its logistics and port/air/land overall performances. after careful study and data collected from literature assessment and other works it was concluded that many factors aren’t suitable for inclusion in the current analysis. so, in an attempt to make this research as complete as possible, a total of 8 main criteria and 22 subcriteria were taken as the main evaluation points. the evaluation of each criteria is obtained through the results of 2 separate surveys conducted with port and logistics managers, teachers, students, engineers and workers. the first part of the survey uses a saty scale from 1 to 9 to judge the sub criteria, were 1 means unimportant, 5 means average importance and 9 is extremely important. overall, the judgments made by the participants were moreover consistent and provided the necessary confidence to proceed with the study. 4.1. logistics overall performance there are many factors that influence the logistics performance of a company, port or even a country. in this paper, the research is focused on a more general evaluation of the west african countries. as so, the multi-criteria chosen to represent an accurate evaluation of said nations is one that fits the rest of the world’s scales but at same time provides an insight on the region’s situation (considering its environment). out of the 25 indicators often used by the world bank to conduct research, 12 will be used in this evaluation. the main focus of this performance is evaluation is as not to compare the west africa region with the outside world but conduct an internal comparison among these neighboring countries. due to being countries in development and mostly with rural areas, cape verde, mali, senegal, guinea and guinea bissau have insufficient data to conduct a proper study and still be compared with other regions. unluckily, the existent data isn’t from official or trust worthy sources and the speculations from various sources differ greatly. so, it was decided that they shall be removed from the ahp comparison and overall logistics performance comparison. the hierarchy displayed in figure 2 illustrates the indicators selected to conduct this research and their interconnections. figure 2. decision hierarchal structure for logistics performance 4.2. construction of comparing matrix (2) logistics overall performance the logistics overall performance evaluation was done by comparing the survey results. in this case, the survey was taken by employers from a freight company, teachers and managers. figure 3 and figure 4 showcase the pairwise comparison (with the normalized eigenvector) and the unscaled comparison matrix respectively: logistics performance flexibility nº of agencies imports exports nº of documents imports exports lead time port/air supply chain import/export time import/export distance land supply chain import/export time import/export distance efficiency clearance clearance time with inspection clearance time without inspection reliability shipment quality goods released 58 figure 3. logistics performance: pairwise comparison matrix figure 4. performance: unscaled comparison matrix figure 5. logistics performance: criteria final weight source: author ahp excel according to the results (figure 5) obtained, the census (with more or less error) is that the most influential factor when accounting for any enterprise, region or company logistics performance is efficiency, as clearance time with inspection (17%) comes 1st, followed by clearance time without inspection (15,8%) and goods released after customs clearance (12,9%). the general consensus was of 77, 6% and the consistency ratio was of 2, 3%. those rates are acceptable, especially considering that the individuals that took the survey have different job functions. ultimately, by gathering all the information, normalizing the factors, weighting and comparing the indicators a conclusion was reached. for most of the participants, efficiency is the most important characteristic when accounting for the logistics of a region. hence, reliability and clearance are crucial. being able to provide a complete service that is quick and fits the client’s needs smoothly is indispensable and it makes a different between choosing the hubs of a region or another. as we can see in the table 5~table 7, togo, senegal and gambia have the best logistic performance out of the 11 countries analyzed (through the ahp method criteria). in this case we must consider several aspects: the evaluation isn’t regarding the infrastructure or other outside components, but the transport and trade of the material when it is already in the country; the countries geographical condition (togo, senegal and gambia) are small countries, so obviously regarding lead time, their times will be smaller than other countries, which affects the weight and consequently the rank; if we analyze the components and rank them individually, the outcome could have been different. is not a surprise that togo (2nd) and senegal (1st) exhibit a great logistic performance? as seen before in the port’s evaluation, the ports of dakar and lomé have great conditions to receive, maintain and ship product. these two ports are amongst some of the busiest in africa. however, their policies and handling are far better than other african countries. one can only expect that the same progress is extended to the whole trade and transport network in the countries. gambia (3rd) besides cape verde, is the smallest country in west africa. as such, even if the countries logistics isn’t the best, the fact that the lead time is extremely small and that the reliability percentage is high aids the country to maintain a high rank. on the other side, ghana (10th) and cote d’ivoire (8th) are the countries with the biggest area, hence the largest lead time that paired with flawed efficiency place it low. nevertheless, when analyzing the components individually we can assess that both of them excel in most of the criteria. contrarily, burkina faso and benin have a long way to go. compared with the remaining countries of the region (if we discard area and what it implies), these countries performance is rather low and most of the criteria have unsatisfactory results. overall, the west african region has an ok logistics performance but the leading time and the efficiency shall be worked on and improved in order to keep boosting the economy, the trade, industry and consequently the quality of life in the country. table 5. west african region rank based on logistics performance criteria flexibility sub criteria nº of agencies nº of documents 3rd level criteria exports imports exports imports benin 0,800 0,867 0,667 0,867 b. faso 0,667 0,667 0,600 0,600 c. d'ivoire 0,667 0,733 0,600 0,733 gambia 0,533 0,667 0,533 0,667 ghana 0,933 0,933 0,933 0,933 liberia 0,667 0,533 0,733 0,733 mauritania 0,933 0,867 0,867 0,933 niger 0,733 0,733 0,933 0,933 nigeria 0,600 0,600 0,600 0,600 senegal 0,800 0,667 0,733 0,800 togo 0,800 0,800 0,800 0,800 weight 0,067 0,067 0,067 0,067 59 table 6. west african region rank based on logistics performance criteria lead time sub criteria export time/distance (port/air supply chain) import time/distance (port/air supply chain) export time/distance (land supply chain) import time and distance (land supply chain) 3rd level criteria distance (km) lead time (days) distance (km) lead time (days) distance (km) lead time (days) distance (km) lead time (days) benin 0,989 0,767 0,989 0,833 0,821 0,883 0,989 0,950 b. faso 0,853 0,917 0,944 0,967 0,301 0,300 0,301 0,350 c. d'ivoire 0,997 0,933 0,997 0,933 0,753 0,767 0,943 0,733 gambia 0,999 0,983 0,999 0,983 0,999 0,983 0,999 0,983 ghana 0,945 0,983 0,945 0,983 0,679 0,983 0,999 0,967 liberia 0,944 0,883 0,944 0,883 0,853 0,833 0,853 0,833 mauritania 0,301 0,783 0,602 0,467 0,301 0,900 0,944 0,983 niger 0,999 0,983 0,853 0,800 0,894 0,967 0,946 0,983 nigeria 0,991 0,950 0,987 0,967 0,992 0,900 0,918 0,933 senegal 0,945 0,983 0,944 0,883 0,999 0,983 0,977 0,950 togo 0,997 0,967 0,999 0,950 0,947 0,917 0,968 0,900 weight 0,073 0,079 0,073 0,079 0,065 0,084 0,065 0,084 table 7. west african region rank based on logistics performance criteria efficiency final score rank sub criteria clearance reliability 3rd level criteria clearance time wo/ inspection (days) clearance time w/ inspection (days) goods released (%) shipments quality (%) benin 0,667 0,643 0,992 0,991 0,809 9 b. faso 0,867 0,786 0,990 0,991 0,771 11 c. d'ivoire 0,867 0,643 0,990 0,995 0,827 8 gambia 0,933 1,000 0,990 0,991 0,923 3 ghana 0,533 0,357 0,992 0,994 0,780 10 liberia 0,933 0,929 0,990 0,995 0,899 5 mauritania 0,933 1,000 0,992 0,996 0,854 7 niger 0,800 0,857 0,990 0,992 0,909 4 nigeria 0,867 0,857 0,990 0,991 0,886 6 senegal 0,933 0,929 0,993 0,994 0,939 1 togo 0,867 0,929 0,995 0,994 0,926 2 weight 0,158 0,17 0,129 0,109 4.3. overall judgment of regional logistics system in west africa based on the results obtained, is clear that the region still needs work and improvement. the region has been growing and prospering during the last years, but to have a greater development, problems and solutions must be accessed. the data obtained and the data produced shows that indeed some countries are logistically advanced but yet have flaws. most of the logistic performance related issues are related to the countries current economic and social status. for example, the necessity of better infrastructure is undoubtedly evident. even though the requirements differ from country to country, along the region there is a lack in the main infrastructure ranges such as power, transport, water and healthcare. infrastructure development is the main cause of logistics problems. regrettably, there are still some issues concerning transportation and flow, the average lead time in the region for imports is 5 days. besides that, the cost is high: it is more expensive to import cargo from neighboring countries the west african region than to import them from the united kingdom. on the positive side, reliability wise west african performance is excellent and above the average in the continent. and most of the other factors are still improving, with new regulations and reforms nearly every month. 4.4. development strategies considering the overall judgement, it’s inevitable to suggest some solutions to the problems and to the setbacks that don’t allow the west african region to exhibit a better performance. firstly, improving the infrastructures of the region is crucial! having better infrastructures and reliable power source can improve the performance extremely, as it contributes to a smooth flow between channels and nodes, promotes better solutions for problems that might occur and boosts security as well. creating better options for railway/port/airway infrastructure precaution and refining operational safety in the west african region will only encourage the expansion of west africa’s hinterland transport network. secondly, betting on the population’s quality life is also extremely important, as it boosts population’s mood and consequently the work performance will be higher, which means the logistics in the work place will be enhanced as well. improving the political imbalances of the region, fighting corruption and ensure normal levels of safety and security can make the difference. also, the transformation of natural resources dependent economies by doing the transition to a more industrialized region is also a good option. as it will allow more trade partners to join and empower the region. 60 investing in the youth and insuring the rise of young educated population, creation of new asset classes, modification of the government revenues are some of the benefits of developing infrastructure in the west africa region. also, having educated staff and personnel improves the quality of the work, decreases the time of work consequently increasing effectiveness. thirdly, concerning the main ports and logistics, in order to increase their performance, the region needs adjustments regarding flexibility, lead time and pricing. it’s amazing that most west african countries scored above 90% regarding good released, and that’s a great step. but in order to effectively increase the logistics performance, the clearance time needs a serious reform. the laws and procedures in place clearly are not effective and are time consuming. most countries of the region had a score of 70% or below, which is extremely disappointing, as this criterion was the one considered the most important. flexibility wise, the region has many agencies to process the customs but it has demanded an unusual number of documents that need to be cleared. although most of west african ports have a high container throughput volume and are frequently used in trade routes, the logistics performance of the ports is still a major step back that blocks most ports of bigger growth and expansion. 5. conclusion the goal of this paper was to evaluate the logistics performance on the west african region, while analyzing the state of its ports, politics, economy and overall social state. the extensive process of this evaluation went from review countless reports, papers and studies, to collecting and analyzing data, distribution of a survey and finally to a comparison amongst the data collected. regarding the main focus of this research, logistics regional performance, the evaluation revealed that the main criteria that indicates a good performance is the regions efficiency: clearance time with and without inspection had the most consensus, followed by reliability (goods released after customs and shipment meeting the quality criteria) and lead time. west africa, is a “young” region, where there are still many problems such as corruption that have a heavy impact in the development and consequently in the expansion and progress of railways, airways, hubs, ports, etc.… consequently, the logistics of these structures often is flawed. despite that, the growth is noticeable and the rank results show that togo and senegal are actually complying with the western average. burkina faso and benin rank low, and that can be explained simply by understanding the countries current condition. comparatively with others papers analyzed, the main difference in the results is the “political stability” aspect. on the few papers available about this subject, most of them ranked political stability as one of the top factors regarding attractiveness and logistics. on this paper, political stability is below the top line. overall, the results produced in this research have been enlightening, showed how to select the best factors, connect them discarding conflicts and aid in the decision-making process. the results accomplished were interesting and better than the initial expectation as they show that the regions’ general performance is constantly improving and provided an empirical analysis. references [1] world bank: a regional strategy to increase connectivity and economic integration, world bank, washington, dc, 2019, p. 9-15. [2] christopher, m.: logistics and supply chain management, 1998, p.22-23. [3] james r. stock and douglas m. lambert:strategic logistics management, 4th edition, new york , mcgraw-hill, 2001, p.31-34. [4] dechery côme, ralston laura: trafficking and fragility in west africa, world bank, washington, dc, 2015, p.38-40. [5] langer, arnim: regional imbalances, horizontal inequalities, and violent conflicts: insights from four west african countries, world bank, washington, dc, 2015, p.5-9. [6] foster vivien, briceno garmendia, cecilia: africa's infrastructure: a time for transformation, a time for transformation. africa development forum, world bank, 2010. [7] information on: https://data.worldbank.org.cn/. [8] information on: usaid. west africa: land use and land cover dynamics. https://eros.usgs. gov/westafrica/ node/156. [9] information on: http://www.mofcom.gov.cn/mofcom/. [10] information on: federal airports authority of nigeria – faan www.faan.gov.ng, www. airlineupdate. com. cia.the world factbook. [11] gaël raballand, salim refas, monica beuran, and gözde isik: the world bank unctad expert meeting(under the framework of the iame conference 2018), maritime transport in africa: challenges, opportunities, and an agenda for future research why does cargo spend weeks in subsaharan african ports? lessons from six countries, 11 september 2018. [12] x. l. liu: fuzzy theory and ahp applied to port urban logistics competitiveness evaluation, applied mechanics and materials, vols. 121-126(2012), p. 2769-2773. [13] klaus d. goepel: implementing the analytic hierarchy process as a standard method for multi-criteria decision making in corporate enterprises – a new ahp excel template with multiple inputs, proceedings of the international symposium on the analytic hierarchy process, kuala lumpur 2013, p.1-3. [14] van dyck, george kobina, mohamed ismael, hawa: multicriteria evaluation of port competitiveness in west africa using analytic hierarchy process (ahp), 2015, p.2-5. http://www.mofcom.gov.cn/mofcom/xyfzhou frontiers in computing and intelligent systems issn: 2832-6024 | vol. 1, no. 2, 2022 18 research on goods transportation tracking system based on internet of things jiayi yu, lifei sun liaoning university of science and technology, china abstract: the present disclosure relates to a goods transportation tracking system based on the internet of things, including: the delivery terminal is used to obtain the loading information of logistics goods, the loading information includes the license plate number of the transport vehicle, the transportation route is determined according to the delivery address and receiving address of the logistics goods, and the distribution information including the license plate number and the transportation route is sent to the server; the server is used to determine the target high-speed monitoring terminal from the high-speed monitoring terminal according to the transportation route in the distribution information, generate acquisition instructions according to the license plate number, and send the acquisition instructions to the target high-speed monitoring terminal; the high-speed monitoring terminal is used to receive the acquisition instructions sent by the server, collect the license plate number of the transport vehicles within the monitoring range, and send the target tracking information to the server when the license plate number is collected; the server is also used to generate logistics information according to the target tracking information and push the logistics information to the delivery terminal and user terminal. the logistics information is used to display the transportation status of logistics goods. keywords: internet of things; freight transportation; tracking system. 1. current technology with the rapid development of economic globalization, the supply of raw materials between enterprises and the timely feedback of goods transportation information between businesses and consumers affect whether the transaction between enterprises and consumers can be carried out smoothly. therefore, the timeliness and accuracy of logistics goods transportation information feedback is becoming more and more important. logistics tracking was originally used by logistics enterprises to track the flow direction of internal goods. now it is open to customers for inquiry, and has become an important means to improve the quality of free. the perfect tracking system depends on the time of each transportation, sorting, transfer and distribution, and even can be accurate to the accurate time of each link. however, most of the goods are affected by the gps positioning device in the process of transportation, and most of them are affected by the gps positioning device during the transportation process, it may not be able to accurately report the location information, so that customers cannot query the logistics information or the logistics information inquired is inaccurate, which reduces the tracking accuracy. this design is put forward in response to this problem, in order to realize the accurate identification and real-time tracking feedback of the transported goods. 2. design content the purpose of the present disclosure is to provide a goods transportation tracking system based on the internet of things, so as to solve the problem of low accuracy of logistics goods transportation tracking in related technologies. in order to achieve the above purpose, the embodiment of the present disclosure provides a cargo transportation tracking system based on the internet of things, including a server, a delivery terminal communicating with the server, a highspeed monitoring terminal communicating with the server, and a user terminal communicating with the server; the delivery terminal is used to obtain the loading information of logistics goods, in which the loading information includes the license plate number of the transport vehicle, determines the logistics transportation route of the logistics goods according to the delivery address information and receiving address information of the logistics goods, and sends the distribution information including the license plate number and the logistics transportation route to the server; the server is used to determine the target high-speed monitoring terminal from the high-speed monitoring terminal according to the logistics transportation route in the distribution information, generate license plate number acquisition instructions according to the license plate number, and send license plate number acquisition instructions to the target high-speed monitoring terminal; the high-speed monitoring terminal is used to receive the license plate number acquisition instruction sent by the server, collect the license plate number of the transport vehicles within the monitoring range according to the license plate number acquisition instruction, and send the target tracking information to the server when the license plate number is collected. the target tracking information is used to represent the monitoring range of the transport vehicle passing through the high-speed monitoring terminal; the server is also used to generate logistics information according to the target tracking information, and push the logistics information to the delivery terminal and user terminal. the logistics information is used to display the transportation status of logistics goods. 3. client design the system also includes a vehicle network terminal, which is set on the transport vehicle, and is connected with the server through communication; the internet of vehicles terminal is used to send the realtime location information of transportation vehicles to the 19 server; the server is used to receive the real-time location information sent by the internet of vehicles terminal, and find out whether there is a target high-speed monitoring terminal within the target range according to the real-time location information, and if there is a target high-speed monitoring terminal within the target range, the driving speed of the transport vehicle represented by the real-time location information within the target time is used, and the location information of the target high-speed monitoring terminal and the transport vehicle represented by the real-time location information, the time node when the transport vehicle reaches the monitoring range of the target high-speed monitoring terminal is predicted, and the time node is sent to the target high-speed monitoring terminal; the high-speed monitoring terminal is specifically used to collect the license plate number of the transport vehicle according to the appearance of the transport vehicle when the time point reaches the time node, and send the target tracking information to the server when the vehicle license plate number is collected. the server is also used to determine that the transport vehicle fails to arrive at the target high-speed monitoring terminal on time if the target tracking information sent by the target high-speed monitoring terminal is not received within the preset range of the time node; when the transport vehicle fails to arrive at the target high-speed monitoring terminal on time, the logistics correction information is generated and sent to the delivery terminal. the logistics correction information is used to modify the logistics information of logistics goods. the target range is determined according to the current congestion information of expressway, in which the target range is positively correlated with the current congestion information of expressway. the high-speed monitoring terminal includes high-speed service area monitoring camera, high-speed charging camera and high-speed overspeed camera. 4. specific implementation the specific implementation mode of the present disclosure is described in detail with reference to the attached drawings. the present disclosure and the present disclosure are intended to be interpreted and not limited herein. figure 1. is a schematic diagram of the cargo transportation tracking system of the internet of things in view of this, the design embodiment provides a cargo transportation tracking system based on the internet of things. fig. 1 is the schematic diagram of the goods transportation tracking system based on the internet of things according to an example. the logistics cargo transportation tracking system 100 based on the internet of things includes: server 110, delivery terminal 120 communicating with server 110, high-speed monitoring terminal 130 communicating with server 110, and monitoring and tracking system based on internet of things user terminal 140 communicating with the server; the delivery terminal 120 is used to obtain the loading information of the logistics goods, wherein the loading information includes the license plate number of the transport vehicle, determines the logistics transportation route of the logistics goods according to the delivery address information and the receiving address information of the logistics goods, and sends the distribution information including the license plate number and the logistics transportation route to the server; the server 110 is used to determine the target high-speed monitoring terminal from the high-speed monitoring terminal according to the logistics transportation route in the distribution information, generate license plate number acquisition instructions according to the license plate number, and send license plate number acquisition instructions to the target high-speed monitoring terminal; the high-speed monitoring terminal 130 is used to receive the license plate number acquisition instruction sent by the server, collect the license plate number of the transport vehicle within the monitoring range according to the license plate number acquisition instruction, and send the target tracking information to the server when the license plate number is collected. the target tracking information is used to represent the monitoring range of the transport vehicle passing through the high-speed monitoring terminal; the server 110 is also used to generate logistics information according to the target tracking information, and push the logistics information to the delivery terminal 120 and the user terminal 140, and the logistics information is used to display the transportation status of the logistics goods. among them, the delivery terminal 120 can be the warehouse delivery terminal, and the delivery terminal 120 can also be the warehouse delivery terminal. for example, when the delivery terminal 120 is the warehouse delivery terminal, the delivery terminal obtains the loading information of the logistics goods according to the delivery information of the logistics goods. the above-mentioned system is used to obtain the loading information of logistics goods through the delivery terminal. the loading information includes the license plate number of the transport vehicle, determines the transportation route according to the delivery address and receiving address of the logistics goods, and sends the distribution information including the license plate number and transportation route to the server; the server is used to determine the target highspeed monitoring terminal from the high-speed monitoring terminal according to the transportation route in the distribution information, generate acquisition instructions according to the license plate number, and send the acquisition instructions to the target high-speed monitoring terminal; the high-speed monitoring terminal is used to receive the acquisition instructions sent by the server, collect the license plate number of the transport vehicles within the monitoring range, and send the target tracking information to the server when the license plate number is collected; the server is also used to generate logistics information according to the target tracking information, and push the logistics information to the delivery terminal and user terminal. the logistics information is used to display the transportation status of logistics goods. the license plate number of transport vehicles is collected based on the high-speed monitoring terminal, which can timely understand the status of logistics transportation, so as to improve the timeliness of 20 logistics update. figure 2. is a schematic diagram of the system fig. 2 is a schematic diagram of another cargo transportation tracking system based on the internet of things according to an example. the system 100 also includes a vehicle network terminal 150, which is set on a transport vehicle, and the internet of vehicles terminal 150 is communicated with the server; the internet of vehicles terminal 150 is used to send realtime location information of transport vehicles to the server; the server 110 is used to receive the real-time location information sent by the internet of vehicles terminal 150, and find out whether there is a target high-speed monitoring terminal within the target range according to the real-time location information, and if there is a target high-speed monitoring terminal within the target range, the driving speed of the transport vehicle represented by the real-time location information within the target time is also used, and the location information of the target high-speed monitoring terminal and the transport vehicle represented by the real-time location information, the time node when the transport vehicle reaches the monitoring range of the target high-speed monitoring terminal is predicted, and the time node is sent to the target high-speed monitoring terminal; the high-speed monitoring terminal 130 is specifically used to collect the license plate number of the transport vehicle according to the appearance of the transport vehicle when the time point reaches the time node, and send the target tracking information to the server when the license plate number is collected. alternatively, if the license plate number of the transport vehicle is not obtained within the monitoring range of the target high-speed monitoring terminal, the target high-speed monitoring terminal with the license plate number collected last is determined, and the early-warning information is generated according to the target high-speed monitoring terminal and the target high-speed monitoring terminal which collected the license plate number. the server 110 is also used to determine that the transport vehicle fails to arrive at the target high-speed monitoring terminal on time if the target tracking information sent by the target high-speed monitoring terminal is not received within the preset range of the time node; when the transport vehicle fails to arrive at the target highspeed monitoring terminal on time, the logistics correction information is generated and sent to the delivery terminal. the logistics correction information is used to modify the logistics information of logistics goods. the target range is determined according to the current congestion information of expressway, in which the target range is positively correlated with the current congestion information of expressway. high speed cameras, high-speed cameras, and high-speed surveillance services are included. 5. innovation the loading information includes the license plate number of the transport vehicle. the transportation route is determined according to the delivery address and receiving address of the logistics goods, and the distribution information including the license plate number and transportation route is sent to the server; the server is used to determine the target high-speed monitoring terminal from the high-speed monitoring terminal according to the transportation route in the distribution information, generate acquisition instructions according to the license plate number, and send the acquisition instructions to the target high-speed monitoring terminal; the high-speed monitoring terminal is used to receive the acquisition instructions sent by the server, collect the license plate number of the transport vehicles within the monitoring range, and send the target tracking information to the server when the license plate number is collected; the server is also used to generate logistics information according to the target tracking information, and push the logistics information to the delivery terminal and user terminal. the logistics information is used to display the transportation status of logistics goods. based on the highspeed monitoring terminal, the vehicle license plate number can be collected, which can timely understand the status of logistics transportation, so as to improve the timeliness and accuracy of logistics update. references [1] on the application of internet of things technology in shanghai port rail sea intermodal transport [j]zhang xiaoweichina water transportation (second half of the month)2012(01) [2] analysis of key technologies of intelligent container internet of things system [j]li yuanhongchina automatic identification technology2019(05) [3] application of internet of things technology in customs container supervision system [j]cheng bologistics technology2014(16) [4] application of internet of things technology in customs port container transportation supervision [j]wang jingcomputer cd software and application2014(07) [5] application of customs technology in the internet of thingsshi guofeicontainerization2013(08) [6] application of internet of things technology in water transportation management of three gorges reservoir area [j]mao mengxiachina water transportation (second half of the month)2012(10) [7] unified coding of the internet of things: based on the top, inclusive [j]zheng yu, zhao jianpingchina automatic identification technology2014(01) [8] on the application of internet of things technology in modern agriculture [j]liu ming, liu qing, dong bingruisouthern agricultural machinery2017(03) [9] research progress of respiratory rehabilitation management system from the perspective of internet of things big data [j]sun aimin, liu na, yin dan, feng pengchinese journal of health management2021(06) [10] design and application analysis of distribution internet of things [j]cheng huamingthe electronic world2021(24) frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 3, 2022 78 robot path planning based on improved genetic algorithm zhenxing guo, li mo college of mechanical and electrical engineering, southwest petroleum university, chengdu 610000, china abstract: in order to solve the problems of the basic genetic algorithm in robot path planning, such as the path is not smooth enough, the number of turns is too many, and it is easy to fall into the local optimal solution, an improved genetic algorithm is proposed. the method introduces the turning angle and turning times as the evaluation objectives, improving the practicability of the fitness function; the elitist retention strategy is added to improve the convergence speed of the algorithm; the adaptive change strategy of crossover probability and mutation probability is optimized, so that the algorithm can adapt to various scenarios and improve the optimization ability and convergence speed of the algorithm. the simulation results show that the improved genetic algorithm is more suitable for robot movement than the basic genetic algorithm. keywords: robot; path planning; genetic algorithm. 1. introduction path planning is an important part of mobile robots. improving the efficiency of mobile robots and reducing the energy consumption of robots are the research hotspots nowadays [1,2]. to solve the problem of robot path planning, researchers have put forward a variety of methods, among which the intelligent optimization algorithm is more widely used, including genetic algorithm [3], ant colony algorithm [4], particle swarm optimization algorithm [5], etc. genetic algorithm is widely used because of its strong robustness. however, it has the disadvantages of slow iteration speed and easy to fall into local optimal solution, which limits its development. sun bo and others added the idea of simulated annealing to the genetic algorithm, effectively improving the global search ability of the algorithm [6]. xu mengying and others combined immune clonal operator and adaptive operator in genetic algorithm, and changed the coding method to improve the quality of the solution [7]. the above methods improve the optimization ability of the genetic algorithm path planning, but there are still shortcomings such as too many path curves and slow convergence speed. to solve these problems, this paper modifies the fitness function on the basis of the basic genetic algorithm to adaptively change the crossover probability and mutation probability, and introduces the elitist retention strategy in the selection operation. experiments show that the improved algorithm effectively improves the path planning performance of the robot. 2. path planning grid model path planning is the robot's automatic avoidance of obstacles from the beginning to the end. grid map is the most commonly used modeling method in path planning. the actual map is represented by grid. in a grid map, the area where the robot can move freely is called free grid, and the area where the robot cannot move freely is called obstacle grid. figure 1 is an example of grid map. the white area in the figure represents the free grid, and the black area represents the obstacle grid. given a starting point and an end point, there are many paths between the two points. the purpose of robot path planning is to select the most suitable path without touching obstacles. fig. 1 path planning grid map 3. improved genetic algorithm 3.1. fitness function energy consumption is an important consideration for robot movement. the methods to reduce robot energy consumption include shortening the moving distance, reducing the turning angle and reducing the number of turns. the improved fitness function is as follows: fit = a × fit1 + b × fit2 (1) where, a and b are the weights of length factor and smoothness factor, fit1 is the length factor expression as follows: fit1 = 1 length (2) l = abs(xi − xi+1) + abs(yi − yi+1) (3) lenth = ∑ { lenth + 1 (l = 1) lenth + sqrt(2) (l > 1) end−1 i=1 (4) 79 x and y represent the coordinates of the grid, fit2 is the smoothness factor, and the expression is as follows: fit2 = ∑ 1 pθi + pti end−1 i=1 (5) where, pθi is the penalty imposed by the turning angle between two adjacent grids on the path. the greater the turning angle, the greater the value of pθi. pti is the penalty for the number of turns of the path. the more turns, the greater the value of pti. 3.2. select action selection operation is the most important step in genetic algorithm. according to the fitness of each individual, individuals with high fitness can be retained through roulette. however, roulette is random, and individuals with high adaptability may also be eliminated. to avoid this, the elite retention strategy is added in the selection process. before roulette, the individuals with the highest fitness will be selected first, and will not participate in the subsequent roulette. finally, the individuals with the highest fitness will be selected together with the individuals selected by roulette for the subsequent crossover operation and mutation operation, which can effectively prevent the loss of elite individuals and speed up the iterative efficiency of the algorithm. 3.3. adaptive change of crossover probability and mutation probability crossover probability refers to the probability of crossover operation during each iteration. crossover operation refers to swapping and recombining two intersecting paths, resulting in two sub-paths. this method can generate new sub-paths, and then retain the paths with good fitness, and discard the paths with poor fitness. the principle of this method is similar to that of gene recombination. after crossover operation, the fitness of the sub-path may be higher than that of the parent path, so as to achieve the purpose of finding the best path. mutation probability refers to the probability of mutation operation during each iteration. mutation operation refers to randomly selecting a new point in the path, and then replacing the original point in the path, so that a new path will be created. the value of crossover probability and mutation probability will affect the convergence rate and final solution of the algorithm, so it is not suitable to choose a fixed crossover probability and mutation probability. in order to improve the performance of the algorithm, this paper proposes a scheme to adaptively adjust the crossover probability and mutation probability. the convergence speed of the current algorithm is measured by using the sum of the average value of the length factor and the average value of the smoothness factor of the current generation population to compare with the sum of the average value of the length factor and the average value of the smoothness factor of the previous generation population. a larger ratio indicates that the algorithm is close to stable, and the mutation probability and crossover probability need to be increased to generate new individuals and increase the diversity of species. on the contrary, a smaller ratio indicates that the algorithm is converging rapidly. in order not to destroy good individuals, a smaller crossover probability and mutation probability should be used. the evaluation indicators are as follows: mc mp = 1 n ∑ fit1(t, i) +n i=1 1 n ∑ fit2(t, i)n i=1 1 n ∑ fit1(t − 1, i) +n i=1 1 n ∑ fit2(t − 1, i)n i=1 (6) mc represents the crossover probability and mp represents the mutation probability. mc/mp is the ratio of length factor and smoothness factor of two generation population. n is the number of individuals for the contemporary population; fit1 is the length factor; fit2 is the smoothness factor; t indicates the generation of the current population. in genetic algorithm, the value of crossover probability and genetic probability can be between 0 and 1. however, considering that too low value will lead to the stagnation of population evolution and fall into local optimal solution, and too high value will destroy excellent individuals in the process of evolution. therefore, the value range of restricted crossover probability is 0.5 to 0.8, and the value range of restricted mutation probability is 0.01 to 0.3. the specific values of crossover probability and mutation probability are shown in table 1. table 1. value of crossover probability and mutation probability mc mp pc pm <=0.2 0.5 0.01 [0.2,0.4] 0.6 0.1 [0.2,0.6] 0.7 0.2 [0.6,0.8] 0.75 0.25 >=0.8 0.8 0.3 3.4. algorithm flow the calculation flow of the improved genetic algorithm robot path planning proposed in this paper is shown in figure 2. the termination condition of the algorithm is to reach the maximum number of iterations. fig. 2 flow chart of improved genetic algorithm 4. experimental analysis in order to verify the effect of the improved genetic algorithm in robot path planning, this paper uses matlab software to carry out simulation experiments and compares it with the basic genetic algorithm. the starting coordinate is (1,1) and the ending coordinate is (20,20). the number of populations is 200, the maximum number of iterations is 100, the weight coefficient a is 1, and the weight coefficient b is 1.5. 80 fig.3 results of improved genetic algorithm fig.4 basic genetic algorithm results figure 3 shows the improved genetic algorithm path planning results, and figure 4 shows the basic genetic algorithm path planning results. it can be seen that both algorithms can find a shortest path for the robot. however, the improved genetic algorithm results in fewer turns, which is more suitable for robot motion. fig.5 comparison of convergence curves of two algorithms figure 5 shows the comparison of the convergence curves of the two algorithms. it can be seen that the improved genetic algorithm converges faster. these advantages come from adaptive adjustment of crossover probability and mutation probability and elite retention strategy. since genetic algorithm is a random algorithm, in order to avoid chance, 20 simulation tests were carried out on the basic genetic algorithm and the improved genetic algorithm respectively, and the results are shown in table 2. table 2. comparison of multiple simulation results item basic genetic algorithm improved genetic algorithm optimal length 29.8 29.8 average number of turns 12.5 5 average length 30.703 30.9 average number of iterations 18.5 11.25 the analysis shows that the theoretical shortest path of the map is 29.8, and both the basic genetic algorithm and the improved genetic algorithm are capable of finding the shortest path. however, because sometimes the number of turns of the shortest path is too many, it is not suitable for the robot to move, so the path calculated by the improved genetic algorithm may not be the shortest path. the number of turns calculated by the improved algorithm is greatly reduced, and the convergence speed of the algorithm is fast, which can preliminarily prove the superiority of the improved genetic algorithm. 5. summary this paper proposes an improved genetic algorithm path planning for robots. the algorithm modifies the basic genetic algorithm: changing the fitness function; making crossover probabilities and mutation probabilities adaptively altered; an elite retention strategy was introduced. the improved genetic algorithm reduces the number of turns in the path, reduces the turning angle, accelerates the convergence speed of the algorithm, and significantly reduces the energy consumption of the robot. there are still many aspects to be improved in the research content of this paper, such as how to apply the algorithm to the dynamic obstacle environment, and improve the adaptability of the algorithm to the complex environment. references [1] ma xiaolu, li ruyi, wu lihui. review on local path planning algorithm for intelligent vehicle. automobile applied technology. vol. 47 (2022) no. 23, p. 232-237. [2] li xiaoxu, ma xinglu, wang xianpeng. a survey of path planning algorithms for mobile robots. computer measurement & control. vol. 30 (2022) no. 07, p. 9-19. [3] xin gang, song shaozhong, zhang hui, et al. route planning problem application based on improved genetic algorithm. journal of jilin university (information science edition). vol. 40 (2022) no. 06, p. 946-957. [4] zhou jing⁃dong, gao wei-zhou, yang wen-guang, et al. path planning of mobile robot based on improved ant colony algorithm. science technology and engineering. vol. 22 (2022) no. 28, p. 12484-12490. [5] wang yi-hu, wang si-ming. uav path planning based on improved particle swarm optimization. computer engineering and science. vol. 42 (2022) no. 09, p. 1690-1696. 81 [6] sun bo, jiang ping, zhou genrong, et al. application of improved genetic algorithm in path planning of mobile robots. computer engineering and applications. vol. 55 (2019) no. 17, p. 162-168. [7] xu mengying, wang jiaojiao, liu bao, et al. path planning for robot based on improved genetic algorithm. journal of shihezi university (natural science). vol. 39 (2021) no. 03, p. 391-396. frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 2, 2023 64 intelligent robot for glass cleaning at high altitude based on rotating shaft connection and stm32 control jiaqi cui* school of electrical and control engineering of north china university of technology, beijing, china * corresponding author email: c2324360198@163.com abstract: at present, there are few high-altitude glass cleaning equipment on the market that can cross obstacles, usually requiring manual transfer. even with intelligent obstacle avoidance system, it is still difficult to climb over the floor, the frame between the glass and so on. the automation of the project is low. to solve the above problems, the glass cleaning robot designed in this paper can autonomic obstacle avoidance transfer through the stm32f407 core control board, and raspberry pi to jointly complete the obstacle avoidance, navigation, movement and other control tasks. and the use of a new mechanical structure, through the quadcopter wing folding contraction, to complete the process of wiping glass push and pull. during the transition from flight to climbing, horizontal to vertical changes are achieved by folding the fuselage. through many experiments, the design is reliable and practical. keywords: high altitude; operation quadcopter; deep learning; rotary shaft vehicle. 1. introduction at present, whether the glass cleaning equipment used in the family or the glass cleaning machine used in the building, most of them are low in intelligence and cannot be controlled in real time, or there are many places using artificial aerial work to complete the glass cleaning, which is very dangerous.[1-4] after observing this problem, this paper designs a quadcopter which can move autonomously, jump over obstacles, and switch between crawling and flying modes automatically. reduce production cost through innovative mechanical design, with practicability and reliability. 2. design idea 2.1. control part figure 1. overall control idea the bottom drive of the quadcopter is completed through the control of gyroscope and motor carried by stm32 microcontroller. obstacle avoidance is carried out by ultrasonic module. 2.2. mechanical part figure 2. flight attitude driven by motor, the aircraft can complete the flight state of the quadcopter and transfer different areas. figure 3. climbing attitude the four wings of the vehicle are connected to a central rotating bearing, which is controlled by a motor to achieve wing shrinkage. making the aircraft work at high altitude is to complete the crawling state. one side fold and the other side stretches. to finish cleaning the glass. [5-6] 65 figure 4. folding attitude there is a folding mechanism in the center of the two main mechanical structures, which is controlled by the motor, so that the mechanism can complete symmetrical folding, making the aircraft from the flight state to the folding state. after landing on the wall, you can finish high altitude work. 3. control algorithm 3.1. motor control figure 5. cascade pid control flow chart 3.2. visual algorithm of the hundreds of pictures by yolov5m model training, get the weight files, compares the model parameters, in the practical obstacles in real-time pictures using camera, for each frame for identification. 4. test table 1. obstacle avoidance test advance back 0.06m √ √ 0.13m √ √ 0.17m √ √ 0.22m √ √ 0.24m √ √ 0.37m √ √ the test shows that the aircraft has a high accuracy in identifying obstacles. the test of obstacle crossing ability can be seen at different speeds have a good degree of completion. figure 6. yolov5 model parameters cleaning operations are based on visual identification of obstacles and stains. when working at altitude, the water yield and clear speed and time are controlled for different situations such as rain stains and dust, which makes the accuracy higher and the effect better. figure 7. yolov5 model parameters 5. conclusion through the test, the aircraft can complete autonomous navigation and positioning, and when it comes into contact with the wall, it can autonomously shrink into a folding posture, and complete the contraction and extension of the four wings under the drive of the motor, so that the highaltitude glass can be scrubbed in the climbing state. the main body of the motor cascade pid control, euler angle calculation, gyro and serial data analysis. innovation in mechanical structure. deep learning adopts yolov5m model with high recognition accuracy. references [1] cheng cheng, li linlin, meng fanmao et al. application and promotion of uav glass cleaner in domestic aerial work industry [j]. hubei agricultural mechanization, 2020, no.250(13): 71-72. [2] feng liang, xu jianxin, chang fengjun. design of highaltitude intelligent glass cleaning robot based on stm32 [j]. science and technology innovation,2020(14):191-192. [3] wuji jiang, research on aerial glass cleaning robot based on pneumatic technology, [j]. journal of electronics, 2015, no. 281 (8): 16-17. doi: 10.16589 / j.carol carroll nki cn11-3571 / tn. 2015.08.244. 66 [4] xu jianchao. successful development of high-altitude glass cleaning device [j]. harbin railway science and technology communication, 1982(02):1-2. [5] cn218703989u(jiaqi cui, jiaze yu, weifeng zhai quadcopter based on rotating axis structure, 2023-03-24). [6] cn307939837s(jiaqi cui, climbing high-altitude operation vehicle, 2023-03-28). frontiers in computing and intelligent systems issn: 2832-6024 | vol. 2, no. 1, 2022 80 a review of security research on the internet of things, based on artificial intelligence and blockchain ni zhang faculty of science, bsc general, university of alberta. edmonton, alberta t6g 2r3.canada nz2@ualberta.ca abstract: with the rapid improvement of digital technology, the internet of things (iot) has become a trending development direction. its massive data interaction capabilities have drawn researchers’ attention to key security issues. this paper describes the concept of iot, its application areas, and corresponding security problems. the use of blockchain and cryptographic algorithms is introduced, and the application of blockchain in iot security is analyzed and discussed in detail. drawing upon artificial intelligence, technical solutions such as using machine learning for privacy protection and intrusion detection are presented. finally, the problems and challenges facing iot, driven by blockchain and artificial intelligence, are discussed. keywords: blockchain; security; artificial intelligence; iot. 1. introduction the internet of things (iot) is a technology combined with the internet designed to achieve cross-time and cross-territory interaction, offering substantial economic benefits and lowering labor costs while also reducing wasted resources. it is widely used in transportation, agriculture, logistics, home, healthcare, and other fields. according to the latest data reported by statista, the number of iot-connected devices exceeded 10 billion in 2021 and is expected to reach 30 billion by 2030. iot is divided into three main parts, which are the perception layer, network layer, and application layer. the perception layer constitutes the various information-sensing devices that collect data. the network layer is responsible for the transmission of the collected data through network facilities such as private networks, mobile networks, the internet, and more. the application layer entails the specific iot solution that matches the needs of the industry by combining the needs of various fields. 2. security issues in internet of things with the rapid development of iot, which includes largescale data storage and widespread data usage, privacy protection and other security issues present a significant challenge. currently, iot relies largely on centralized cloud servers, and interaction vulnerabilities in cloud platforms, malware, and flaws in access control permissions can easily create threats to users’ data security and privacy. similarly, centralized storage methods also present the risk of largescale data leakage. in 2018, for instance, because of flaws in software permission restrictions, the data of more than 50 million facebook users was compromised. additionally, data interaction in iot can introduce many security issues. examples include attacks on the networks that transmit data, unreliable data nodes, and privacy breaches during data interactions. 3. blockchain 3.1. blockchain background ever since satoshi matsumoto proposed the concept of bitcoin in 2008, blockchain, the basic underlying technology on which bitcoin relies, has received widespread attention. blockchain, as a pan-centralized distributed ledger, authorizes trusted data and maintains data storage through a consensus mechanism between various network nodes. 3.2. framework and technical characteristics 3.2.1. framework the underlying framework of blockchain can be divided into the application layer, network layer, and data layer the data layer is used to record or transact data through techniques such as hash functions and asymmetric encryption. after starting from the genesis block, each subsequent block records the hash value of the previous block so that each independent block is logically connected, thus forming a blockchain. a timestamp is also added to each block, which ensures the reliability and integrity of all previous data by verifying the hash values and timestamps of each block. this procedure makes it difficult to tamper with the data [3, 2]. the second layer, known as the network layer, is a peer-to-peer networking approach in which all data is transmitted and shared between nodes. whenever a new transaction is posted to the network, all remaining nodes in the network can obtain validation rights through a consensus mechanism. after verification, the transaction is packaged and broadcast across the network. the proof of workload is obtained through fair competition among the nodes to acquire the packing right, and it is rewarded with corresponding tokens to ensure the security and consistency of the data. likewise, the proof of interest is obtained through packing rights by pledging tokens to prove ownership. with the byzantine fault tolerance, the bookkeeper is elected according to the proportion of interest, and if more than two-thirds reach an agreement, the bookkeeping can be completed. finally, the application layer focuses on non-fungible tokens (nfts), digital currency, decentralized applications, decentralized autonomous organizations, and more, including open sea, binance, ethereum, and others. the application layer provides call interfaces for various programs, allowing the blockchain to support data interaction from multiple domains. 3.2.2. technical characteristics privacy and scalability are the technical advantages of 81 blockchain. with bitcoin, users are assigned a public key and a corresponding private key. only the input and output addresses appear for each transaction record, effectively protecting the user’s information. combined with blockchainrelated cryptography, zero-knowledge proofs were proposed in the 1980s as a method of data protection, in which a clearly defined assertion is confirmed by a verifier who has no extraneous knowledge about the prover’s assertion. the verifier simply confirms whether the assertion is correct or not. currently, zero-knowledge proofs are one of the key techniques used to address privacy protection at the blockchain transaction layer. wang et al. propose to protect user transactions by encrypting account balances and transaction information in a lightweight, homomorphic manner before data is uploaded on the chain, so that the information seen by other nodes on the chain is encrypted. also, blockchain has good scalability; for example, slicing and chain measurement are both used to solve the problems of low transaction volume and high latency. slicing is one of the mainstream scaling methods for the first blockchain layer, which entails slicing the whole blockchain and dividing the work. each node is only responsible for the corresponding storage, verification, and related procedures, making it more efficient. the measurement chain, on the other hand, is derived from the main chain and ensures data security by running its own independent blockchain and uploading valuable information to the main chain on a regular basis. 3.3. iot security using blockchain technology blockchain currently has a wide range of applications in iot, involving different domains and multiple technologies, and with the appeal of significant commercial value, there is no shortage of attackers who seek to identify and steal important data nodes. the sensing devices within iot are numerous and cumbersome, and many of them do not have supporting software for long-term maintenance. wu et al. propose multi-layer aggregate authentication (mlav), an efficient blockchain management framework that allows regular upgrades and system maintenance of iot devices to defend against malware attacks. uzair et al. discuss the use of smart contracts with an ethereum variant that limits a single device gas not to exceed the gas of the smart contract, thus preventing denial-of-service attacks. network nodes, which form an important part of the blockchain, have also gained the attention of attackers. song et al. have designed a visual inspection tool based on iot blockchain data to ensure the validity of data by checking if the blockchain network is functioning properly and detecting malicious nodes. vishwakarma et al. propose a blockchain-enabled secure storage and communication scheme (bbs) that combines the tamper-resistant features of blockchain, where authenticated objects are divided into secure, trustworthy regions, where the objects can interact freely. for privacy issues associated with personal schedules, giannoutakis et al. outline a blockchain-based decentralized architecture for the enhancement of cybersecurity in smart homes, where the ip of the home device is managed through smart contracts and the ip of the attacker is blacklisted through anomaly detection to protect the user’s data. xu et al. also suggest using smart contracts to automatically determine whether patient data, after homomorphic encryption, is eligible for health insurance claims, thus avoiding the risk of data leakage of sensitive patient information. 4. artificial intelligence 4.1. background of artificial intelligence artificial intelligence (ai), a technology that mimics and extends human intelligence, is composed of a basic resource layer, a technology layer, and an application layer. ai involves data platforms, image recognition, natural language processing, driverless capabilities, and more. presently, ai is still in a relatively weak stage in comparison to its full potential, with prominent examples including apple’s siri, alphago, and other technologies that can only handle specific scenarios. machine learning, the core research area of ai, has a wide selection of techniques such as supervised learning, reinforcement learning, and deep learning. supervised learning focuses on training an optimal model using known data, with the objective of mapping an input to the corresponding output using the trained model, which would thus introduce predictive power for unknown data. reinforcement learning, on the other hand, maximizes the reward function value by recording the model’s behavior based on the feedback given by the environment, which rewards or penalizes the model based on the correctness of its actions. finally, deep learning is a technique based on neural networks that involves learning the underlying laws of data. geoffrey et al. suggest that multilayer artificial neural networks have superior learning abilities and can overcome network training difficulties by initializing layer by layer. because deep learning is superior at constructing complex and high-dimensional data structures, it plays an important role in natural sciences, medicine, and business. 4.2. development and application of artificial intelligence in the field of iot security 4.2.1. malware detection the lack of unified security protocols across iot nodes, coupled with the embedded nature of many iot devices, which cannot patch the latest security vulnerabilities, makes iot technology susceptible to malware attacks. deep learning, when used for classifying and detecting malware, can extract feature values from software code to identify whether it has been attacked, analyze it by observing the running behavior of the software, or combine these methods. asam et al. discuss a deep learning detection framework (imda) that combines three features of deep learning by using the stm smoothing operation of multi-path dilation convolution to identify the full structure of the attacking malware, presenting a form of malware discrimination with an accuracy of over ninety-seven percent. nawaz et al. propose a malware detection method based on a convolutional neural network that effectively finds malware and its variants using pretrained deep learning models. 4.2.2. defending against cyberattacks with the continued development of iot, the corresponding network has become huge and complex. network transmission, as the core of iot interaction, faces the difficulties of long concealment time, fast transmissibility, and high destructive power, among other issues that can lead to severe network attacks. ren et al. introduce a network intrusion monitoring model based on deep reinforcement learning (id-rdrl) that combines deep reinforcement learning features and removes eighty percent of the redundant features to identify network attacks in complex network environments. however, identification difficulties occur 82 when network attacks overlap with normal network traffic. vijayakumar et al. analyze problematic and normal network ids using convolutional neural network modeling and a hybrid hyperparameter approach; their model is more efficient than traditional machine learning, but the identification capability needs to be improved to detect new intrusion methods. 5. conclusion this paper describes the background and applications of the internet of things and summarizes various security issues that have become increasingly complex and difficult to detect following the continuous development of iot. a solution for iot security based on blockchain and artificial intelligence is introduced. the security features of blockchain, such as its resistance to tampering, its traceability, and its anonymity are all utilized to provide a guarantee for iot data security and safe information transmission. combined with the advantages of artificial intelligence in multi-dimensional data analysis and detection, this security solution screens and defends against potential vulnerabilities. to a certain extent, the security of iot is improved by using this approach. research on artificial intelligence and blockchain in the field of iot is still in its preliminary stage, but the future combination of reliable algorithms and efficient and stable blockchain encryption can better serve the security needs of iot. references [1] vailshery, l. s. (2022, aug. 22). number of internet of things (iot) connected devices worldwide from 2019 to 2021, with forecasts from 2022 to 2030 (in billions) [graph]. statista. https://www.statista.com/statistics/1183457/iot-connecteddevices-worldwide/ [2] yang, y., zhou, w., zhao, s., liu, c., zhang, y., wang, h., wang, w., & zhang, y. (2021). survey of iot security research: threats, detection and defense. journal on communications, 42(8), 188-205. [3] gao, w., hatcher, w. g., & yu, w. (2018). a survey of blockchain: techniques, applications, and challenges. 2018 27th international conference on computer communication and networks (icccn), 1-11. [4] wang, r., tang, y., pei, x., & guo, s. (2021). block-chain privacy protection scheme based on lightweight homomorphic encryption and zero-knowledge proof. computer science, 48(11a), 547-551. [5] huang, h., kong, w., peng, x., & zheng, z. (2022). survey on blockchain sharding technology. computer engineering, 48(6). [6] wu, j., sie, m., harding, s. a., lin, c. l., wang, s., & liao, s. (2021). multi-layer aggregate verification for iot blockchain. 2021 3rd conference on blockchain research & applications for innovative networks and services (brains), 43-44. [7] javaid, u., siang, a. k., aman, m. n., & sikdar, b. (2018, june 1). mitigating lot device based ddos attacks using blockchain. cryblock’18: proceedings of the 1st workshop on cryptocurrencies and blockchains for distributed systems, 7176. [8] song, j., nang, j., & jang, j. (2018). design of anomaly detection and visualization tool for iot blockchain. 2018 international conference on computational science and computational intelligence (csci), 1464-1465. [9] vishwakarma, l., & das, d. (2020). bss: blockchain enabled security system for internet of things applications. 2020 ieee 19th international symposium on network computing and applications (nca), 1-4. [10] kim, j. n., jeon, y. s., & han, j.-h. (2015). security considerations for secure and trustworthy smart home system in the iot environment. 2015 international conference on information and communication technology convergence (ictc), 1116-1118. [11] xu, w., wu, l., & yan, y. (2018). privacy-preserving scheme of electronic health records based on blockchain and homomorphic encryption. computer research and development, 55(10). [12] hinton, g., & salakhutdinov, r. (2006). reducing the dimensionality of data with neural networks. science, 313(5786), 504-507. [13] lecun, y., bengio, y., & hinton, g. (2015). deep learning. nature, 521, 436-444. [14] zhang, y., dong, y., liu, c., lei, k., & sun, h. (2018). situation, trends and prospects of deep learning applied to cyberspace security. computer research and development, 55(6). [15] asam, m., khan, s. h., akbar, a., bibi, s., jamal, t., khan, a., ghafoor, u., & bhutta, m. r. (2022). iot malware detection architecture using a novel channel boosted and squeezed cnn. scientific reports, 12. [16] newaz, s., imran, h. m., & liu, x. (2021). detection of malware using deep learning. 2021 ieee 4th international conference on computing, power and communication technologies (gucon), 1-4. [17] ren, k., zeng, y., cao, z., & zhang, y. (2022). id-rdrl: a deep reinforcement learning-based feature selection intrusion detection model. scientific reports, 12. [18] vinayakumar, r., soman, k. p., & poornachandran, p. (2017). applying convolutional neural network for network intrusion detection. 2017 international conference on advances in computing, communications and informatics (icacci), 1222-1228. https://www.statista.com/statistics/1183457/iot-connected-devices-worldwide/ https://www.statista.com/statistics/1183457/iot-connected-devices-worldwide/ frontiers in computing and intelligent systems issn: 2832-6024 | vol. 3, no. 1, 2023 30 intelligent diagnosis of alzheimer's disease ruifan huang1, a, huifei xu2, b 1 school of sun yat-sen university, guangzhou 510000, china 2 school of hangzhou normal university, hangzhou 310000, china. a1059577592@qq.com, b1225604713@qq.com abstract: in this paper, we combine the knowledge of decision tree model and k-means clustering algorithm with knowledge of statistics to solve the problems of diagnosis of alzheimer's disease using brain structure. in the step of selecting features, this paper considers both data-based and theoretical perspectives for the analysis of variance in alzheimer's disease. based on the data perspective, the value of variance represents the magnitude of data volatility, i.e., data with data volatility has more abilities to cause data changes in feature classification. therefore, in this paper, a total of 28 indicators of site-faq were selected as necessary indicators and histograms were made to observe the volatility. after the above data processing, we use the attached structural brain features and cognitive behavioral features to design an intelligent diagnosis of alzheimer's disease. for multiclassification models, this paper uses the k-means algorithm to cluster and continue to cluster mci into smc, emci, lmci to observe the difference between cluster centers. after clustering 53 indicators, this paper analyzes the three types of cluster centers, mainly to analyze the different points in the number of clusters, and analyzes the difference in the mean value of the characteristics of the cluster centers, and at the same time, this paper observes the differences between the characteristics by visualizing the data. in the end, we analyze them in relation to the time points to uncover patterns in the evolution of different categories of diseases over time. at the same time, due to the large amount of data, this paper only selects a small sample of five features for analysis. keywords: decision tree; random forest; k-means clustering; pearson coefficient. 1. introduction 1.1. problem backgroud alzheimer's disease (ad) is a progressive neurodegenerative disease with an insidious onset. it is characterized clinically by a full spectrum of dementia, including memory impairment, aphasia, dysfluency, agnosia, impairment of visuospatial skills, executive dysfunction, and personality and behavioral changes, the cause of which is still unknown. it is characterized by a progressive decline in the ability to perform activities of daily living, with various neuropsychiatric symptoms and behavioral disturbances. the disease is usually progressive in the elderly, with progressive loss of independent living skills and death from complications 10 to 20 years after the onset of the disease. the preclinical stage of alzheimer's disease, also known as mild cognitive impairment (mci), is a transitional state between normal and severe. due to the limited cognition of the disease by patients and their families, 67% of patients were diagnosed as moderate to severe and had missed the best intervention stage. therefore, early and accurate diagnosis of alzheimer's disease and mild cognitive impairment is of great significance [1] 1.2. clarifications and restatements this paper uses the brain structural characteristics and cognitive behavioral characteristics of the different categories of people provided in the data set to construct an alzheimer's disease identification model and design an intelligent diagnostic method to accurately diagnose alzheimer's disease. in this paper, the research is decomposed into four problems shown below. 1). preprocess the characteristic indicators of the attached data to investigate the correlation between data characteristics and the diagnosis of alzheimer's disease. 2). use the attached structural brain features and cognitive behavioral features to design an intelligent diagnosis of alzheimer's disease. 3). first, cluster cn, mci and ad into three major classes. then, for the three subclasses contained in mci (smc, emci, and lmci), the clustering was continued to be refined into three subclasses. 4). the same sample in the annex contains features collected at different time points, we will analyze them in relation to the time points to uncover patterns in the evolution of different categories of diseases over time. 2. general assumptions and variable description 2.1. assumptions 1). assume that the effect of environmental factors on the composition of ancient glass artifacts will not change the original chemical composition content ratio by 20%. 2). assume that in the sampling test, there is no human error in the test results, while the error between the test results and the true content should be less than 2%. 3). it is assumed that chemical components not collected in the sampling tests and not studied will not have a significant correlative effect on the content of other chemical components. 4). assume that there are no interactions between different chemical components or between different representations of the artifacts. 5). for taking into account the impact of ambient temperature and humidity on the test, assuming that the sampling process are in the same environment and the sampling time interval is short. 31 2.2. variable description table 1. symbol specification table symbols description the specific value of the sample of corresponding to the indicator of the parent series subseries i.e. interpolation rate at the th sample coefficient of influence of the variable on the classification the variable denotes the probability that the th variable is classified as a barium lead variable normalized value of a chemical component in the i-th data set cluster i the sample points in the sample means distance of the point to all other points in the cluster it belongs to the average distance from a point to all points in a cluster that does not contain it contour coefficient of the point the rank difference, i.e. the position of the number after sorting two sets of data from smallest to largest 3. problem 1 the process of modeling and solving problem 1 is shown in figure 1: figure 1. problem 1 solution process 3.1. task 1: analysis of relationship 3.1.1. data pre-processing the flow chart for data pre-processing is as follows: figure 2. basic data pre-processing process for the codified data, this paper quantifies them according to the coding serial number, and for the more important codes, i.e., the text coding part, this paper chooses to encode them manually, for example, for the severity of ad, named as follows. figure 3. quantitative processing 3.1.2. model buiding and solving after the selection of indicators, in order to further determine the reasonableness of the selection of indicators. in this paper, anova will be used to determine whether there is a significant difference in the change of each statistic over time. first, anova is introduced in this paper as follows. the statistical inference method used in the one-way anova is to calculate the f statistic and perform the f test. the total sum of squares of variance, denoted as sst, is decomposed into two parts: one part is the variance caused by the control variables, denoted as ssa (sum of squares of variance between groups); the other part is the sse (sum of squares of variance within groups) caused by the random variables. the relationship between the two variables is shown below [2]. sst = ssa + ss in general, assume that there are k levels and establish the following assumptions. h0: u1 = u2=. . . uk ch1: u1, u2, . . . , uk, not all equal to each other the error within each overall system, mainly the random error caused by random sampling, is called the intra-group error, and the sum of squared intra-group errors is denoted as ssa. ssa = ∑ ni(xi̅ − x̅)2 k i=1 the errors between the totals, mainly random errors and systematic errors caused by random sampling, are called inter-group errors, and the sum of squared inter-group errors is sse. sse = ∑ ∑(xij − xi̅) 2 ni k k i=1 the total sum of squared errors of the data is denoted as sst. sst = ∑ ∑(xij − x̅)2 ni k k i=1 where denotes the jtℎ observation at the itℎ level, denotes the mean value at the jtℎ level, and denotes the mean value of the n observations. sst = ∑ ∑(xij − x̅)2 = ssa + sse ni k k i=1 the above calculation shows that the total error of the data comes from two main sources: intra-group error on the one hand and inter-group error on the other. it can be shown that when the means of the k overall groups are equal, ssa k − 1⁄ sse n − k⁄⁄ obeys the f distribution with degrees of freedom k-1 in the numerator and n k in the denominator. f = ssa (n − 1)⁄ sse (n − k)⁄ ≤ fα(k − 1, n − k) 32 each f value will correspond to a p value, and the larger the f value and the smaller the p value, the less likely it is to accept the original assumption, which is considered to be a large difference in characteristics between groups. therefore, the smaller the p-value, the more this feature should be preserved. figure 4. analysis of variance histogram pearson correlation analysis is a method used to study the closeness of association between two or more variables. in order to explore which factors are associated with the cause of alzheimer's disease, so the correlation analysis algorithm is used, and the pearson correlation value can be a good representation of the correlation between two variables. some of the indicators in the experiment have an interaction relationship, and the pearson correlation value is chosen to calculate the degree of correlation between different human physical characteristics affecting alzheimer's disease, and the pearson correlation value expression is shown below [3]. f(x, y) = ∑ (xa − x̅)(ya − y̅)t a=1 √∑ (xa − x̅)2t a=1 √∑ (ya − y̅)2t a=1 in the equation, f(x, y)represents the similarity between the two variables x and y, a represents the atℎ sample of a certain indicator, t is the total number of samples, and x̅ and y̅ represent the values of two variables, x and y, respectively. pearson correlation values f(x, y) always fall between -1 and 1. when 0.8