A wind turbine fault diagnosis method based on data analysis

By performing data amplification and multi-head attention unit processing on wind turbine vibration signals, a deep learning model is built, which solves the problem of scarcity of wind turbine fault data and improves diagnosis accuracy and efficiency.

CN118626948BActive Publication Date: 2024-10-18CHINA RESOURCES POWER TECH RES INST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411107220.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-18
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

The scarcity of wind turbine gearbox fault data samples leads to overfitting of the deep learning diagnosis model and low diagnosis accuracy.

Method used

Vibration signals are collected through acceleration sensors, phase shift, autospectrum and cross-spectrum data are amplified, a multi-head attention unit and a feedforward neural network encoder are constructed, a neural network model of the TensorFlow deep learning framework is built, and training is performed to improve diagnosis accuracy. .

Benefits of technology

It provides sufficient data support, enhances the ability to capture fault characteristics, solves the over-fitting problem of deep learning models, and improves the accuracy and efficiency of wind turbine fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626948B_ABST
    Figure CN118626948B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing, and specifically to a method for diagnosing wind turbine faults based on data analysis, wherein the method performs phase shift, self-spectrum and cross-spectrum data amplification on the collected original data set to obtain an extended data set; embeds an encoder stack into a neural network model built using a TensorFlow deep learning framework; trains the neural network model using the extended data set to obtain a fault diagnosis network model, inputs a target wind turbine to-be-detected data set into the trained diagnosis network model, and outputs a fault diagnosis result of the target wind turbine. The present invention provides sufficient data support for the training process of the neural network model built using the TensorFlow deep learning framework by performing phase shift, self-spectrum and cross-spectrum data amplification on the collected original data set, and the neural network model built based on the TensorFlow deep learning framework can improve the accuracy and efficiency of wind turbine fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data analysis and processing, and in particular relates to a wind turbine fault diagnosis method based on data analysis. Background Art

[0002] Due to the geographical limitations of wind farm resources, wind turbine gearboxes are generally installed in extremely harsh environments such as deserts, oceans, and mountains, and are exposed to severe impact loads, alternating high and low temperatures, and high and low speed shear for a long time. Therefore, the relevant components of wind turbine gearboxes, especially bearing components, are extremely susceptible to damage. How to perform status detection and fault diagnosis on the bearings of wind turbine gearboxes under alternating working conditions and noise interference in harsh environments has become a technical problem that needs to be solved urgently.

[0003] The existing bearing fault sensing technology uses oil temperature signals as the acquisition signals, and then uses relevant signal processing technology and mathematical statistics methods to extract the fault features of the monitored bearings, and combines relevant machine learning or deep learning network models to realize bearing fault pattern recognition. However, the analysis method based on oil temperature signals often has obvious hysteresis effects, cannot effectively respond to local damage in the actual working conditions of the bearings, and is easily affected by the alternating temperature between day and night, resulting in low accuracy in bearing fault diagnosis.

[0004] At present, the common method is to study the fault diagnosis method of wind turbine gearbox bearings based on vibration signals. Neural network models have also been widely used in the field of wind turbine fault diagnosis. However, the fault identification algorithm based on deep learning network models requires a large amount of fault data support when applied, and the actual wind turbine gearbox fault data samples are scarce. There is a serious sample imbalance problem between fault data and normal data. When the data set is small and sparse, it is very easy to cause overfitting of the deep learning diagnosis model, resulting in inaccurate output results of the diagnosis model for wind turbine diagnosis. Summary of the invention

[0005] The purpose of the embodiment of the present invention is to provide a wind turbine fault diagnosis method based on data analysis, aiming to solve the problem that the traditional wind turbine gearbox fault data samples are scarce, the fault data and normal data have serious sample imbalance problems, and when the data set is small and sparse, it is very easy to cause the deep learning diagnosis model to overfit, resulting in inaccurate wind turbine diagnosis output results. To achieve the above purpose, the present invention provides the following technical solutions.

[0006] Specifically, an embodiment of the present invention provides a wind turbine fault diagnosis method based on data analysis, and the wind turbine fault diagnosis method includes the following steps:

