Industrial system anomaly detection method based on graph attention network and LSTM auto-encoding model

Through the graph attention network and the LSTM automatic encoding model, the problem of failing to effectively utilize the dimensional correlation of industrial systems in the existing technology is solved, achieving high-accuracy anomaly detection in complex industrial systems and improving the detection effect.

CN113051822BActive Publication Date: 2024-09-24ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110319202.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-25
Publication Date
2024-09-24
Estimated Expiration
2041-03-25

AI Technical Summary

Technical Problem

The existing industrial system anomaly detection model based on recurrent neural network + automatic encoding machine fails to effectively utilize the potential correlation between different dimensions of the industrial system, and has inconsistent effects on abnormal states in different dimensions, resulting in insufficient detection accuracy.

Method used

The graph attention network and the LSTM automatic encoding model are used to train the anomaly detection model in an unsupervised manner, use the sliding window to divide the samples, build the association graph and use the graph attention network to mine the dimensional association, and combine the LSTM encoding and decoding layers for reconstruction. Calculate reconstruction errors for anomaly detection.

Benefits of technology

It improves the accuracy of anomaly detection in industrial systems. It does not require anomaly annotation samples. It can effectively capture the correlation between different dimensions and improve the accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113051822B
    Figure CN113051822B
Patent Text Reader

Abstract

An industrial system anomaly detection method based on a graph attention network and an LSTM autoencoder model includes the following steps: 1) Sample division and standardization: using a sliding window to divide the original industrial system data into samples; 2) Anomaly detection model construction: using a graph attention network and an LSTM autoencoder to construct an anomaly detection model; 3) Real-time anomaly detection: calculating the anomaly degree score based on the reconstruction error, and making an abnormal state determination based on this. The present invention uses an autoencoder to train an anomaly detection model in an unsupervised manner without providing anomaly labeled samples; and uses a graph attention network to mine the associations between different dimensions of the industrial system to improve the accuracy of anomaly detection in complex industrial systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to machine learning technology, and in particular to an industrial system anomaly detection method. Background Art

[0002] With the rapid development of the Industrial Internet, more sensitive and efficient automated control and resource allocation of industrial systems have been achieved. However, since the Industrial Internet breaks the boundary between the cyber world and the physical world, industrial manufacturing systems are more vulnerable to external malicious behavior. In addition, there are inevitably production problems such as equipment failure, performance degradation, and quality defects in industrial manufacturing systems. If abnormal situations such as intrusions and failures in industrial production cannot be detected in time, it may cause serious losses to the entire manufacturing system. Therefore, anomaly detection is a basic requirement of the Industrial Internet and is of great significance to intelligent manufacturing companies.

[0003] Modern industrial manufacturing systems use sensors, controllers, smart meters and other monitoring equipment to perceive and record production operation status, environment and processes, and accumulate a large amount of industrial data. Therefore, data-driven models are the mainstream means of anomaly detection. The current mainstream data-driven anomaly detection models generally have two characteristics: 1) Training in an unsupervised manner. This is because the operation process and monitoring data of industrial systems are very complex, which requires in-depth domain knowledge to understand their abnormal states. The cost of anomaly sample labeling is huge, so it is usually impossible to obtain enough anomaly samples from real industrial systems for training. 2) Deep learning is used as the underlying model. This is because industrial system data is usually continuously collected by a large number of monitoring devices. It is a high-dimensional time series data, which makes it very difficult to rely on manual feature engineering.

[0004] Most of the existing unsupervised anomaly detection models based on deep learning are based on "recurrent neural network + automatic encoder": first, the original industrial system data is mapped to a low-dimensional feature space based on the encoder (the encoder is usually designed based on the recurrent neural network), and the features of the original data in this space are regarded as its potential pattern. Then, the original data is reconstructed from the low-dimensional feature space based on the decoder. If the reconstructed data is significantly different from the original data, it is considered that the original data does not conform to the potential pattern, that is, an anomaly has occurred.

[0005] However, the existing anomaly detection model based on "recurrent neural network + autoencoder" still has shortcomings: First, the existing method regards the multi-dimensional time series industrial system data as a whole input anomaly detection model, but in fact the different monitoring devices of the industrial system are not completely independent, which makes the different dimensions of the industrial system data have potential correlations. Second, the existing method treats the different dimensions of the multi-dimensional time series industrial system data (usually different monitoring devices) equally, but in fact the degree of influence of different dimensions on abnormal states in different scenarios is inconsistent. Summary of the invention

