Short-term wind power prediction method based on COA-CNN-BiLSTM-AM

Through the COA-CNN-BiLSTM-AM method, combined with the convolutional neural network and the bidirectional long short-term memory network, the COA algorithm is used to optimize the hyperparameters, which solves the problems of factor complexity and low parameter adjustment efficiency in wind power power prediction, and achieves higher prediction accuracy and grid stability.

CN118674018APending Publication Date: 2024-09-20ANQING VOCATIONAL & TECHN COLLEGE

Patent Information

Application Number
CN202411166005.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing wind power power prediction methods are difficult to fully capture the temporal and spatial correlations in which wind power is affected by multiple complex factors, and traditional model parameter selection and adjustment are inefficient, resulting in limited prediction accuracy.

Method used

A short-term wind power power prediction method based on COA-CNN-BiLSTM-AM is adopted. The COA algorithm is used to optimize the hyperparameters of the combined model, the CNN and BiLSTM models are combined to extract features, and the attention mechanism is used to dynamically adjust feature attention to improve prediction accuracy.

Benefits of technology

The accuracy and reliability of wind power power prediction are improved, the prediction error is reduced, and the stability and security of the power grid are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674018A
    Figure CN118674018A
Patent Text Reader

Abstract

The invention discloses a short-term wind power prediction method based on COA-CNN-BiLSTM-AM, and the method is characterized in that the method comprises the following steps: S1, preprocessing wind power data; s2, dividing the preprocessed data samples into a training set, a verification set and a test set in proportion; s3, a CNN-BiLSTM-AM combined model is constructed; s4, using a COA algorithm to optimize hyper-parameters of the CNN-BiLSTM-AM combined model; s5, the optimized COA-CNN-BiLSTM-AM combined model is used for predicting the wind power in the future; and S6, performing performance evaluation on the combined model by using MAE, RMSE and R2 as evaluation indexes. The model can simulate a search strategy in the behavior of hunting and avoiding a predator of a raccoon so as to find the optimal configuration of model hyper-parameters. And the model is more suitable for the characteristics of the wind power prediction task, so that the prediction performance is improved, and the model fitting effect is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wind power prediction, and in particular to a short-term wind power prediction method based on COA-CNN-BiLSTM-AM. Background Art

[0002] As the world pays more and more attention to sustainable development and climate change, countries are increasingly investing in and paying more attention to renewable energy. Clean and pollution-free wind energy is one of the most respected renewable energy sources in today's and future energy structures. According to the survey, by the end of 2023, the global cumulative installed capacity of wind power will reach 1021 GW, breaking the milestone of 1000 GW, an increase of 13% over 2022. This shows that the global wind power industry has formed a considerable scale and continues to contribute to the transformation of the global energy structure. Wind power forecasting is a key means to ensure the effective grid connection of wind power, reduce the burden on the power grid and optimize the dispatching strategy. Improving the accuracy of wind power forecasting is of great significance to the safe and stable operation of the power grid and the healthy development of the wind power industry.

[0003] In the field of wind power forecasting, the methods widely adopted at home and abroad include physical methods, statistical methods and machine learning methods. In recent years, with the development of artificial intelligence, some deep learning models have gradually been applied to wind power forecasting, mainly convolutional neural networks (CNN), long short-term memory networks (LSTM), gated recurrent units (GRU) and Transformer models. These methods can learn nonlinear relationships and time series characteristics from historical wind power data, but they also have some shortcomings: on the one hand, wind power is affected by many complex factors such as wind speed, wind direction, geography, and meteorology. These factors have time correlation and spatial correlation. A single model is often difficult to fully capture the complexity and dynamic changes of these factors, resulting in limited prediction accuracy; on the other hand, traditional model parameter selection and adjustment often rely on experience and manual adjustment, which is inefficient and easy to fall into local optimality. Therefore, a short-term wind power forecasting method that comprehensively considers multi-model combination and intelligent optimization of model parameters is needed to improve prediction accuracy and reliability. Summary of the invention