[0007] Step S101: using an acceleration sensor to collect data on the vibration signal of the wind turbine bearing, and performing phase shift, autospectral and cross-spectral data amplification on the collected original data set to obtain an expanded data set;

[0008] Step S102: constructing an encoder using a multi-head attention unit and a feedforward neural network unit, each of which is followed by a residual connection, connecting multiple encoders in series to form an encoder stack, and embedding the encoder stack into a neural network model constructed using the TensorFlow deep learning framework;

[0009] Step S103: training the neural network model using the expanded data set to obtain a fault diagnosis network model;

[0010] Step S104: inputting the target wind turbine group to-be-detected data set into the trained diagnosis network model, and outputting the fault diagnosis result of the target wind turbine group.

[0011] As a further limitation of the technical solution of the present invention, the step of obtaining an expanded data set by performing phase shift, autospectral and cross-spectral data amplification on the collected original data set data includes:

[0012] The original data set collected by the acceleration sensor is expressed as:

[0013] ; Where X and Y represent the input response set and the output response set respectively;

[0014] For the original data set The frequency spectrum of the input and output response (X, Y) is phase shifted to generate new data ;exist Randomly generated Phase ,for No. elements, the phase enhancement dataset is represented as:

[0015] ;

[0016] Based on the working condition transfer path analysis model, the original data set and phase-enhanced datasets The input and output matrices are used to solve the autospectral and cross-spectral solutions. As the input of the fault detection model, the cross-spectrum matrix As the output vector of the fault detection model, the training data of the amplified transmissibility matrix, the self-spectrum and cross-spectrum enhanced data set can be expressed as:

[0017]

[0018] The obtained augmented dataset is expressed as: .

[0019] As a further limitation of the technical solution of the present invention, the vibration signal model is expressed as: Y=XT;

[0020] Where X represents the wind turbine signal input matrix; Y represents the wind turbine signal output matrix, and T represents the transfer rate matrix;

[0021] Expand Y=XT to express:

[0022]

[0023] in, represents the output response of the jth (j=1, 2, ..., k) target point under the current working condition; represents the input response of the i-th (i-1, 2, ..., n) excitation source under the current working condition; represents the transfer function from the i-th excitation source to the j-th target point.

[0024] As a further limitation of the technical solution of the present invention, when the operating condition q of the wind turbine system is not less than the number of excitation sources n, the input matrix X is reversible and is calculated to be:

[0025] ;

[0026] in, is the autopower spectrum matrix of the input signal, Represents the cross power spectrum matrix of input and output signals;

[0027] Using singular value decomposition to process the input matrix X, we get: ;

[0028] U and V represent The left and right singular matrices of are both unitary matrices; W represents a diagonal matrix, and the elements on the diagonal are the singular values ​​of the input matrix X;

[0029] Combined with the wind turbine vibration signal model, we get: ;

[0030] The composite output signal is expressed as: ;

[0031] When performing vibration contribution analysis, the vibration contribution of the i-th excitation source to the j-th target point is expressed as: , where i=1, 2, ..., n; j=1, 2, ..., k.

[0032] As a further limitation of the technical solution of the present invention, the neural network model built using the TensorFlow deep learning framework includes an input layer, a feature extraction layer, a hidden layer and an output layer; wherein the encoder stack is embedded in the feature extraction layer; the hidden layer has four layers in total, the first layer has 50 hidden units, the second layer has 30 hidden units, and the third layer has 10 hidden units. The activation function of the first three layers adopts the relu function, and the activation function of the last layer adopts the softmax function. The softmax function is used to output category probability, and the output layer outputs the classification result based on the category probability.

[0033] As a further limitation of the technical solution of the present invention, the training process of the neural network model includes the following steps:

[0034] Step S301: Divide the expanded data set into a training set, a validation set, and a test set;

[0035] Step S302: Initialize the weights to obtain an initial explicit model, input the normalized training set data into the model after the weights are initialized, calculate the prediction probability of each target category, and output the category with the largest prediction probability as the fault diagnosis category;

