Ultra-short-term power prediction method based on pre-training model

Through the ultra-short-term power prediction method based on the pre-trained model, combined with numerical weather forecast and wind farm operation data, using multi-layer connections and Encoder-Decoder network structure, the problems of data lag and reduced accuracy in ultra-short-term wind power prediction are solved. Higher prediction accuracy and model simplification are achieved.

CN118536650APending Publication Date: 2024-08-23POWERCHINA HUADONG ENG CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410554037.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-07
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the ultra-short-term wind power prediction using existing technology, numerical weather forecast data lags behind and the update frequency is low, and the prediction accuracy of the time series model decreases rapidly, resulting in insufficient ultra-short-term power prediction accuracy, and the complexity of the model combination leads to accuracy loss.

Method used

An ultra-short-term power prediction method based on a pre-trained model is used to obtain numerical weather forecast data and wind farm operation data, perform data preprocessing and supplement missing values, use a multi-layer connection network and an Encoder-Decoder network structure, and combine numerical weather forecast and wind farm operation data. Historical power data is used for training and ultra-short-term prediction results are output.

Benefits of technology

The accuracy of ultra-short-term power prediction is improved. By effectively combining numerical weather forecast and measured data, the accuracy decrease within the prediction time is reduced, the model modeling process is simplified, and the prediction accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536650A
    Figure CN118536650A
Patent Text Reader

Abstract

The invention discloses an ultra-short-term power prediction method based on a pre-training model, and the method comprises the following steps: S1, data acquisition, S2, sample data preprocessing, S3, pre-training model sample construction, S4, pre-training model training, S5, ultra-short-term model sample construction, and S6, ultra-short-term model training. The step S1 comprises wind power plant and numerical weather forecast data used for establishing the time period of the accurate prediction model, training of the pre-training model is based on the training sample constructed in the step S2, training of the ultra-short-term model is based on the training sample constructed in the step S5, output of the pre-training model is included, and training of the ultra-short-term model is based on a model of an Encoder-Decoder structure. According to the method, the numerical weather forecast data and the historical actually measured power data are integrated in one model, so that the relationship between the numerical weather forecast and the historical actually measured power and the forecast power can be better captured in one model at the same time, and the dependence on sub-models in the integration process of a plurality of models can be avoided; and the ultra-short-term prediction accuracy of the wind power plant can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of wind power technology, and in particular to an ultra-short-term power prediction method based on a pre-training model. Background Art

[0002] Wind power generation is an important component of clean energy, but due to the instability of wind power, the output power of wind power fluctuates greatly, which has a certain impact on the safe and stable operation of the power grid. In order to ensure the safe operation of the power grid and the timely absorption of new energy power generation, the country is actively promoting the construction of the power market. In recent years, with the development of power spot markets in various provinces, ultra-short-term power forecasting has important significance for power generation companies to accurately conduct spot transactions. Ultra-short-term power forecasting can be divided into statistical models based on numerical weather prediction (NWP) and time series models according to whether numerical weather prediction (NWP) is used. Among them, the statistical model based on NWP needs to establish the relationship between numerical weather forecast and actual power. However, since the current mainstream numerical weather forecast data has a certain time lag, and the update frequency of meteorological data is usually more than 6 hours, it is necessary to combine measured data for ultra-short-term business to further improve the prediction accuracy. The time series model only uses historical power series, and extrapolates after information mining of historical series. The accuracy of this method will decrease rapidly as the prediction time increases, and it is usually only used for power prediction within hours.

[0003] In order to further improve the accuracy of ultra-short-term power forecasting, a better way is to combine the above two models. However, the ensemble model has multiple models that depend on each other during the modeling process, which makes the modeling more complicated and there is a certain loss of accuracy in the process. Therefore, establishing an ultra-short-term model can organically combine NWP data with measured data, which will be of great help in improving the accuracy of ultra-short-term forecasting. Summary of the invention

