Fan fault detection method, electronic equipment and storage medium

By introducing the fault detection model of the attention mechanism and the long and short-term memory model into the wind turbine fault detection, the problem of low turbine fault detection accuracy in the existing technology is solved, and the prediction accuracy of long-term sequences is improved.

CN118656703APending Publication Date: 2024-09-17北京科锐特科技有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411078481.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing wind turbine fault detection methods have low detection accuracy when processing time series with long time steps.

Method used

A pre-trained fault detection model is used. The model includes multiple fault detection modules. Each module includes an input layer, an encoder layer, an attention layer and an output layer. The encoder layer and decoder layer use long and short-term memory models respectively. Note The force layer uses the attention model, which improves the prediction accuracy of the model in processing long-term sequences by introducing the attention mechanism and the long and short-term memory model.

Benefits of technology

It effectively solves the problem of inattention in the model and improves the detection accuracy of wind turbine fault detection, especially the prediction accuracy when processing long-term series.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656703A
    Figure CN118656703A
Patent Text Reader

Abstract

The invention relates to the technical field of detection, particularly provides a fan fault detection method, electronic equipment and a storage medium, and aims to solve the problem of insufficient detection precision of an existing method. Therefore, the draught fan fault detection method comprises the steps that actual operation data of a draught fan are obtained; inputting the actual operation data into a pre-trained fault detection model for detection, so that the pre-trained fault detection model outputs a detection result about whether the fan has a fault or not; the fault detection model comprises a plurality of fault detection modules, each fault detection module comprises an input layer, an encoder layer, an attention layer, a decoder layer and an output layer which are connected in sequence, the encoder layer comprises a long and short term memory model, the attention layer comprises an attention model, and the decoder layer comprises a long and short term memory model. According to the fault detection model, the problem of inattention in the model is solved, and the accuracy of processing the long sequence is improved, so that the detection precision of fan fault detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of detection technology, and in particular to a fan fault detection method, electronic equipment and storage medium. Background Art

[0002] Wind energy, as a clean and renewable energy source, has attracted much attention in the energy field in the past two decades. With its large-scale development potential and pollution-free characteristics, wind power generation has been widely used around the world. However, with the large-scale application of wind power generation, it has brought great opportunities for the development of the energy market economy, but also brought more severe challenges to the reliability and stability of wind turbines.

[0003] Wind turbines operate in harsh outdoor environments all year round. Faced with changing climatic conditions and complex environmental factors, this undoubtedly increases the risk of equipment failure. In addition, most wind turbines are installed in remote locations and have high nacelles, which not only increases the difficulty of maintenance, but also pushes up the cost of operation and maintenance. Therefore, it is particularly important to implement efficient status monitoring and fault warning for wind turbines. By promptly identifying and handling potential faults, the operating reliability of the unit can be significantly improved, while reducing the economic losses caused by downtime and maintenance. In this context, the Supervisory Control and Data Acquisition (SCADA) system has been widely used in wind farms as a core tool. The system can collect and transmit various operating data of the wind turbine in real time, providing valuable information resources for subsequent fault analysis and prediction.

[0004] In recent years, with the rapid development of big data and machine learning technology, data-driven wind turbine fault prediction methods have gradually become a research hotspot. In the field of fault detection, diagnosis and early warning based on SCADA data analysis, a variety of methods have been developed in parallel, including alarm evaluation and expert system methods, cluster analysis, damage model modeling, and normal behavior modeling. Among them, the normal behavior modeling method has attracted much attention due to its unique advantages.

[0005] Normal behavior modeling is a prediction-based anomaly detection method. Its core idea is to use the normal operation data of wind turbines to train the model and establish a mapping relationship between input variables and target variables. In actual operation, the model will make real-time predictions of the target variables and detect whether there is a fault by comparing the deviation between the predicted value and the measured value. The biggest highlight of this method is its low dependence on data labels. Compared with the classification model, which needs to rely on a large amount of SCADA data with fault labels and its performance is easily affected by problems such as data imbalance and inaccurate labels, the normal behavior modeling method can achieve high-precision fault detection by effectively separating normal operation data and building models with only simple labels or even no labels. Its performance is almost unaffected by the quality of data labels. However, when processing time series with long time steps, the detection accuracy of wind turbine fault detection using the normal behavior modeling method is low.

[0006] Accordingly, the art needs a new fan fault detection solution to solve the above problems. Summary of the invention

[0007] In order to overcome the above-mentioned defects, the present application is proposed to solve or at least partially solve the technical problem of low detection accuracy of the existing fan fault detection method.