[0036] Step S303: The cross entropy loss function is used to calculate the difference between the diagnosis category and the true category. Before the model reaches the set number of iterations, the stochastic gradient descent algorithm is used to iteratively optimize the weights of each target category in the initial model along the negative gradient direction of the loss function until the model converges.

[0037] As a further limitation of the technical solution of the present invention, the cross entropy loss function in the model training process is expressed as:

[0038] ;

[0039] Among them, L represents the loss value, N is the total number of data samples, represents the label of the i-th sample, normal is represented by 1, and fault is represented by 0. is the probability that the i-th sample is diagnosed as normal.

[0040] The iterative formula of the stochastic gradient descent algorithm is:

[0041] ;

[0042] in, represents the k+1th weight value, represents the k-th independent variable value, Represents the learning rate. The learning rate is used to control the speed of gradient descent. If it is too large, the model algorithm may not converge. If it is too small, the iteration rate may be too slow. for exist The gradient at When there are multiple extreme points, local optimal solutions are likely to occur.

[0043] As a further limitation of the technical solution of the present invention, in order to solve the problem of local optimal solution, the present invention adds Gaussian noise as a disturbance to the iterative formula to obtain a new iterative formula:

[0044] ;

[0045] in, To add the intensity of the disturbance, Show obedience Gaussian distributed random numbers.

[0046] As a further limitation of the technical solution of the present invention, the feedforward neural network input is the encoder through the first The normalized output tensor is propagated as follows:

[0047]

[0048] in, Indicates The output of the layer, represents the activation function, , Respectively represent The weights and biases used by the layer.

[0049] As a further limitation of the technical solution of the present invention, multi-head attention is expressed as:

[0050]

[0051] in, represents the i-th mapping matrix, It is represented as a set of mapping matrices, h represents the number of attention heads, , , and Both represent parameters in the model training and learning process;

[0052] Asda represents a mapping function, which is specifically expressed as:

[0053] ;

[0054] Where D is the matrix temperature of Q or K. When Q=K=V, it is called self-attention. It is expressed as a probabilistic function.

[0055] Compared with the prior art, the wind turbine fault diagnosis method based on data analysis of the present invention has the following beneficial effects:

[0056] First, the present invention provides sufficient data support for the training process of the neural network model built using the TensorFlow deep learning framework by performing phase shift, self-spectrum and cross-spectrum data amplification on the collected original data set, thereby solving the technical problems that the fault data samples of the wind turbine gearbox are scarce, and there is a serious sample imbalance between fault data and normal data, which easily leads to the overfitting phenomenon of the deep learning diagnosis model when the data set is small and sparse;

[0057] Second, in the neural network model built in the TensorFlow deep learning framework, the encoder stack of the present invention can extract deep features from the vibration signal of the wind turbine through its multi-layer structure. The multi-head attention unit in the encoder stack can process the features of multiple subspaces in parallel, thereby enhancing the ability to capture fault features; the feedforward network unit performs further nonlinear transformation on the features extracted by the attention mechanism, thereby increasing the model's ability to process complex data; the residual connection in the encoder stack helps solve the gradient vanishing problem in deep network training, thereby enabling the training of deeper network structures and improving the model's learning ability.

[0058] In summary, the wind turbine fault diagnosis method based on data analysis provided by the present invention can not only solve the technical problem of scarce wind turbine gearbox fault data samples, but also train a detection model based on the amplified data set, and the obtained detection model can improve the accuracy and efficiency of wind turbine fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.

[0060] Figure 1 A flow chart of a wind turbine fault diagnosis method based on data analysis according to the present invention;

[0061] Figure 2 A schematic diagram of the data expansion process provided by the present invention;

[0062] Figure 3 The architecture diagram of the encoder stack provided by the present invention;

[0063] Figure 4 A sub-flow chart of the wind turbine fault diagnosis method based on data analysis of the present invention;

[0064] Figure 5 A structural block diagram of a wind turbine fault diagnosis device provided by the present invention;

[0065] Figure 6 The present invention provides a structural block diagram of a computer device. DETAILED DESCRIPTION

