Vehicle CAN communication intrusion detection method based on graph neural evolution
Through the method of combining graph neural network and reinforcement learning, graph convolution and graph collapse technology are used to extract the characteristics of vehicle CAN communication messages, and the NSGAII evolutionary algorithm is combined to optimize the network structure, which solves the applicability and intrusion detection of vehicle CAN communication in the existing technology. To solve the problem of insufficient real-time performance, it achieves high-precision, low-complexity intrusion detection and ensures the security of information communication in the vehicle.
Patent Information
- Application Number
- CN202210490504.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-05-07
AI Technical Summary
Existing technology is difficult to effectively detect and identify intrusion messages in vehicle CAN communications, and the detection system has insufficient applicability and real-time performance to meet the strict requirements for communication security in the context of vehicle electrification and networking.
A vehicle CAN communication intrusion detection method based on graph neural network and reinforcement learning is adopted, message features are extracted through graph convolution and graph collapse technology, and the neural network structure and hyperparameters are optimized with the NSGAII evolutionary algorithm to build a dynamic and real-time intrusion detection system that can adapt to Dynamics and diversity of CAN data packets.
It realizes high-precision and low-complexity intrusion detection of vehicle CAN communication, ensures the real-time and adaptability of detection, and provides guarantee for the security of information communication in the vehicle.
Smart Images