[0008] In a first aspect, a method for detecting a fault of a fan is provided, the method comprising: acquiring actual operating data of the fan; inputting the actual operating data into a pre-trained fault detection model for detection, so that the pre-trained fault detection model outputs a detection result of whether a fault occurs in the fan; the fault detection model comprises a plurality of fault detection modules, each of the fault detection modules comprises an input layer, an encoder layer, an attention layer, a decoder layer and an output layer connected in sequence, wherein the encoder layer comprises a long short-term memory model, the attention layer comprises an attention model, and the decoder layer comprises a long short-term memory model.

[0009] In a technical solution of the above-mentioned fan fault detection method, before obtaining the actual operation data of the fan, the method further includes: obtaining the time series of the fan; training the fault detection model based on the time series to determine the fault warning threshold.

[0010] In a technical solution of the above-mentioned fan fault detection method, the time series includes three-dimensional data at multiple moments; the fault detection model is trained based on the time series to determine the fault warning threshold, including: preprocessing the time series to obtain a processed time series; inputting the processed time series into the fault detection model, each fault detection module in the fault detection model outputs a predicted output value at a moment based on the three-dimensional data at a moment in the time series, and a prediction sequence is obtained based on the predicted output value; the root mean square error and the mean absolute percentage error of the prediction sequence are calculated; when the root mean square error and the mean absolute percentage error are both less than a preset threshold, the fault detection model training is completed; and the fault warning threshold is determined based on the root mean square error.

[0011] In a technical solution of the above-mentioned fan fault detection method, the time series is preprocessed to obtain a processed time series, including: based on the 3-Sigma rule and a preset normal data range, removing the data in the time series outside the preset normal data range to obtain a processed time series.

[0012] In a technical solution of the above-mentioned fan fault detection method, the processed time series is input into the fault detection model, and each fault detection module in the fault detection model outputs a predicted output value at a moment based on the three-dimensional data at a moment in the time series, and a predicted sequence is obtained based on the predicted output value, including: inputting the processed time series into the encoder layer for encoding processing to obtain a processed encoder layer hidden state sequence; determining the attention vector sequence corresponding to the encoder layer hidden state sequence based on the processed encoder layer hidden state sequence and the decoder layer hidden state output by the decoder layer; inputting the attention vector sequence into the decoder layer for decoding processing to obtain a predicted output value sequence corresponding to the time series; inputting the predicted output value sequence into the output layer, and calculating the predicted output value sequence through the activation function of the output layer to obtain a predicted sequence.

[0013] In a technical solution of the above-mentioned fan fault detection method, the processed time series is input into the encoder layer for encoding processing to obtain a processed encoder layer hidden state sequence, including: inputting the time series into the encoder layer to determine the encoder layer hidden state sequence corresponding to the time series; performing batch normalization processing on the encoder layer hidden state sequence to obtain a processed encoder layer hidden state sequence.

[0014] In a technical solution of the above-mentioned fan fault detection method, the attention vector sequence corresponding to the encoder layer hidden state sequence is determined based on the processed encoder layer hidden state sequence and the decoder layer hidden state output by the decoder layer, including: comparing the encoder layer hidden state sequence with the decoder layer hidden state to determine the attention weight distribution corresponding to the encoder layer hidden state sequence; based on the encoder layer hidden state sequence and the attention weight distribution, determining the attention vector sequence corresponding to the encoder layer hidden state sequence.

[0015] In a technical solution of the above-mentioned fan fault detection method, the actual operation data is input into a pre-trained fault detection model for detection, so that the pre-trained fault detection model outputs a detection result of whether the fan has a fault, including: pre-processing the actual operation data to obtain processed actual operation data; inputting the processed actual operation data into a pre-trained fault detection model to obtain a root mean square error corresponding to the actual operation data; judging whether the root mean square error corresponding to the actual operation data is greater than a fault warning threshold; when the root mean square error is greater than the fault warning threshold, determining that the fan has a fault; when the root mean square error is not greater than the fault warning threshold, determining that the fan has not a fault.

[0016] In a second aspect, an electronic device is provided, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the method described in any one of the technical solutions of the above-mentioned fan fault detection method is implemented.

[0017] In a third aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored therein, wherein the program codes are suitable for being loaded and run by a processor to execute the method described in any one of the technical solutions of the above-mentioned wind turbine fault detection method.