[0066] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0067] In the field of fault diagnosis and detection technology for wind turbines, fault identification algorithms based on deep learning network models require a large amount of fault data support when applied. However, in practice, wind turbine gearbox fault data samples are scarce, and there is a serious sample imbalance problem between fault data and normal data. When the data set is small and sparse, it is very easy to cause overfitting of the deep learning diagnosis model.

[0068] The present invention performs phase shift, self-spectrum and cross-spectrum data amplification on the collected original data set, thereby providing sufficient data support for the training process of the neural network model built using the TensorFlow deep learning framework, thereby solving the technical problems of scarcity of fault data samples of wind turbine gearboxes and serious sample imbalance between fault data and normal data, which easily lead to overfitting of deep learning diagnostic models when the data set is small and sparse.

[0069] Furthermore, in the neural network model built in the TensorFlow deep learning framework of the present invention, the encoder stack can extract deep features from the vibration signal of the wind turbine through its multi-layer structure, and the multi-head attention unit in the encoder stack can process the features of multiple subspaces in parallel, thereby enhancing the ability to capture fault features; the feedforward network unit performs further nonlinear transformation on the features extracted by the attention mechanism, thereby increasing the model's ability to process complex data; the residual connection in the encoder stack helps to solve the gradient vanishing problem in deep network training, thereby enabling the training of deeper network structures and improving the learning ability of the model.

[0070] The specific implementation of the wind turbine fault diagnosis method based on data analysis of the present invention is described in detail below in conjunction with specific embodiments.

[0071] like Figure 1 As shown, in one embodiment of the present invention, a wind turbine fault diagnosis method based on data analysis is provided, and the method comprises the following steps:

[0072] Step S101: using an acceleration sensor to collect data on the vibration signal of the wind turbine bearing, and performing phase shift, autospectral and cross-spectral data amplification on the collected original data set to obtain an expanded data set;

[0073] like Figure 2 As shown, it is a schematic diagram of the data expansion process of the present invention;

[0074] The data expansion step of the present invention comprises:

[0075] Step S201: obtaining an original data set;

[0076] In the embodiment of the present disclosure, a piezoelectric acceleration sensor is used to obtain the original data set; wherein, when the original data set is obtained by using the sensor, the sampling rate is set to 20kHz to satisfy the Nyquist sampling theorem. Generally, the high-frequency vibration of the wind turbine may be at several kilohertz. Therefore, the present invention selects a sampling rate of 20kHz to cover most situations;

[0077] Furthermore, the acquisition time is 60 seconds. In this way, the sensor should collect data for a long enough time to capture the vibration characteristics of the wind turbine under different working conditions. 60 seconds is usually enough for preliminary analysis and can be adjusted according to specific circumstances.

[0078] The specific values ​​of other data acquisition parameter settings depend on the characteristics and monitoring requirements of the wind turbine. Specifically, the resolution of data acquisition in the present invention is 24 bits. The resolution determines the minimum signal change that the sensor can distinguish. The 24-bit resolution of the present invention can provide high-precision measurements. In the filter settings of the present invention, the low-pass filter selects 10kHz to remove noise higher than the highest operating frequency of the wind turbine; the high-pass filter selects 1Hz to filter out low-frequency noise below 1Hz, such as structural deformation caused by temperature changes.

[0079] The present invention also adopts multi-channel synchronous data acquisition. If multiple sensors are used for monitoring, it should be ensured that all sensors collect data synchronously to facilitate subsequent data analysis and fault diagnosis.

[0080] Step S202: performing phase shift processing on the original data set to obtain a phase enhanced data set;

[0081] Step S203: amplifying the original data set by auto-spectrum and cross-spectrum data to obtain an auto-spectrum and cross-spectrum enhanced data set;

[0082] The present invention obtains an enhanced data set containing richer information by performing self-spectrum and cross-spectrum data amplification on the original data set, thereby providing more reliable data support for fault diagnosis of wind turbines.

[0083] Step S204: expanding the original data set, the phase enhanced data set, and the self-spectrum and cross-spectrum enhanced data set into a training data set.

[0084] In step S204, the original data, the phase enhanced data set, and the self-spectrum and cross-spectrum enhanced data set are merged to obtain a training data set after data expansion;