Figure CN116132078B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of vehicle communication, network security and deep learning, and specifically relates to a vehicle CAN communication intrusion detection method. Background Art
[0002] With the continuous development and progress of vehicle electronic equipment, Controller Area Network (CAN) communication is increasingly widely used in vehicle systems. CAN communication is widely used in the vehicle's power system, entertainment system, and even safety system. With the continuous upgrading of electrification and networking in vehicles, the security requirements for communication are more stringent, and the real-time requirements for communication security verification are faster. First of all, as the application functions of vehicle electronic systems change with each passing day, the content of CAN communication is not fixed and uncertain. Secondly, different vehicle manufacturers have different definitions of CAN communication protocols, and it is difficult to make a vehicle CAN communication intrusion detection system that is suitable for all vehicle manufacturers. Although there are endless security methods for vehicle CAN communication, there are very few methods with significant detection effects and less restrictions.
[0003] The development of vehicle electrification and networking has promoted the introduction of vehicle CAN communication intrusion detection mechanism. Graph Neural Network (GNN) is used to process CAN message information. Each frame is regarded as a node in the graph network. There is a connection between two adjacent frames. The graph neural network is used to learn the connection features and node features between frames, so as to complete the learning of intrusion messages and normal messages. At the same time, the evolutionary algorithm is used to search the structure and hyperparameters of the graph neural network with the recognition accuracy and complexity of the graph neural network as the goal, striving to obtain a vehicle CAN communication intrusion detection system that achieves maximum recognition accuracy with minimal complexity. Because of the dynamic nature of vehicle CAN data packets, a reinforcement learning network is added on the basis of the graph network system to adapt to the dynamic nature of CAN communication data packets. The entire CAN communication intrusion detection mechanism adapts to the real-time, accuracy and dynamic nature of vehicle CAN communication recognition.
[0004] With the development of deep learning, more and more network security researchers have shifted their attention from the traditional manual extraction of message features to the automatic extraction of message features to distinguish normal messages from intrusion messages. The order and time of appearance of the controller area network identifier CAN ID (Controller Area Network Identity) of the intrusion message have different characteristics from normal messages. The graph neural network can extract this logical feature by converting the timing features of the time domain message to the connection features of the spatial domain. CAN data packets with different functions have different definitions and different data packet lengths, so reinforcement learning is used to optimize the length of each detection CAN data packet sample and dynamically collect CAN data packets in real time. The feature vector output by the graph convolutional network is used as the state of reinforcement learning, and the recognition accuracy of the entire detection network is used as the reward of reinforcement learning.
[0005] Vehicle CAN message intrusion detection is a classification task at the graph level. Each CAN data packet has a different length and contains a different number of CAN IDs, so the graph network formed by each data packet is a dynamic network. Graph collapse is used to collapse the dynamic network into a smaller graph network. Based on the feature vector of each node, multiple nodes are aggregated into a super node to obtain a more global representation vector. The obtained feature vector is sent to the fully connected network for category output.
[0006] The results and hyperparameters of the neural network greatly affect the performance of the entire network. However, automatically searching for network structure and hyperparameters can greatly save the design cost of the neural network and obtain very good performance. In the entire detection method, the non-dominated sorting evolutionary algorithm NSGAII (Nondominated sorting genetic algorithm-II) is used to search for hyperparameters such as the number of convolution layers and learning rate in the key graph convolution part. NSGAII is a multi-objective optimization evolutionary algorithm that adopts the principle of survival of the fittest to obtain Pareto frontier solutions of multiple networks, thereby obtaining neural network parameters with the least complexity and the highest recognition accuracy. Summary of the invention
[0007] In order to overcome the shortcomings of the prior art, the present invention aims to detect whether the network communication in the vehicle has been invaded, and to provide security for the information communication in the vehicle. To this end, the technical solution adopted by the present invention is to use a vehicle CAN communication intrusion detection method based on graph neural evolution, which is implemented by using a reinforcement learning network and a graph neural network searched by an evolutionary algorithm. The reinforcement learning network determines the length of each detected CAN data packet sample according to the message features, and the graph neural network extracts features from the vehicle CAN intrusion message and normal message according to the features of the CAN ID in the vehicle CAN communication message, and detects whether the vehicle CAN communication message has been invaded.
[0008] The processing steps using the reinforcement learning network are as follows:
[0009] The feature vectors obtained by graph convolution and graph convolution after graph collapse are concatenated as the input state of reinforcement learning. The intrusion detection accuracy of vehicle CAN data packets is used as the reward of reinforcement learning to build a reinforcement learning network for dynamic real-time collection of CAN data packets:
[0010] R state =concat(GCN(X),GCN(X coasen ))
[0011] R state represents the state input to the reinforcement learning network, X represents the graph data constructed according to the logical relationship of the CAN ID of the CAN data packet, and X coasen It represents the graph data obtained after graph collapse, and concat represents the feature vector concatenation operation, which combines the feature vectors output by two graph convolutional networks.
[0012]
[0013] R reward represents the reward required to train the reinforcement learning network, X predcorrect Indicates the number of CAN data samples correctly detected by intrusion detection, X total Represents the total number of CAN data samples input to the reinforcement learning network. θ represents a constant or expression used to adjust the size of each reward.
[0014] In the graph neural network, the feature vector is first obtained through a convolution operation, and then the graph data is collapsed to represent the graph data as graph data with a more abstract global representation. The collapsed graph data is then subjected to a graph convolution operation to obtain a feature vector. Finally, the feature vectors obtained twice are combined into a one-dimensional vector to represent the input graph data features and sent to the fully connected layer for graph (message) classification.
[0015] In graph neural networks:
[0016] result=classifier(flat(GCN(X),GCN(X coarsen )))
[0017] Result represents the result of CAN data packet classification, GCN represents graph convolution operation, X represents the constructed graph data, and X croasen represents the collapsed graph data obtained by graph collapse of graph data X, flat represents the dimension reduction of the feature vector output by two graph convolutions into a one-dimensional feature vector, and classifier represents a fully connected classification neural network;
[0018] Graph Collapse Model
[0019] The vehicle CAN data packets are converted into graph data, and intrusion detection is performed on the data packets, that is, classification at the graph level. It is necessary to generate a representation of the entire graph data from the nodes of the graph data and the connection representation between the nodes. The constructed original graph data is divided into several subgraphs. Each subgraph is used as a supernode. Connections are established between supernodes to form a collapsed graph. The generated graph data is pooled by using a pooling operator based on Fourier transform. In the pooling process, the node features and spatial structure features of the graph data can be used at the same time, and combined with the graph convolution model to achieve the classification of the graph data;
[0020] The sub-graphs are obtained from the original image data by using spectral clustering. The number of sub-graphs generated can be controlled to determine the pooling ratio. The image signal is converted into a frequency domain signal through the image Fourier transform. The obtained image data G is divided into K sub-graphs based on the Fourier transform. Each subgraph is converted into a super node, thereby converting the original graph G into a collapsed graph G croasen .
[0021] The specific graph collapse process is as follows:
[0022] Upsample the feature vector of each subgraph to the entire graph:
[0023]
[0024] C (k) represents the upsampling operation, represents the lth eigenvector of each subgraph, Indicates that the sub-graph feature vector corresponds to the feature vector of the whole graph, and the pooling matrix Θ l Expressed as
[0025]
[0026] Perform the lth pooling operation on the graph data X to obtain the pooled graph data X l It can be expressed as:
[0027]
[0028] The final result after pooling of graph data X is X croasen It is expressed as:
[0029]
[0030]
[0031] N maxIt is expressed as the number of nodes of the largest subgraph among all subgraphs. Since the number of nodes in each subgraph is not necessarily the same, the number of eigenvectors in each subgraph is not necessarily the same, and the maximum is N. max ;
[0032] NSGAII Model
[0033] The neural network architecture search problem can be described as a two-stage optimization problem:
[0034] Minimize F(α)=(f1(α;ω * (α)),...,f n (α;ω * (α)))
[0035]
[0036] α∈Ω α ,ω∈Ω ω
[0037] The variable α in the first stage represents the candidate architecture of the graph neural network, and the variable ω in the second stage α represents the weight of the network architecture α, represents the cross entropy loss function of a given architecture α. f represents the objective function, and multiple objective functions can be abstracted from the actual problem for optimization according to actual needs. The optimization objectives of the present invention are two, namely the complexity of the intrusion detection model and the recognition accuracy of the model. Ω α represents the search space of graph network architecture, Ω ω represents the search space of network weights.
[0038] The characteristics and beneficial effects of the present invention are:
[0039] The original CAN data packet is constructed based on the transmission theory of vehicle CAN communication. The CAN data packet is dynamically acquired and intrusion detection is performed based on the deep learning method of reinforcement learning and graph neural network to adapt to the dynamic nature of CAN data packets. The NSGAII evolutionary optimization algorithm is used to obtain a graph neural network structure that meets the requirements for detection delay and detection accuracy. It can be converted into an objective function according to different requirements, and the NSGAII algorithm can be used to search for hyperparameters of graph neural networks and even reinforcement learning networks and fully connected networks. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 Schematic diagram of vehicle CAN message intrusion detection.
[0041] Figure 2 Schematic diagram of vehicle CAN message construction data. DETAILED DESCRIPTION
[0042] The technical solution adopted by the present invention is that the vehicle CAN communication intrusion detection method is implemented by using a reinforcement learning network and a graph neural network searched out by an evolutionary algorithm. The reinforcement learning network determines the length of each detected CAN data packet sample according to the message characteristics. The graph neural network extracts features of the vehicle CAN intrusion message and normal message based on the characteristics of the CAN ID in the vehicle CAN communication message, and detects whether the vehicle CAN communication message has been invaded.
[0043] The processing steps using the reinforcement learning network are as follows:
[0044] The feature vectors obtained by graph convolution and graph convolution after graph collapse are concatenated as the input state of reinforcement learning. The intrusion detection accuracy of vehicle CAN data packets is used as the reward of reinforcement learning to build a reinforcement learning network for dynamic real-time collection of CAN data packets:
[0045] R state =concat(GCN(X),GCN(X coasen ))
[0046] R state represents the state input to the reinforcement learning network, X represents the graph data constructed according to the logical relationship of the CAN ID of the CAN data packet, and X coasen It represents the graph data obtained after graph collapse, and concat represents the feature vector concatenation operation, which combines the feature vectors output by two graph convolutional networks.
[0047]
[0048] R reward represents the reward required to train the reinforcement learning network, X predcorrect Indicates the number of CAN data samples correctly detected by intrusion detection, X total Represents the total number of CAN data samples input to the reinforcement learning network. θ represents a constant or expression used to adjust the size of each reward.
[0049] In the graph neural network, the feature vector is first obtained through a convolution operation, and then the graph data is collapsed to represent the graph data as graph data with a more abstract global representation. The collapsed graph data is then subjected to a graph convolution operation to obtain a feature vector. Finally, the feature vectors obtained twice are combined into a one-dimensional vector to represent the input graph data features and sent to the fully connected layer for graph (message) classification.
[0050] In graph neural networks:
[0051] result=classifier(flat(GCN(X),GCN(X coarsen )))
[0052] Result represents the result of CAN data packet classification, GCN represents graph convolution operation, X represents the constructed graph data, and X croasen represents the collapsed graph data obtained by graph collapse of graph data X, flat represents the dimension reduction of the feature vector output by two graph convolutions into a one-dimensional feature vector, and classifier represents a fully connected classification neural network;
[0053] Graph Collapse Model
[0054] The vehicle CAN data packets are converted into graph data, and intrusion detection is performed on the data packets, that is, classification at the graph level. It is necessary to generate a representation of the entire graph data from the nodes of the graph data and the connection representation between the nodes. The constructed original graph data is divided into several subgraphs. Each subgraph is used as a supernode. Connections are established between supernodes to form a collapsed graph. The generated graph data is pooled by using a pooling operator based on Fourier transform. In the pooling process, the node features and spatial structure features of the graph data can be used at the same time, and combined with the graph convolution model to achieve the classification of the graph data;
[0055] The sub-graphs are obtained from the original image data by using spectral clustering. The number of sub-graphs generated can be controlled to determine the pooling ratio. The image signal is converted into a frequency domain signal through the image Fourier transform. The obtained image data G is divided into K sub-graphs based on the Fourier transform. Each subgraph is converted into a super node, thereby converting the original graph G into a collapsed graph G croasen .
[0056] The specific graph collapse process is as follows:
[0057] Upsample the feature vector of each subgraph to the entire graph:
[0058]
[0059] C (k) represents the upsampling operation, represents the lth eigenvector of each subgraph, Indicates that the sub-graph feature vector corresponds to the feature vector of the whole graph, and the pooling matrix Θ l Expressed as
[0060]
[0061] Perform the lth pooling operation on the graph data X to obtain the pooled graph data X l It can be expressed as:
[0062]
[0063] The final graph data X after pooling is the result X croasenIt is expressed as:
[0064]
[0065]
[0066] N max It is expressed as the number of nodes of the largest subgraph among all subgraphs. Since the number of nodes in each subgraph is not necessarily the same, the number of eigenvectors in each subgraph is not necessarily the same, and the maximum is N. max ;
[0067] NSGAII Model
[0068] The neural network architecture search problem can be described as a two-stage optimization problem:
[0069] Minimize F(α)=(f1(α;ω * (α)),...,f n (α;ω * (α)))
[0070]
[0071] α∈Ω α ,ω∈Ω ω
[0072] The variable α in the first stage represents the candidate architecture of the graph neural network, and the variable ω in the second stage α represents the weight of the network architecture α, represents the cross entropy loss function of a given architecture α. f represents the objective function, and multiple objective functions can be abstracted from the actual problem for optimization according to actual needs. The optimization objectives of the present invention are two, namely the complexity of the intrusion detection model and the recognition accuracy of the model. Ω α represents the search space of graph network architecture, Ω ω represents the search space of network weights.
[0073] The implementation structure of the present invention is as follows Figure 1 , Figure 2 shown.
[0074] Reinforcement learning is used to dynamically collect vehicle CAN communication data packets, the logical features of the vehicle CAN ID are used to construct graph data, and the graph neural network optimized by the NSGAII evolutionary algorithm is used to extract the logical features of the vehicle CAN data packets to realize intrusion detection of vehicle CAN data packets.
[0075] (1) Reinforcement Learning Model
[0076] The feature vectors obtained by graph convolution and graph convolution after graph collapse are concatenated as the input state of reinforcement learning. The intrusion detection accuracy of vehicle CAN data packets is used as the reward of reinforcement learning to build a reinforcement learning network for dynamic and real-time collection of CAN data packets.
[0077] R state =concat(GCN(X),GCN(X coasen ))
[0078] R state represents the state input to the reinforcement learning network, X represents the graph data constructed according to the logical relationship of the CAN ID of the CAN data packet, and X coasen It represents the graph data obtained after graph collapse, and concat represents the concatenation operation of the feature vectors output by two graph convolutions.
[0079]
[0080] R reward represents the reward required to train the reinforcement learning network, X predcorrect Indicates the number of CAN data samples correctly detected by intrusion detection, X total Represents the total number of CAN data samples input to the reinforcement learning network. θ represents a constant or expression that can adjust the reward size.
[0081] (2) Graph Network Model
[0082] 1) Graph Convolutional Model
[0083] pass Figure 2 The graph data constructed by the method is hierarchically extracted. First, the feature vector is obtained through the convolution operation, and then the graph data is collapsed to represent the graph data as a graph data with a more abstract global representation. Then, the graph convolution operation is performed on the collapsed graph data to obtain the feature vector. Finally, the feature vectors obtained twice are combined into a one-dimensional vector to represent the input graph data features, and sent to the fully connected layer for graph (message) classification.
[0084] result=classifier(flat(GCN(X),GCN(X coarsen )))
[0085] Result represents the result of CAN packet classification, GCN represents graph convolution operation, and X represents the Figure 2 Constructed graph data, X croasen It represents the collapsed graph data obtained by graph collapse of graph data X, flat represents the dimension reduction of the feature vector output by two graph convolutions into a one-dimensional feature vector, and classifier represents a fully connected classification neural network.
[0086] 2) Graph Collapse Model
[0087] Vehicle CAN data packets pass through Figure 2 The method converts the graph data into intrusion detection for the data packets, that is, to perform graph-level classification. It is necessary to generate a representation of the entire graph data from the nodes of the graph data and the connection representation between the nodes. The constructed original graph data is divided into several subgraphs, each subgraph is used as a super node, and connections are established between the super nodes to form a collapsed graph. The generated graph data is pooled by using a pooling operator based on Fourier transform. In the pooling process, the node features and spatial structure features of the graph data can be used simultaneously, and combined with the graph convolution model to realize the classification of the graph data.
[0088] Spectral clustering is used to obtain subgraphs from the original graph data, so the number of subgraphs generated can be controlled to determine the pooling ratio. Graph Fourier transform can convert graph signals into frequency domain signals, so that both graph node information and graph structure information can be taken into account. Based on Fourier transform, the obtained graph data G is divided into K subgraphs Each subgraph is converted into a super node, thereby converting the original graph G into a collapsed graph G croasen The specific graph collapse process is as follows:
[0089] Upsample the feature vector of each subgraph to the entire graph:
[0090]
[0091] C (k) represents the upsampling operation, represents the lth eigenvector of each subgraph, Indicates that the sub-graph feature vector corresponds to the feature vector of the whole graph. Pooling matrix Θ l Expressed as
[0092]
[0093] Perform the lth pooling operation on the graph data X to obtain the pooled graph data X l It can be expressed as:
[0094]
[0095] The final graph data X after pooling is the result X croasen It is expressed as:
[0096]
[0097]
[0098] N maxIt is expressed as the number of nodes of the largest subgraph among all subgraphs. Since the number of nodes in each subgraph is not necessarily the same, the number of eigenvectors in each subgraph is not necessarily the same, and the maximum is N. max .
[0099] (3) NSGAII model
[0100] The NSGAII multi-objective optimization algorithm can search for hyperparameters in the graph convolutional network to obtain a graph convolutional network that can achieve maximum accuracy and minimum complexity, so as to obtain the best intrusion message detection effect under the condition of minimum delay. The neural network architecture search problem can be described as a two-stage optimization problem:
[0101] Minimize F(α)=(f acc_error (α;ω * (α)),f flops (α;ω * (α)))
[0102]
[0103] α∈Ω α ,ω∈Ω ω
[0104] The variable α in the first stage represents the candidate architecture of the graph neural network, and the variable ω in the second stage α represents the weight of the network architecture α, represents the cross entropy loss function for a given architecture α. acc_error The objective function of the accuracy error is acc_error, which is 1-acc. flops represents the complexity objective function of the graph neural network, and flops represents the number of matrix operations in the graph neural network. Ω α Represents the search space of the graph network architecture, such as the number of graph convolution layers, learning rate and other hyperparameters. Ω ω Represents the search space of network weights, generally the entire range of real numbers.
[0105] An example of the present invention comprises the following steps:
[0106] 1) Reasonably set the dynamic CAN data packet frame number range of reinforcement learning output. A frame number upper limit that is too large will make the graph data too complex, thereby reducing the intrusion detection speed, and a data packet with a frame number that is too small will not contain the characteristics of normal CAN data and intrusion CAN data.
[0107] 2) According to the number of CAN ID types in the CAN message, the larger the number of nodes in each subgraph, the fewer the number of nodes in the collapsed graph. Reasonable number of nodes in each subgraph can better reflect the effect of graph collapse.
[0108] 3) Reasonably set the number of graph convolution layers of the graph convolution network. The more layers the graph convolution network has, the more consistent the features of each node in the graph will be after convolution, which will reduce the quality of the feature vector input to the fully connected network.
[0109] 4) The CAN communication content of dynamic vehicles and static vehicles is quite different. When training the graph network, it is necessary to use a CAN data set containing both states.
[0110] 5) Reasonably set the size of the experience buffer in reinforcement learning and appropriately update the data in the reinforcement learning experience buffer.
[0111] 6) Reasonably set the size of the reward function in reinforcement learning, reasonably increase the reward in the case of high detection accuracy, and increase the penalty in the case of low detection accuracy, so as to obtain a better reinforcement learning network for dynamic data packet capture.
[0112] 7) Appropriately set the structure of the reinforcement learning network and the fully connected network of the prediction layer to achieve more accurate detection results and smaller detection delay.
[0113] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.
Claims
1. A vehicle CAN communication intrusion detection method based on graph neural evolution, characterized in that: The reinforcement learning network and the graph neural network searched by the evolutionary algorithm are used to implement the reinforcement learning network. The reinforcement learning network determines the length of each CAN data packet sample according to the message characteristics. The graph neural network extracts the characteristics of the vehicle CAN intrusion message and the normal message according to the characteristics of the CAN ID in the vehicle CAN communication message, and detects whether the vehicle CAN communication message has been invaded. The processing steps using the reinforcement learning network are as follows: The feature vectors obtained by graph convolution and graph convolution after graph collapse are concatenated as the input state of reinforcement learning. The intrusion detection accuracy of vehicle CAN data packets is used as the reward of reinforcement learning to build a reinforcement learning network for dynamic real-time collection of CAN data packets: R state =concat(GCN(X),GCN(X coasen )) R state represents the state input to the reinforcement learning network, GCN represents the graph convolution operation, X represents the graph data constructed according to the logical relationship of the CAN ID of the CAN data packet, and X coasen Represents the graph data obtained after graph collapse, concat represents the feature vector concatenation operation, combining the feature vectors output by two graph convolutional networks: R reward represents the reward required to train the reinforcement learning network, X predcorrect Indicates the number of CAN data samples correctly detected by intrusion detection, X total Represents the total number of CAN data samples input to the reinforcement learning network, and θ represents a constant or expression used to adjust the size of each reward; In the graph neural network, the feature vector is first obtained through the convolution operation, and then the graph data is collapsed to represent the graph data as a graph data with a more abstract global representation. Then, the graph data after the graph collapse is convolved to obtain the feature vector. Finally, the feature vectors obtained twice are combined into a one-dimensional vector to represent the input graph data features and sent to the fully connected layer for graph-to-message classification. In graph neural networks: result=classifier(flat(GCN(X),GCN(X coarsen ))) Result represents the result of CAN data packet classification, X represents the constructed graph data, and X croasen represents the collapsed graph data obtained by graph collapse of graph data X, flat represents the dimension reduction of the feature vector output by two graph convolutions into a one-dimensional feature vector, and classifier represents a fully connected classification neural network; Graph Collapse Model The vehicle CAN data packets are converted into graph data, and intrusion detection is performed on the data packets, that is, classification at the graph level. It is necessary to generate a representation of the entire graph data from the nodes of the graph data and the connection representation between the nodes. The constructed original graph data is divided into several subgraphs. Each subgraph is used as a supernode. Connections are established between supernodes to form a collapsed graph. The generated graph data is pooled by using a pooling operator based on Fourier transform. In the pooling process, the node features and spatial structure features of the graph data can be used at the same time, and combined with the graph convolution model to achieve the classification of the graph data; The sub-graphs are obtained from the original image data by using spectral clustering. The number of sub-graphs generated can be controlled to determine the pooling ratio. The image signal is converted into a frequency domain signal through the image Fourier transform. The obtained image data G is divided into K sub-graphs based on the Fourier transform. Each subgraph is converted into a super node, thereby converting the original graph G into a collapsed graph G croasen .
2. The vehicle CAN communication intrusion detection method based on graph neural evolution as claimed in claim 1 is characterized in that: The specific graph collapse process is as follows: upsample the feature vector of each subgraph to the entire graph: C (k) represents the upsampling operation, represents the lth eigenvector of each subgraph, Indicates that the sub-graph feature vector corresponds to the feature vector of the whole graph, and the pooling matrix Θ l Expressed as Perform the lth pooling operation on the graph data X to obtain the pooled graph data X l It can be expressed as: The final result after pooling of graph data X is X croasen It is expressed as: N max It is expressed as the number of nodes of the largest subgraph among all subgraphs. Since the number of nodes in each subgraph is not necessarily the same, the number of eigenvectors in each subgraph is not necessarily the same, and the maximum is N. max .
3. The vehicle CAN communication intrusion detection method based on graph neural evolution as claimed in claim 2 is characterized in that: It also includes steps to optimize graph convolutional networks using NSGAII. The neural network architecture search problem is described as a two-stage optimization problem: Minimize F(α)=(f1(α;ω * (a)),...,f n (a;oh * (a))) Subject to α∈Ω α ,ω∈Ω ω The variable α in the first stage represents the candidate architecture of the graph neural network, and the variable ωα in the second stage represents the weight of the network architecture α. represents the cross entropy loss function of a given architecture α, f represents the objective function, and multiple objective functions are abstracted from the actual problem for optimization according to actual needs. The optimization target is the complexity of the intrusion detection model and the recognition accuracy of the model. α represents the search space of graph network architecture, Ω ω represents the search space of network weights.
Citation Information
Patent Citations
CAN bus network anomaly detection method and device based on machine learning
CN111131185A
Network intrusion detection method based on improved convolutional neural network
CN111275165A