[0018] The above one or more technical solutions of the present application have at least one or more of the following beneficial effects: The present application provides a method for detecting a fan fault, which specifically includes: obtaining the actual operation data of the fan; inputting the actual operation data into a pre-trained fault detection model for detection, so that the pre-trained fault detection model outputs a detection result of whether the fan has a fault; the fault detection model includes a plurality of fault detection modules, each of which includes an input layer, an encoder layer, an attention layer, a decoder layer, and an output layer connected in sequence, wherein the encoder layer includes a long short-term memory model, the attention layer includes an attention model, and the decoder layer includes a long short-term memory model. The fault detection model of the present application effectively solves the problem of inattention in the model by introducing an attention mechanism and using a long short-term memory model as an encoder and a decoder, and improves the prediction accuracy when processing long sequences, thereby improving the detection accuracy of fan fault detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The disclosure of the present application will become easier to understand with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present application. Among them: Figure 1 is a schematic flow chart of main steps of a fan fault detection method according to an embodiment of the present application; Figure 2 is a schematic diagram of the structure of an encoder and a decoder according to an embodiment of the present application; Figure 3 is a schematic diagram of the structure of an encoder and a decoder introducing an attention mechanism according to an embodiment of the present application; Figure 4 is a structural schematic diagram of a fault detection model according to an embodiment of the present application; Figure 5 is a schematic diagram of the structure of a long short-term memory model according to an embodiment of the present application; Figure 6 is a schematic diagram of a detailed step flow of a fan fault detection method according to an embodiment of the present application; Figure 7 It is a schematic diagram of the main structure of an electronic device according to an embodiment of the present application.

[0020] Reference numerals: 11: memory; 12: processor. DETAILED DESCRIPTION

[0021] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.

[0022] In the description of the present application, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, memory, and may also include software parts, such as program code, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B" and may include only A, only B or A and B. The singular terms "one" and "the" may also include plural forms.

[0023] Wind turbines operate in harsh outdoor environments all year round. Faced with changing climate conditions and complex environmental factors, this undoubtedly increases the risk of equipment failure. In addition, most wind turbines are installed in remote locations and have high cabins, which not only increases the difficulty of maintenance, but also pushes up operation and maintenance costs. Therefore, it is particularly important to implement efficient status monitoring and fault warning for wind turbines. In this context, the Supervisory Control and Data Acquisition (SCADA) system has been widely used in wind farms as a core tool. The system can collect and transmit various operating data of wind turbines in real time, providing valuable information resources for subsequent fault analysis and prediction.

[0024] In recent years, with the rapid development of big data and machine learning technology, data-driven wind turbine fault prediction methods have gradually become a research hotspot. In the field of fault detection, diagnosis and early warning based on SCADA data analysis, a variety of methods have been developed in parallel, including alarm evaluation and expert system methods, cluster analysis, damage model modeling, and normal behavior modeling. Among them, the normal behavior modeling method has attracted much attention due to its unique advantages.

[0025] Normal behavior modeling is a prediction-based anomaly detection method. Its core idea is to use the normal operation data of wind turbines to train the model and establish a mapping relationship between input variables and target variables. In actual operation, the model will make real-time predictions of the target variables and detect whether there is a fault by comparing the deviation between the predicted value and the measured value. However, when processing time series with a long time step, the detection accuracy of wind turbine fault detection using normal behavior modeling is low.

[0026] To this end, the present application provides a method for detecting fan faults, specifically comprising: obtaining actual operating data of the fan; inputting the actual operating data into a pre-trained fault detection model for detection, so that the pre-trained fault detection model outputs a detection result of whether the fan has a fault; the fault detection model includes multiple fault detection modules, each fault detection module includes an input layer, an encoder layer, an attention layer, a decoder layer and an output layer connected in sequence, wherein the encoder layer includes a long short-term memory model, the attention layer includes an attention model, and the decoder layer includes a long short-term memory model. The fault detection model of the present application effectively solves the problem of inattention in the model by introducing an attention mechanism and using a long short-term memory model as an encoder and decoder, and improves the prediction accuracy when processing long time series, thereby improving the detection accuracy of fan fault detection.

[0027] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart of the main steps of a fan fault detection method according to an embodiment of the present application. Figure 1 As shown, the fan fault detection method in the embodiment of the present application mainly includes the following steps S101 to S102.

[0028] Step S101: Acquire actual operation data of the wind turbine.

[0029] In this embodiment, the actual operation data of the wind turbine is obtained through the SCADA system. The actual operation data includes but is not limited to: ambient wind speed, ambient temperature, frequency, active power, reactive power, impeller speed, generator speed, wind angle, wind direction angle, yaw position, yaw speed, grid-side A-phase current, grid-side B-phase current, grid-side C-phase current, grid-side A-phase voltage, grid-side B-phase voltage, grid-side C-phase voltage, horizontal acceleration, vertical acceleration, blade angular velocity, blade pitch angle, pitch motor temperature, hydraulic system oil temperature, hydraulic system oil pressure, cabin temperature, gearbox oil temperature, gearbox high-speed bearing temperature, generator slip ring temperature, generator stator winding temperature U1, generator stator winding temperature V1, generator stator winding temperature W1, generator drive side bearing temperature, converter controller temperature, converter control cabinet temperature, converter rotor side L1 temperature, converter rotor side L2 temperature, converter rotor side L3 temperature and converter grid side reactor temperature.