[0085] The expanded training data set can provide richer data support for the subsequent training of the neural network model, thereby improving the training effect of the neural network model.

[0086] Specifically, in the embodiment of the present invention, the vibration signal model of the wind turbine generator system in the embodiment of the present invention is expressed as: Y=XT;

[0087] Where X represents the wind turbine signal input matrix; Y represents the wind turbine signal output matrix, and T represents the transfer rate matrix;

[0088] Expand Y=XT to express:

[0089] ;

[0090] in, represents the output response of the jth (j=1, 2, ..., k) target point under the current working condition; represents the input response of the i-th (i-1, 2, ..., n) excitation source under the current working condition; represents the transfer function from the i-th excitation source to the j-th target point.

[0091] Further, in the embodiment of the present invention, when the operating condition q of the wind turbine system is not less than the number of excitation sources n, the input matrix X is reversible, and the following is calculated:

[0092] ;

[0093] in, is the autopower spectrum matrix of the input signal, Represents the cross power spectrum matrix of input and output signals;

[0094] Using singular value decomposition to process the input matrix X, we get: ;

[0095] Among them, U and V represent The left and right singular matrices of are both unitary matrices; W represents a diagonal matrix, and the elements on the diagonal are the singular values ​​of the input matrix X;

[0096] Furthermore, combined with the wind turbine vibration signal model, we get: ;

[0097] Among them, the synthetic output signal is expressed as: ;

[0098] Furthermore, when performing vibration contribution analysis, the vibration contribution of the i-th excitation source to the j-th target point is expressed as:

[0099]

[0100] Among them, i=1, 2, ..., n; j=1, 2, ..., k.

[0101] Preferably, in an embodiment of the present invention, the original data set collected by the acceleration sensor is expressed as:

[0102] ,

[0103] Where X and Y represent the input response set and the output response set, respectively.

[0104] Among them, the present invention is to the original data set The frequency spectrum of the input and output response (X, Y) is phase shifted to generate new data ;

[0105] Further, in Randomly generated Phase ,for No. elements, the phase enhancement dataset is represented as:

[0106] ;

[0107] Based on the working condition transfer path analysis model, the original data set and phase-enhanced datasets The input and output matrices are used to solve the autospectral and cross-spectral solutions. As the input of the fault detection model, the cross-spectrum matrix As the output vector of the fault detection model, the training data of the transmissibility matrix is ​​further amplified, where the self-spectrum and cross-spectrum enhanced data sets can be expressed as:

[0108]

[0109] Therefore, the expanded data set obtainable by the present invention is expressed as: .

[0110] Therefore, based on the above description, the present invention provides sufficient data support for the training process of the neural network model built using the TensorFlow deep learning framework by performing phase shift, self-spectrum and cross-spectrum data amplification on the collected original data set, thereby solving the technical problems of the scarcity of fault data samples of wind turbine gearboxes and the serious sample imbalance between fault data and normal data, which easily lead to the overfitting phenomenon of deep learning diagnostic models when the data set is small and sparse.

[0111] Further, such as Figure 1 , Figure 3 and Figure 4 As shown, in an embodiment of the present invention, the wind turbine fault diagnosis method based on data analysis provided by the present invention further includes:

[0112] Step S102: constructing an encoder using a multi-head attention unit and a feedforward neural network unit, each of which is followed by a residual connection, connecting multiple encoders in series to form an encoder stack, and embedding the encoder stack into a neural network model constructed using the TensorFlow deep learning framework;

[0113] Preferably, the neural network model constructed using the TensorFlow deep learning framework in the embodiment of the present invention includes an input layer, a feature extraction layer, a hidden layer, and an output layer;

[0114] The input layer of the neural network model is used to receive input data from the data preprocessing stage, which adopts the vibration signal features of the expanded data set obtained after data expansion;

[0115] Among them, the encoder stack is embedded in the feature extraction layer to extract key features from the input data;

[0116] There are four hidden layers. The first layer has 50 hidden units, the second layer has 30 hidden units, and the third layer has 10 hidden units. The purpose of the hidden layer is to further extract features and perform nonlinear transformations. The number of hidden units decreases layer by layer, which helps the model learn higher-level feature representations.