[0004] In order to solve the existing problems, the present invention provides a short-term wind power prediction method based on COA-CNN-BiLSTM-AM. The specific scheme is as follows: A short-term wind power prediction method based on COA-CNN-BiLSTM-AM includes the following steps: S1, wind power data preprocessing; S2, divide the preprocessed data samples into training set, validation set and test set according to the proportion; S3, build a CNN-BiLSTM-AM combined model; S4, using the COA algorithm to optimize the hyperparameters of the CNN-BiLSTM-AM combination model; S5, predicting future wind power using the optimized COA-CNN-BiLSTM-AM combined model; S6, using MAE, RMSE and R 2 As an evaluation index, the performance of the combined model is evaluated.

[0005] Preferably, the preprocessing step in step S1 includes: S11, after identifying missing values ​​in the data set, cubic spline interpolation method is used to fill them in, improving the integrity and availability of the data; S12, Min-Max Normalization method is used to normalize the data to eliminate the dimension and scale differences between different features; S13, using the Pearson correlation coefficient to analyze multiple factors affecting wind power, and screening out all features with a correlation coefficient with wind power greater than 0.5.

[0006] Preferably, the construction of the CNN-BiLSTM-AM combined model in step S3 includes the following steps: S31, in the CNN module, multiple convolution kernels in the convolution layer perform sliding window operations on the input data to extract local features. Each convolution kernel generates a feature map, which represents the feature strength and position in the input data that matches the convolution kernel. By stacking multiple convolution layers, higher-level abstract features are extracted. In order to reduce the feature dimension and reduce the amount of calculation, a pooling layer is added after the convolution layer. The pooling layer retains important information and reduces redundancy by downsampling the feature map; S32, the BiLSTM module receives the feature sequence extracted from the CNN module. For each time step in the input sequence, the BiLSTM generates an output that combines the forward and reverse hidden states. This output also contains the contextual information of the current time step, which helps to more accurately capture the long-term dependencies in the sequence. S33, AM module dynamically adjusts the attention to features at different time steps by weighted integration of BiLSTM output features, focusing on key information and ignoring redundant information; S34, the features after AM weighted processing will be passed to the fully connected layer, which is responsible for mapping the features to the prediction target and outputting the final prediction results.

[0007] Preferably, in step S4, the COA algorithm is used to optimize the hyperparameters of the CNN-BiLSTM-AM combination model, including the following steps: S41, determine the optimization target, and clarify the hyperparameters that need to be optimized in the combined model: the number of convolution kernels of the CNN convolution layer, the number of BiLSTM hidden layer units, the learning rate, and the number of iterations; S42, initialize the population. In the COA algorithm, the population consists of a set of candidate solutions. Each candidate solution represents a specific set of hyperparameter configurations. A set of candidate solutions is randomly generated as the initial population. These candidate solutions are evenly distributed in the search space. S43, design a fitness function, and use the loss function value of the model as the fitness function. During the training process, the model will try to minimize the loss function; S44, update population, COA algorithm updates the population by simulating the hunting behavior and escaping from predators of raccoons. This process includes two stages: the exploration stage simulates the behavior of raccoons attacking and hunting iguanas. Some candidate solutions will be explored based on the current optimal solution to try to find a better solution space area; the development stage simulates the behavior of raccoons escaping from predators. All candidate solutions will be searched locally near the current position to find a more refined solution; S45, iterative optimization, repeats the process of evaluating fitness and updating the population until the predetermined maximum number of iterations is reached. During the iteration process, the population will gradually converge to the optimal solution, that is, find a set of hyperparameter configurations that can maximize the model performance.

[0008] Preferably, in step S5, using the optimized COA-CNN-BiLSTM-AM combined model to predict wind power includes the following steps: S51, applying the optimal hyperparameter configuration finally found to the combined model; S52, using BiLSTM, CNN-BiLSTM and CNN-BiLSTM-AM models to predict wind power in the future time period on the test set data; S53, use the optimized COA-CNN-BiLSTM-AM combined model to predict wind power in the future time period on the test set data.

[0009] Preferably, the performance evaluation of the combined model in step S6 includes: S61, compare the prediction results of the four models COA-CNN-BiLSTM-AM, CNN-BiLSTM-AM, CNN-BiLSTM, and BiLSTM; S62, using MAE, RMSE and R 2 As an evaluation indicator, the model performance is evaluated.