[0030] Step S102: input the actual operation data into a pre-trained fault detection model for detection, so that the pre-trained fault detection model outputs a detection result of whether the fan fails; the fault detection model includes multiple fault detection modules, each of which includes an input layer, an encoder layer, an attention layer, a decoder layer and an output layer connected in sequence, wherein the encoder layer includes a long short-term memory model, the attention layer includes an attention model, and the decoder layer includes a long short-term memory model.

[0031] In this embodiment, the actual operation data is input into the trained fault detection model to obtain the detection result of whether the fan has a fault output by the fault detection model. The fault detection model includes multiple fault detection modules, each of which includes an input layer, an encoder layer, an attention layer, a decoder layer and an output layer connected in sequence, wherein the encoder layer and the decoder layer are constructed based on the long short-term memory (LSTM) model, and the attention layer is constructed based on the attention model.

[0032] Based on the method described in steps S101 to S102 above, the fault detection model of the present application effectively solves the problem of inattention in the model by introducing an attention mechanism and using a long short-term memory model as an encoder and decoder, and improves the prediction accuracy when processing long time series, thereby improving the detection accuracy of fan fault detection.

[0033] See attached Figure 2 , Figure 2 is a schematic diagram of the structure of an encoder and a decoder according to an embodiment of the present application. Figure 2 As shown in Figure 1, the encoder is responsible for encoding the input sequence into a fixed-length vector, and the decoder is responsible for generating the output sequence based on this vector. However, this model has some problems when processing long sequences, because the fixed-length vector may not be able to preserve all the information in the long sequence, especially when generating long outputs.

[0034] To solve this problem, the attention mechanism is introduced. The attention mechanism allows the decoder to dynamically focus on different parts of the input sequence when generating each output. Specifically, when the decoder generates a certain output, it calculates the attention weights of each position in the input sequence based on the similarity between the current state and the state of each position in the input sequence. Then, the input sequence states with attention weights are weighted and summed to obtain an attention vector, which serves as the basis for the decoder to generate the current output. The structure of the encoder and decoder after adding the attention mechanism is shown in the figure below. Figure 3 shown.

[0035] The fault detection model proposed in this application adopts an encoder and decoder structure based on the attention mechanism, in which both the encoder and the decoder use the long short-term memory (LSTM) model. By introducing the attention mechanism (Attention), the fault detection model of this application can overcome the limitations of traditional encoder and decoder models in processing long sequences and improve the prediction performance of the model. At the same time, since the long short-term memory (LSTM) model is used as the encoder and decoder, the model can also process sequence data with time dependence, which is suitable for tasks such as fault detection that require long time series prediction. The structure of the fault detection model is as follows Figure 4 shown.

[0036] In one embodiment, before obtaining the actual operation data of the wind turbine, the method further includes: obtaining a time series of the wind turbine; and training the fault detection model based on the time series to determine a fault warning threshold.

[0037] Specifically, before performing fault detection on the wind turbine, the fault detection model is first trained. The original wind turbine data of a certain time step collected by the SCADA system is obtained as a time series. The original wind turbine data includes but is not limited to ambient wind speed, ambient temperature, frequency, active power, reactive power, impeller speed, generator speed, wind angle, wind direction angle, yaw position, yaw speed, grid-side A-phase current, grid-side B-phase current, grid-side C-phase current, grid-side A-phase voltage, grid-side B-phase voltage, grid-side C-phase voltage, horizontal acceleration, vertical acceleration, blade angular velocity, blade pitch angle, pitch motor temperature, hydraulic system oil temperature, hydraulic system oil pressure, cabin temperature, gearbox oil temperature, gearbox high-speed bearing temperature, generator slip ring temperature, generator stator winding temperature U1, generator stator winding temperature V1, generator stator winding temperature W1, generator drive side bearing temperature, converter controller temperature, converter control cabinet temperature, converter rotor side L1 temperature, converter rotor side L2 temperature, converter rotor side L3 temperature and converter grid side reactor temperature.

[0038] The fault detection model is trained based on the time series. When the result output by the fault detection model meets the preset conditions, the model training is determined to be completed, and the fault warning threshold is determined based on the model output result.

[0039] In one embodiment, the time series includes three-dimensional data at multiple moments; the training of the fault detection model based on the time series to determine the fault warning threshold includes: preprocessing the time series to obtain a processed time series; inputting the processed time series into the fault detection model, each fault detection module in the fault detection model outputs a predicted output value at a moment based on the three-dimensional data at a moment in the time series, and obtaining a predicted sequence based on the predicted output value; calculating the root mean square error and mean absolute percentage error of the predicted sequence; when the root mean square error and the mean absolute percentage error are both less than a preset threshold, the fault detection model training is completed; and the fault warning threshold is determined based on the root mean square error.

