A multi-channel feature fusion vehicle network anomaly detection method and system
Through the multi-channel feature fusion method, combined with TCN, SENet, GNN, GAT and Transformer modules, linear and nonlinear features are integrated, and PageRank causal reasoning is used to solve the problem of insufficient anomaly detection accuracy and explanation ability in Internet of Vehicles data, and achieve a better Efficient anomaly detection and rapid troubleshooting.
Patent Information
- Application Number
- CN202410919430.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-10
AI Technical Summary
It is difficult for the existing technology to accurately identify and process abnormal situations when processing Internet of Vehicles data. Especially when faced with high-complexity and high-dimensional multivariate time series data, the detection precision and accuracy are insufficient, and there is a lack of effective abnormal explanations. and root cause location capabilities.
Using a multi-channel feature fusion method, the TCN and SENet modules are connected in series for preliminary feature extraction, and the GNN and GAT modules are combined to extract local and global features. Context information is obtained through the Transformer module, linear and nonlinear feature prediction values are integrated, and PageRank causal inference is used. Perform rapid anomaly diagnosis.
It improves the accuracy and generalization of anomaly detection in the Internet of Vehicles system, enhances the robustness and real-time performance of the model, and can more accurately identify anomalies and provide rapid troubleshooting capabilities.
Smart Images