[0006] In order to overcome the shortcomings of the existing technology, the present invention provides an industrial system anomaly detection method based on a graph attention network and an LSTM auto-encoding model. The auto-encoder is used to train the anomaly detection model in an unsupervised manner without providing abnormal labeled samples; the graph attention network is used to mine the correlation between different dimensions of the industrial system to improve the accuracy of anomaly detection in complex industrial systems.

[0007] The technical solution adopted by the present invention to solve its technical problem is:

[0008] An industrial system anomaly detection method based on graph attention network and LSTM auto-encoding model includes the following steps:

[0009] 1) Sample division and standardization: The original industrial system data is divided into samples using a sliding window;

[0010] 2) Anomaly detection model construction: The anomaly detection model is constructed using graph attention network and LSTM autoencoder;

[0011] 3) Real-time anomaly detection: The anomaly degree score is calculated based on the reconstruction error, and the abnormal state is determined on this basis.

[0012] Furthermore, in step 1), given the original multi-dimensional time series industrial system data Among them, T is the data capacity, F is the data dimension, and the steps of sample division and standardization are as follows:

[0013] (1-1) Sample division: Based on a sliding window with a width of W and a step size of S, X is divided into a sample set XS consisting of multiple samples, where the number of samples after division is N, and each sample

[0014] (1-2) Standardization: The data is standardized based on the Z-Score method so that the mean of the data in each dimension in each window is 0 and the standard deviation is 1;

[0015] In step 2), the steps of constructing the anomaly detection model are as follows:

[0016] (2-1) Association graph construction: Convert each sample x into an association graph G x =(V,E,A). V, E, and A are the node set, edge set, and attribute set, respectively, as described below: First, for each node v in V i represents a dimension of sample data, and one dimension corresponds to a monitoring device in the industrial system; secondly, each edge e in E ij Represents node v i and v j There is an association between them, and an edge is set for each pair of nodes, that is, G x is a fully connected graph; again, each element a in A i v i The sample data vector on the indicated dimension, representing v i Attributes;

[0017] (2-2) Model construction: The anomaly detection model is a deep neural network, which includes an interaction layer, an encoding layer, a decoding layer, and a reconstruction layer;

[0018] (2-3) Model training: To achieve unsupervised model training, the mean square error between the reconstructed sample y generated by the decoder and the original sample x is used as the loss function of the model. On this basis, the gradient descent method is used to optimize the model training.

[0019] The interaction layer uses a graph attention network to process the input of the model. The input of the interaction layer is the sample G in the form of an association graph obtained in step (2-1) x The processing steps are as follows: step 1 for G x Any edge e ij Set a learnable weight w ij , the calculation method is shown in formula (1), where q is a learnable parameter vector, σ() is a nonlinear activation function, ⊕ is used to concatenate multiple vectors, and L is v i The number of neighbor nodes; step 2 for each node v i , calculate the weighted average vector between it and all neighboring nodes as v i The representation vector g i , as shown in formula (3); step 3 concatenates the representation vectors of all nodes into a matrix As the output of the interaction layer, the rows of z are the dimensions of the node representation vectors and the columns are the number of nodes;

[0020]

[0021]

[0022]

[0023] The encoding layer uses an LSTM network to process the interaction layer output z of N consecutive samples 1 、z 2 ,…,z N The processing process is shown in formula (4), that is, the current hidden state matrix h t From its previous hidden state matrix h t-1 and the current input state matrix z t co-generation;

[0024] h t =LSTM(h t-1 ,z t ) (4)

[0025] The decoding layer uses the LSTM network to process the output h of the encoding layer 1 、h 2 ,…,h N , the processing strategy is consistent with the encoding layer, and the output feature matrix sequence r 1 、r 2 ,…,r N ;

[0026] The reconstruction layer uses a fully connected layer with F neurons to process the output r of the decoding layer. 1 、r 2 ,…,r N , and get the same as the original sample The dimensionally consistent reconstruction samples

[0027] Furthermore, in step (3), the steps of real-time anomaly detection are as follows:

[0028] (3-1) Abnormality score: Given a real-time sample x, first input it into the trained anomaly detection model to obtain the reconstructed sample y; then, calculate the mean square error between x and y as the abnormality score p of x. x ;

[0029] (3-2) Abnormality determination: If p x If it is greater than the specified threshold, x is considered abnormal.

