Method and system for detecting anomaly of multi-dimensional time series data of wind driven generator
The spatial and temporal features of multi-dimensional time series data of wind turbines are extracted through the graph attention network and Transformer, and feature fusion and reconstruction are performed by combining gated recurrent units and bidirectional long-term and short-term networks, solving the problem of time and space correlation construction in the existing technology. This solves the problem of insufficient models and significantly improves the accuracy of anomaly detection.
Patent Information
- Application Number
- CN202411116870.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-08-15
AI Technical Summary
The existing technology is difficult to effectively model and fuse the temporal correlation and spatial correlation of multi-dimensional time series data of wind turbines at the same time, resulting in insufficient anomaly detection accuracy.
The graph attention network and Transformer are used to extract the spatial dependence features and time dependence features of the time series data respectively, and feature fusion is performed through the gated recurrent unit, combined with the bidirectional long-term and short-term network for data reconstruction, and the reconstruction error is calculated to determine anomalies.
The accuracy of anomaly detection in multi-dimensional time series data of wind turbines is improved. By capturing temporal and spatial correlation features in parallel and supplementing details, the effective fusion of spatio-temporal features and the calculation of reconstruction errors are achieved, significantly improving the detection accuracy.
Smart Images

Figure CN118656756A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing and data transmission, and in particular to a method and system for detecting abnormality of multi-dimensional time series data of a wind turbine. Background Art
[0002] The SCADA system of wind turbines records a large amount of multi-dimensional time series data generated by sensors. The changes in these sensors reflect the working status of the system, and the values of multiple sensors are interrelated. This requires that multi-dimensional time series anomaly detection not only considers the transformation of time series in each dimension under the time scale, but also needs to consider the correlation of the transformation of time series in different dimensions in the same time period. In the process of detecting anomalies in multi-dimensional time series, how to achieve efficient and accurate calculation is the key to the problem. With the development of deep learning technology, data-driven unsupervised deep learning has been widely used in the problem of multi-dimensional time series anomaly detection.
[0003] However, due to the complexity of multidimensional time series, existing methods have difficulty in modeling the temporal correlation and spatial correlation of wind power monitoring data at the same time. In recent years, transformers and graph neural networks have been widely used in multidimensional time series anomaly detection tasks. These new deep learning models can model temporal correlation and spatial correlation to a certain extent, but they still cannot take both into account and fuse their features.
[0004] Therefore, how to achieve the fusion of time correlation and spatial correlation characteristics of multidimensional time series, and thus improve the accuracy of anomaly detection in multidimensional time series data of wind turbines, has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention
[0005] The present invention provides a method and system for detecting anomalies in multi-dimensional time series data of a wind turbine, which are used to solve the technical problem of low accuracy in detecting anomalies in multi-dimensional time series data of a wind turbine.
[0006] In order to solve the above technical problems, the technical solution proposed by the present invention is: A method for detecting abnormality of multi-dimensional time series data of a wind turbine, comprising: Obtaining the time series of multi-dimensional operation data of wind turbines; A graph attention network is used to extract spatial dependency features of the time series; a transformer is used to extract temporal dependency features of the time series; A gated recurrent unit is used to fuse the spatial dependency feature and the temporal dependency feature to obtain a spatiotemporal dependency feature; A bidirectional long-short term network is used to reconstruct the spatiotemporal dependent features, and a reconstruction error of the spatiotemporal dependent features is calculated, and whether the time series sequence is abnormal is determined according to the reconstruction error.
[0007] Preferably, a gated recurrent unit is used to fuse the spatial dependency feature and the temporal dependency feature to obtain a spatiotemporal dependency feature, including: Using skip connections, the temporal sequence, the spatial dependent features, and the time dependent features are directly concatenated to obtain concatenated features; The concatenated features are fused using a gated recurrent unit, and spatiotemporal dependency features are extracted from the fused features.
[0008] Preferably, the skip connection is expressed as: ; in, represents the concatenation of two vectors. Represents spatial dependence characteristics, is a time series; is a time-dependent feature; and / or The concatenated features are fused using a gated recurrent unit, and spatiotemporal dependency features are extracted from the fused features, which is achieved by the following formula: ; ; ; ; in, Represents the update gate, which controls the amount of data that can be retained from the previous moment to the current moment; Represents the activation function relu; Represents the update gate weight matrix; Indicates the output at the last moment; Represents data at the current moment; Reset gate. Represents resetting the gate weight matrix; The weight matrix representing the state to be selected; Indicates the current moment output; Indicates the pending status.
[0009] Preferably, spatially dependent features Satisfies the following formula: , ; in, Represents the activation function relu; Represents the number of multi-head attention mechanisms in the graph attention network; Indicates the serial number of the multi-head attention mechanism; , Respectively represent two nodes in the graph structure; Representation and Node A collection of connected nodes; Representation and Node connected nodes; Indicates Node under the head attention mechanism j With Node The attention coefficient; Indicates h Linear transformation matrix under the head attention mechanism; Representation and Node Connected Nodes The eigenvector of represents the activation function tanh; represents a learnable weight vector; represents the transpose of the learnable weight vector; represents a linear transformation matrix; Representation Node The eigenvector of Representation Node j The feature vector of ; the || before and after represent the information of two nodes respectively.
[0010] Preferably, the reconstruction error is achieved by the following steps: Calculate the mean square error between the original data and the reconstructed data; Calculate the cosine distance value of the covariance between the original data and the reconstructed data; The mean square error value and the cosine distance value are merged to obtain the reconstruction error.
[0011] Preferably, the reconstruction error satisfies: ; in, is the reconstruction error, is the mean square error between the time series and the reconstructed data, is the cosine similarity value; For control Hyperparameters of weights.
[0012] Preferably, the Satisfied with: ; in, is the number of time points in the time series, is the number of variables in the time series, a represents the time point number, b represents the variable number, is the sample matrix of the original data, is the sample matrix of the reconstructed data; and / or Said Satisfied with: ; ; in, Indicates the degree of similarity between two vectors in direction; represents cosine similarity; Represents the covariance of the original time series data; represents the covariance of the reconstructed data; represents the Euclidean norm; is the default value.
[0013] Preferably, the bidirectional long short-term network adopts an unsupervised learning strategy, uses the reconstruction error as the anomaly score, and uses a point adjustment strategy to adjust the anomaly label.
[0014] A computer system comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the computer program.
[0015] The present invention has the following beneficial effects: The present invention uses transformer and graph neural network to capture the time correlation characteristics and spatial correlation characteristics of multi-dimensional time series data in parallel, uses jump connection to supplement the detail information and uses gated recurrent unit to fuse the time and space correlation characteristics, and uses bidirectional long short-term memory network to reconstruct the data. In the loss function stage, the sum of the mean square error loss of the reconstructed data and the cosine similarity of their covariance is used as the loss function of the model, which can greatly improve the accuracy of abnormal detection of wind turbine multi-dimensional time series data.
[0016] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 A flow chart showing the steps of a method for detecting abnormality of a multi-dimensional time series of a wind turbine according to the present invention; Figure 2 A training model flow chart for constructing a method for detecting abnormalities in a multi-dimensional time series of a wind turbine according to the present invention is shown; Figure 3 A specific flow chart of abnormality detection of multi-dimensional time series of a wind turbine according to the present invention is shown; Figure 4 A block diagram of a wind turbine multi-dimensional time series abnormality detection system of the present invention is shown. DETAILED DESCRIPTION
[0018] The embodiments of the present invention are described in detail below with reference to the accompanying drawings, but the present invention can be implemented in many different ways as defined and covered by the claims.
[0019] like Figure 1 , 3 As shown, the present invention discloses a method for detecting abnormality of a multi-dimensional time series of a wind turbine, comprising: S102, obtaining a multi-dimensional time series of a wind turbine generator; S104, uses parallel graph attention network and transformer to capture spatial dependency and temporal dependency respectively; S106, using gated recurrent units to further extract and fuse spatiotemporal dependency features; S108, reconstructing data using a bidirectional long-term and short-term network; S110, calculating the reconstruction error as an anomaly score.
[0020] According to an embodiment of the present invention, model parameters are determined based on the characteristics of the correlation of multi-dimensional time series data, a training model is established, and the long-term stable operation equipment monitoring data is used to The model is trained continuously. The purpose of the model is to extract the time correlation and spatial correlation in the time series data according to the input data, extract the fusion features of time and space correlation, and then reconstruct the features into a time series sequence. .use and The sum of the mean square error loss and its covariance cosine distance is taken as the output value of the model and the anomaly score.
[0021] According to an embodiment of the present invention, Figure 2 As shown above, the parallel graph attention network and transformer are used to capture spatial dependency and temporal dependency respectively, including: S202, using graph attention network to capture the spatial dependency characteristics between variables of wind turbine multi-dimensional time series data; S204, using transformer to capture the time dependency characteristics between variables of the wind turbine multi-dimensional time series data.
[0022] It should be noted that in this method, the samples are mapped into graph structure data, and each subsequence is regarded as a node. d The moment of Vi t The subsequence of Weighted Undirected Graph ,in represents a node set, Represents the edge set. Any two nodes i and j are connected, and the adjacency matrix is recorded as ,in , then the attention coefficient ,in represents the activation function LeakyReLU, represents the learnable weight vector, W represents the shared weight matrix, || before and after represent the information of two nodes respectively, and finally the adjacent nodes are aggregated to get the output of each node , where i represents the node number, H represents the number of multi-head attention mechanisms, and for the convenience of training, the average method is used to summarize the results of the multi-head attention mechanism. At the same time, Transformer is used to capture the time correlation characteristics of multi-dimensional time series data.
[0023] According to an embodiment of the present invention, the use of a gated recurrent unit to further extract and fuse spatiotemporal dependency features includes: Use skip connections to directly concatenate the original input with the spatiotemporal dependent features; The concatenated features are further extracted and fused with spatiotemporal dependency features using a gated recurrent unit.
[0024] It should be noted that the original data is recorded as , the temporal correlation features captured by Transformer are recorded as , the spatial correlation captured by the graph attention network is recorded as , then the skip connection can be expressed as ,in Indicates the connection of two vectors. Use gated recurrent units for feature extraction and fusion. Represents the data at the current moment. Indicates the output at the last moment, Indicates the current output. Indicates the state of waiting for selection; Represents matrix addition. The part represents the reset gate, which controls how much past information to forget. The part represents the update gate, which controls the amount of data that can be retained from the previous moment to the current moment. Its calculation formula can be expressed as , ,in represents the update gate weight matrix, Represents resetting the gate weight matrix, The weight matrix representing the state to be selected.
[0025] According to an embodiment of the present invention, reconstructing data using a bidirectional long-term and short-term network includes: Use a bidirectional long short-term network to reconstruct the fused features into a time series; It should be noted that due to the difficulty of data labeling, this method adopts an unsupervised learning approach, and treats long-term stable running data as normal sample data during the training phase. During the training phase, the model will learn the correlation characteristics of normal sample multidimensional time series data and reconstruct it into multidimensional time series data. Then, for the test data, the reconstruction error is used as the anomaly score, and the point adjustment strategy is used to adjust the anomaly label.
[0026] According to an embodiment of the present invention, calculating the reconstruction error as a loss function and an anomaly score includes: Calculate the mean square error between the original data and the reconstructed data; Calculate the cosine distance of the covariance between the original data and the reconstructed data; Combine the cosine distance and mean square error of the covariance as the loss function of the model and the anomaly score; It should be noted that in statistics and probability theory, the covariance matrix is a square matrix whose elements at positions i and j are the covariances between the i-th and j-th random variables, reflecting the degree of correlation between variables of different dimensions in a sample. This is a natural extension from scalar random variables to high-dimensional random vectors. We use Representing the covariance of a sample, we record n time points and k-dimensional features as , then the mean of all features can be written as , after subtracting the mean from the sample, we can get , then the covariance calculation formula can be expressed as , cosine similarity measures the similarity between two vectors by measuring the cosine value of the angle between them. The cosine value of a 0-degree angle is 1, while the cosine value of any other angle is no greater than 1; and its minimum value is -1. Therefore, the cosine value of the angle between two vectors determines whether the two vectors point in roughly the same direction. When two vectors have the same direction, the cosine similarity value is 1; when the angle between the two vectors is 90°, the cosine similarity value is 0; when the two vectors point in completely opposite directions, the cosine similarity value is -1. The formula for calculating cosine similarity is , where A and B represent two different vectors, Indicates the degree of similarity between two vectors in direction. Cosine similarity has nothing to do with the length of the vector, but only with the direction in which the vector points. The loss function part of the training model. Use mean square error to measure the sample matrix and reconstruct the matrix The numerical similarity between them is calculated as follows: ; in, is the number of time points in the time series, is the number of variables in the time series, a represents the time point number, b represents the variable number, is the sample matrix of the original data, is the sample matrix of the reconstructed data
[0027] Next, we calculate the sample matrix and reconstruct the matrix The covariance matrix of and , and calculate the cosine similarity of its covariance, the calculation formula is Since the range of mean square error is different from that of cosine similarity and their meanings are different, we transform cosine similarity as follows: , the transformed cosine distance and mean square error have the same value range as , and have the same meaning: 0 means the most similar and the larger the value, the lower the similarity. ,in, For control The hyperparameters of weights, It is a preset value, preferably 0.5.
[0028] like Figure 4 As shown, this embodiment also provides a computer system, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
[0029] In summary, the present invention uses parallel graph attention networks and transformers to capture the spatial and temporal dependencies between variables in the multidimensional time series generated by wind turbines; then uses jump connections to directly concatenate the original input with the spatiotemporal dependencies, and then uses gated recurrent units to further extract and fuse the spatiotemporal dependency features, and finally uses a bidirectional long-term and short-term network to reconstruct the data; in order to make the reconstructed data more similar to the original data distribution, the cosine distance of the covariance between the original data and the reconstructed data is combined with the mean square error loss as the loss function of the model and the reconstruction error calculation method. The present invention conducts experiments on real-world data sets and achieves good experimental results.
[0030] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for detecting abnormality of multi-dimensional time series data of a wind turbine, characterized in that: include: Obtaining the time series of multi-dimensional operation data of wind turbines; Using a graph attention network to extract spatial dependency features of the temporal sequence; Using transformer to extract time-dependent features of the time series; A gated recurrent unit is used to fuse the spatial dependency feature and the temporal dependency feature to obtain a spatiotemporal dependency feature; A bidirectional long-short term network is used to reconstruct the spatiotemporal dependent features, and a reconstruction error of the spatiotemporal dependent features is calculated, and whether the time series sequence is abnormal is determined according to the reconstruction error.
2. The method for detecting abnormality of multi-dimensional time series data of a wind turbine according to claim 1, characterized in that: The space-dependent features and the time-dependent features are fused by using a gated recurrent unit to obtain spatiotemporal-dependent features, including: Using skip connections, the temporal sequence, the spatial dependent features, and the time dependent features are directly concatenated to obtain concatenated features; The concatenated features are fused using a gated recurrent unit, and spatiotemporal dependency features are extracted from the fused features.
3. The method for detecting abnormality of multi-dimensional time series data of a wind turbine according to claim 2, characterized in that: The skip connection is expressed as: ; in, represents the concatenation of two vectors. Represents spatial dependence characteristics, is a time series; is a time-dependent feature; and / or The concatenated features are fused using a gated recurrent unit, and spatiotemporal dependency features are extracted from the fused features, which is achieved by the following formula: ; ; ; ; in, Represents the update gate, which controls the amount of data that can be retained from the previous moment to the current moment; Represents the activation function relu; Represents the update gate weight matrix; Indicates the output at the last moment; Represents data at the current moment; Reset gate. Represents resetting the gate weight matrix; The weight matrix representing the state to be selected; Indicates the current moment output; Indicates the pending status.
4. The method for detecting abnormality of multi-dimensional time series data of a wind turbine according to claim 3, characterized in that: Spatial Dependence Features Satisfies the following formula: , ; in, Represents the activation function relu; Represents the number of multi-head attention mechanisms in the graph attention network; Indicates the serial number of the multi-head attention mechanism; , Respectively represent two nodes in the graph structure; Representation and Node A collection of connected nodes; Representation and Node connected nodes; Representation Node j With Node The attention coefficient; Indicates Node under the head attention mechanism j With Node The attention coefficient; Indicates h Linear transformation matrix under the head attention mechanism; Representation and Node Connected Nodes The eigenvector of represents the activation function tanh; represents a learnable weight vector; represents the transpose of the learnable weight vector; represents a linear transformation matrix; Representation Node The eigenvector of Representation Node j The feature vector of ; the || before and after represent the information of two nodes respectively.
5. The method for detecting abnormality of multi-dimensional time series data of a wind turbine according to claim 1, characterized in that: The reconstruction error is achieved by the following steps: Calculate the mean square error between the original data and the reconstructed data; Calculate the cosine distance value of the covariance between the original data and the reconstructed data; The mean square error value and the cosine distance value are merged to obtain the reconstruction error.
6. The method for detecting abnormality of multi-dimensional time series data of a wind turbine according to claim 5, characterized in that: The reconstruction error satisfies: ; in, is the reconstruction error, is the mean square error between the time series and the reconstructed data, is the cosine similarity value; For control Hyperparameters of weights.
7. The method for detecting abnormality of multi-dimensional time series data of a wind turbine according to claim 6, characterized in that: Said Satisfied with: ; in, is the number of time points in the time series, is the number of variables in the time series, a represents the time point number, b represents the variable number, is the sample matrix of the original data, is the sample matrix of the reconstructed data; and / or Said Satisfied with: , ; in, Indicates the degree of similarity between two vectors in direction; represents cosine similarity; Represents the covariance of the original time series data; represents the covariance of the reconstructed data; represents the Euclidean norm; is the default value.
8. The method for detecting abnormality of multi-dimensional time series data of a wind turbine according to claim 5, characterized in that: The bidirectional long short-term network adopts an unsupervised learning strategy, uses the reconstruction error as the anomaly score, and uses a point adjustment strategy to adjust the anomaly label.
9. A computer system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Multi-dimensional time series data anomaly detection method
CN116361635A
Time series data anomaly detection method based on multi-head attention model
CN117076936A
Industrial time series data anomaly detection method based on space-time diagram attention network
CN117272196A
Time series data prediction method associated with time-space relationship
CN117668743A
Featured value extraction device for multi-dimensional time series data
JP2008310520A
Cited By
Wind driven generator fault intelligent detection system and method
CN119848426A
Object-oriented event log anomaly detection method and system
CN120234752A
State monitoring method, system and equipment of wind turbine generator and storage medium
CN121676287A
Multi-dimensional time sequence anomaly detection method and system based on multi-layer dynamic graph
CN121901991A
Method and system for industrial equipment operation monitoring anomaly detection based on multi-layer dynamic graph
CN121901991B