[0040] Specifically, the time series is preprocessed to obtain preprocessed [sample, time step, feature] three-dimensional time series data X = (X1, X2, X3...Xt).

[0041] The preprocessed time series is input into the fault detection model. Each fault detection module in the fault detection model is responsible for processing the three-dimensional data X at a moment, and outputs a predicted output value based on the three-dimensional data X at a moment. According to the predicted output value, a predicted sequence (Yt+1, Yt+2, Yt+3, ..., Yt+L) is obtained, where t is the length of the input time series and L is the time step.

[0042] The root mean square error and mean absolute percentage error of the prediction sequence are calculated. When both the root mean square error and the mean absolute percentage error are less than the preset threshold, the fault detection model training is determined to be completed, and the fault warning threshold is determined based on the root mean square error.

[0043] In one embodiment, the preprocessing of the time series to obtain a processed time series includes: based on the 3-Sigma rule and a preset normal data range, removing data in the time series that is outside the preset normal data range to obtain a processed time series.

[0044] Specifically, the outlier elimination method based on the 3-Sigma rule is used to remove abnormal data in the time series. The preset normal data range includes (μ-3σ, μ+3σ). The preset normal data range is used to remove abnormal data in the time series outside the preset normal data range to obtain the processed time series. The processed time series is the health data of the wind turbine.

[0045] In one embodiment, the processed time series is input into the fault detection model, each fault detection module in the fault detection model outputs a predicted output value at a moment based on the three-dimensional data at a moment in the time series, and a predicted sequence is obtained based on the predicted output value, including: inputting the processed time series into the encoder layer for encoding processing to obtain a processed encoder layer hidden state sequence; determining an attention vector sequence corresponding to the encoder layer hidden state sequence based on the processed encoder layer hidden state sequence and the decoder layer hidden state output by the decoder layer; inputting the attention vector sequence into the decoder layer for decoding processing to obtain a predicted output value sequence corresponding to the time series; inputting the predicted output value sequence into the output layer, calculating the predicted output value sequence through the activation function of the output layer, and obtaining a predicted sequence.

[0046] Specifically, the processed time series is input to the encoder layer, and the encoder layer encodes the time series to obtain the encoder layer hidden state sequence. The encoder layer hidden state sequence is batch normalized, and the normalized encoder layer hidden state sequence is compared with the decoder layer hidden state output by the decoder layer to determine the attention vector sequence corresponding to the encoder layer hidden state sequence. The attention vector sequence is then input to the decoder layer for decoding, and the predicted output value sequence corresponding to the time series is calculated. The predicted output value sequence is input to the output layer, and the predicted output value sequence is calculated through the RELU activation function of the output layer to obtain the predicted sequence.

[0047] In one embodiment, the processed time series is input into the encoder layer for encoding processing to obtain a processed encoder layer hidden state sequence, including: inputting the time series into the encoder layer to determine the encoder layer hidden state sequence corresponding to the time series; and performing batch normalization processing on the encoder layer hidden state sequence to obtain a processed encoder layer hidden state sequence.

[0048] See attached Figure 5 , Figure 5 is a schematic diagram of the structure of a long short-term memory model according to an embodiment of the present application. Figure 5 As shown in Figure 1, the LSTM model of the encoder layer consists of three main gates, namely the forget gate, input gate, and output gate. The forget gate is used to perform feature selection on the input data to obtain the current state of the data; the input gate is used to receive the input of the data; and the output gate is used to output the current state of the data.

[0049] The forget gate can be expressed as: (1) in, For the sigmoid activation function, the output is close to 0 or 1. Represents input data, represents the hidden state of the previous layer, represents the input weight, Indicates the input offset value.

[0050] The input gate can be expressed as: (2) in, is the sigmoid activation function, Represents input data, represents the hidden state of the previous layer, represents the input weight, Indicates the input offset value.

[0051] The output gate controls the output of the cell state value, which can be expressed as: (3) in, is the sigmoid activation function, Represents input data, represents the hidden state of the previous layer, represents the input weight, Indicates the input offset value.

[0052] is a storage unit, which can be expressed as: (4) in, is the activation function, Represents input data, represents the hidden state of the previous layer, represents the input weight, Indicates the input offset value.

[0053] is the update of the current output state, which can be expressed as: (5)

[0054] is the final output of the current hidden state and its input to the next encoder layer, which can be expressed as: (6)