[0004] The purpose of the present invention is to provide an ultra-short-term power prediction method based on a pre-training model to improve the accuracy of ultra-short-term prediction, which includes the following steps:

[0005] Step S1, data acquisition: acquiring numerical weather forecast data and wind farm operation data of a time period for establishing an accurate prediction model, and storing them in a sample database, wherein the period is preferably more than 12 months;

[0006] Step S2, sample data preprocessing: perform integrity check and missing value processing on the meteorological data and wind farm operation data in the sample database, derive missing features, and calculate historical theoretical power data of the wind farm considering line loss;

[0007] Step S3, pre-training model sample construction: select historical theoretical power data and numerical weather forecast data of corresponding time from the sample database as pre-training model samples, and divide the selected data into a training set, a validation set and a test set according to a preset ratio, wherein the historical theoretical power is the target value data;

[0008] Step S4, pre-training model training: adopting a multi-layer connection network structure and using the divided pre-training model sample data set to train, tune and verify the pre-training model, wherein the input of the model is the numerical weather forecast data in the pre-training sample, and the output is the predicted theoretical power data, which is stored in the sample database;

[0009] Step S5, ultra-short-term model training sample construction: select numerical weather forecast data, historical theoretical power, and predicted theoretical power data from the sample database as ultra-short-term model training samples, and divide the selected data into a training set, a validation set, and a test set according to a preset ratio, wherein the predicted theoretical power data is the target value data;

[0010] Step S6, ultra-short-term model training: the Encoder-Decoder network structure is used to train, tune and verify the ultra-short-term model through the divided data set, wherein the input of the model is the numerical weather forecast data and historical theoretical power data in the ultra-short-term model training samples, and the output is the ultra-short-term predicted theoretical power data.

[0011] Furthermore, step S1 includes the following steps:

[0012] Step S101: According to the layout of the wind farm, select multiple representative forecast points, use the longitude and latitude of the forecast points to obtain meteorological data, and store the location data, high-level wind speed data and corresponding time data corresponding to each forecast point into the sample database. The corresponding data table should contain the following fields: forecast point number, time, 100m longitude wind, 100m zonal wind, acquisition time;

[0013] Step S102: Obtain active power data and wind speed data of each wind turbine in the wind farm and store them in a sample database. The corresponding data table should contain the following fields: wind turbine number, time, active power, wind speed;

[0014] Step S103: Acquire the active power data of the entire venue and store it in the sample database. The corresponding data table should contain the following fields: time and active power.

[0015] Further, step S2 includes the following steps:

[0016] Step S201: Analyze the data of each forecast point in the sample database to ensure that there is at least one piece of data at each time. If data is missing, extract the data at the missing time from the corresponding reanalysis data set to supplement it, for example, extract the data at the missing time from the reanalysis data of ERA5, FNL, etc. to supplement it;

[0017] Step S202: Analyze the wind speed data of the wind turbines in the sample database to ensure that the wind speed data of each wind turbine at each moment exists. If the data is missing, the wind speed of the adjacent wind turbines is used to supplement it. If the wind speed data of the adjacent wind turbines is also missing, the data at the missing moment is extracted from the corresponding reanalysis data set to supplement it, for example, the data at the missing moment is extracted from the reanalysis data of ERA5, FNL, etc. to supplement it.

[0018] Step S203: Analyze the wind speed data of the wind turbine after integrity detection to ensure that the wind speed and power data of the wind turbine conform to the trend of the predetermined power curve. For the wind turbine under maintenance or affected by power restriction, recalculate its theoretical power based on the wind speed data and power curve.

[0019] Step S204: By performing linear regression analysis on the theoretical power data and the measured power data of the wind turbine, all data points in power-limited or maintenance states are excluded, line losses are calculated based on the remaining data, and historical theoretical power data is constructed accordingly.