[0010] The beneficial effects of the present invention are: The COA-CNN-BiLSTM-AM method proposed in the present invention uses the COA algorithm to optimize four hyperparameters in the combined model: the number of convolution kernels in the CNN convolution layer, the number of units in the BiLSTM hidden layer, the learning rate, and the number of iterations. COA achieves a good balance between global search and local search by simulating the search strategy of raccoons hunting and avoiding predators in two stages. It can perform extensive global search in the solution space, and perform effective local search when discovering potential high-quality solutions to find the optimal configuration of the model hyperparameters. The COA-CNN-BiLSTM-AM method not only comprehensively captures the potential patterns and laws of wind power data through the combined model, but also performs parameter tuning and structural optimization of the combined model through an intelligent optimization algorithm, thereby improving the prediction accuracy of wind power. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0012] Figure 1 The overall architecture diagram of the COA-CNN-BiLSTM-AM model for wind power prediction; Figure 2 is the correlation heat map; Figure 3 The following is a comparison chart of the prediction results of the four models. DETAILED DESCRIPTION

[0013] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0014] The present invention firstly processes the missing values ​​of the wind power data set and normalizes the data, uses the Pearson correlation coefficient to analyze multiple factors affecting wind power, screens out all the features with a correlation coefficient greater than 0.5 with wind power, forms a feature subset, and divides the preprocessed data set into a training set, a validation set, and a test set; then uses a convolutional neural network (CNN) to extract features, uses a bidirectional long short-term memory network (BiLSTM) to model the time series data, and introduces an attention mechanism (AM) to dynamically allocate attention weights; then uses the raccoon optimization algorithm (COA) to optimize the hyperparameters of the combined model, and uses the optimized combined model to predict the wind power in the future time period; finally, the mean absolute error (MAE), root mean square error (RMSE) and determination coefficient (R 2 ) is used as an evaluation index to evaluate the model. The COA-CNN-BiLSTM-AM method not only captures the potential patterns and rules of wind power data through a combined model, but also optimizes the parameters and structure of the combined model through an intelligent optimization algorithm, thereby improving the prediction accuracy of wind power, helping to respond to changes in wind power in advance, reduce the impact of wind power fluctuations on grid stability, and enhance the safety and stability of the power system. Example

[0015] like Figure 1 , a short-term wind power prediction method based on COA-CNN-BiLSTM-AM, comprising the following steps: S1, select the data of a wind farm in 2020 as the original data set. There are 34928 data in the data set, each of which contains 11 factors affecting wind power, namely: wind speed and direction at hub height, wind speed and direction at 50m, 30m, and 10m height of the wind tower, temperature, air pressure, and relative humidity. Preprocess the original wind power data set, including the following steps: S11, after identifying missing values ​​in the data set, cubic spline interpolation method is used to fill them in, improving the integrity and availability of the data; S12, Min-Max Normalization method is used to normalize the data to eliminate the dimension and scale differences between different features; S13, using the Pearson correlation coefficient to analyze multiple factors affecting wind power, screen out all features with a correlation coefficient greater than 0.5 with wind power, reduce the data dimension, and obtain the correlation heat map as shown below: Figure 2 shown.

[0016] S2, dividing the preprocessed data samples, specifically including the following steps: S21, divide the preprocessed data samples into training set, validation set and test set in a ratio of 8:1:1 to ensure the effectiveness and generalization ability of the model; S22, the training set is the main data set for model learning. On this data set, the model constructs prediction rules by learning the relationship between the features of the data and the target value; S23, the validation set is used to select the optimal hyperparameters during model training, and the model with the best performance on the validation set is selected as the final model; S24, The test set should be completely independent of the training set and validation set and used to evaluate the performance of the final model.