[0055] Specifically, the time series is input into the encoder layer to determine the encoder layer hidden state sequence corresponding to the time series; the encoder layer first encodes the input time series Xi = (X1, X2, X3…Xt) to obtain the encoder layer hidden state sequence , in the encoder layer, for each moment i, the hidden state of the previous moment i-1 is And the current input Xi to calculate the hidden state at the current moment The calculation formula of the encoder layer is as follows: (7) In the formula, is the hidden state at time i calculated by the encoder layer, is the hidden state at time i−1, Xi is the input at the current time, t is the time step, is the calculation function of the long short-term memory model, and the calculation formula is as shown in the above formula (1) to formula (6).

[0056] The encoder layer hidden state sequence is batch normalized to obtain a processed encoder layer hidden state sequence. The batch normalization process can be to calculate the mean and standard deviation of the hidden state, and continuously adjust the intermediate output of the model to make the intermediate output of each layer more stable and prevent the model from overfitting.

[0057] In one embodiment, the method of determining the attention vector sequence corresponding to the encoder layer hidden state sequence based on the processed encoder layer hidden state sequence and the decoder layer hidden state output by the decoder layer includes: comparing the encoder layer hidden state sequence with the decoder layer hidden state to determine the attention weight distribution corresponding to the encoder layer hidden state sequence; and determining the attention vector sequence corresponding to the encoder layer hidden state sequence based on the encoder layer hidden state sequence and the attention weight distribution.

[0058] Specifically, the encoder layer encodes the time series into an encoder layer hidden state sequence (hj), where j represents the time step in the input time series. When the decoder layer generates a sequence at a certain time i, there will be a corresponding decoder layer hidden state (Hi). By comparing Hi and hj, the attention weight from time j to time i is calculated.

[0059] Y at prediction time i i When the decoder layer is in Y i The decoder layer hidden state H obtained previously i , using the decoder layer hidden state H at time i i The hidden state sequence h of the encoder layer at time j obtained by the encoder in the input sequence j By comparison, the function F(h j , H i ) to calculate the attention weights at each moment of the time series , calculate the attention weight The formula is as follows: (8) (9) Among them, eij is the number of attention associations from time j to time i, and eij measures the hidden state h at time j in the time series. j and the hidden state H at time i in the output sequence i The degree of match between them.

[0060] is the time series X at time j in the encoder j The corresponding encoder layer hidden state h j , and the decoder generates the sequence Y i The decoder layer hidden state at the previous moment Compare and calculate each time series X j With the prediction sequence Y i The degree of match between them.

[0061] is the attention weight, which indicates the degree of attention paid to the hidden state at time j in the time series when generating the output sequence at time i.

[0062] The higher the matching degree, and The larger it is, the more attention the output at time i pays to the input at time j, that is, the greater the influence of the input at time j on the output at time i.

[0063] After the attention weight is calculated, according to the attention weight and the encoder layer hidden state sequence h j , calculate the attention vector Ci′. The attention vector calculation formula is as follows: (10) Among them, Ci′ is the output vector of the attention layer at time i, is the hidden state sequence of the encoder layer at time j, is the attention weight from time j to time i, and t is the time step.

[0064] In one embodiment, the step of inputting the attention vector sequence into a decoder layer for decoding to obtain a predicted output value sequence corresponding to the time series includes: Specifically, the attention vector Ci′ is input as an input sequence to the decoder layer, and the decoder layer determines the predicted output value sequence corresponding to the time series based on the attention vector. At each time step i of the decoder layer, the output of the previous time step and the attention vector Ci′ as input. The decoder layer uses these inputs to update its internal state and produce the output for the current time step The calculation formula of the decoder layer is as follows: (11) (12) (13) (14) (15) (16) in, For the Forgotten Gate, is the input gate, Oi is the output gate, Li and Ci represent the update of the cell state, Ci−1 is the cell state at time i-1, δ is the sigmoid activation function, Wf, Wi, Wc and Wo are the input weights, bf, bi, bc and bo are the input bias values, y i−1 is the predicted output value of the decoder at the i-1th moment, is the hidden state of the decoder at the i-th moment, and Ci′ is the output vector of the attention layer at the i-th moment.

[0065] The predicted output value at time i obtained from the decoder layer output , and then Yi is calculated through the relu activation function of the fully connected layer to obtain the final prediction sequence Y (Y1, Y2, Y3…Yt).

[0066] In one embodiment, the calculation formulas for the root mean square error and mean absolute percentage error of the prediction sequence are as follows: (17) (18) in, is the true value of the i-th data in the prediction sequence, is the predicted value of the i-th data in the sequence, and T is the length of the sequence.