[0030] The beneficial effects of the present invention are mainly manifested in: 1. An automatic encoder is used to train the anomaly detection model in an unsupervised manner without providing abnormal labeled samples; 2. A graph attention network is used to mine the correlation between different dimensions of the industrial system, thereby improving the accuracy of anomaly detection in complex industrial systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1This is a flow chart of an industrial system anomaly detection method based on graph attention network and LSTM auto-encoding model;

[0032] Figure 2 This is the network structure diagram of the anomaly detection model;

[0033] Figure 3 Schematic diagram of the dimension representation method based on graph attention network;

[0034] Figure 4 This is the structure diagram of the encoding-decoding network. DETAILED DESCRIPTION

[0035] The present invention will be further described below in conjunction with the accompanying drawings.

[0036] Reference Figure 1 to Figure 4 , an industrial system anomaly detection method based on graph attention network and LSTM auto-encoding model, comprising the following steps:

[0037] 1) Sample division and standardization: The original industrial system data is divided into samples using a sliding window;

[0038] 2) Anomaly detection model construction: The anomaly detection model is constructed using graph attention network and LSTM autoencoder;

[0039] 3) Real-time anomaly detection: The anomaly degree score is calculated based on the reconstruction error, and the abnormal state is determined on this basis.

[0040] Furthermore, in step 1), given the original multi-dimensional time series industrial system data Among them, T is the data capacity, F is the data dimension, and the steps of sample division and standardization are as follows:

[0041] (1-1) Sample division: Based on a sliding window with a width of W and a step size of S, X is divided into a sample set XS consisting of multiple samples, where the number of samples after division is N, and each sample

[0042] (1-2) Standardization: The data is standardized based on the Z-Score method so that the mean of the data in each dimension in each window is 0 and the standard deviation is 1;

[0043] In step 2), the steps of constructing the anomaly detection model are as follows:

[0044] (2-1) Association graph construction: Convert each sample x into an association graph G x =(V,E,A). V, E, and A are the node set, edge set, and attribute set, respectively, as described below: First, for each node v in V irepresents a dimension of sample data, and one dimension corresponds to a monitoring device in the industrial system; secondly, each edge e in E ij Represents node v i and v j There is a relationship between them; since it is generally impossible to know in advance which dimensions are related, an edge is set for each pair of nodes, that is, G x is a fully connected graph; again, each element a in A i v i The sample data vector on the indicated dimension, representing v i Attributes;

[0045] (2-2) Model construction: refer to Figure 2 ,The anomaly detection model is a deep neural network consisting of an interaction layer, encoding layer, decoding layer, and reconstruction layer;

[0046] (2-3) Model training: To achieve unsupervised model training, the mean square error between the reconstructed sample y generated by the decoder and the original sample x is used as the loss function of the model. On this basis, the gradient descent method is used to optimize the model training.

[0047] Reference Figure 3 The interaction layer uses a graph attention network to process the input of the model. The input of the interaction layer is the sample G in the form of an association graph obtained in step (2-1) x The processing steps are as follows: step 1 for G x Any edge e ij Set a learnable weight w ij , the calculation method is shown in formula (1), where q is a learnable parameter vector, σ() is a nonlinear activation function, ⊕ is used to concatenate multiple vectors, and L is v i The number of neighbor nodes; step 2 for each node v i , calculate the weighted average vector between it and all neighboring nodes as v i The representation vector g i , as shown in formula (3); step 3 concatenates the representation vectors of all nodes into a matrix As the output of the interaction layer, the rows of z are the dimensions of the node representation vectors and the columns are the number of nodes;

[0048]

[0049]

[0050]

[0051] Reference Figure 4The encoding layer uses the LSTM network to process the interaction layer output z of N consecutive samples 1 、z 2 ,…,z N The processing process is shown in formula (4), that is, the current hidden state matrix h t From its previous hidden state matrix h t-1 and the current input state matrix z t co-generation;

[0052] h t =LSTM(h t-1 ,z t ) (4)

[0053] The decoding layer uses the LSTM network to process the output h of the encoding layer 1 、h 2 ,…,h N , the processing strategy is consistent with the encoding layer, and the output feature matrix sequence r 1 、r 2 ,…,r N ;

[0054] The reconstruction layer uses a fully connected layer with F neurons to process the output r of the decoding layer. 1 、r 2 ,…,r N , and get the same as the original sample The dimensionally consistent reconstruction samples

[0055] Furthermore, in step (3), the steps of real-time anomaly detection are as follows:

