A machine learning-based wind turbine fault early warning method
By processing wind turbine data using Isolation Forest and L-SARIMA algorithms, and combining Stacking and Blending models, the problems of data loss and overfitting in wind turbine fault early warning are solved, achieving earlier and more accurate fault early warning.
Patent Information
- Application Number
- CN202411535490.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-10-31
AI Technical Summary
Existing technologies for wind turbine fault early warning suffer from data loss and noise issues, resulting in delayed warning times and the model being prone to overfitting, which affects the timeliness and accuracy of the warning.
The Isolation Forest algorithm is used to remove outlier data, the L-SARIMA algorithm is used to fill in missing data, and a fault warning model is constructed by stacking and blending fusion models. The warning is then given by dynamically adaptive threshold settings.
It improves the accuracy and timeliness of wind turbine fault early warning, effectively avoids overfitting in complex and ever-changing wind turbine operating environments, and ensures the stability and applicability of early warning.
Smart Images

Figure CN119089276B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wind turbine fault early warning, and in particular to a wind turbine fault early warning method based on machine learning. Background Technology
[0002] As traditional power systems gradually evolve into new types of power systems, the scale of wind power is becoming increasingly large, bringing with it more and more problems.
[0003] When wind turbines are not faulty or have already malfunctioned, the former (starting maintenance before any problem arises) disrupts normal operation and wastes manpower and resources; the latter (repairing after a fault occurs) can cause significant damage to the turbine. When we can predict in advance when maintenance will be needed, the repair and maintenance costs of wind turbines will be greatly reduced, significantly avoiding expensive corrective maintenance. Therefore, fault early warning has significant practical implications.
[0004] Generally speaking, the key to fault early warning lies in the sample data preprocessing of the prediction model and the prediction model itself. Current research focuses on optimizing the prediction model and selecting input parameters, that is, analyzing and processing the SCADA data obtained by wind turbines in an offline stable state. The offline training part can be divided into three steps: SCADA data preprocessing; building the data prediction model; and setting the early warning threshold.
[0005] Generally, wind turbines are equipped with SCADA systems. However, due to the wide operating range of wind turbines during normal operation and the high safety thresholds set by the systems, alarm times may be too late, and faults may worsen significantly. Furthermore, when acquiring training data, the remote and harsh environments of wind turbines, coupled with sensor malfunctions, data transmission noise and loss, and limited power output, inevitably lead to data loss and corruption during collection, transmission, and storage. Additionally, overfitting is prone to occur when building early warning models using conventional methods. Therefore, achieving timely early warning for wind turbines is a pressing issue that needs to be addressed in this field. Summary of the Invention
[0006] In view of the above-mentioned deficiencies of the prior art, the present invention provides a wind turbine fault early warning method based on machine learning to improve the accuracy and timeliness of wind turbine early warning.
[0007] The present invention provides a machine learning-based method for early warning of wind turbine faults, comprising the following steps:
[0008] S1. Data acquisition step, wherein the data includes historical sample data and verification data of healthy wind turbines, and the data is preprocessed;
[0009] S2. Model training steps: The model includes a Stacking fusion model and a Blending fusion model. The preprocessed historical sample data of healthy wind turbines is divided into a training set and a test set. The training set is input into the Stacking fusion model and the Blending fusion model for training, and the test set is used for comprehensive testing to obtain the Stacking offline model and the Blending offline model.
[0010] S3. Model selection step: The validation data is sent to the Stacking offline model and the Blending offline model respectively, and the residual values of the predicted values and the actual values of the two offline models are obtained respectively. The two residual values are compared with the threshold. When the residual value of the Stacking offline model is greater than or equal to the threshold, the Blending offline model is selected as the optimal model; otherwise, the Stacking offline model is selected as the optimal model.
[0011] S4. Input the actual data of the wind turbine into the optimal model to determine whether the wind turbine has failed.
[0012] Furthermore, the data preprocessing method includes:
[0013] The Isolation Forest algorithm was used to remove outlier data from historical sample data of healthy wind turbines.
[0014] The L-SARIMA imputation algorithm is used to impute data step by step based on the missing data situation.
[0015] Furthermore, the Stacking fusion model includes a first learning layer and a second learning layer. The first learning layer includes an XGBoost module, an SVM module, a neural network module, an RF module, an LR module, and a decision tree module. The second learning layer includes a Lasso regression module.
[0016] Furthermore, the method for setting the residual threshold includes:
[0017] A moving weighted exponential average method is used to smooth the output value and the true value;
[0018] The KS test method is used to select the length of the smallest subset of data that can reflect the characteristics of the original parent dataset as the size N of the sliding window;
[0019] Calculate the window residual based on the data in the window. Re And based on the window residual Re Set the current threshold T, then move the data window frame by frame and set a new threshold.
[0020] Furthermore, the window residual Re for:
[0021] ;
[0022] Where σ is the standard deviation of the residual under normal conditions, and Re t =y t- -x t y t x is the predicted value of the data in the window. t This represents the actual value of the data in the window.
[0023] Furthermore, the threshold T within the window is:
[0024] T = E(Re) + 3δ;
[0025] Where E(Re) and δ are the expectation and bias of the residual dataset within the window, respectively.
[0026] Furthermore, the verification data is historical data from the database or historical data from the target wind turbine.
[0027] Compared with the prior art, the present invention has the following technical effects:
[0028] This invention utilizes a stacking and blending integrated algorithm to construct a fault early warning model. Both algorithms share the same core concept and can effectively overcome the limitations of a single algorithm by combining various algorithms to leverage their strengths and avoid their weaknesses. The fusion model provides early warning and diagnosis of fault conditions, offering fast computational response, wide applicability, strong versatility, and stable early warning effects. It can provide early fault warnings while ensuring predictive accuracy, and effectively avoids overfitting due to excessive model complexity, especially in situations involving a wide range of wind turbine operations and diverse data.
[0029] This invention employs a method combining machine learning and traditional statistical analysis to impute outlier wind field data, effectively preserving the trend and characteristics of time-series data and resolving the missing data issue encountered when storing SCADA data. For early warning models that require extensive training with healthy wind field data, the accuracy and stability of the model are significantly improved.
[0030] The following will further explain the concept, specific structure, and technical effects of the present invention in conjunction with the accompanying drawings, so as to fully understand the purpose, features, and effects of the present invention. Attached Figure Description
[0031] Figure 1 This is a flowchart of the wind turbine fault early warning method in a specific embodiment of the present invention;
[0032] Figure 2 This is a sample data image before abnormal data removal in a specific embodiment of the present invention;
[0033] Figure 3 This is a sample data image after abnormal data removal in a specific embodiment of the present invention;
[0034] Figure 4 This is a sample data image before missing data filling in a specific embodiment of the present invention;
[0035] Figure 5 This is a sample data diagram after missing data filling in a specific embodiment of the present invention;
[0036] Figure 6 This is a schematic diagram of the Stacking fusion model in a specific embodiment of the present invention;
[0037] Figure 7 This is a schematic diagram of the structure of the blending model in a specific embodiment of the present invention. Detailed Implementation
[0038] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, unless otherwise specified, the following embodiments and features described therein can be combined with each other.
[0039] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the illustrations only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0040] Some exemplary embodiments of the invention have been described for illustrative purposes. It should be understood that the invention may be implemented in other ways not specifically shown in the accompanying drawings.
[0041] like Figure 1 As shown, a machine learning-based wind turbine fault early warning method of the present invention includes the following steps:
[0042] S1. Data acquisition step, wherein the data includes historical sample data and verification data of healthy wind turbines, and the data is preprocessed. The preprocessing method includes removing abnormal data from the historical sample data of healthy wind turbines using the IsolationForest algorithm, and then filling in the data using the L-SARIMA filling algorithm. In this embodiment, the data is SCADA data obtained from the offline stable state unit, including electrical data such as voltage, current, and power, and physical data such as gearbox oil temperature and speed. Due to remote geographical location, harsh environment, and variable working conditions, sensor failures, noise and data loss during data transmission, as well as equipment power output and abnormal issues often occur, inevitably affecting the integrity and quality of the data. This also has a significant impact on the early warning model that requires health data of the wind turbine for training. Therefore, it is important to remove outliers and supplement missing data. The current real-time data of the target early warning wind turbine is the SCADA data of the target early warning wind turbine. The historical health sample data is used as the training set, and the normal operation data of the target wind turbine is used as the test set. The above data is processed as follows:
[0043] S11. Remove outlier data using the Isolation Forest algorithm.
[0044] Due to the large volume of collected data, much of it is meaningless and redundant. To effectively remove abnormal and meaningless data, existing technologies typically employ clustering algorithms such as KMEANS and DBSCAN. However, these algorithms suffer from high computational costs and high sensitivity to parameter selection, making them unsuitable for wind turbine data with large volumes and high dimensionality. Therefore, this embodiment uses the Isolation Forest algorithm to remove abnormal data from the wind turbine SCADA data. It isolates sample points by constructing random decision trees and uses the path length required for isolation to determine if a sample is an anomaly; shorter path lengths indicate a higher likelihood of an anomaly. Finally, an anomaly score is assigned, and data exceeding this score is removed. The data processing flow of the Isolation Forest algorithm includes:
[0045] S111, Data acquisition step: Randomly extract a subsample set from the training dataset.
[0046] S112, Tree structure construction steps: For each subset of samples, construct an Isolation Tree. During the tree construction process, randomly select a feature and split on the random value of that feature until each sample point is isolated individually.
[0047] S113, Path length calculation step: Calculate the average path length of each sample point in all isolated trees, where the path length is the distance from the root node to the leaf node of the tree.
[0048] S114. Anomaly scoring step: Set a scoring threshold, calculate the anomaly score based on the path length. The shorter the path length, the higher the anomaly score. When the anomaly score is greater than the scoring threshold, it is removed.
[0049] S12. Data filling is performed using the L-SARIMA filling algorithm.
[0050] Existing technologies using Linear interpolation can quickly fill short missing data segments distributed across various data sources while ensuring continuity, but its effectiveness is poor for longer missing segments. For longer missing segments, the SARIMA algorithm is used. This algorithm combines seasonality, autoregression, and difference components. Although its computational speed is slower than Linear interpolation, it performs well for time series data with seasonal components, such as wind turbine data. Finally, for extremely long missing data segments exceeding several hours, using the SARIMA model would distort the results; therefore, data from the same time point one to three days prior is used for filling. Based on the shortcomings of existing technologies, this embodiment employs an improved SARIMA filling algorithm for data filling. This method combines preliminary filling and further filling, ensuring both data continuity and rationality while maintaining computational speed. It is particularly effective in supplementing complex and variable missing data in wind turbine data. The process of the improved SARIMA filling algorithm for data filling includes:
[0051] S121. Use Linear interpolation to fill in missing data portions with a length less than 3. The Linear interpolation formula is:
[0052] ;
[0053] In the formula, (x0, y0) and (x1, y1) are known interpolation points, x is the point where we want to know the corresponding y value, and x is between x0 and x1, and y is the interpolation result at point x.
[0054] S122. For missing data segments with a length greater than 3 and less than 48, first use time series decomposition to identify the seasonality of the data and examine the trend, seasonality, and residuals. Then, use the ADF (Augmented Dickey-Fuller) test to determine whether the time series is stationary. If the time series is non-stationary, perform first-order differencing or seasonal differencing to make it stationary.
[0055] S123. Determine the SARIMA model parameters.
[0056] First, the difference order d and seasonal difference order D are determined by analyzing the truncation characteristics of the autocorrelation function (ACF) and partial autocorrelation function (PACF). Then, the order q of the moving average component and the order Q of the seasonal moving average component are determined by the ACF plot, and the order p of the autoregressive component and the order P of the seasonal autoregressive component are determined by the PACF plot. Next, the ACF plot is used to search for significant changes in the autocorrelation coefficient with the lag order. If this significant pattern repeats every k lags, then the value of k is taken as the seasonal period S. Finally, the maximum likelihood estimation is used to fit the parameters p, d, q, P, D, Q, and S.
[0057] S124. After determining the model parameters, substitute them into the SARIMA model. Then, iterate through all missing segments and fill in the missing time points using the fitted SARIMA model parameters.
[0058] S125. Use data from the same time point one to three days prior to fill in data segments with missing lengths greater than 48.
[0059] Taking the gearbox oil temperature data of 17425 sets from the first five months of a wind farm in Northeast China in 2024 as an example, the results before and after removing outlier data are as follows: Figure 2 and Figure 3 As shown in the figure, a comparison chart is generated after removing outlier data from 17,425 sets of data. Figure 4 and Figure 5 As shown.
[0060] S2. Model training steps: The model includes a Stacking fusion model and a Blending fusion model. The training set is input into the Stacking fusion model and the Blending fusion model for training, respectively. Comprehensive testing is performed using a test set to determine the fault warning model under the current wind turbine operating conditions. After clustering analysis and data dimensionality reduction, two fault warning models suitable for different situations are constructed using the Stacking and Blending ensemble algorithms. Both can integrate data information obtained from training with multiple different algorithms, effectively overcoming the limitations of a single algorithm, giving full play to the advantages of each algorithm, and complementing each other's strengths.
[0061] S21. Train the Stacking fusion model using healthy historical sample data to obtain the Stacking offline model.
[0062] like Figure 5The diagram shown illustrates the structural principle of the Stacking fusion model used in this embodiment. The Stacking fusion model includes a first learning layer and a second learning layer. In this embodiment, the first learning layer consists of six base learners, and the second learning layer is a meta-learner, which includes a Lasso regression model. During training, the original training data is first learned through each base learner. Then, the outputs of the base learners are stacked to form a new dataset. This new dataset is then fed into the second-layer meta-learner for logistic regression, whereby the output of the first-layer base learner is used as a feature to fit the prediction result.
[0063] In this embodiment, the first learning layer selects modules with high fitting accuracy, such as XGBoost, SVM, neural network, RF, LR, and decision tree. The second learning layer uses a relatively simple Lasso regression generalized linear model. In this embodiment, the core idea of the blending algorithm is completely consistent with Stacking, both using two concatenated algorithms. The first layer consists of multiple base learners, and the second layer has exactly one meta-learner. Data segmentation is also consistent with the Stacking algorithm described above. After segmentation, the training set is input into the first-layer base learner. After training, validation is performed on the validation set, and the new validation results are then used to train the meta-learner.
[0064] In this embodiment, the training method for the Stacking fusion model includes:
[0065] S211. After training the historical sample data through the first learning layer, stack the outputs of each base learner to obtain a new training dataset and a new test dataset.
[0066] To address the issue of insufficient sample size in the feature matrix of the meta-learner, a method of separating training and validation sets for cross-validation is employed again. The preprocessed data is divided into training and test sets. The training set is then further divided into several parts, with one part designated as the validation set and the remaining four parts as the training set. After training the model on a specific training set, predictions are made on both the validation and test sets. This process is repeated until all combinations have been exhausted. Then, different algorithms are used for cross-training and testing. Finally, a new, stacked dataset is fed into the two-layer meta-learner for regression fitting, and the results are output.
[0067] In this embodiment, the algorithms of the XGBoost module, SVM module, neural network module, RF module, LR module and decision tree module in the first learning layer are ordered as Algorithm 1, Algorithm 2, Algorithm 3, Algorithm 4, Algorithm 5 and Algorithm 6 in sequence. The dataset is divided into training set and test set. The training set is divided into five parts, one of which is used as a validation subset and the other four parts are used as training subsets.
[0068] Taking Algorithm 1 as an example, after training and validation on four training subsets and one validation subset, Algorithm 1 obtains a single prediction model 1-1 and a predicted training value 1-1. Another training set is used as the validation subset, and the remaining four training sets are used as training subsets to continue training Algorithm 1 to obtain a single prediction model 1-2 and a predicted training value 1-2. The training subset and validation subset are changed until all datasets are traversed to obtain a single prediction model 1-3 and a predicted training value 1-3, a single prediction model 1-4 and a predicted training value 1-4, and a single prediction model 1-5 and a predicted training value 1-5. The test set data is input into the single prediction model 1-1 to the single prediction model 1-5 to obtain the prediction test set 1.
[0069] Algorithms 2-6 follow the same steps as described above. Algorithm 2, through cross-training and validation, yields single prediction model 2-1 and prediction training value 2-1, single prediction model 2-2 and prediction training value 2-2, single prediction model 2-3 and prediction training value 2-3, single prediction model 2-4 and prediction training value 2-4, and single prediction model 2-5 and prediction training value 2-5. The test set data is input into single prediction models 2-1 to 2-5 to obtain prediction test set 2. Algorithm 3, through cross-training and validation, yields single prediction model 3-1 and prediction training value 3-1, single prediction model 3-2 and prediction training value 3-2, and single prediction model 3-3 and prediction training value 2-5. Training value 3-3, single prediction model 3-4 and predicted training value 3-4, single prediction model 3-5 and predicted training value 3-5, the test set data is input into single prediction models 3-1 to 3-5 to obtain prediction test set 3; Algorithm 4, through cross-training and validation, obtains single prediction model 4-1 and predicted training value 4-1, single prediction model 4-2 and predicted training value 4-2, single prediction model 4-3 and predicted training value 4-3, single prediction model 4-4 and predicted training value 4-4, single prediction model 4-5 and predicted training value 4-5, the test set data is input into single prediction models 4-1 to 4-5 to obtain prediction test set 3; Test set 4; Algorithm 5, through cross-training and validation, yields single prediction model 5-1 and prediction training value 5-1, single prediction model 5-2 and prediction training value 5-2, single prediction model 5-3 and prediction training value 5-3, single prediction model 5-4 and prediction training value 5-4, single prediction model 5-5 and prediction training value 5-5. The test set data is input into single prediction model 5-1 to single prediction model 5-5 to obtain prediction test set 5; Algorithm 6, through cross-training and validation, yields single prediction model 6-1 and prediction training value 6-1, single prediction model 6-2 and prediction training value 6-2, single prediction model 6-3 and prediction training value 6-3, single... Prediction model 6-4 and prediction training value 6-4, single prediction model 6-5 and prediction training value 6-5, the test set data are input into single prediction models 6-1 to single prediction models 6-5 to obtain prediction test set 6; the above prediction training values 1-1 to prediction training value 1-5, prediction training value 2-1 to prediction training value 2-5, prediction training value 3-1 to prediction training value 3-5, prediction training value 4-1 to prediction training value 4-5, prediction training value 5-1 to prediction training value 5-5, and prediction training value 6-1 to prediction training value 6-5 are superimposed to form a new training dataset, and the above prediction test sets 1 to prediction test sets 6 are superimposed to form a new test dataset.
[0070] S212. The new training dataset and the new test dataset are used to obtain the trained final Stacking fusion model, i.e., the Stacking offline model, through logistic regression of the meta-learner.
[0071] S22. Use historical healthy sample data to train the Blending fusion model to obtain the Blending offline model.
[0072] The Blending ensemble model in this embodiment is completely consistent with the Stacking model, both using a two-layer algorithm in series. The first layer has multiple strong learners, and the second layer has exactly one meta-learner. The data splitting method for the training and test sets is the same as that of the Stacking algorithm. The training set is then input into the first-layer base learner, and after training, it is validated on the validation set. The new validation results are then used to train the meta-learner. The algorithm selection in the Blending ensemble model is consistent with that in Stacking. The algorithm selection for each layer of the Blending ensemble model is consistent with that of the Stacking ensemble model. The first layer uses six algorithms with high fitting performance: XGBoost, SVM, neural network, RF, LR, and decision tree. For neural envelope selection, a neural network algorithm with high fitting performance, such as LSTM, is chosen. The second layer uses a relatively simple Lasso regression generalized linear model. The model in the first layer is trained using a training subset to obtain corresponding predicted training values. Then, the validation subset is input into the trained model to obtain corresponding predicted test values. The predicted training values from different algorithms are then combined to form a new training dataset, and the predicted test values from each algorithm are then combined to form a new test dataset. The new training dataset and the new test dataset are then subjected to logistic regression by a meta-learner to obtain the final trained blending model, i.e., the offline blending model. The blending algorithm reduces the complexity of the stacking algorithm, which is prone to overfitting, and eliminates the cross-validation process, significantly reducing the amount of training data required for the meta-learner.
[0073] S3. Model selection step: The validation data is sent to the Stacking offline model and the Blending offline model respectively, and the residual values of the predicted values and the actual values of the two offline models are obtained respectively. The two residual values are compared with the threshold. When the residual value of the Stacking offline model is greater than or equal to the threshold, the Blending offline model is selected as the optimal model; otherwise, the Stacking offline model is selected as the optimal model.
[0074] In this embodiment, the residual is compared with a threshold. When the parameter value reaches the threshold, it is determined that the fan has malfunctioned. Therefore, the threshold setting is directly related to the stability of the final fault warning model alarm. Existing thresholds typically set one or more values, which has drawbacks such as weak generalization ability of fixed thresholds, susceptibility to false alarms, and strong subjectivity of manual setting. To solve this problem, this embodiment adopts a dynamic adaptive threshold setting method, specifically including:
[0075] S31. The output value and the true value are smoothed by using a moving weighted exponential average method.
[0076] To address the potential for extreme values in residuals when wind turbines operate under complex and harsh conditions, a moving weighted exponential average (WFA) method is employed to smooth the output and true values. This method uses weighting coefficients to fully consider accumulated residual information from previous orders, better reflecting recent residual changes. The method is as follows: In the formula, Re t Let Re be the residual at time t. t =y t- -x t y t For the predicted value, x t This is the actual value; β As a weighting coefficient, in this embodiment, it is set to... β =0.9.
[0077] S32. The training set in the validation data is used as the parent dataset. A subset is selected from the parent dataset and a KS test is performed with the parent dataset. When the k value between the subset and the parent set is greater than 0.05, it can be considered that the two datasets have the same distribution pattern. Then, the length of the smallest data subset that can reflect the characteristics of the original dataset is selected as the size N of the sliding window.
[0078] S33. Calculate the window residual based on the data in the window. Re The current threshold is set, and then the data window is moved frame by frame, and a new threshold is set, finally obtaining the threshold for all time points.
[0079] The window residual Re for:
[0080] ;
[0081] Wherein, σ is the standard deviation of the residual under normal conditions, and the threshold is calculated using a fixed threshold calculation method, including the following steps:
[0082] In calculating residuals Re Then, the expected value E( ) of the residual dataset within this window is calculated. R e) and deviation δAccording to the 3-sigma criterion, the threshold T within this window is:
[0083] T=E( Re )+3 δ ;
[0084] This embodiment fully considers the residual change trend of the previous time period within the window when setting the dynamic threshold. The thresholds at each time point are concatenated and plotted to form a fitted residual. R An adaptive threshold plot of trends; it can clearly show the threshold at various time points.
[0085] After obtaining two fault warning models and dynamic thresholds, the offline training phase is complete. Then, a comprehensive testing step is performed using a validation dataset to ultimately determine the warning model. The validation dataset is input into the two fusion models to obtain predicted values and their residuals compared to the true values. These residuals are then compared with the corresponding thresholds to determine the warning time. When the residuals of the models reach or exceed the thresholds, it indicates a large residual, suggesting a significant deviation between the model's predicted values and the actual operating results. Since the model in this embodiment is trained using healthy data, when the deviation between the actual operating value of the wind turbine and the predicted value of the healthy model reaches the threshold, it indicates that the wind turbine is likely to have already failed or is about to fail. The time between this point and the actual time of failure is the warning time.
[0086] In this embodiment, if the early warning model based on the Stacking algorithm exhibits overfitting, the Blending fusion model with better fusion performance is selected as the early warning model. If there is no overfitting, the Stacking fusion model is selected as the early warning model. This is because, in this case, the early warning model based on the Blending algorithm is prone to a rapid decline in learning ability. Overfitting refers to an excessively high degree of fit, meaning that it performs well during training on the original dataset but fails to make good predictions during validation. We can consider excessively large errors from reality as overfitting. The validation data is historical data from the database; to further improve prediction accuracy, historical data from the target wind turbine can also be used for validation.
[0087] S4. Input the actual data of the wind turbine into the optimal model to determine whether the wind turbine has malfunctioned.
[0088] The historical data of the target wind turbine is tested on the trained Stacking fusion model and Blending fusion model through steps S1-S3. After screening out the fusion model that does not show overfitting, the real-time data of the target wind turbine is sent to the screened fusion model to obtain the early warning result of the target wind turbine. It can still have a better fault early warning effect when the wind turbine has a wide operating range, large differences in conditions between wind farms, and diverse data, and has better anti-overfitting and generalization ability.
[0089] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A machine learning-based method for early warning of wind turbine faults, characterized in that, Includes the following steps: S1. Data acquisition step, wherein the data includes historical sample data and verification data of healthy wind turbines, and the data is preprocessed; S2. Model training steps: The model includes a Stacking fusion model and a Blending fusion model. The preprocessed historical sample data of healthy wind turbines is divided into a training set and a test set. The training set is input into the Stacking fusion model and the Blending fusion model for training, and the test set is used for comprehensive testing to obtain the Stacking offline model and the Blending offline model. S3. Model selection step: The validation data is sent to the Stacking offline model and the Blending offline model respectively, and the residual values of the predicted values and the actual values of the two offline models are obtained respectively. The two residual values are compared with the threshold. When the residual value of the Stacking offline model is greater than or equal to the threshold, the Blending offline model is selected as the optimal model; otherwise, the Stacking offline model is selected as the optimal model. The method for setting the threshold of the residual includes: A moving weighted exponential average method is used to smooth the output value and the true value; The KS test method is used to select the length of the smallest subset of data that can reflect the characteristics of the original parent dataset as the size N of the sliding window; Calculate the window residual Re based on the data in the window, and set the current threshold T based on the window residual Re. Then move the data window frame by frame and set a new threshold. The threshold T within the window is: T = E(Re) + 3δ; Where E(Re) and δ are the expectation and bias of the residual dataset within the window, respectively; S4. Input the actual data of the wind turbine into the optimal model to determine whether the wind turbine has malfunctioned.
2. The wind turbine fault early warning method based on machine learning according to claim 1, characterized in that, The data preprocessing method includes: The IsolationForest algorithm is used to remove outlier data from historical sample data of healthy fans. The L-SARIMA imputation algorithm is used to impute data step by step based on the missing data situation.
3. The wind turbine fault early warning method based on machine learning according to claim 1, characterized in that, The Stacking fusion model includes a first learning layer and a second learning layer. The first learning layer includes an XGBoost module, an SVM module, a neural network module, an RF module, an LR module, and a decision tree module. The second learning layer includes a Lasso regression module.
4. The wind turbine fault early warning method based on machine learning according to claim 1, characterized in that, The window residual Re is: ; Where σ is the standard deviation of the residual under normal conditions, and Re t =y t -x t y t x is the predicted value of the data in the window. t This represents the actual value of the data in the window.
5. The wind turbine fault early warning method based on machine learning according to claim 1, characterized in that, The verification data is historical data from the database or historical data from the target wind turbine.