[0067] In one embodiment, when the root mean square error and the mean absolute percentage error are less than a preset threshold, the prediction ability of the fault detection model is good, the fault detection model training is completed, and the fault warning threshold is determined based on the root mean square error.

[0068] Specifically, the working status of the wind turbine is distinguished by the changing trend and mutation degree of the root mean square error (RMSE), and the fault warning threshold is set by the exponentially weighted moving average (EWMA). EWMA is an exponentially decreasing weighted moving average. If the data is close, the weight is large. The farther the data is, the smaller the weight. The threshold set by EWMA can effectively detect the RMSE fluctuation of the residual, thereby monitoring the operating status of the wind turbine.

[0069] The Exponentially Weighted Moving Average (EWMA) is expressed as: (19) in, represents the weight of historical data, Rt represents the average value of the root mean square error (RMSE), S is the exponentially weighted moving average (EWMA), and the initial value S 0 Represents the average RMSE of wind turbine forecast residuals over a period of time.

[0070] The fault warning threshold for detecting the operating status of the wind turbine is the upper limit of EWMA, and its calculation formula is: (20) in, and They represent the weighted mean and standard deviation of RMSE respectively, and X is a constant related to the position of the threshold. By training the normal data of the fan, the size of the X value can be determined to ensure the appropriate fault warning threshold and avoid false positives in the detection results.

[0071] In one embodiment, the actual operation data is input into a pre-trained fault detection model for detection, so that the pre-trained fault detection model outputs a detection result of whether the fan has a fault, including: pre-processing the actual operation data to obtain processed actual operation data; inputting the processed actual operation data into a pre-trained fault detection model to obtain a root mean square error corresponding to the actual operation data; determining whether the root mean square error corresponding to the actual operation data is greater than a fault warning threshold; if the root mean square error is greater than the fault warning threshold, determining that the fan has a fault; if the root mean square error is not greater than the fault warning threshold, determining that the fan has not a fault.

[0072] See attached Figure 6 , Figure 6 FIG. 1 is a schematic diagram of a detailed flow chart of a fan fault detection method according to an embodiment of the present application. Figure 6 As shown, a fan fault detection method according to an embodiment of the present application includes the following steps: Step S201: Acquire the time series of the wind turbine.

[0073] Step S202: pre-processing the time series based on the 3-Sigma rule and a preset normal data range to obtain a processed time series.

[0074] Step S203: Select a variable that has a strong correlation with the output variable as an input variable.

[0075] Step S204: training a fault detection model based on the processed time series.

[0076] Step S205: using the root mean square error to determine the fault warning threshold.

[0077] Step S206: Acquire actual operation data of the wind turbine.

[0078] Step S207: pre-process the actual operation data to obtain processed actual operation data.

[0079] Step S208: Select the same input and output variables as the model.

[0080] Step S209: input the processed actual operation data into the pre-trained fault detection model for detection.

[0081] Step S210: determine whether the root mean square error of the model output is greater than the fault warning threshold; if so, execute step S211; if not, execute step S212.

[0082] Step S211: The fan detection result is that a failure occurs.

[0083] Step S212: The fan detection result is that no failure occurs.

[0084] Specifically, by training the established fault detection model, a trained fault detection model is obtained, and a fault warning threshold is determined. During actual detection, the actual operation data of the fan is obtained, the actual operation data is preprocessed, and the processed actual operation data is obtained, and then the processed actual operation data is input into the fault detection model. When the root mean square error of the model output is greater than the fault warning threshold, the fan detection result is that a fault has occurred; when the root mean square error of the model output is not greater than the fault warning threshold, the fan detection result is that no fault has occurred.

[0085] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effect of the present application, different steps do not have to be executed in such an order, and they can be executed simultaneously (in parallel) or in other orders. These adjusted schemes are equivalent to the technical schemes described in this application, and therefore will also fall within the scope of protection of this application.

[0086] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium, etc. that can carry the computer program code.

[0087] Another aspect of the present application provides an electronic device.

[0088] See attached Figure 7 , Figure 7 FIG. 1 is a main structural block diagram of an electronic device according to an embodiment of the present invention. Figure 7 As shown, in an embodiment of an electronic device according to the present application, the electronic device may include at least one processor 12; and a memory 11 connected to the at least one processor in communication; wherein a computer program is stored in the memory, and when the computer program is executed by at least one processor, the method described in any of the above embodiments is implemented. For ease of explanation, only the parts related to the embodiments of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present invention. The electronic device may be an electronic device formed by various electronic devices.

[0089] Another aspect of the present application also provides a computer-readable storage medium.

[0090] In an embodiment of a computer-readable storage medium according to the present application, the computer-readable storage medium may be configured to store a program for executing the fan fault detection method of the above method embodiment, and the program may be loaded and run by a processor to implement the above fan fault detection method. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium may be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.