[0117] The activation function of the first three layers uses the relu function, which helps to introduce nonlinearity and solve the gradient vanishing problem. The activation function of the last layer uses the softmax function, which is used to output category probabilities and convert the output into a probability distribution to represent the probabilities of different categories.

[0118] Furthermore, the output layer outputs the classification results based on the category probability.

[0119] Please continue reading Figure 1In an embodiment of the present invention, the wind turbine fault diagnosis method based on data analysis in an embodiment of the present invention further includes:

[0120] Step S103: training the neural network model using the expanded data set to obtain a fault diagnosis network model;

[0121] Specifically, in step S103, in the neural network model built in the TensorFlow deep learning framework of the present invention, the encoder stack can extract deep features from the vibration signal of the wind turbine through its multi-layer structure, and the multi-head attention unit in the encoder stack can process the features of multiple subspaces in parallel, thereby enhancing the ability to capture fault features;

[0122] Furthermore, the feedforward network unit performs further nonlinear transformation on the features extracted by the attention mechanism, which increases the model's ability to process complex data;

[0123] The residual connection in the encoder stack helps solve the gradient vanishing problem in deep network training, allowing for training of deeper network structures and improving the learning ability of the model;

[0124] Therefore, the diagnostic model of the present invention can improve the accuracy and efficiency of wind turbine fault diagnosis.

[0125] Step S104: inputting the target wind turbine group to-be-detected data set into the trained diagnosis network model, and outputting the fault diagnosis result of the target wind turbine group.

[0126] Among them, Figure 4 As shown, the training process of the neural network model includes the following steps:

[0127] Step S301: Divide the expanded data set into a training set, a validation set, and a test set;

[0128] Optionally, the division ratio of the training set, validation set and test set is: 70% training set, 15% validation set, 15% test set, or 80% training set, 10% validation set, 10% test set.

[0129] Furthermore, a random sampling method is used to divide the data set to ensure that the samples in each data set are representative and to avoid introducing bias; specifically, the data set division tool of the present invention adopts the sklearn.model_selection.train_test_split function in Python.

[0130] Step S302: Initialize the weights to obtain an initial explicit model, input the normalized training set data into the model after the weights are initialized, calculate the prediction probability of each target category, and output the category with the largest prediction probability as the fault diagnosis category;

[0131] Step S303: The cross entropy loss function is used to calculate the difference between the diagnosis category and the true category. Before the model reaches the set number of iterations, the stochastic gradient descent algorithm is used to iteratively optimize the weights of each target category in the initial model along the negative gradient direction of the loss function until the model converges.

[0132] Preferably, the cross entropy loss function in the model training process of the embodiment of the present invention is expressed as:

[0133]

[0134] Among them, L represents the loss value, N is the total number of data samples, represents the label of the i-th sample, normal is represented by 1, and fault is represented by 0. is the probability that the i-th sample is diagnosed as normal.

[0135] Furthermore, the iterative formula of the stochastic gradient descent algorithm of the embodiment of the present invention is:

[0136]

[0137] in, represents the k+1th weight value, represents the k-th independent variable value, Represents the learning rate. The learning rate is used to control the speed of gradient descent. If it is too large, the model algorithm may not converge. If it is too small, the iteration rate may be too slow. for exist The gradient at When there are multiple extreme points, local optimal solutions are likely to occur.

[0138] Furthermore, in order to solve the problem of local optimal solution, the embodiment of the present invention adds Gaussian noise as disturbance to the iterative formula, thereby obtaining a new iterative formula:

[0139]

[0140] in, To add the intensity of the disturbance, Show obedience Gaussian distributed random numbers.

[0141] Further, in a preferred embodiment of the present invention, the feedforward neural network input is the encoder through the first A normalized output tensor, where a tensor is a multidimensional array used to represent data. Here, the data processed by the encoder is converted into a tensor, which contains the features extracted by the encoder, and its propagation form is as follows:

[0142] ;

[0143] in, Indicates The output of the layer, represents the activation function, , Respectively represent The weights and biases used by the layer.

[0144] Preferably, in this embodiment of the present invention, multi-head attention is expressed as:

