Industrial internet abnormal node detection method and system based on heterogeneous graph
By using a method based on heterogeneous graphs, feature maps and semantic graphs are generated, combined with self-attention and multi-head attention mechanisms, to learn the importance of meta-paths, solving the problem of heterogeneous node detection in the industrial Internet, and realizing the detection of abnormal nodes. Accurate and efficient identification and monitoring.
Patent Information
- Application Number
- CN202411203462.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-09-27
AI Technical Summary
Existing methods based on graph neural networks are difficult to effectively capture and utilize the heterogeneous node characteristics in the industrial Internet. When processing large-scale graph structures, the calculations are complex and memory consumption is large. They also perform poorly on noise and incomplete graph structures, resulting in recognition anomalies. Nodes don't work well.
A method based on heterogeneous graphs is adopted to generate feature maps and semantic maps for fusion, use self-attention and multi-head attention mechanisms to perform node embedding calculations, learn the importance of meta-paths, and extract fusion embedding vectors for abnormal node detection.
It achieves accurate and efficient identification of abnormal nodes in the industrial Internet, can process large-scale network data, dynamically adjust features and path weights, and improves the efficiency and accuracy of anomaly detection.
Smart Images

Figure CN118713938A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of abnormal node detection, and in particular to an industrial Internet abnormal node detection method and system based on heterogeneous graphs. Background Art
[0002] Industrial Internet refers to the combination of traditional industrial equipment and modern information technology to achieve intelligent, digital and networked industrial production and management. In the process of connecting industrial equipment using advanced technologies such as the Internet of Things (IoT), big data, cloud computing, and artificial intelligence (AI), a large amount of heterogeneous data is generated.
[0003] The Industrial Internet connects a large number of devices, systems, and networks. These connections and data exchanges have brought unprecedented efficiency improvements and innovation opportunities, but they have also brought potential security threats and challenges. If a node with an abnormality appears, this may indicate that some industrial equipment has failed or performance has degraded. Secondly, abnormal nodes may indicate potential security threats, such as unauthorized access to critical device information, data tampering, etc. Timely identification and processing of abnormal nodes can avoid equipment failures and production interruptions, and ensure the continuity and stability of the production process. This helps to improve production efficiency, reduce downtime, and maximize the use of production resources. In addition, identifying security threats and network attacks can quickly take protective measures to prevent data leakage, system paralysis and malicious attacks, ensure the security of systems and data, and protect the key assets of enterprises. Therefore, it is crucial to identify abnormal nodes in the Industrial Internet.
[0004] Graph neural network-based methods are commonly used to handle the task of detecting abnormal nodes in the industrial Internet. Traditional graph neural networks (GNNs) usually assume that the nodes in the graph have the same data type. However, the industrial Internet contains multiple types of nodes, and traditional GNNs find it difficult to effectively capture and utilize these heterogeneous features, resulting in poor performance of the model. In addition, the graphs in the industrial Internet are usually large-scale, and traditional GNNs need to aggregate the information of neighboring nodes. As the scale of the graph increases, this calculation becomes very complicated, and memory consumption will also increase rapidly. In addition, there is a lot of noise and uncertainty in the industrial Internet environment, and traditional GNNs do not perform well for missing or incomplete graph structures. At present, there are few methods that can accurately and efficiently identify abnormal nodes in the industrial Internet and ensure that the industrial Internet can operate safely and stably.
[0005] Most existing methods based on graph neural networks directly input the original graph structure into the model for training. However, the industrial Internet usually involves multiple types of data sources, and the relationships between data sources are complex and diverse. When processing such heterogeneous data, traditional graph neural networks often cannot fully capture the complex relationships between different types of nodes and edges, resulting in poor results of traditional graph neural network models. In the context of the industrial Internet, the problem of data matching of different data types needs to be solved. Secondly, since the industrial Internet is usually large-scale, the importance of different nodes and edges in node classification tasks is different. Identifying features with higher importance is the key to improving the efficiency of graph processing tasks. In the context of the industrial Internet, the problem of key feature extraction needs to be solved. In addition, the data in the industrial Internet may be highly sparse, incomplete, and have certain wrong connections. In the context of the industrial Internet, the problems of missing data and abnormal graph structures need to be solved. At present, there are few algorithms that can accurately and efficiently identify abnormal nodes in the context of the industrial Internet. Summary of the invention
[0006] In order to solve the above-mentioned problems, the present invention provides an industrial Internet abnormal node detection method and system based on heterogeneous graphs.
[0007] In the first aspect, the present invention provides an industrial Internet abnormal node detection method based on a heterogeneous graph, which adopts the following technical solution: A method for detecting abnormal nodes in industrial Internet based on heterogeneous graphs, comprising: Obtain industrial Internet node data; The original graph structure is obtained after preprocessing the acquired industrial Internet node data; Generate feature maps and semantic maps based on the original graph structure, and fuse the feature maps, semantic maps and original graph structure to obtain a new graph structure; Perform feature mapping of different types of nodes on the new graph structure; The new graph structure is calculated based on the self-attention mechanism to obtain the node embedding vector; The importance of the meta-path is learned based on the semantic-level attention mechanism, and the final fused embedding vector is obtained by fusing the node embedding vectors. The fused embedding vectors of nodes are classified to detect abnormal nodes in the Industrial Internet.
[0008] Furthermore, the original graph structure is obtained after preprocessing the acquired industrial Internet node data, including constructing a graph structure after preprocessing the industrial Internet node data, including a node set, an edge set, node features and a meta-path set.
[0009] Furthermore, the method of generating a feature map and a semantic map based on the original graph structure includes mapping node features to a common space through linear transformation, obtaining the feature map through similarity measurement learning, and obtaining the semantic map by learning the semantic representation matrix through the MP2Vec method.
[0010] Furthermore, the feature mapping of different types of nodes for the new graph structure includes using a multi-layer perceptron MLP as a transformation matrix for different types of nodes, and mapping the features of different types of nodes into the same feature space based on the transformation matrix.
[0011] Furthermore, the node embedding vector is obtained by calculating the new graph structure based on the self-attention mechanism, including a set of meta-paths based on the new graph structure, and the node embedding vector is calculated after learning the weights between nodes on the meta-path using the multi-head attention mechanism.
[0012] Furthermore, the multi-head attention mechanism is used to learn the weights between nodes on the meta-path, including selecting a number of meta-path sets, learning the importance of nodes in the meta-path sets, and softmax The function obtains the weights between nodes; then the embedding of the node based on the current meta-path is obtained by aggregating the mapping features of neighboring nodes. After training with a multi-head attention mechanism, node-level operations are performed on each meta-path of the meta-path set, and finally the node embedding vector is obtained.
[0013] Furthermore, the semantic-level attention mechanism learns the importance of the meta-path, and obtains the final fused embedding vector by fusing the node embedding vectors, including converting the node embedding vectors through nonlinear transformation, using a deep neural network to execute the semantic-level node embedding vector to identify the importance of the meta-path, and obtaining the fused embedding vector by fusing the node embedding vectors with the importance of the meta-path as a coefficient.
[0014] In the second aspect, an industrial Internet abnormal node detection system based on heterogeneous graphs includes: A data acquisition module is configured to acquire industrial Internet node data; A preprocessing module is configured to preprocess the acquired industrial Internet node data to obtain an original graph structure; A graph structure module is configured to generate a feature map and a semantic map based on the original graph structure, and fuse the feature map, the semantic map and the original graph structure to obtain a new graph structure; The mapping module is configured to perform feature mapping of different types of nodes on the new graph structure; The embedding module is configured to calculate the node embedding vector based on the new graph structure based on the self-attention mechanism; The learning module is configured to learn the importance of the meta-path based on the semantic-level attention mechanism and obtain the final fused embedding vector by fusing the node embedding vectors; The classification module is configured to classify the fused embedding vectors of the nodes to detect abnormal nodes in the industrial Internet.
[0015] In a third aspect, the present invention provides a computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device, a method for detecting abnormal nodes in an industrial Internet based on a heterogeneous graph.
[0016] In a fourth aspect, the present invention provides a terminal device comprising a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, and the instructions are suitable for being loaded and executed by the processor to implement the method for detecting abnormal nodes in the industrial Internet based on a heterogeneous graph.
[0017] In summary, the present invention has the following beneficial technical effects: (1) In this invention, the Industrial Internet is regarded as a heterogeneous graph neural network, and the machine learning and graph neural network framework is introduced. A series of technologies such as graph structure learning algorithm, graph attention network, meta-path, etc. are combined to achieve accurate and efficient identification and monitoring of abnormal nodes in the Industrial Internet.
[0018] (2) This paper proposes a new heterogeneous graph neural network model that uses self-attention and multi-head attention mechanisms to adaptively adjust the weights of different meta-paths and node features. This dynamic weight adjustment mechanism enables the model to focus on the features and paths that are most useful for anomaly detection, and can efficiently process data from large-scale networks in the Industrial Internet.
[0019] (3) The problem of poor topological structure in the original data network is solved. The feature map and semantic map are extracted from the original map using a graph structure learning algorithm, which is then fused with the original map to obtain a better graph structure, which is then passed to the heterogeneous graph neural network model. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic diagram of an industrial Internet abnormal node detection method based on a heterogeneous graph according to Example 1 of the present invention. DETAILED DESCRIPTION
[0021] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0022] Example 1 Reference Figure 1 , The present invention provides a detection method for identifying abnormal nodes in the industrial Internet, comprising the following operations: S1. In the graph structure optimization module, the feature graph and semantic graph are first generated based on the attribute information of the nodes and the original graph structure. The feature graph extracts the potential feature relationship between nodes by analyzing the various attributes of the nodes, while the semantic graph captures the implicit semantic associations in the graph by parsing the semantic information of the nodes and edges. Next, the generated feature graph and semantic graph are fused with the original graph structure to integrate the information from these different sources and generate a new graph structure. S2. Clarify the features and dimensions of different types of nodes, select a unified feature space dimension, use multi-layer perceptron MLP as the transformation matrix for different types of nodes, and map the features of different types of nodes into the same feature space; S3. According to the structure of the graph and the target task, select an appropriate set of meta-paths, learn the importance between the node and its neighbor nodes based on the meta-path, calculate the embedding vector of the node, and use a multi-head attention mechanism to connect the embedding vectors to complete the node-level attention aggregation; S4. After completing the node-level attention aggregation, weight different meta-paths according to their importance, calculate the node embedding vector on the meta-path again, and obtain the final node embedding vector; S5. classifying the fused embedding vectors of the nodes to detect abnormal nodes in the industrial Internet; The step S1 specifically includes: S1.1: Preprocess the data obtained from the industrial Internet, and regard the data source as a node. If there is information transmission between data sources, there is an edge connection. Construct a graph structure G=(V, E, F) based on the preprocessed data set, where V is the node set, E is the edge set, and F is the node feature.
[0023] S1.2: Given a node and type, map the node features to a common space through linear transformation, and learn the feature graph S based on similarity metric learning t : in, and Represents the features of any two nodes after mapping, To control the threshold of feature map sparsity, The larger the value, the sparser the feature map. is a similarity measurement function, expressed as: in, represents Hadamard product, w kis a learnable parameter matrix that controls the importance of different dimensions within the feature. K is the number of attention heads.
[0024] S1.3: For the set of meta-paths (paths connecting multiple types of nodes), use the MP2Vec method to learn the semantic representation matrix Z. For each relationship r and each meta-path P m The semantic representation matrix Z generates the corresponding semantic candidate graph S r,m : in, To control the threshold of semantic relevance, and Represents different semantic representation matrices.
[0025] After obtaining the semantic alternative graphs with different semantics, the semantic graph S is obtained according to the semantic attention fusion m : in, Represents the channel attention layer.
[0026] S1.4: Based on the channel attention at the graph level, the feature graph, semantic graph and original graph structure are integrated to obtain the improved graph structure Q: The step S2 specifically includes: S2.1: Due to the differences in node data types, different types of nodes have different feature spaces. Therefore, it is necessary to design a unified feature space.
[0027] S2.2: Use multilayer perceptron MLP as transformation matrix for different types of nodes , map the features of different types of nodes into the same feature space. The calculation formula of the mapping process is as follows: in, and Represents the original features and mapped features of a node.
[0028] The step S3 specifically includes: Select p appropriate meta-path sets and use the self-attention mechanism to learn the weights between various nodes on the meta-path.
[0029] S3.1: Given a pair of nodes connected based on a meta-path ( i , j ), learning node j For Node iThe importance of can be expressed as follows: represents a deep neural network that performs node-level attention, Represents the current meta path. Importance is asymmetric, that is, the nodes i For Node j Importance and nodes j For Node i The importance can vary greatly.
[0030] pass softmax Function gets weight : in, represents the activation function, Represents a join operation.
[0031] S3.2: Obtaining nodes based on the current meta-path by aggregating the mapped features of neighbors i Embedding, trained using a multi-head attention mechanism k Second, enhance the stability of the training process, and the corresponding formula is as follows: in, is the meta path Node i We perform node-level operations on each meta-path in the meta-path set, and finally obtain p node embedding vectors: .
[0032] The step S4 specifically includes: A new semantic-level attention mechanism is adopted to automatically learn the importance of different meta-paths and integrate them into the task of abnormal node classification to solve the problem of semantic fusion under different data types.
[0033] S4.1 converts node-level embeddings through a nonlinear transformation (one-layer MLP), performs semantic-level embedding using a deep neural network, and identifies the importance of meta-paths. The importance is expressed as follows: in, V Represents the set of nodes in the graph, is the weight matrix, is the bias vector, is the node-level embedding vector. softmax The function normalizes the importance and obtains the weight of the meta-path .
[0034] S4.2 uses the learned meta-path weights as coefficients and fuses the node-level embedding vectors to obtain the final embedding Z as follows: The step S5 specifically includes: The node's fused embedding vector Z is input into the classifier for classification. Based on the classification result, it can be determined whether the node is an abnormal node. Classifiers include but are not limited to k-nearest neighbor, naive Bayes, decision tree, random forest, neural network, and support vector machine.
[0035] Example 2 This embodiment provides an industrial Internet abnormal node detection system based on a heterogeneous graph, including: A data acquisition module is configured to acquire industrial Internet node data; A preprocessing module is configured to preprocess the acquired industrial Internet node data to obtain an original graph structure; A graph structure module is configured to generate a feature map and a semantic map based on the original graph structure, and fuse the feature map, the semantic map and the original graph structure to obtain a new graph structure; The mapping module is configured to perform feature mapping of different types of nodes on the new graph structure; The embedding module is configured to calculate the node embedding vector based on the new graph structure based on the self-attention mechanism; The learning module is configured to learn the importance of the meta-path based on the semantic-level attention mechanism and obtain the final fused embedding vector by fusing the node embedding vectors; The classification module is configured to classify the fused embedding vectors of the nodes to detect abnormal nodes in the industrial Internet.
[0036] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor of a terminal device and executing the method described.
[0037] A terminal device includes a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; and the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded by the processor and executing the described method.
[0038] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting abnormal nodes in industrial Internet based on heterogeneous graphs. It is characterized in that include: Obtain industrial Internet node data; The original graph structure is obtained after preprocessing the acquired industrial Internet node data; Generate feature maps and semantic maps based on the original graph structure, and fuse the feature maps, semantic maps and original graph structure to obtain a new graph structure; Perform feature mapping of different types of nodes on the new graph structure; The new graph structure is calculated based on the self-attention mechanism to obtain the node embedding vector; The importance of the meta-path is learned based on the semantic-level attention mechanism, and the final fused embedding vector is obtained by fusing the node embedding vectors. The fused embedding vectors of nodes are classified to detect abnormal nodes in the Industrial Internet.
2. According to the method for detecting abnormal nodes in industrial Internet based on heterogeneous graphs according to claim 1, It is characterized in that The original graph structure is obtained after preprocessing the acquired industrial Internet node data, including constructing a graph structure after preprocessing the industrial Internet node data, including a node set, an edge set, a node feature and a meta-path set.
3. According to the method for detecting abnormal nodes in industrial Internet based on heterogeneous graphs according to claim 2, It is characterized in that The method generates a feature map and a semantic map based on the original graph structure, including mapping node features to a common space through linear transformation, obtaining the feature map through similarity measurement learning, and obtaining the semantic map through MP2Vec method learning.
4. According to claim 3, a method for detecting abnormal nodes in the industrial Internet based on heterogeneous graphs, It is characterized in that The feature mapping of different types of nodes on the new graph structure includes using a multi-layer perceptron MLP as a transformation matrix for different types of nodes, and mapping the features of different types of nodes to the same feature space based on the transformation matrix.
5. According to the method for detecting abnormal nodes in the industrial Internet based on heterogeneous graphs according to claim 4, It is characterized in that The node embedding vector is obtained by calculating the new graph structure based on the self-attention mechanism, including a set of meta-paths based on the new graph structure, and the node embedding vector is obtained by calculating the weights between nodes on the meta-paths after learning using the multi-head attention mechanism.
6. According to claim 5, a method for detecting abnormal nodes in the industrial Internet based on heterogeneous graphs, It is characterized in that The multi-head attention mechanism is used to learn the weights between nodes on the meta-path, including selecting a number of meta-path sets, learning the importance of nodes in the meta-path sets, and softmax The function obtains the weights between nodes; then the embedding of the node based on the current meta-path is obtained by aggregating the mapping features of neighboring nodes. After training with a multi-head attention mechanism, node-level operations are performed on each meta-path of the meta-path set, and finally the node embedding vector is obtained.
7. According to claim 6, a method for detecting abnormal nodes in the industrial Internet based on heterogeneous graphs, It is characterized in that The semantic-level attention mechanism is used to learn the importance of the meta-path, and the final fused embedding vector is obtained by fusing the node embedding vectors, including converting the node embedding vectors through nonlinear transformation, using a deep neural network to execute the semantic-level node embedding vectors to identify the importance of the meta-path, and fusing the node embedding vectors to obtain the fused embedding vector by taking the importance of the meta-path as a coefficient.
8. An Industrial Internet Abnormal Node Detection System Based on Heterogeneous Graphs, It is characterized in that include: A data acquisition module is configured to acquire industrial Internet node data; A preprocessing module is configured to preprocess the acquired industrial Internet node data to obtain an original graph structure; A graph structure module is configured to generate a feature map and a semantic map based on the original graph structure, and fuse the feature map, the semantic map and the original graph structure to obtain a new graph structure; The mapping module is configured to perform feature mapping of different types of nodes on the new graph structure; The embedding module is configured to calculate the node embedding vector based on the new graph structure based on the self-attention mechanism; The learning module is configured to learn the importance of the meta-path based on the semantic-level attention mechanism and obtain the final fused embedding vector by fusing the node embedding vectors; The classification module is configured to classify the fused embedding vectors of the nodes to detect abnormal nodes in the industrial Internet.
9. A computer-readable storage medium having a plurality of instructions stored therein, It is characterized in that The instruction is suitable for being loaded by a processor of a terminal device and executing an industrial Internet abnormal node detection method based on a heterogeneous graph as described in claim 1.
10. A terminal device, comprising a processor and a computer-readable storage medium, wherein the processor is used to implement each instruction; and the computer-readable storage medium is used to store multiple instructions. It is characterized in that The instructions are suitable for being loaded by a processor and executing an industrial Internet abnormal node detection method based on a heterogeneous graph as described in claim 1.
Citation Information
Patent Citations
Rapid malicious software detection method based on graph neural network
CN115344863A
Internet of vehicles intrusion detection method based on heterogeneous graph attention network
CN116506181A
Malicious software detection method based on high-order heterogeneous graph network
CN117544352A
Continuous-time dynamic heterogeneous graph neural network-based apt detection method and system
WO2024114827A1
Cited By
Integrated anomaly prediction and detection algorithm and system based on graph neural network
CN119740174A
Inplanatable node classification prediction method based on adversarial causal graph learning
CN120524163A
Abnormality detection method and electronic equipment
CN121233438A
Diagnostic scheme generation method and system based on multi-scale hypergraph and constraint optimization
CN121365744A