[0017] S3, build the CNN-BiLSTM-AM prediction model, which specifically includes the following steps: S31, in the CNN module, multiple convolution kernels in the convolution layer perform sliding window operations on the input data to extract local features. Each convolution kernel generates a feature map that represents the strength and position of the features in the input data that match the convolution kernel. By stacking multiple convolution layers, higher-level abstract features can be extracted. In order to reduce the feature dimension and reduce the amount of computation, a pooling layer is added after the convolution layer. The pooling layer retains important information and reduces redundancy by downsampling the feature map; S32, the BiLSTM module receives the feature sequence extracted from the CNN module. For each time step in the input sequence, the BiLSTM generates an output that combines the forward and reverse hidden states. This output also contains the contextual information of the current time step, which helps to more accurately capture the long-term dependencies in the sequence; S33, AM module dynamically adjusts the attention to features at different time steps by weighted integration of BiLSTM output features, focusing on key information and ignoring redundant information; S34, the features after AM weighted processing will be passed to the fully connected layer, which is responsible for mapping the features to the prediction target and outputting the final prediction results.

[0018] S4, using the COA algorithm to optimize the hyperparameters of the combined model, specifically including the following steps: S41, determine the optimization target. The hyperparameters that need to be optimized in the combined model are: the number of convolution kernels in the CNN convolution layer, the number of units in the BiLSTM hidden layer, the learning rate, and the number of iterations; S42, initialize the population. In the COA algorithm, the population consists of a set of candidate solutions, each of which represents a specific set of hyperparameter configurations. A set of candidate solutions is randomly generated as the initial population, and these candidate solutions are evenly distributed in the search space; S43, design the fitness function. The loss function value of the model is used as the fitness function. During the training process, the model will try to minimize the loss function; S44, update the population. The COA algorithm updates the population by simulating the hunting behavior of raccoons and the behavior of escaping from predators. This process includes two stages: the exploration stage simulates the behavior of raccoons attacking and hunting iguanas. Some candidate solutions will be explored based on the current optimal solution to try to find a better solution space area; the development stage simulates the behavior of raccoons escaping from predators. All candidate solutions will be searched locally near the current location to find a more refined solution; S45, iterative optimization. Repeat the process of evaluating fitness and updating the population until the predetermined maximum number of iterations is reached. During the iteration process, the population will gradually converge to the optimal solution, that is, find a set of hyperparameter configurations that can maximize the model performance.

[0019] S5, using the COA-CNN-BiLSTM-AM model to predict wind power, specifically includes the following steps: S51, applying the optimal hyperparameter configuration finally found to the combined model; S52, using CNN-BiLSTM-AM, CNN-BiLSTM and BiLSTM models to predict wind power in the next 48 hours on the test set data; S53, use the optimized COA-CNN-BiLSTM-AM combined model to predict the wind power in the next 48 hours on the test set data.

[0020] S6, the performance of the COA-CNN-BiLSTM-AM model is evaluated, which specifically includes the following steps: S61, the prediction results of the four models COA-CNN-BiLSTM-AM, CNN-BiLSTM-AM, CNN-BiLSTM, and BiLSTM are compared. The comparison results are as follows Figure 3 shown.

[0021] S62, using MAE, RMSE and R 2 The model performance is evaluated as an evaluation indicator, and the prediction error results of different models are shown in the following table.

[0022]

[0023] Through experimental verification, the COA-CNN-BiLSTM-AM model has lower MAE and RMSE index values ​​than the other three models. 2The value of is closer to 1, and the model fitting effect is better. MAE is reduced by 55.9%, 41.5% and 39.3%, RMSE is reduced by 63.2%, 53.6% and 51.4%, R 2 The improvements were 8.32%, 4.97% and 4.56% respectively, which demonstrated the effectiveness and superiority of the COA-CNN-BiLSTM-AM method proposed in the present invention.

[0024] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein, but should be granted the widest scope consistent with the principles and novel features disclosed herein.

[0025] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A short-term wind power prediction method based on COA-CNN-BiLSTM-AM, characterized in that: The following steps are involved: S1, wind power data preprocessing; S2, divide the preprocessed data samples into training set, validation set and test set according to the proportion; S3, build a CNN-BiLSTM-AM combination model; S4, using the COA algorithm to optimize the hyperparameters of the CNN-BiLSTM-AM combination model; S5, predicting future wind power using the optimized COA-CNN-BiLSTM-AM combined model; S6, using MAE, RMSE and R 2 As an evaluation index, the performance of the combined model is evaluated.