[0145]

[0146] in, represents the i-th mapping matrix, It is represented as a set of mapping matrices, h represents the number of attention heads, , , and Both represent parameters in the model training and learning process;

[0147] Furthermore, the multi-head attention representation formula Represents a mapping function, which is specifically expressed as:

[0148]

[0149] Where D is the matrix temperature of Q or K. When Q=K=V, it is called self-attention. It is expressed as a probabilistic function.

[0150] Further, such as Figure 5 As shown, in another preferred embodiment of the present invention, a wind turbine fault diagnosis system is provided;

[0151] The wind turbine fault diagnosis system according to the embodiment of the present invention comprises:

[0152] The data processing unit 401 is used to collect data of the vibration signal of the wind turbine bearing by using an acceleration sensor, and obtain an expanded data set by performing phase shift, autospectrum and cross-spectrum data amplification on the collected original data set data;

[0153] A model building unit 402, wherein the model building unit 402 is used to construct an encoder using a multi-head attention unit and a feedforward neural network unit, each of which is followed by a residual connection, and multiple encoders are connected in series to form an encoder stack, and the encoder stack is embedded in a neural network model constructed using a TensorFlow deep learning framework;

[0154] A model training unit 403, wherein the model training unit 403 is used to train the neural network model using the expanded data set to obtain a fault diagnosis network model;

[0155] The fault diagnosis unit 404 is used to input the target wind turbine group to-be-detected data set into the trained diagnosis network model, and output the fault diagnosis result of the target wind turbine group.

[0156] See also Figure 6 , Figure 6 It is a schematic block diagram of a computer device provided by an embodiment of the present invention.

[0157] Optionally, the computer device 500 in the embodiment of the present invention is a server, which may be an independent server or a server cluster composed of multiple servers, which is not specifically limited.

[0158] See also Figure 6 The computer device 500 of the embodiment of the present invention includes a processor 502, a memory and a network interface 505 connected through a system bus 501, wherein the memory may include a non-volatile storage medium 503 and an internal memory 504.

[0159] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute the wind turbine fault diagnosis method based on data analysis provided in the above embodiment.

[0160] Specifically, the processor 502 of the embodiment of the present invention is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0161] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the wind turbine fault diagnosis method based on data analysis provided in the above embodiment.

[0162] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Figure 6The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine some components, or have a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structure and function of the memory and the processor are the same as those of the present invention. Figure 6 The embodiments shown are consistent and will not be described again here.

[0163] The processor 502 is used to run a computer program 5032 stored in the memory to implement the wind turbine fault diagnosis method based on data analysis disclosed in the embodiment of the present invention.

[0164] Those skilled in the art will understand that Figure 6 The embodiment of the computer device shown in the figure does not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than those shown in the figure, or combine certain components, or arrange the components differently.

[0165] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0166] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the wind turbine fault diagnosis method based on data analysis disclosed in the embodiment of the present invention is implemented.

[0167] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0168] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0169] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.

[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0171] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0172] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0173] The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), disk or CD and other media that can store program code.

