Abstract
The abnormality of communication link of mobile Internet of Things will threaten the security of communication of mobile Internet of Things, and the existing abnormality detection method is limited due to low accuracy, long time consumption and high energy consumption. To this end, the anomaly detection method of communication link of mobile Internet of Things based on EM algorithm is proposed in this study. Firstly, the anomaly range of the Internet of Things is located according to the communication node information of the data changes. Then the abnormal link of the target is judged and the anomaly feature of the communication link of the Internet of Things based on twin neural network is extracted. Finally, EM algorithm is improved with semi-supervised machine learning method to detect abnormal communication links of mobile Internet of Things. The experimental results show that the proposed method has the advantages of high precision, short time consumption and low energy consumption in the anomaly detection of communication links in the Internet of Things.
Keywords
Introduction
With the rapid development of Internet of Things technology, the number and complexity of attacks on mobile Internet of Things communication networks are increasing. Attacks on Internet of Things systems are mainly aimed at stealing sensitive data, injecting false information or interfering with the normal operation of networks and businesses [1]. The single-port link of the communication network of mobile Internet of Things can no longer meet the bandwidth demand of network data traffic, and multiple egress links are needed to increase the bandwidth. Multiple egress links can effectively improve the stability of network egress [2]. However, due to the large amount of interactive data in multi-link INSTANT messages, data differentiation is obvious. Once data anomalies occur, the security of the entire network will be affected [3]. Anomaly detection of communication link of mobile Internet of Things has become a major problem in the current communication field. One of the core problems to be solved is the comprehensiveness of information acquisition and the accuracy of link information description. Since abnormal connection is extremely harmful in mobile Internet of Things, it needs to quickly and accurately detect abnormal links in mobile Internet of Things and make a reasonable response, which has become a hot issue in academic and industry circles at home and abroad.
Zhao [4] proposed an anomaly detection method for interactive data in multi-link instant communication. This method only considers the time series transformation characteristics, combines k-means clustering and particle swarm optimization algorithm to cluster the interactive abnormal data, and obtains the clustering objective function. By using particle swarm optimization, the deviation function of abnormal interactive data was obtained, and the abnormal data in multi-link was calculated to determine the abnormal interactive data in multi-link IM, so as to realize the detection of abnormal points. However, this method has poor detection accuracy although its cost is low. Zhao [5] proposed a link interruption fault detection method for hierarchical heterogeneous networks based on breakpoint data. The relationship between the network link and each node was analyzed, the transmitting power and SNR of the node information were calculated, the probability of network link interruption was calculated, and the detection range was determined. Then the samples of breakpoint data of network link were collected, the features of the sample data were extracted with time-frequency analysis method, and the feature types of breakpoint data were categorized by clustering analysis. After feature extraction and classification of breakpoint data, linear transformation and KNN algorithm were combined to classify the link data of hierarchical heterogeneous network, divide normal data from abnormal data, and complete the fault detection of link interruption. The fault detection rate of this method is high, but the detection accuracy is low and the detection time is long.
Based on this, this paper proposes an anomaly detection method of communication link of mobile Internet of Things based on EM algorithm. First, the information of network node is identified according to the data change of each communication node of mobile Internet of Things, and then anomaly range of Internet of Things is located; secondly, the anomaly features in communication link of the Internet of Things based on twin neural network are extracted according to the eigenvalues of the abnormal connection matrix by judging the location of abnormal link of the target communication link; thirdly, on the basis of the semi-supervised machine learning algorithm, the maximum likelihood algorithm is used to improve the EM algorithm by introducing the least squares penalty term into the maximum likelihood function, introducing non-negative constraint as prior information, and combining with the semi-supervised machine learning method; finally, based on the improved EM algorithm, the abnormal communication link is located, and then the abnormal communication link of mobile Internet of Things is detected.
Anomaly feature extraction of communication link of mobile internet of things
It is necessary to extract the anomaly characteristics of communication link of the mobile Internet of Things. This process consists of basic steps, including locating the anomaly range of the Internet of Things, judging the location of abnormal link of the target communication link, and extracting the anomaly feature of the communication link of the Internet of Things based on twin neural network. The following section will presents the extraction steps of the anomaly feature of the mobile network communication link.
The abnormal location range of Internet of Things
User access to the communication network and the operation of the sensor network node itself may cause abnormality of the network node. The use of the Internet of Things can realize the exchange of information between things and things, and locate the anomaly range of the communication network. Considering the correlation and interaction between network nodes, the network traffic transmission process is regarded as a motion process. It is known that the anchor node in the communication network may be a smartphone or a traditional mobile device. When locating the anomaly range of the network, it is assumed that the number, location and network topology of the anchor node device in the communication network are fixed [6].
When the communication network is in normal use, set one of the target nodes to 0, use
In order to ensure the computing security of the Internet of Things, Eq. (1) is transformed into Eq. (2):
According to the above conversion results, use the
The above result is the farthest distance of the abnormal node calculated by the Internet of Things with a target node as the center. The above steps are repeated to obtain the abnormality range of communication network formed by all network abnormal nodes in the communication network link. The Internet of Things completely covers and senses network links. According to the data changes of each node, the functions of information exchange and information coverage can be realized based on the information exchange function of the Internet of Things. Then the associated anchor nodes are affected and the range of abnormal nodes is located [7].
When determining the location of the abnormal link of the Internet of Things. The judgment process will be interfered by the noise of the data collected by the actual environmental link. Therefore, it is necessary to judge the signal values of abnormal mutation structures confronted by the noise and the abnormal data, as shown in Fig. 1.
Signal values of anomalous mutational structures confounded by noise and anomalous data.
By mutating the signal value of the structure, the noise and confounding factors affecting the diagnosis of abnormal data are analyzed, and the abnormal data is denoised. The mutation information in the data is saved, the singular values in the intrinsic attributes of the data are decomposed, and the noise reduction is performed through preprocessing to improve the signal-to-noise ratio of the mutation information in the data [8]. Thus, a new abnormal data matrix suitable for decomlocation is obtained, and the calculation formula is as follows.
In the formula, the eigenvalue of the matrix is expressed as
When the correlation degree 1 between two adjacent links
where
Using the feature storage sequence of the target abnormal link, the anomaly location is obtained by the delay change of the feature vector storage sequence. First, define the decomlocation value
where
According to the abnormal location results of the divided communication links of Internet of Things, the problem of abnormal data feature extraction of communication links is transformed into a data similarity measurement problem, and the abnormal communication data features are extracted by twin neural network [9]. For each abnormal data set after training and classification, obtain the mapping function
The data to be extracted
The abnormal data extraction process of the communication link of Internet of Things based on twin neural network is described as follows:
IoT communication data input twin neural network: Assuming that the abnormal data feature to be extracted in the initial data set is
The candidate data feature generated by the abnormal data to be extracted is
where Therefore, the following definitions of candidate data attributes
Feature extraction of abnormal data: since the Siamese neural network model does not have a fully connected layer, the output data of the convolutional layer is set to the extracted data features. Similarity calculation: According to the features extracted by the Siamese neural network, the similarity between the data to be extracted and the candidate data is measured. The cross-correlation layer is adopted to measure the similarity according to Eq. (12) [10, 11]:
where If the output data of the twin neural network is
Combined with Eq. (12), when the number of abnormal data features in the IoT communication link is
The above process has completed the anomaly feature extraction of mobile IoT communication link. Next, we will improve the algorithm to detect the abnormalities of the communication link. The specific steps are as follows.
Improvement of EM algorithm based on semi-supervised machine learning
EM algorithm is a method based on gradient rise. When applied to model parameter estimation, it can ensure the increase of likelihood function after iteration. However, it can only obtain the local optimal solution, which is a big disadvantage. To this end, semi supervised machine learning method is adopted to improve EM algorithm in this study. Firstly, the least squares penalty term is added to the maximum likelihood function, and non negative constraints are introduced as a priori information; then EM algorithm is improved combined with semi supervised machine learning method so as to realize the anomaly detection of communication link.
Based on the prior theory, according to the probability penalty theorem and the binomial distribution probability function, the L log-likelihood function is expressed as:
where,
Adding the penalty term to the maximum likelihood function will greatly reduce the error caused by the score function. The penalty term added in this paper is the least squares penalty term [12, 13], which can be expressed by Eq. (16):
It should be pointed out that
The one-step recursive least squares algorithm is to solve the estimated value
where the estimated values obtained from the
Filter out the historical data at time
where
According to the above equations, the following two equations are obtained, as shown in Eqs (19) and (20):
To sum up, the least squares algorithm based on the two-step recursion is based on the estimated value
Based on the above maximum likelihood function processing, the non negative constrained prior information is introduced, and the semi supervised machine learning method is used to improve the EM algorithm. EM algorithm usually repeats step e and step m continuously until the convergence of parameters, and the local optimal value can be obtained under ideal conditions [15]. Using semi supervised machine learning method, the determined results can be introduced into the current labeled sample set at each training, and the obtained results can be used to achieve better training effect, which greatly avoids the local maximum.
In this section, this semi supervised machine learning method is used to improve the EM algorithm. To be specific, mark the determined sample data according to the results obtained in step e, and train the samples in the new training set in step M in each iteration. Then, the unlabeled sample set will be gradually reduced, which increases the iteration speed and prevents interference.
The frequent itemset mining algorithm is used to generate frequent itemsets including confidence, support and item names. Through the frequent itemsets, the basic data in the two-dimensional array is associated and mined. Perform exponential smoothing analysis and linear regression analysis on the decrypted basic data, predict the time series data of IoT communication, and use the weighted average as the final prediction result. Through exponential smoothing analysis, the development trend of basic data can be found, which is expressed by Eq. (21):
where
where
The semi supervised machine learning method will label the determined unlabeled samples in each iteration and put them into the labeled sample set to provide high-quality labeled samples for the subsequent process, which greatly reduces the number of cycles of the EM algorithm and avoids the problem that only the local optimal solution can be obtained.
The overall communication network link of the mobile IoT is set as a dynamic link. The determination of the detection range of each
where
where
In order to improve the anomalies detection accuracy of communication link of mobile IoT, the improved EM algorithm is used to accurately locate the abnormal link, and the following formula can be obtained:
where
where
The communication process of mobile animal networking is repeated on the MATLAB simulation platform. A 500
Detection accuracy rate of abnormal links in mobile Internet of Things communication
Three methods are used to detect the abnormal links of the communication link of mobile Internet of Things, and the abnormal links obtained under various methods are detected by changing the total number of samples, and the efficiency of the detection of the abnormal links of the mobile Internet of Things communication is obtained, and the results obtained by the three methods are compared, and the specific data is shown in Table 1.
The test results of the detection accuracy of abnormal communication links
The test results of the detection accuracy of abnormal communication links
From the experimental results in Table 1, it can be seen that compared with the method in Reference [4] and the method in Reference [5], the proposed method has the highest accuracy when detecting abnormal communication links, and can effectively determine the abnormal operation status of the communication link of mobile IoT. The reason is that the proposed method uses the improved EM algorithm to extract the characteristics of abnormal communication links in IoT before modeling and then classify them, which effectively improves the detection accuracy of abnormal communication links in mobile IoT.
In order to effectively obtain the identification efficiency of the three anomaly detection methods, the proposed method and the two comparison methods are compared in terms of time consumption in detection of abnormal communication links in mobile Internet of Things. The final results are shown in Fig. 2.
Time consumption in detection of abnormal communication link in mobile Internet of Things for three methods.
From the experimental results in Fig. 2, it can be seen that the average time consumption of the proposed method in the detection of abnormal links is 1.54 s, and the stability of each test result is good; The average time consumption of Reference [4] is 8.65 s, which is far lower than the proposed method in terms of detection efficiency; The average time consumption in the detection of abnormal communication links is 4.87 s. The method in Reference [4] and Reference [5] are in an unstable state during the whole experiment process. Among the three abnormality detection methods, the efficiency of the proposed method is the highest, which can effectively ensure the real-time detection of abnormal communication links in mobile Internet of Things.
The improved EM algorithm is used to detect the abnormality of the communication link. Compared with the two comparison methods, the loss rate of abnormal nodes under the three detection methods is recorded, and the loss rate of abnormal nodes under the three methods is calculated. The results are collated into Table 2.
Statistical results of loss rate of abnormal nodes
Statistical results of loss rate of abnormal nodes
According to the calculation in Table 2, the highest loss rate of the proposed method is only 3.06% in multiple tests; while that of the method in Reference [4] is 24.56% in multiple tests; In multiple tests, the average loss rate reached 19.18%. It can be seen that the traditional method has larger lose rate of abnormal nodes, and the detection results seriously deviate from the reality. Those abnormal nodes that have not been discovered will seriously threaten the security of the mobile Internet of Things, and may cause leakage incidents in serious cases.
Surrounding neighbor nodes should be considered in anomaly detection of communication link of mobile IoT. With the gradual exhaustion of node energy, the application life of mobile IoT communication network will be reduced. Based on the anomaly detection method of communication link of mobile IoT, a simulation experiment is carried out on the energy consumption of adjacent nodes, and the comparison results are shown in Fig. 3.
Energy consumption of neighbor nodes under different identification methods.
As can be seen from Fig. 3, the method in Reference [5] consumes a large amount of energy of neighbor nodes when identifying abnormal nodes in the network. Compared with the previous two methods, the method proposed in this paper performs better in the energy consumption of neighbor nodes. It can quickly lock and narrow the abnormal interval by extracting the features of abnormal nodes. With the assistance of neighbor nodes and updating the trust value, it can quickly detect the abnormality in the communication link of mobile Internet of Things and greatly reduce the energy consumption of neighbor nodes during identification.
Based on the previous research results, this paper improves the EM algorithm so that the analysis results are no longer limited to the local optimal solution. From the above experimental results, it can be seen that the proposed method can effectively detect the abnormality of the communication link of mobile Internet of Things, further detect the abnormal nodes in the network space, and effectively divide them, so the node loss rate is low. The above shows that the proposed method can improve the efficiency of abnormal detection of communication link of mobile Internet of Things, shorten the time consumption in detection process, reduce the loss rate of abnormal nodes, and reduce the energy consumption in the detection process. The proposed method can repair abnormal nodes in a timely manner, prevent viruses from invading the network, and maintain the communication security of Internet of Things.
With the rapid development of information technology, people’s demand for network information is increasing rapidly, and the workload of wireless communication network is also increasing day by day. In order to deal with network node failure, this paper proposes anomaly detection method of communication link of mobile Internet of Things based on EM algorithm. In this paper, the information of network nodes in mobile IoT is collected according to each communication node with data changes in the whole region. Then, the anomaly range of Internet of Things is located, and the anomaly of target link is judged. According to the eigenvalue of abnormal connection matrix, the anomaly features of Internet of Things is extracted based on twin neural network. This paper also analyzes the implementation process of EM algorithm and introduces non-negative constraint prior information. Since EM algorithm is difficult to solve global spatial optimal solution, semi-supervised machine learning mechanism is used to optimize and improve EM algorithm to prevent from falling into local optimal solution. Finally, the improved EM algorithm is used to realize abnormal detection of communication link of mobile Internet of Things. The final experimental results show that compared with the two comparison methods, the proposed method has higher detection accuracy of abnormal nodes, shorter detection time, and lower energy consumption. However, there are still some problems in the results obtained by the proposed method. Further research on smooth abnormal detection of communication link of mobile Internet of Things is needed.
Footnotes
Fundings
The research is supported by: General project of philosophy and social science research in Jiangsu Universities in 2022, Research on the cooperative education system of professional teachers and counselors in Higher Vocational Colleges from the perspective of “Curriculum Ideology and politics” 2022SJYB0908.