[0020] Furthermore, in step S4, the multi-layer connection network is composed of multiple processing blocks, each processing block includes three layers: a block input layer, a block hidden layer, and a block output layer, wherein a residual connection is established between the block input layer and the block output layer, and the output of the entire network is passed to the target value through the fully connected layer of the last block.

[0021] Furthermore, in step S6, the front part of the Encoder in the Encoder-Decoder network structure is the pre-trained model trained in step S4, which is responsible for obtaining the relationship between meteorology and power. The input of the Decoder is the output of the Encoder, and the input of the Decoder is the historical theoretical power data.

[0022] Furthermore, the Decoder uses a cross-attention structure to mine information related to power prediction from time series data.

[0023] Furthermore, during the training process of step S6, the network weights of the pre-trained model are solidified and do not participate in the parameter update of the gradient descent optimization algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a schematic diagram of the actual power data without considering the line loss history in the present invention.

[0025] Figure 2 A schematic diagram of historical theoretical power data taking line losses into account for the present invention.

[0026] Figure 3 Schematic diagram of the network structure of the pre-training model of the present invention.

[0027] Figure 4 This is a schematic diagram of a 4-hour ultra-short-term prediction sample executed at 14:00 on a certain day in the present invention.

[0028] Figure 5 This is a schematic diagram of the network structure of the ultra-short-term prediction model based on the pre-training model of the present invention. DETAILED DESCRIPTION

[0029] The present invention is further described below in conjunction with formulas and drawings.

[0030] Step S1, data acquisition: acquiring numerical weather forecast data and wind farm operation data of a time period for establishing an accurate prediction model, and storing them in a sample database, wherein the period is preferably more than 12 months;

[0031] Furthermore, step S1 specifically includes the following steps:

[0032] Step S101: According to the layout of the wind farm, select multiple representative forecast points, use the longitude and latitude of the forecast points to obtain meteorological data, and store the location data, high-level wind speed data and corresponding time data corresponding to each forecast point into the sample database. The corresponding data table should contain the following fields: forecast point number, time, 100m longitude wind, 100m zonal wind, acquisition time;

[0033] Step S102: Obtain active power data and wind speed data of each wind turbine in the wind farm and store them in a sample database. The corresponding data table should contain the following fields: wind turbine number, time, active power, wind speed;

[0034] Step S103: Acquire the active power data of the entire venue and store it in the sample database. The corresponding data table should contain the following fields: time and active power.

[0035] Step S2, sample data preprocessing: perform integrity check and missing value processing on the meteorological data and wind farm operation data in the sample database, derive missing features, and calculate the historical theoretical power data of the wind farm considering line loss, where:

[0036] Step S201: Based on the acquired 100m longitude wind U a With zonal wind V a , the following features can be calculated:

[0037]

[0038] W s 3W s 3 ,

[0039]

[0040] Where W s is the wind speed at 100m, W d is the wind direction at 100m, W s 3 is the cube of wind speed at 100m.

[0041] At the same time, the data of each forecast point are analyzed to ensure that there is at least one piece of data at each time. If the data is found to be missing, the data at the missing time should be extracted from the reanalysis data such as ERA5 and FNL to supplement it.

[0042] Step S202: Analyze the wind speed data of the wind turbines to ensure that the wind speed data of each wind turbine at each moment exists. If not, the wind speed data of the adjacent wind turbines is used to supplement it. If the wind speed data of the adjacent wind turbines does not exist, the data of the missing moments should be extracted from the reanalysis data such as ERA5 and FNL to supplement it.

[0043] Step S203: Analyze the wind speed data of the wind turbine. The wind speed and power data of the wind turbine should roughly meet the trend of the power curve. For wind turbines that are obviously undergoing maintenance or power rationing, the theoretical power should be recalculated based on the wind speed combined with the power curve. Figure 1 The time course curve of theoretical power and actual power of a certain station is given.