Figure CN118468197B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a multi-channel feature fusion vehicle network anomaly detection method and system. Background Art
[0002] With the rapid development of intelligent transportation systems and Internet of Things technologies, the Internet of Vehicles, as a key technology that integrates vehicle communications and intelligent computing, is reshaping traffic management and vehicle operations. By connecting vehicles, infrastructure and cloud platforms, the Internet of Vehicles enables real-time exchange and sharing of information, thereby improving traffic efficiency, reducing accident rates and optimizing energy use. However, with the popularization and application of Internet of Vehicles technology, a large amount of multi-source data has emerged. How to identify abnormal data, timely warn and respond to emergencies has become a top priority to ensure the safe and reliable operation of the Internet of Vehicles system.
[0003] Multivariate time series data refers to data that records multiple variables or indicators at different time points. These data are usually arranged in time order, and each time point corresponds to the values of multiple variables, thus forming a multidimensional time series. The data generated by the Internet of Vehicles system mainly includes vehicle sensor data, location information, vehicle status information, etc. These data usually have high-dimensional, large-scale and complex spatiotemporal characteristics, which is a typical multivariate time series data. In the Internet of Vehicles environment, abnormal situations may include traffic accidents, vehicle failures, abnormal driving behaviors, etc. These abnormal situations may have a significant impact on the safety and stability of the transportation system. Therefore, accurately and timely identifying and processing abnormal situations in Internet of Vehicles data is crucial to ensure the normal operation of the transportation system.
[0004] Traditional anomaly detection methods often fail to meet the requirements of IoV data processing because they usually assume that data follows a specific distribution or pattern, while IoV data often has large noise and complex spatiotemporal relationships. For example, principal component analysis (PCA) is an anomaly detection method based on a linear model. It embeds data into a low-dimensional space and performs anomaly detection in the low-dimensional space. However, PCA is based on the linear correlation between data and cannot achieve good results for nonlinear dependencies, and even loses nonlinear dependencies. However, in multivariate time series, nonlinear dependencies are more common and important. The partial least squares (PLS) model assumes that the data conforms to a Gaussian distribution, which makes it only effective for highly correlated data. The K-nearest neighbors (KNN) algorithm mainly uses the average distance of the K neighbors of each sample as a judgment for detecting anomalies. However, its anomaly detection accuracy will be greatly reduced when facing unbalanced samples, and the computational complexity is high when the dimension of the data features is high, which are quite common in multivariate time series. In addition, for example, support vector data description SVDD (Support Vector Data Description), isolation forest IF (Isolation Forest) and one-class support vector OC-SVM (One-Class Support Vector Machine) do not consider the time dependency in time series, and have poor effects on anomaly detection and prediction of long time series.
[0005] There are also some new methods, such as CN113992533A proposed a vehicle CAN bus data anomaly recognition method based on self-attention mechanism and gated recurrent unit (GRU), CN116304604A proposed a multivariate time series anomaly detection model based on generative adversarial network (GAN); others include unsupervised anomaly detection USAD (UnSupervised Anomaly Detection), generative decomposition network GDN (Generative Decomposition Network), Transformer-based anomaly detection TranAD (Transformer-based Anomaly Detection) and dynamic time series anomaly detection DTAAD (Dynamic Time-series Anomaly Detection), none of which use recurrent neural networks, but use attention-based network architecture, which is why the training speed of these models is much faster than other models. Among them, USAD is an unsupervised generative adversarial network based on autoencoder. It is one of the classic models currently focusing on low overhead and can greatly reduce the training time of the model. The graph deviation network (GDN) method learns the relationship graph between data patterns through GAT and maps the structured information of the network to scores, making it easier to distinguish abnormal nodes.
[0006] Although the above methods have improved the accuracy of anomaly detection to a certain extent, they still have some shortcomings: ① The anomaly detection accuracy and accurate identification of abnormal fluctuations when facing a variety of time series data with high complexity and high dimensionality cannot fully extract relevant information. ② The generalization ability of most models is poor. ③ There is a lack of anomaly explanation and root cause location in the anomaly detection system of the Internet of Vehicles. Summary of the invention
[0007] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a multi-channel feature fusion vehicle network anomaly detection method and system to solve the deficiencies of the prior art.
[0008] The object of the present invention is achieved through the following technical solution: a multi-channel feature fusion vehicle network anomaly detection method, the anomaly detection method comprising:
[0009] Step 1: Input data into the TCN module and SENet module in series to perform preliminary feature extraction and reduce the impact of irrelevant features on the model;
[0010] Step 2: Input the data processed in step 1 into the GNN module and the GAT module respectively, extract local feature information and global feature information respectively, fuse the data after the feature information is extracted with the data obtained in step 1, and extract context information through the Transformer module, pass the nonlinear features of the obtained context information through the prediction module, and obtain the predicted value of the nonlinear feature;
[0011] Step 3: Extract the linear features in the input data through the VAR module and obtain the predicted value of the linear data, and integrate the two predicted values through weighted average to obtain the final predicted value;
[0012] Step 4: Use PageRank causal reasoning to quickly diagnose anomalies in the final predicted value.
[0013] The step 1 specifically includes the following contents:
[0014] The input data is input into the TCN module. The TCN module uses a 1D full convolutional network framework and zero padding to make the input and output sequence lengths of each layer consistent, and the basic calculation of each layer is and , where Z is the output after one-dimensional convolution with a convolution kernel of 3 and weight normalization. For passing and The final value of Z output, Conv1D is a one-dimensional convolution with a convolution kernel size of 3, Weight-Norm represents a weight normalization operation, X T represents the input multivariate time series, represents regularization, Represents an activation function used in the model training process;
[0015] The data obtained by the TCN module is input into the SENet module to adjust the weight contribution of different features. and ,in, is the ReLU function, Represents the Sigmiod function, which is used to compress the attention weights of different channels to [0,1] to achieve channel weight contribution adjustment. is the element-wise broadcast point multiplication, represents the average pooling operation, It means that Z and The value obtained by element-wise broadcasting of the point multiplication.
[0016] The step 2 specifically includes the following contents:
[0017] The obtained data are input into the GAT module and the GNN module respectively. The local information features are extracted by capturing the information of the neighboring nodes in the GAT module, and the global information features are extracted by capturing the information of the distant nodes in the GNN module. The obtained local features and global features are fused with the output data of the SENet module.
[0018] The fused data is input into the Transformer module, and the long-dependency feature extraction capability of the Transformer module is used to obtain context information. The nonlinear feature information in the context information is input into the prediction module to obtain the predicted value of the nonlinear feature.
[0019] The step three specifically includes the following contents:
[0020] use To express The predicted value at the kth moment is obtained by using the VAR module at the moment;
[0021] The results of the first prediction and the second prediction are integrated to obtain the final prediction result, which is expressed as , represents the hyperparameters for integrating nonlinear prediction and VAR module prediction, Represents the predicted value obtained by the VAR module, represents the predicted value of the nonlinear feature, Represents the final predicted value.
[0022] The anomaly detection method further comprises: performing rapid anomaly diagnosis on the obtained final prediction value through PageRank causal reasoning.
[0023] A multi-channel feature fusion vehicle network anomaly detection system, the system comprising a feature preliminary extraction unit, a first prediction unit, a second prediction unit and an anomaly diagnosis unit;
[0024] The feature preliminary extraction unit is used to input data into the TCN module and SENet module connected in series to perform preliminary feature extraction and reduce the impact of irrelevant features on the model;
[0025] The first prediction unit: inputs the data processed by the feature preliminary extraction unit into the GNN module and the GAT module respectively, extracts local feature information and global feature information respectively, fuses the data after the feature information is extracted with the data obtained by the feature preliminary extraction unit, extracts context information through the Transformer module, passes the nonlinear features of the obtained context information through the prediction module, and obtains the predicted value of the nonlinear feature;
[0026] The second prediction unit: extracts linear features in the input data through the VAR module and obtains the predicted value of the linear data, and integrates the two predicted values through weighted average to obtain the final predicted value;
[0027] The abnormality diagnosis unit is used to perform rapid abnormality diagnosis on the final prediction value obtained through PageRank causal reasoning.
[0028] The feature preliminary extraction unit includes a TCN module and a SENet module connected in series;
[0029] The TCN module is used to receive input data. The TCN module uses a 1D full convolutional network framework and zero padding to make the input and output sequence lengths of each layer consistent, and the basic calculation of each layer is and , where Z is the output after one-dimensional convolution with a convolution kernel of 3 and weight normalization. For passing and The final value of Z output;
[0030] The SENet module is used to receive the data obtained by the TCN module and adjust the weight contribution of different features to obtain and ,in, is the ReLU function, Conv1D is a one-dimensional convolution with a convolution kernel size of 3, Represents the Sigmiod function, which is used to compress the attention weights of different channels to [0,1] to achieve channel weight contribution adjustment. is the element-wise broadcast point multiplication, Represents an average pooling operation.
[0031] The first prediction unit includes a GAT module and a GNN module, a Transformer module and a prediction module connected in parallel;
[0032] The GAT module is used to extract local information features from the data output by the GAT module SENet module by capturing the information of neighboring nodes;
[0033] The GNN module is used to extract global information features from the data output by the SENet module by capturing the information of distant nodes, and to fuse the obtained local features and global features with the output data of the SENet module;
[0034] The Transformer module is used to obtain context information from the fused data using the long-dependency feature extraction capability;
[0035] The prediction module is used to predict the nonlinear feature information in the context information to obtain the predicted value of the nonlinear feature.
[0036] The second prediction unit includes a VAR module, and the VAR module specifically includes the following contents:
[0037] use To express The predicted value at the kth moment is obtained by using the VAR module at the moment;
[0038] The results of the first prediction and the second prediction are integrated to obtain the final prediction result, which is expressed as , represents the hyperparameters for integrating nonlinear prediction and VAR module prediction, Represents the predicted value obtained by the VAR module, represents the predicted value of the nonlinear feature, Represents the final predicted value.
[0039] The present invention has the following advantages: a multi-channel feature fusion Internet of Vehicles anomaly detection method and system improves the accuracy and generalization of anomaly detection in Internet of Vehicles system data; by adding PageRank causal inference, it helps detection personnel to quickly diagnose anomalies, thereby improving the real-time performance of anomaly detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a training process diagram of the present invention;
[0041] Figure 2 It is a schematic diagram of the test process of the present invention;
[0042] Figure 3 It is a structural schematic diagram of the model of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the detailed description of the embodiments of the present application provided below in conjunction with the drawings is not intended to limit the scope of protection of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application. The present invention is further described below in conjunction with the drawings.
[0044] The present invention specifically relates to a multi-channel feature fusion vehicle network anomaly detection method based on heterogeneous graph learning, and the problem to be solved is to perform efficient anomaly detection in various vehicle network system data, and to improve the generalization of the model to adapt to multiple data sets and add anomaly explanation modules to help engineers to quickly troubleshoot. The present invention introduces TCN (Temporal Convolutional Network), SENet (Squeeze-and-Excitation Network) and VAR (Vector Autoregression) modules to strengthen important features and retain linear features respectively to improve the generalization and detection accuracy of the model. The introduction of parallel GNN (Graph Neural Network), GAT (Graph Attention Network) and serial Transformer models enables us to obtain more feature information and achieve high-precision anomaly detection performance through multi-channel linear and nonlinear feature fusion on this basis; in addition, PageRank anomaly explanation and root cause location are added to help engineers to quickly troubleshoot.
[0045] First, the model of the present invention needs to be trained and tested. In order to reduce the low accuracy and poor robustness of the model caused by differences in data size, characteristics and distribution, the data needs to be normalized, and maximum and minimum value data normalization is used.
[0046] like Figure 1 As shown, the training process of the model is as follows:
[0047] 1. Set the number of training times and input training data.
[0048] 2. Input the input data into the TCN module. TCN uses dilated convolution to expand the receptive field of the convolution kernel, so that long dependencies can be effectively extracted.
[0049] 3. Input the obtained data into the SENet module, which can dynamically adjust the weight of each channel through the attention mechanism to enhance the model's learning of important features.
[0050] 4. Obtain the adjacency matrix for graph structure learning from the feature information obtained from SENet.
[0051] 5. The obtained feature information is input into the GNN module and GAT model respectively. The GNN module extracts local information features by capturing the information of neighboring nodes, while the GAT module extracts global information features by capturing the information of distant nodes.
[0052] 6. The obtained local features and global features are fused with the SENet output data to obtain the input data of the Transformer.
[0053] 7. Input the above cross-channel feature fusion information into the Transformer module, and use the long-dependency feature extraction capability of the Transformer module to obtain context information.
[0054] 8. Input the nonlinear feature information obtained through Transformer into the prediction module to obtain the predicted value of the nonlinear feature.
[0055] 9. In addition, we also input the original input data into VAR to extract linear features and get the predicted values of linear features.
[0056] 10. The nonlinear feature prediction value and the linear feature prediction value are weighted and fused to obtain the final prediction value.
[0057] 11. Repeat steps 2 to 10 until you have completed the training reps.
[0058] like Figure 2 As shown, the testing process of the model is as follows:
[0059] 1. Enter test data.
[0060] 2. Use the feature information obtained through the SENet module to obtain the adjacency matrix for graph structure learning.
[0061] 3. Input the input test data into the linear extraction layer and the nonlinear extraction layer respectively, obtain their respective prediction values and integrate the two prediction values.
[0062] 4. Compare the prediction results with the labels of the test data to calculate the test results of the model.
[0063] 5. Anomalies are determined by comparing the obtained anomaly detection score with the threshold value selected by the automatic threshold of the POT technique.
[0064] 6. By using PageRank causal reasoning technology, quickly diagnose where the anomaly occurs.
[0065] like Figure 2 As shown, the present invention specifically includes the following contents:
[0066] Step 1: Input data into the TCN module and SENet module in series to perform preliminary feature extraction and reduce the impact of irrelevant features on the model.
[0067] Furthermore, the SENet module is connected in series with the TCN module to enhance the model’s extraction and robustness of important features. The TCN module uses a 1D fully convolutional network framework and zero padding to make the input and output sequence lengths of each layer consistent, preventing future information leakage. In addition to the padding operation of the TCN module, the basic calculation process of a single layer is as follows:
[0068] Where Z is the output after one-dimensional convolution with kernel 3 and weight normalization. It is through and The final value of Z output. The leak in is very small. In the TCN module, we use the convolution kernel size k=3, the expansion coefficient d=1,2,4,..., and Weight-Norm is a weight normalization operation, which is the input multivariate time series X T The weights obtained after one-dimensional convolution Conv1D are normalized, X T represents the input multivariate time series, represents regularization, Represents an activation function used in the model training process.
[0069] Since the importance of each feature channel in a multivariate time series is different, in order to increase the focus on important features, SENet is used to adjust the weight contribution of different features. The specific formula is as follows:
[0070]
[0071]
[0072] in is the ReLU function, Conv1D is a one-dimensional convolution with a convolution kernel size of 3, is a Sigmoid function, which is used to compress the attention weights of different channels to [0,1] to adjust the channel weight contribution. is the element-wise broadcast point multiplication, is the average pooling operation, It means that Z and The value obtained by element-wise broadcasting of the point multiplication.
[0073] Step 2: Input the data processed in step 1 into the GNN module and GAT module respectively to extract local feature information and global feature information respectively, fuse the data after the feature information is extracted with the data obtained in step 1, and extract the context information through the Transformer module, and pass the nonlinear features of the obtained context information through the prediction module to obtain the predicted value of the nonlinear feature.
[0074] Furthermore, due to the high complexity and high dimensionality of time series data, the interdependence of each node can be well learned by using the graph structure. Among them, the GNN module can well capture the dependency between nodes. However, there is a higher demand for long dependencies in time series, and the GNN module has the problem of information attenuation when dealing with long dependencies. The GAT module allows different attention weights to be assigned to the adjacent nodes of each node by introducing an attention mechanism, which can better capture global features and more complex node dependencies. Therefore, the present invention designs a heterogeneous neural network of GNN modules and GAT modules to extract global and local features at the same time. On top of this, the Transformer module is also introduced to extract contextual information and capture long dependencies again and perform multi-channel feature fusion of local features and global features, which improves the model's ability to extract dependencies of time series data, allowing us to distinguish between normal fluctuations and abnormal fluctuations.
[0075] In the GAT module, such as Figure 3 As shown, for feature calculation, define ,in Represents the characteristic vector of each node, n is the number of nodes, and the specific formula is as follows:
[0076]
[0077] in, is the output representation of the qth node, is the Sigmoid activation function, is the adjacent node of node i, It represents the node and node The attention score between
[0078] In the GNN module, define the feature vector , S is the number of timestamps in the sliding window, and the correlation between different features is obtained by the inner product between different vectors. mj To express the correlation between feature vectors m and j, the specific formula is as follows:
[0079]
[0080] Where ω is the scaling factor, which is consistent with the size of the sliding window L. The feature correlation between the feature vector m and other vectors is used as the weight of a GNN module. The specific calculation formula is as follows:
[0081]
[0082] In order to reduce the parameter complexity of the model, the present invention only uses a single encoding layer of the Transformer module. The core of the Transformer module is the attention mechanism, and its attention score function depends on the dot product of attention. For each position of the input sequence, Q (query), K (key) and V (value) are obtained through linear transformation. The dot product of Q and K at each position is calculated to obtain the attention score, and then the scaling factor is used. Scaling is performed to prevent the dot product from being too large, and finally the attention score is normalized using Softmax (normalized exponential function). The specific formula is as follows:
[0083]
[0084] in, , R is a mathematical symbol, indicating the value range of Q, K, V, that is, The size of It represents the number of attention heads, which are learned separately for different dimensions, and can be transformed using different linear projections of the independently learned set of h. This set of h sends the transformed Q, K, and V to the attention aggregation in parallel. The specific formula is as follows:
[0085]
[0086]
[0087] Among them, H i represents the attention output of the i-th attention head, Q i, K i, V i represents the matrix vector of Q, K, V of the i-th attention head, Represents the final attention result obtained by the results of multiple attention heads, and Concat represents the concatenation operation of the matrix.
[0088] Step 3: Extract the linear features in the input data through the VAR module and obtain the predicted value of the linear data, and integrate the two predicted values through weighted average to obtain the final predicted value.
[0089] Furthermore, in order to retain the key linear data in the input data, the present invention integrates the VAR module to enhance the model's ability to extract linear features, and through multi-channel feature fusion of linear features and nonlinear features, the model's ability to identify abnormal fluctuations and the robustness of the model are greatly improved. To express The predicted value at the kth moment is obtained by using the VAR model. The results of the first prediction and the second prediction are integrated to obtain the final prediction result. The specific formula is as follows:
[0090]
[0091] in, Hyperparameters for integrating nonlinear forecasting and VAR forecasting, Represents the predicted value obtained by the VAR module, represents the predicted value of the nonlinear feature, Represents the final predicted value.
[0092] Finally, the root mean square error (RMSE) is used as the model loss function:
[0093]
[0094] Step 4: Use PageRank causal reasoning to quickly diagnose anomalies in the final predicted value.
[0095] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used for various other combinations, modifications and improvements, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art do not deviate from the spirit and scope of the present invention, and should be within the scope of protection of the claims attached to the present invention.
Claims
1. A multi-channel feature fusion method for anomaly detection in Internet of Vehicles. Features: The anomaly detection method comprises: Step 1: Input the Internet of Vehicles data into the TCN module and SENet module connected in series to perform preliminary feature extraction and reduce the impact of irrelevant features on the model, wherein the Internet of Vehicles data includes vehicle sensor data, location information, and vehicle status information; Step 2: Input the Internet of Vehicles data processed in step 1 into the GNN module and the GAT module respectively, extract the local feature information and the global feature information of the Internet of Vehicles data respectively, fuse the data after the feature information is extracted with the Internet of Vehicles data obtained in step 1, and extract the context information through the Transformer module, pass the nonlinear features of the obtained context information through the prediction module, and obtain the predicted value of the nonlinear feature; Step 3: Extract the linear features in the input data through the VAR module and obtain the predicted value of the linear data, and integrate the two predicted values through weighted average to obtain the final vehicle network abnormality prediction value, where the vehicle network abnormality includes traffic accidents, vehicle failures and abnormal driving; The step 1 specifically includes the following contents: The input data is input into the TCN module. The TCN module uses a 1D full convolutional network framework and zero padding to make the input and output sequence lengths of each layer consistent, and the basic calculation of each layer is and , where Z is the output after one-dimensional convolution with a convolution kernel of 3 and weight normalization. For passing and the final value of Z output by Droupt, Conv 1D is a one-dimensional convolution with a kernel size of 3, Weight-Norm represents a weight normalization operation, X T represents the input multivariate time series, and Drout represents regularization. Represents an activation function used in the model training process; The data obtained by the TCN module is input into the SENet module to adjust the weight contribution of different features. and , where δ is the ReLU function and σ is the Sigmiod function, which is used to compress the attention weights of different channels to [0,1] to achieve channel weight contribution adjustment. is the element-wise broadcast point multiplication, represents the average pooling operation, It means that Z and The value obtained by element-wise broadcast point multiplication; The step three specifically includes the following contents: use To express The predicted value at the kth moment is obtained by using the VAR module at the moment; The results of the first prediction and the second prediction are integrated to obtain the final IoV abnormality prediction result, which is expressed as , represents the hyperparameters for integrating nonlinear prediction and VAR module prediction, Represents the predicted value obtained by the VAR module, represents the predicted value of the nonlinear feature, Represents the final predicted value.
2. According to the multi-channel feature fusion vehicle network anomaly detection method according to claim 1, Features: The step 2 specifically includes the following contents: The obtained data are input into the GAT module and the GNN module respectively. The local information features are extracted by capturing the information of the neighboring nodes in the GAT module, and the global information features are extracted by capturing the information of the distant nodes in the GNN module. The obtained local features and global features are fused with the output data of the SENet module. The fused data is input into the Transformer module, and the long-dependency feature extraction capability of the Transformer module is used to obtain context information. The nonlinear feature information in the context information is input into the prediction module to obtain the predicted value of the nonlinear feature.
3. A multi-channel feature fusion vehicle network anomaly detection method according to claim 1 or 2, Features: The anomaly detection method further comprises: performing rapid anomaly diagnosis on the obtained final prediction value through PageRank causal reasoning.
4. A multi-channel feature fusion vehicle network anomaly detection system, Features: The system comprises a feature preliminary extraction unit, a first prediction unit, a second prediction unit and an abnormality diagnosis unit; The feature preliminary extraction unit is used to input the Internet of Vehicles data into the TCN module and SENet module connected in series to perform preliminary feature extraction and reduce the influence of irrelevant features on the model, wherein the Internet of Vehicles data includes vehicle sensor data, location information and vehicle status information; The first prediction unit: inputs the Internet of Vehicles data processed by the preliminary feature extraction unit into the GNN module and the GAT module respectively, extracts local feature information and global feature information of the Internet of Vehicles data respectively, fuses the data after the feature information is extracted with the Internet of Vehicles data obtained by the preliminary feature extraction unit, extracts context information through the Transformer module, passes the nonlinear features of the obtained context information through the prediction module, and obtains the predicted value of the nonlinear feature; The second prediction unit: extracts linear features in the input data through the VAR module and obtains the predicted value of the linear data, and integrates the two predicted values through weighted average to obtain the final vehicle network abnormality prediction value, wherein the vehicle network abnormality includes traffic accidents, vehicle failures and abnormal driving; The abnormality diagnosis unit is used to perform rapid abnormality diagnosis on the final prediction value obtained through PageRank causal reasoning; The feature preliminary extraction unit includes a TCN module and a SENet module connected in series; The TCN module is used to receive input data. The TCN module uses a 1D full convolutional network framework and zero padding to make the input and output sequence lengths of each layer consistent, and the basic calculation of each layer is and , where Z is the output after one-dimensional convolution with a convolution kernel of 3 and weight normalization. For passing and the final value of Z output by Droupt, Conv 1D is a one-dimensional convolution with a kernel size of 3, Weight-Norm represents a weight normalization operation, X T represents the input multivariate time series, and Drout represents regularization. Represents an activation function used in the model training process; The SENet module is used to receive the data obtained by the TCN module and adjust the weight contribution of different features to obtain and , where δ is the ReLU function and σ is the Sigmiod function, which is used to compress the attention weights of different channels to [0,1] to achieve channel weight contribution adjustment. is the element-wise broadcast point multiplication, represents the average pooling operation, It means that Z and The value obtained by element-wise broadcast point multiplication; The second prediction unit includes a VAR module, and the VAR module specifically includes the following contents: use To express The predicted value at the kth moment is obtained by using the VAR module at the moment; The results of the first prediction and the second prediction are integrated to obtain the final vehicle network anomaly prediction result, which is expressed as , represents the hyperparameters for integrating nonlinear prediction and VAR module prediction, Represents the predicted value obtained by the VAR module, represents the predicted value of the nonlinear feature, Represents the final predicted value.
5. According to the multi-channel feature fusion vehicle network anomaly detection system of claim 4, Features: The first prediction unit includes a GAT module and a GNN module, a Transformer module and a prediction module connected in parallel; The GAT module is used to extract local information features from the data output by the GAT module SENet module by capturing the information of neighboring nodes; The GNN module is used to extract global information features from the data output by the SENet module by capturing the information of distant nodes, and to fuse the obtained local features and global features with the output data of the SENet module; The Transformer module is used to obtain context information from the fused data using the long-dependency feature extraction capability; The prediction module is used to predict the nonlinear feature information in the context information to obtain the predicted value of the nonlinear feature.
Citation Information
Patent Citations
Vehicle-mounted CAN bus data anomaly detection and identification method
CN113992533A
Multivariable time series data anomaly detection method and system, and multivariable time series data model training method and system
CN116304604A
Apparatus and method for decision support for artificial cognitive systems
CN115461756A
Multivariable time sequence anomaly detection method and system based on parallel Transofmer-GRU
CN115510975A
Multi-source heterogeneous data fusion-based gale prediction algorithm along high-speed rail
CN117150430A