2. The method according to claim 1, characterized in that The pre-processing steps in step S1 include: S11, after identifying missing values ​​in the data set, cubic spline interpolation method is used to fill them in, improving the integrity and availability of the data; S12, Min-Max Normalization method is used to normalize the data to eliminate the dimension and scale differences between different features; S13, using the Pearson correlation coefficient to analyze multiple factors affecting wind power, and screening out all features with a correlation coefficient with wind power greater than 0.

5.

3. The method according to claim 1, characterized in that The construction of the CNN-BiLSTM-AM combined model in step S3 includes the following steps: S31, in the CNN module, multiple convolution kernels in the convolution layer perform sliding window operations on the input data to extract local features. Each convolution kernel generates a feature map, which represents the feature strength and position in the input data that matches the convolution kernel. By stacking multiple convolution layers, higher-level abstract features are extracted. In order to reduce the feature dimension and reduce the amount of calculation, a pooling layer is added after the convolution layer. The pooling layer retains important information and reduces redundancy by downsampling the feature map; S32, the BiLSTM module receives the feature sequence extracted from the CNN module. For each time step in the input sequence, the BiLSTM generates an output that combines the forward and reverse hidden states. This output also contains the contextual information of the current time step, which helps to more accurately capture the long-term dependencies in the sequence. S33, AM module dynamically adjusts the attention to features at different time steps by weighted integration of BiLSTM output features, focusing on key information and ignoring redundant information; S34, the features after AM weighted processing will be passed to the fully connected layer, which is responsible for mapping the features to the prediction target and outputting the final prediction results.

4. The method according to claim 1, characterized in that: In step S4, the COA algorithm is used to optimize the hyperparameters of the CNN-BiLSTM-AM combination model, including the following steps: S41, determine the optimization target, and clarify the hyperparameters that need to be optimized in the combined model: the number of convolution kernels of the CNN convolution layer, the number of BiLSTM hidden layer units, the learning rate, and the number of iterations; S42, initialize the population. In the COA algorithm, the population consists of a set of candidate solutions. Each candidate solution represents a specific set of hyperparameter configurations. A set of candidate solutions is randomly generated as the initial population. These candidate solutions are evenly distributed in the search space. S43, design a fitness function, and use the loss function value of the model as the fitness function. During the training process, the model will try to minimize the loss function; S44, update population, COA algorithm updates the population by simulating the hunting behavior and escaping from predators of raccoons. This process includes two stages: the exploration stage simulates the behavior of raccoons attacking and hunting iguanas. Some candidate solutions will be explored based on the current optimal solution to try to find a better solution space area; the development stage simulates the behavior of raccoons escaping from predators. All candidate solutions will be searched locally near the current position to find a more refined solution; S45, iterative optimization, repeats the process of evaluating fitness and updating the population until the predetermined maximum number of iterations is reached. During the iteration process, the population will gradually converge to the optimal solution, that is, find a set of hyperparameter configurations that can maximize the model performance.

5. The method according to claim 1, characterized in that In step S5, using the optimized COA-CNN-BiLSTM-AM combined model to predict wind power includes the following steps: S51, applying the optimal hyperparameter configuration finally found to the combined model; S52, using BiLSTM, CNN-BiLSTM and CNN-BiLSTM-AM models to predict wind power in the future time period on the test set data; S53, use the optimized COA-CNN-BiLSTM-AM combined model to predict wind power in the future time period on the test set data.

6. The method according to claim 1, characterized in that The performance evaluation of the combined model in step S6 includes: S61, compare the prediction results of the four models COA-CNN-BiLSTM-AM, CNN-BiLSTM-AM, CNN-BiLSTM, and BiLSTM; S62, using MAE, RMSE and R 2 As an evaluation indicator, the model performance is evaluated.

Citation Information

Patent Citations

  • LSTM-SA neural network ultra-short-term power prediction method driven by fan operation and maintenance data

    CN115329937A

  • Transformer fault diagnosis method based on LightGBM optimal features and COA-CNN model

    CN116842337A

  • Wind power short-term power climbing prediction method

    CN117578404A

Cited By

  • Incoming wind condition combined prediction method, device and equipment based on multi-task learning

    CN119379478A

  • Method, device and equipment for joint prediction of incoming wind conditions based on multi-task learning

    CN119379478B