[0056] (3-1) Abnormality score: Given a real-time sample x, first input it into the trained anomaly detection model to obtain the reconstructed sample y; then, calculate the mean square error between x and y as the abnormality score p of x. x ;

[0057] (3-2) Abnormality determination: If p x If it is greater than the specified threshold, x is considered abnormal.

[0058] The contents described in the embodiments of this specification are merely enumerations of implementation forms of the inventive concept and are for illustrative purposes only. The protection scope of the present invention should not be considered to be limited to the specific forms described in this embodiment, and the protection scope of the present invention also extends to equivalent technical means that can be thought of by ordinary technicians in this field based on the inventive concept.

Claims

1. An industrial system anomaly detection method based on graph attention network and LSTM auto-encoding model, It is characterized in that The method comprises the following steps: 1) Sample division and standardization: The original industrial system data is divided into samples using a sliding window; 2) Anomaly detection model construction: The anomaly detection model is constructed using graph attention network and LSTM autoencoder; 3) Real-time anomaly detection: Calculate the anomaly degree score based on the reconstruction error, and make an abnormal state determination based on this; In step 1), given the original multi-dimensional time series industrial system data Among them, T is the data capacity, F is the data dimension, and the steps of sample division and standardization are as follows: (1-1) Sample division: Based on a sliding window with a width of W and a step size of S, X is divided into a sample set XS consisting of multiple samples, where the number of samples after division is N, and each sample (1-2) Standardization: The data is standardized based on the Z-Score method so that the mean of the data in each dimension in each window is 0 and the standard deviation is 1; In step 2), the steps of constructing the anomaly detection model are as follows: (2-1) Association graph construction: Convert each sample x into an association graph G x =(V,E,A), where V, E, and A are the node set, edge set, and attribute set, respectively, as described below: First, for each node v in V i represents a dimension of sample data, and one dimension corresponds to a monitoring device in the industrial system; secondly, each edge e in E ij Represents node v i and v j There is an association between them, and an edge is set for each pair of nodes, that is, G x is a fully connected graph; again, each element a in A i v i The sample data vector on the indicated dimension, representing v i Attributes; (2-2) Model construction: The anomaly detection model is a deep neural network, which includes an interaction layer, an encoding layer, a decoding layer, and a reconstruction layer; (2-3) Model training: To achieve unsupervised model training, the mean square error between the reconstructed sample y and the original sample x generated by the decoder is used as the loss function of the model, and on this basis, the gradient descent method is used to optimize the model training; The interaction layer uses a graph attention network to process the input of the model. The input of the interaction layer is the sample G in the form of an association graph obtained in step (2-1) x The processing steps are as follows: step 1 for G x Any edge e ij Set a learnable weight w ij , the calculation method is shown in formula (1), where q is a learnable parameter vector, σ() is a nonlinear activation function, ⊕ is used to concatenate multiple vectors, and L is v i The number of neighbor nodes; step 2 for each node v i , calculate the weighted average vector between it and all neighboring nodes as v i The representation vector g i , as shown in formula (3); step 3 concatenates the representation vectors of all nodes into a matrix As the output of the interaction layer, the rows of z are the dimensions of the node representation vectors and the columns are the number of nodes; The encoding layer uses an LSTM network to process the interaction layer output z of N consecutive samples 1 、z 2 ,…,z N The processing process is shown in formula (4), that is, the current hidden state matrix h t From its previous hidden state matrix h t-1 and the current input state matrix z t co-generation; h t =LSTM(h t-1 ,z t ) (4) The decoding layer uses the LSTM network to process the output h of the encoding layer 1 、h 2 ,…,h N , the processing strategy is consistent with the encoding layer, and the output feature matrix sequence r 1 、r 2 ,…,r N ; The reconstruction layer uses a fully connected layer with F neurons to process the output r of the decoding layer. 1 、r 2 ,…,r N , and get the same as the original sample The dimensionally consistent reconstruction samples 2. The industrial system anomaly detection method based on graph attention network and LSTM auto-encoding model as claimed in claim 1, It is characterized in that In step (3), the steps of real-time anomaly detection are as follows: (3-1) Abnormality score: Given a real-time sample x, first input it into the trained anomaly detection model to obtain the reconstructed sample y; then, calculate the mean square error between x and y as the abnormality score p of x. x ; (3-2) Abnormality determination: If p x If it is greater than the specified threshold, x is considered abnormal.