[0091] So far, the technical solution of the present application has been described in conjunction with an embodiment shown in the accompanying drawings, but it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.

Claims

1. A fan fault detection method, characterized in that: The method comprises: Obtain the actual operation data of the fan; The actual operation data is input into a pre-trained fault detection model for detection, so that the pre-trained fault detection model outputs a detection result of whether the fan fails; the fault detection model includes multiple fault detection modules, each of which includes an input layer, an encoder layer, an attention layer, a decoder layer and an output layer connected in sequence, wherein the encoder layer includes a long short-term memory model, the attention layer includes an attention model, and the decoder layer includes a long short-term memory model.

2. The fan fault detection method according to claim 1, characterized in that: Before obtaining the actual operation data of the wind turbine, the method further includes: Obtaining a time series of the wind turbine; The fault detection model is trained based on the time series to determine a fault warning threshold.

3. The fan fault detection method according to claim 2, characterized in that: The time series includes three-dimensional data at multiple moments; The step of training the fault detection model based on the time series to determine a fault warning threshold comprises: Preprocessing the time series to obtain a processed time series; The processed time series is input into the fault detection model, each fault detection module in the fault detection model outputs a predicted output value at a moment based on the three-dimensional data at a moment in the time series, and a predicted sequence is obtained based on the predicted output value; Calculating the root mean square error and mean absolute percentage error of the predicted sequence; When the root mean square error and the mean absolute percentage error are both less than a preset threshold, the fault detection model training is completed; A fault warning threshold is determined based on the root mean square error.

4. The fan fault detection method according to claim 3, characterized in that: The preprocessing of the time series to obtain a processed time series includes: Based on the 3-Sigma rule and a preset normal data range, data outside the preset normal data range in the time series is removed to obtain a processed time series.

5. The fan fault detection method according to claim 3, characterized in that: The processed time series is input into the fault detection model, each fault detection module in the fault detection model outputs a predicted output value at a moment based on the three-dimensional data at a moment in the time series, and a predicted sequence is obtained based on the predicted output value, including: Input the processed time series into the encoder layer for encoding processing to obtain the processed encoder layer hidden state sequence; Determine an attention vector sequence corresponding to the encoder layer hidden state sequence based on the processed encoder layer hidden state sequence and the decoder layer hidden state output by the decoder layer; Inputting the attention vector sequence into the decoder layer for decoding processing to obtain a predicted output value sequence corresponding to the time series; The predicted output value sequence is input into the output layer, and the predicted output value sequence is calculated through the activation function of the output layer to obtain the predicted sequence.

6. The fan fault detection method according to claim 5, characterized in that: The step of inputting the processed time series into the encoder layer for encoding to obtain the processed encoder layer hidden state sequence includes: Inputting the time series into an encoder layer, and determining a hidden state sequence of the encoder layer corresponding to the time series; The encoder layer hidden state sequence is batch normalized to obtain a processed encoder layer hidden state sequence.

7. The fan fault detection method according to claim 5, characterized in that: The step of determining the attention vector sequence corresponding to the encoder layer hidden state sequence based on the processed encoder layer hidden state sequence and the decoder layer hidden state output by the decoder layer comprises: Compare the encoder layer hidden state sequence with the decoder layer hidden state to determine the attention weight distribution corresponding to the encoder layer hidden state sequence; Based on the encoder layer hidden state sequence and the attention weight distribution, determine the attention vector sequence corresponding to the encoder layer hidden state sequence.

8. The fan fault detection method according to claim 1, characterized in that: The step of inputting the actual operation data into a pre-trained fault detection model for detection, so that the pre-trained fault detection model outputs a detection result of whether the wind turbine fails, includes: Preprocessing the actual operation data to obtain processed actual operation data; Inputting the processed actual operation data into a pre-trained fault detection model to obtain a root mean square error corresponding to the actual operation data; Determine whether a root mean square error corresponding to the actual operation data is greater than a fault warning threshold; When the root mean square error is greater than the fault warning threshold, determining that the fan fails; When the root mean square error is not greater than the fault warning threshold, it is determined that no fault occurs to the wind turbine.

9. An electronic device comprising at least one processor and at least one memory, wherein the memory is suitable for storing a plurality of program codes, wherein: The program code is suitable for being loaded and run by the processor to execute the wind turbine fault detection method according to any one of claims 1 to 8.

10. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the wind turbine fault detection method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • CNN-LSTM fan fault prediction method and CNN-LSTM fan fault prediction system based on attention mechanism

    CN112633317A

  • Time sequence prediction method fusing long short-term memory network and attention mechanism

    CN116432697A

  • Fan fault detection method, control device and storage medium

    CN116821730A