[0044] Step S204: Calculate the line loss by performing linear regression analysis on the theoretical power data and the measured power. After eliminating the data of power limit and maintenance time, calculate the line loss and use the corrected theoretical power value as the target value for the entire prediction. Subsequent theoretical power data are all theoretical power values ​​corrected with line loss taken into account. Figure 2 The time course curve of the theoretical power and actual power considering line loss of a certain station is given. It can be seen that during the non-power-limited and maintenance period, the theoretical power after considering line loss is closer to the actual power.

[0045] Step S3, pre-training model sample construction: select historical theoretical power data and numerical weather forecast data of the corresponding time from the sample database as pre-training model samples, and divide the selected data into training set, verification set and test set according to a preset ratio, where the historical theoretical power is the target value data.

[0046] Pre-training sample construction, sample data records are as follows: forecast point 1_100m longitude wind, forecast point 1_100m latitudinal wind, ..., forecast point n_100m longitude wind, forecast point n_100m latitudinal wind, theoretical power. The longitude wind and latitudinal wind of each forecast point are characteristic values, the historical theoretical power is the target value data, and the time interval of each record is 15 minutes. The sample data is divided into training set, validation set, and test set in a ratio of 7:2:1.

[0047] Step S4, pre-trained model training: adopt a multi-layer connection network structure and use the divided pre-trained model sample data set to train, tune and verify the pre-trained model, where the input of the model is the numerical weather forecast data in the pre-training sample, and the output is the predicted theoretical power data, which is stored in the sample database.

[0048] The pre-trained model structure is as follows Figure 3 As shown, the pre-trained model adopts a multi-layer connected network, which is composed of multiple processing blocks. Each processing block includes three layers: a block input layer, a block hidden layer, and a block output layer. A residual connection is established between the block input layer and the block output layer, and the output of the entire network is passed to the target value through the fully connected layer of the last block.

[0049] Step S5, ultra-short-term model training sample construction: select numerical weather forecast data, historical theoretical power, and predicted theoretical power data from the sample database as ultra-short-term model training samples, and divide the selected data into training set, verification set, and test set according to a preset ratio, where the predicted theoretical power data is the target value data.

[0050] Each record of the ultra-short-term model training sample should contain three parts: numerical weather forecast sequence, historical theoretical power data sequence, and predicted power data sequence. Figure 4 The sample records of ultra-short-term forecasts performed at 14:00 on a certain day are given, in which the numerical weather forecast sequence and the historical power data sequence are the inputs of the ultra-short-term model, and the predicted power data is the target value. The sample data is divided into training set, validation set, and test set in a ratio of 7:2:1.

[0051] Step S6, ultra-short-term model training: the Encoder-Decoder network structure is used to train, tune and verify the ultra-short-term model through the divided data set, wherein the input of the model is the numerical weather forecast data and historical theoretical power data in the ultra-short-term model training samples, and the output is the ultra-short-term predicted theoretical power data.

[0052] like Figure 5As shown in the figure, the ultra-short-term model based on the pre-trained model adopts the Encoder-Decoder network structure, in which the front part of the Encoder is the previously pre-trained model, which can already capture the relationship between weather and power. The input of the Decoder is the output of the Encoder, and the input of the Decoder is the historical theoretical power data. The Decoder uses the cross-attention structure to mine information related to power prediction from time series data, which can make the power prediction data output by the pre-trained model more consistent with the actual power data.

[0053] At the same time, during the ultra-short-term model training process based on the pre-trained model, all weights in the network of the pre-trained model should be solidified and not participate in the parameter update of the gradient descent optimization algorithm.

Claims