[0174] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A wind turbine fault diagnosis method based on data analysis, characterized in that: The wind turbine fault diagnosis method comprises the following steps: Step S101: using an acceleration sensor to collect data on the vibration signal of the wind turbine bearing, and performing phase shift, autospectral and cross-spectral data amplification on the collected original data set to obtain an expanded data set; Step S102: constructing an encoder using a multi-head attention unit and a feedforward neural network unit, each of which is followed by a residual connection, connecting multiple encoders in series to form an encoder stack, and embedding the encoder stack into a neural network model constructed using the TensorFlow deep learning framework; Step S103: training the neural network model using the expanded data set to obtain a fault diagnosis network model; Step S104: inputting the target wind turbine group to-be-detected data set into the trained diagnosis network model, and outputting the fault diagnosis result of the target wind turbine group; The step of obtaining an expanded data set by performing phase shift, autospectral and cross-spectral data amplification on the collected original data set includes: The original data set collected by the acceleration sensor is expressed as: , where X and Y represent the input response set and the output response set respectively; For the original data set The frequency spectrum of the input and output response (X, Y) is phase shifted to generate new data ;exist Randomly generated Phase ,for No. elements, the phase enhancement dataset is represented as: ; Based on the working condition transfer path analysis model, the original data set and phase-enhanced datasets The input and output matrices are used to solve the autospectral and cross-spectral solutions. As the input of the fault detection model, the cross-spectrum matrix As the output vector of the fault detection model, the training data of the amplified transmissibility matrix, the self-spectrum and cross-spectrum enhanced data set is expressed as: The obtained augmented dataset is expressed as: ; The vibration signal model is expressed as: Y=XT; Where X represents the wind turbine signal input matrix; Y represents the wind turbine signal output matrix, and T represents the transfer rate matrix; Expand Y=XT to express: ; in, represents the output response of the jth (j=1, 2, ..., k) target point under the current working condition; represents the input response of the i-th (i-1, 2, ..., n) excitation source under the current working condition; represents the transfer function from the i-th excitation source to the j-th target point; When the operating condition q of the wind turbine system is not less than the number of excitation sources n, the input matrix X is reversible and the calculation results are: ; in, is the autopower spectrum matrix of the input signal, Represents the cross power spectrum matrix of input and output signals; Using singular value decomposition to process the input matrix X, we get: ; Among them, U and V represent The left and right singular matrices of are both unitary matrices; W represents a diagonal matrix, and the elements on the diagonal are the singular values ​​of the input matrix X; Combined with the wind turbine vibration signal model, we get: ; The composite output signal is expressed as: ; When performing vibration contribution analysis, the vibration contribution of the i-th excitation source to the j-th target point is expressed as: , where i=1, 2, ..., n; j=1, 2, ..., k; The training process of the neural network model includes the following steps: Step S301: Divide the expanded data set into a training set, a validation set, and a test set; Step S302: Initialize the weights to obtain an initial explicit model, input the normalized training set data into the model after the weights are initialized, calculate the prediction probability of each target category, and output the category with the largest prediction probability as the fault diagnosis category; Step S303: using the cross entropy loss function to calculate the difference between the diagnosis category and the true category, before the model reaches the set number of iterations, using the stochastic gradient descent algorithm to iteratively optimize the weights of each target category in the initial model along the negative gradient direction of the loss function until the model converges; The cross entropy loss function during model training is expressed as: ; Among them, L represents the loss value, N is the total number of data samples, represents the label of the i-th sample, normal is represented by 1, and fault is represented by 0. is the probability that the i-th sample is diagnosed as normal; The iterative formula of the stochastic gradient descent algorithm is: ; in, represents the k+1th weight value, represents the k-th independent variable value, represents the learning rate; for exist The gradient at Adding Gaussian noise as a disturbance to the iterative formula, we get a new iterative formula: ; in, To add the intensity of the disturbance, Show obedience Gaussian distributed random numbers; The input of the feedforward neural network is the encoder through the first The normalized output tensor is propagated as follows: ; in, Indicates The output of the layer, represents the activation function, , Respectively represent The weights and biases used by the layers; Multi-head attention is expressed as: in, represents the i-th mapping matrix, It is represented as a set of mapping matrices, h represents the number of attention heads, , , and Both represent parameters in the model training and learning process; Represents a mapping function, which is specifically expressed as: ; Where D is the matrix temperature of Q or K. When Q=K=V, it is called self-attention. It is expressed as a probabilistic function.

2. A wind turbine fault diagnosis method based on data analysis according to claim 1, characterized in that: The neural network model built using the TensorFlow deep learning framework includes an input layer, a feature extraction layer, a hidden layer, and an output layer; the encoder stack is embedded in the feature extraction layer; the hidden layer has four layers in total, the first layer has 50 hidden units, the second layer has 30 hidden units, and the third layer has 10 hidden units. The activation function of the first three layers uses the relu function, and the activation function of the last layer uses the softmax function.

Citation Information

Patent Citations

  • Wind turbine fault diagnosis method based on adaptive residual neural network

    CN114548190A

  • Rotor crack fault diagnosis method and device and rotor crack fault model construction method and device

    CN116662793A