1. An ultra-short-term power prediction method based on a pre-trained model, characterized in that: The following steps are involved: Step S1, data acquisition: acquiring numerical weather forecast data and wind farm operation data of a time period for establishing an accurate prediction model, and storing them in a sample database; Step S2, sample data preprocessing: perform integrity check and missing value processing on the meteorological data and wind farm operation data in the sample database, derive missing features, and calculate historical theoretical power data of the wind farm considering line loss; Step S3, pre-training model sample construction: select historical theoretical power data and numerical weather forecast data of corresponding time from the sample database as pre-training model samples, and divide the selected data into a training set, a validation set and a test set according to a preset ratio, wherein the historical theoretical power is the target value data; Step S4, pre-training model training: adopting a multi-layer connection network structure and using the divided pre-training model sample data set to train, tune and verify the pre-training model, wherein the input of the model is the numerical weather forecast data in the pre-training sample, and the output is the predicted theoretical power data, which is stored in the sample database; Step S5, ultra-short-term model training sample construction: select numerical weather forecast data, historical theoretical power, and predicted theoretical power data from the sample database as ultra-short-term model training samples, and divide the selected data into a training set, a validation set, and a test set according to a preset ratio, wherein the predicted theoretical power data is the target value data; Step S6, ultra-short-term model training: the Encoder-Decoder network structure is used to train, tune and verify the ultra-short-term model through the divided data set, wherein the input of the model is the numerical weather forecast data and historical theoretical power data in the ultra-short-term model training samples, and the output is the ultra-short-term predicted theoretical power data.

2. The ultra-short-term power prediction method based on a pre-training model according to claim 1 is characterized in that: Step S1 includes the following steps: Step S101: Select multiple representative forecast points according to the layout of the wind farm, use the longitude and latitude of the forecast points to obtain meteorological data, and store the location data, high-level wind speed data and corresponding time data corresponding to each forecast point into a sample database; Step S102: Obtain active power data and wind speed data of each wind turbine in the wind farm, and store them in a sample database; Step S103: Acquire the active power data of the entire field and store it in the sample database.

3. The ultra-short-term power prediction method based on a pre-training model according to claim 1, characterized in that step S2 comprises the following steps: Step S201: Analyze the data of each forecast point in the sample database to ensure that there is at least one piece of data at each time. If data is missing, extract the data of the missing time from the corresponding reanalysis data set to supplement it; Step S202: Analyze the wind speed data of the wind turbines in the sample database to ensure that the wind speed data of each wind turbine at each moment exists. If the data is missing, the wind speed of the adjacent wind turbines is used to supplement it. If the wind speed data of the adjacent wind turbines is also missing, the data at the missing moment is extracted from the corresponding reanalysis data set to supplement it. Step S203: Analyze the wind speed data of the wind turbine after integrity detection to ensure that the wind speed and power data of the wind turbine conform to the trend of the predetermined power curve. For the wind turbine under maintenance or affected by power restriction, recalculate its theoretical power based on the wind speed data and power curve. Step S204: By performing linear regression analysis on the theoretical power data and the measured power data of the wind turbine, all data points in power-limited or maintenance states are excluded, line losses are calculated based on the remaining data, and historical theoretical power data is constructed accordingly.

4. The ultra-short-term power prediction method based on a pre-training model according to claim 1, characterized in that: In step S4, the multi-layer connection network is composed of multiple processing blocks, each processing block includes three layers: a block input layer, a block hidden layer, and a block output layer, wherein a residual connection is established between the block input layer and the block output layer, and the output of the entire network is passed to the target value through the fully connected layer of the last block.

5. The ultra-short-term power prediction method based on a pre-training model according to claim 1, characterized in that: In step S6, the front part of the Encoder in the Encoder-Decoder network structure is the pre-trained model trained in step S4, which is responsible for obtaining the relationship between meteorology and power. The input of the Decoder is the output of the Encoder, and the input of the Decoder is the historical theoretical power data.

6. The ultra-short-term power prediction method based on a pre-training model according to claim 5 is characterized in that: The Decoder uses a cross-attention structure to mine information related to power prediction from time series data.

7. The ultra-short-term power prediction method based on a pre-training model according to claim 5, characterized in that: During the training process of step S6, the network weights of the pre-trained model are solidified and do not participate in the parameter update of the gradient descent optimization algorithm.