Wind power prediction method and device
By integrating the network model with multi-variable parallel coding and temporal attention mechanism, combined with historical weather forecasts and mesoscale wind data, the problem of low accuracy of traditional wind power power prediction models is solved and more accurate mid- and long-term wind power power predictions are achieved.
Patent Information
- Application Number
- CN202410771499.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The accuracy of wind power power prediction models in the existing technology is not high, mainly because the traditional deep neural network model has insufficient performance and only considers historical power and weather forecast data, failing to fully capture the various factors that affect wind power power.
Using multi-variable parallel coding and temporal attention mechanism fusion network model, by collecting historical numerical weather forecasts of the target wind farm and historical mesoscale wind data within the surrounding preset range, sample variable time series and historical wind power data time series are generated. , model training is performed to predict mid- to long-term wind power power.
The accuracy of wind power power prediction is improved, and higher prediction accuracy is obtained by considering more influencing factors and flexibly adjusting the importance of time series.
Smart Images

Figure CN118611054A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data management, and in particular to a method and device for predicting wind power. Background Art
[0002] The wind power industry has developed rapidly and has become an important area of energy development. The capacity of wind power grid-connected has increased rapidly, and the connection between wind power and the system has become increasingly close. It is necessary to consider the adverse effects of wind power output changes caused by the volatility and intermittency of wind energy on the power quality, safe and stable operation and economic benefits of the power system. Therefore, wind power forecasting has important practical significance.
[0003] At present, when predicting wind power, the wind power prediction model is usually obtained based on traditional deep neural network models such as the current ARIMA network model and LSTM network model. However, due to the defects in the performance of the traditional deep neural network model itself, and the fact that only historical power and weather forecast data are usually considered during model training, the accuracy of the wind power predicted by the model is not high. Therefore, how to improve the accuracy of wind power prediction has become an urgent problem to be solved. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a method and device for predicting wind power, which can improve the accuracy of wind power prediction.
[0005] In a first aspect, an embodiment of the present application provides a method for predicting wind power, including:
[0006] Collecting multiple variables that affect the wind power of the target wind farm to generate a target sample variable set; the target sample variable set includes: multiple sample variables corresponding to the historical numerical weather forecast of the target wind farm and multiple sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm;
[0007] Acquire target sample historical wind power data of the target wind farm;
[0008] Based on the target sample variable set and the target sample historical wind power data, generate a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data;
[0009] The multiple sample variable time series and the target sample historical wind power data time series are input into the initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain a target medium- and long-term wind power prediction model; the target medium- and long-term wind power prediction model is used to predict the medium- and long-term wind power in the future period based on the numerical weather forecast data and historical wind power data in the future period and the historical mesoscale wind condition data within a preset range.
[0010] As an optional implementation of the embodiment of the present application, after generating a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data based on the target sample variable set and the target sample historical wind power data, the method further includes:
[0011] Based on the linear interpolation method, the time resolutions of the target sample variable time series and the target sample historical wind power data time series are unified into a preset time resolution.
[0012] As an optional implementation of the embodiment of the present application, the multiple sample variable time series and the target sample historical wind power data time series are input into the initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain the target medium- and long-term wind power prediction model, including:
[0013] The multiple sample variable time series and the target sample historical wind power data time series are input into the initial multivariable parallel coding and temporal attention mechanism fusion network model, and model training is performed through the input layer, variable selection layer, LSTM encoding layer, residual module layer, gating mechanism layer, multi-head attention module layer and output layer in the initial multivariable parallel coding and temporal attention mechanism fusion network model to obtain the target medium- and long-term wind power prediction model.
[0014] As an optional implementation of the embodiment of the present application, after obtaining the target medium- and long-term wind power prediction model, the method further includes:
[0015] Obtaining a variable time series corresponding to the historical mesoscale wind condition data of the target wind farm within the preset range and a historical wind power time series corresponding to the historical wind power data of the target wind farm; the historical data set includes: the historical wind power data of the target site and the historical mesoscale wind condition data within the preset range;
[0016] Collecting numerical weather forecast data of the target wind farm in a future period, and generating a plurality of variable time series corresponding to the numerical weather forecast data in the future period;
[0017] The variable time series corresponding to the historical mesoscale wind condition data of the target wind farm within the preset range, the historical wind power time series corresponding to the historical wind power data of the target wind farm, and multiple variable time series corresponding to the numerical weather forecast data of the future time period are input into the target medium- and long-term wind power prediction model to predict the wind power of the future time period.
[0018] As an optional implementation of the embodiment of the present application, the collecting of variable data affecting the wind power of the target wind farm to generate a target variable data set includes:
[0019] Collecting a historical numerical weather forecast data set of the target wind farm; the historical numerical weather forecast data set includes: wind speed, wind direction, temperature, air pressure, humidity and irradiance;
[0020] Acquiring geographical location information of the target wind farm;
[0021] Based on the geographical location information, mesoscale wind condition data within the preset surrounding range upstream and downstream of the target wind farm are collected to generate a historical mesoscale wind condition data set within the preset surrounding range;
[0022] The target variable dataset is generated based on the historical numerical weather forecast dataset and the historical mesoscale wind condition dataset within the preset range.
[0023] As an optional implementation of the embodiment of the present application, the obtaining of the historical target wind power of the target wind farm includes:
[0024] Collecting initial sample historical wind power data of the target wind farm;
[0025] A preprocessing operation is performed on the initial sample historical wind power data to obtain the target sample historical wind power data; the preprocessing operation includes: abnormal data identification, abnormal data elimination and data interpolation operation.
[0026] In a second aspect, an embodiment of the present application provides a wind power prediction device, comprising:
[0027] A collection unit, used for collecting a plurality of variables affecting the wind power of a target wind farm to generate a target sample variable set; the target sample variable set includes: a plurality of sample variables corresponding to the historical numerical weather forecast of the target wind farm and a plurality of sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm;
[0028] An acquisition unit, used for acquiring target sample historical wind power data of the target wind farm;
[0029] A generating unit, configured to generate, based on the target sample variable set and the target sample historical wind power data, a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data;
[0030] A training unit is used to input the multiple sample variable time series and the target sample historical wind power data time series into an initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain a target medium- and long-term wind power prediction model; the target medium- and long-term wind power prediction model is used to predict the medium- and long-term wind power in the future period based on the numerical weather forecast data and historical wind power data in the future period and the historical mesoscale wind condition data within a preset range.
[0031] As an optional implementation of the embodiment of the present application, the generating unit is further used to unify the time resolution of the target sample variable time series and the target sample historical wind power data time series to a preset time resolution based on a linear interpolation method.
[0032] As an optional implementation of an embodiment of the present application, the training unit is specifically used to input the multiple sample variable time series and the target sample historical wind power data time series into the initial multivariable parallel coding and temporal attention mechanism fusion network model, and perform model training through the input layer, variable selection layer, LSTM encoding layer, residual module layer, gating mechanism layer, multi-head attention module layer and output layer in the initial multivariable parallel coding and temporal attention mechanism fusion network model to obtain the target medium- and long-term wind power prediction model.
[0033] As an optional implementation manner of the embodiment of the present application, the training unit is also used to obtain the variable time series corresponding to the historical mesoscale wind condition data of the target wind farm within the preset range and the historical wind power time series corresponding to the historical wind power data of the target wind farm; the historical data set includes: the historical wind power data of the target site and the historical mesoscale wind condition data within the preset range; collect numerical weather forecast data of the target wind farm in the future time period, and generate multiple variable time series corresponding to the numerical weather forecast data for the future time period; input the variable time series corresponding to the historical mesoscale wind condition data of the target wind farm within the preset range, the historical wind power time series corresponding to the historical wind power data of the target wind farm, and the multiple variable time series corresponding to the numerical weather forecast data for the future time period into the target medium- and long-term wind power prediction model to predict the wind power for the future time period.
[0034] As an optional implementation of the embodiment of the present application, the acquisition unit is specifically used to collect a historical numerical weather forecast dataset of the target wind farm; the historical numerical weather forecast dataset includes: wind speed, wind direction, temperature, air pressure, humidity and irradiance; obtain the geographical location information of the target wind farm; based on the geographical location information, collect mesoscale wind condition data within the surrounding preset range upstream and downstream of the target wind farm to generate a historical mesoscale wind condition dataset within the surrounding preset range; based on the historical numerical weather forecast dataset and the historical mesoscale wind condition dataset within the preset range, generate the target variable dataset.
[0035] As an optional implementation of the embodiment of the present application, the acquisition unit is specifically used to collect the initial sample historical wind power data of the target wind farm; perform preprocessing operations on the initial sample historical wind power data to obtain the target sample historical wind power data; the preprocessing operations include: abnormal data identification, abnormal data elimination and data interpolation operations.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the wind power prediction method described in any of the above embodiments when executing the computer program.
[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computing device, the computing device implements the wind power prediction method described in any one of the above embodiments.
[0038] The wind power prediction method provided in the embodiment of the present application is specifically as follows: collecting multiple variables that affect the wind power of a target wind farm to generate a target sample variable set; the target sample variable set includes: multiple sample variables corresponding to the historical numerical weather forecast of the target wind farm and multiple sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm; obtaining the target sample historical wind power data of the target wind farm; based on the target sample variable set and the target sample historical wind power data, generating multiple sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data; inputting the multiple sample variable time series and the target sample historical wind power data time series into an initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain a target medium- and long-term wind power prediction model; the target medium- and long-term wind power prediction model is used to predict the medium- and long-term wind power in the future period based on the numerical weather forecast data and historical wind power data of the future period and the historical mesoscale wind condition data within a preset range. The embodiment of the present application generates a target sample variable set by collecting multiple sample variables corresponding to the historical numerical weather forecast of the target wind farm and multiple sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm, and obtains the target sample historical wind power data of the target wind farm; the historical numerical weather forecast, the historical mesoscale wind condition data and the historical wind power data are input as training data into the initial multivariate parallel coding and temporal attention mechanism fusion network model for training. Compared with the prior art, adding the historical mesoscale wind condition data within a preset range around the target wind farm to the training data can more comprehensively consider the factors affecting wind power, and then the target medium- and long-term wind power prediction model obtained by training the initial multivariate parallel coding and temporal attention mechanism fusion network model is more accurate. At the same time, the present application adopts the multivariate parallel coding and temporal attention mechanism fusion network model as the model architecture for initial training. Compared with the traditional model, it can more flexibly adjust the importance of different time series in the input model through its powerful feature selection ability and attention mechanism, thereby obtaining a higher prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 One of the step flow charts of the wind power prediction method provided in the embodiment of the present application;
[0042] Figure 2 The overall architecture diagram of the initial multivariate parallel encoding and temporal attention mechanism fusion network model provided in the embodiment of the present application;
[0043] Figure 3 The second step flow chart of the method for predicting wind power provided in the embodiment of the present application;
[0044] Figure 4 A schematic diagram of the structure of a wind power prediction device provided in an embodiment of the present application;
[0045] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0047] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0048] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In addition, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more.
[0049] It should be noted that, in this article, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0050] The present application embodiment provides a method for predicting wind power. Figure 1 As shown, the wind power prediction method includes the following steps S101-S104:
[0051] S101. Collect multiple variables that affect wind power of a target wind farm to generate a target sample variable set.
[0052] The target sample variable set includes: a plurality of sample variables corresponding to the historical numerical weather forecast of the target wind farm and a plurality of sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm.
[0053] In the embodiment of the present application, the target wind farm can be any wind farm as an object, and multiple variables affecting its wind power are collected. Specifically, the historical numerical weather forecast of the target wind farm in the embodiment of the present application can be understood as the historical numerical weather forecast of the location of the target wind farm, and the historical mesoscale wind condition data within the preset range can be understood as the mesoscale wind condition data within the preset range around the target wind farm; the target sample variable set is generated based on multiple variables corresponding to the above two types of data. In the embodiment of the present application, when generating the target sample variable set, not only the impact of the environmental factors of the target wind farm itself on the wind power of the target wind farm is considered, but also the impact of the environmental factors within the preset range around the target wind farm on the wind power of the target wind farm is considered, so that when the model is subsequently trained, the multiple variables corresponding to the above two types of data are used to improve the accuracy of model prediction during subsequent model training.
[0054] It should be noted that the historical numerical weather forecast in the embodiment of the present application can be a NWP (Numerical Weather Prediction) type numerical weather forecast, which uses mathematical equations to describe the physical processes of the atmosphere, ocean and earth system. These equations are based on physical laws, such as conservation of mass, conservation of momentum and thermodynamic principles, and are solved in combination with initial observation data. The NWP system inputs observation data (including weather stations, radars, satellites, etc.) into a numerical model, and calculates the weather conditions in the future period of time based on these initial conditions. It can provide high-precision weather forecast information, including various meteorological elements such as temperature, humidity, air pressure, wind speed, wind direction, etc.
[0055] The historical mesoscale wind data in the embodiment of the present application can be historical mesoscale wind data extracted from ERA5 data; wherein the ERA5 data is the fifth generation global climate and weather reanalysis product data of the European Centre for Medium-Range Weather Forecasts (ECMWF), which covers the past 80 years of data and can be obtained from 1940. It provides hourly estimates of a large number of atmospheric, land and ocean climate variables. These data cover the earth on a 30-kilometer grid and use 137 altitudes from the surface to 80 kilometers to resolve the atmosphere, including uncertainty information for all variables when reducing spatial and temporal resolution. ERA5 combines model data with observational data from all over the world to form a globally complete and consistent data set. The historical mesoscale wind data related to the target wind farm can be extracted based on the ERA5 data.
[0056] S102: Acquire target sample historical wind power data of the target wind farm.
[0057] Specifically, wind power generation, as a clean and sustainable form of energy, has been widely used around the world. Generally, a wind farm consists of dozens to hundreds of wind turbines and their supporting systems. To conveniently manage these wind turbines, a SCADA (Supervisory Control And Data Acquisition) system is required.
[0058] In the embodiment of the present application, the target historical wind power of the target wind farm is also obtained through the wind power SCADA system configured in the target wind farm. The wind power SCADA system can collect the operation data of various parts of the wind farm in real time, and monitor and control the wind turbines to ensure the safe and efficient operation of the wind farm. The main functions of the wind power SCADA system include:
[0059] Data collection: Collect operating data of wind turbines, substations, meteorological stations and other equipment, including the operating status of each unit, power generation, power generation, wind speed, wind direction, temperature, humidity, voltage, current, etc.
[0060] Data transmission: The collected data is transmitted to the control center through the wind farm fiber optic communication network.
[0061] Data processing: Process, analyze and store the collected data to form various reports and charts to provide decision-making basis for the operation and management of wind farms.
[0062] Monitoring and control: monitor and control wind turbines, including starting, stopping, adjusting output, fault alarm, etc.
[0063] Safety management: Provide various measures for the safe operation of wind farms, such as lightning protection, fire prevention, explosion prevention, etc.
[0064] S103. Based on the target sample variable set and the target sample historical wind power data, generate a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data.
[0065] In the embodiment of the present application, the influence relationship between wind power and multiple variables is studied mainly by analyzing multiple sample variable time series corresponding to the target wind farm and the target sample historical wind power data time series, so as to predict the change trend of wind power in a certain period of time in the future or later.
[0066] Therefore, in an embodiment of the present application, it is necessary to obtain multiple sample variable time series corresponding to the target sample variable set and the target sample historical wind power data time series corresponding to the target sample historical wind power data for further research.
[0067] It should be noted that since the multiple variables in the target sample variable set and the target sample historical wind power data are obtained in different ways, their corresponding time resolutions will also be different. In order to facilitate the subsequent model reasoning analysis, it is necessary to unify the time resolutions of the multiple sample variable time series of the input model and the target sample historical wind power data time series to the preset time resolution.
[0068] Then, after the execution of the above step S103 is completed, after obtaining a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data, the embodiment of the present application further includes the following steps:
[0069] Based on the linear interpolation method, the time resolutions of the target sample variable time series and the target sample historical wind power data time series are unified into a preset time resolution.
[0070] Specifically, the linear interpolation method is an interpolation method for one-dimensional data. It estimates the numerical value based on the two data points on the left and right of the point to be interpolated in the one-dimensional data sequence, so as to obtain the target variable time series and the target sample historical wind power data time series at a preset time resolution through this method.
[0071] For example, the preset time resolution may be set to a 15-minute resolution, which is not specifically limited in the embodiments of the present application.
[0072] S104: Input the multiple sample variable time series and the target sample historical wind power data time series into an initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain a target medium- and long-term wind power prediction model.
[0073] The target medium- and long-term wind power prediction model is used to predict the medium- and long-term wind power in the future period based on the numerical weather forecast data and historical wind power data in the future period and the historical mesoscale wind condition data within a preset range.
[0074] In an embodiment of the present application, the initial multivariate parallel coding and temporal attention mechanism fusion network model can be called: a time series prediction model based on deep learning, which is a model based on Transformer (a deep learning architecture), which uses self-attention to capture the complex time dynamics of multiple time series, and then obtains the influence relationship between the multiple sample variable time series and the target sample historical wind power data time series, and the medium- and long-term wind power, and then obtains the target medium- and long-term wind power prediction model.
[0075] Specifically, the method for inputting the multiple sample variable time series and the target sample historical wind power data time series into the initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain the target medium- and long-term wind power prediction model is as follows:
[0076] The multiple sample variable time series and the target sample historical wind power data time series are input into the initial multivariable parallel coding and temporal attention mechanism fusion network model, and model training is performed through the input layer, variable selection layer, LSTM encoding layer, residual module layer, gating mechanism layer, multi-head attention module layer and output layer in the initial multivariable parallel coding and temporal attention mechanism fusion network model to obtain the target medium- and long-term wind power prediction model.
[0077] Specifically, the overall architecture of the initial multivariate parallel encoding and temporal attention mechanism fusion network model is as follows: Figure 2 As shown, its overall architecture can be composed of 7 layers, namely input layer 21, variable selection layer 22, LSTM encoding layer 23, residual module layer 24, gating mechanism layer 25, multi-head attention module layer 26, and output layer 27.
[0078] Among them, the input layer 21 is divided into historical input and known future input. In the embodiment of the present application, the historical input is a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data. The known future input is a variable time series of a plurality of sample variables corresponding to the historical numerical weather forecast of the target wind farm.
[0079] The variable selection layer 22 includes multiple variable selectors, each of which is configured to perform weight calculation on multiple sample variable time series corresponding to the target sample variable set and the target sample historical wind power data time series corresponding to the target sample historical wind power data, and obtain the weights corresponding to the multiple sample variable time series corresponding to the initial time step and the target sample historical wind power data time series, respectively. The larger the weight of the time series, the greater the impact of the time series on the corresponding wind power.
[0080] The LSTM (Long Short-Term Memory Network) encoding layer 23 is used to encode the multiple sample variable time series and the target sample historical wind power data time series, and learn the influence relationship between each variable time series in the sample variable time series and the target sample historical wind power data time series, and the medium- and long-term wind power.
[0081] The residual module layer 24 is used to further consider the importance of different time series to wind power and improve the learning accuracy of the model.
[0082] The gating mechanism layer 25 flexibly controls the flow of information in the model through the forget gate, input gate and output gate, ensuring that the model can effectively remember important information and filter out irrelevant information, thereby performing more stably and efficiently when processing long sequence data.
[0083] The multi-head attention module layer 26 is used to calculate the attention operation in the time dimension for the multiple sample variable time series and the target sample historical wind power data time series processed by the above-mentioned processes 21-25, and realize the weighted fusion of features in the time dimension based on the weights obtained by the variable selection layer 22, and then by splicing the historical input and the known future input in the time dimension, the attention size of the own time series at different time points is calculated through the self-attention mechanism, and the information weight size of different positions of the time series under different sample inputs is obtained through the softmax layer. In this way, the contribution of input information at different times to the medium- and long-term wind power forecast is obtained, and variable weight fusion in the time dimension is realized.
[0084] The output layer 27 is used to output the medium- and long-term wind power obtained by the multivariable parallel coding and temporal attention mechanism fusion network model.
[0085] Through the above method, the initial multivariable parallel coding and temporal attention mechanism fusion network model is trained until the model parameters converge, thereby obtaining the target medium- and long-term wind power prediction model.
[0086] It should be noted that when the model is trained through the input layer, variable selection layer, LSTM encoding layer, residual module layer, gating mechanism layer, multi-head attention module layer and output layer in the network model of the initial multivariable parallel encoding and temporal attention mechanism fusion, it is also necessary to use the 0-1 normalization method to normalize all input model data, and save the maximum and minimum values corresponding to each type of data for subsequent prediction. It is also necessary to continuously update the parameters of the neural network model based on the minimum batch gradient descent optimization method. Based on the pre-set training rounds, learning rate and early stopping conditions, the training samples are input into the model, and the mean square error between the predicted value and the measured value is used as the loss function of the minimum batch gradient descent optimization method. The model is trained until the parameters converge, and the target medium- and long-term wind power prediction model is obtained.
[0087] In the embodiment of the present application, after obtaining the target medium- and long-term wind power prediction model, the actual measurement process specifically includes the following steps 1 to 3:
[0088] Step 1: Obtain a variable time series corresponding to historical mesoscale wind condition data of the target wind farm within the preset range and a historical wind power time series corresponding to historical wind power data of the target wind farm.
[0089] Step 2: Collect numerical weather forecast data of the target wind farm in a future period, and generate multiple variable time series corresponding to the numerical weather forecast data in the future period.
[0090] Step 3: Input the variable time series corresponding to the historical mesoscale wind condition data of the target wind farm within the preset range, the historical wind power time series corresponding to the historical wind power data of the target wind farm, and multiple variable time series corresponding to the numerical weather forecast data of the future time period into the target medium- and long-term wind power prediction model to predict the wind power of the future time period.
[0091] It should be noted that in the embodiment of the present application, the data input into the target medium- and long-term wind power prediction model also needs to be normalized, and the maximum and minimum value data corresponding to each time series can be used to perform 0-1 normalization processing on it, and then input it into the trained model. Subsequently, the wind power prediction result of the target medium- and long-term wind power prediction model is obtained. This result is used as the initial wind power, and it is also necessary to use the maximum power and minimum power used in the 0-1 normalization to perform denormalization processing, and then obtain the final wind power prediction result, that is, the wind power in the future period.
[0092] The wind power prediction method provided in the embodiment of the present application is specifically as follows: collecting multiple variables that affect the wind power of a target wind farm to generate a target sample variable set; the target sample variable set includes: multiple sample variables corresponding to the historical numerical weather forecast of the target wind farm and multiple sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm; obtaining the target sample historical wind power data of the target wind farm; based on the target sample variable set and the target sample historical wind power data, generating multiple sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data; inputting the multiple sample variable time series and the target sample historical wind power data time series into an initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain a target medium- and long-term wind power prediction model; the target medium- and long-term wind power prediction model is used to predict the medium- and long-term wind power in the future period based on the numerical weather forecast data and historical wind power data of the future period and the historical mesoscale wind condition data within a preset range. The embodiment of the present application collects multiple sample variables corresponding to the historical numerical weather forecast of the target wind farm and multiple sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm, thereby generating a target sample variable set, and obtaining the target sample historical wind power data of the target wind farm; the historical numerical weather forecast, the historical mesoscale wind condition data and the historical wind power data are input as training data into the initial multivariate parallel coding and temporal attention mechanism fusion network model for training. Compared with the prior art, adding the historical mesoscale wind condition data within a preset range around the target wind farm to the training data can more comprehensively consider the factors affecting wind power, and then the target medium- and long-term wind power prediction model obtained by training through the initial multivariate parallel coding and temporal attention mechanism fusion network model is more accurate. At the same time, the present application adopts the multivariate parallel coding and temporal attention mechanism fusion network model as the model architecture for initial training. Compared with the traditional model, it can more flexibly adjust the importance of different time series in the input model through its powerful feature selection ability and attention mechanism, thereby obtaining a higher prediction accuracy.
[0093] As an extension and refinement of the above embodiment, the wind power prediction method provided in the present application further includes the following steps S301 to S308:
[0094] S301. Collecting a historical numerical weather forecast dataset of the target wind farm.
[0095] The historical numerical weather forecast data set includes: wind speed, wind direction, temperature, air pressure, humidity and irradiance.
[0096] S302: Acquire geographical location information of the target wind farm.
[0097] S303. Based on the geographic location information, collect mesoscale wind condition data within the surrounding preset range upstream and downstream of the target wind farm to generate a historical mesoscale wind condition data set within the surrounding preset range.
[0098] In an embodiment of the present application, through the geographic location information of the target wind farm, several points within a preset range upstream and downstream of the target wind farm are first determined, and historical mesoscale wind condition data sets corresponding to the several points are obtained to form a historical mesoscale wind condition data set within the preset range.
[0099] It should be noted that the size of the preset range upstream and downstream of the target wind farm can be adjusted according to actual conditions, and the embodiment of the present application does not make a specific limitation.
[0100] S304: Generate the target variable dataset based on the historical numerical weather forecast dataset and the historical mesoscale wind condition dataset within the preset range.
[0101] S305: Collecting initial sample historical wind power data of the target wind farm.
[0102] In some embodiments, the wind power data obtained by the wind power SCADA system configured in the target wind farm may include abnormal data. If no processing is performed, the corresponding wind power time series will be generated, which will affect the accuracy of subsequent model training and cause inaccurate prediction results. Therefore, in an embodiment of the present application, it is necessary to first perform the preprocessing operation in step S306 on the wind power data obtained by the wind power SCADA system to improve the accuracy of the subsequent target sample historical wind power data time series.
[0103] S306: Perform a preprocessing operation on the initial sample historical wind power data to obtain the target sample historical wind power data.
[0104] The preprocessing operation includes: abnormal data identification, abnormal data elimination and data interpolation operations.
[0105] In some embodiments, for abnormal data in the historical initial wind power data, it is necessary to first identify the abnormal data and delete the identified abnormal data. After deleting the abnormal data, in order to ensure the continuity of the wind power data and to more accurately generate subsequent target sample historical wind power data time series, it is also necessary to perform data interpolation operations to make the historical wind power data smoother, thereby improving the accuracy of subsequent models.
[0106] S307. Based on the target sample variable set and the target sample historical wind power data, generate a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data.
[0107] S308. Input the multiple sample variable time series and the target sample historical wind power data time series into the initial multivariable parallel coding and temporal attention mechanism fusion network model, and perform model training through the input layer, variable selection layer, LSTM encoding layer, residual module layer, gating mechanism layer, multi-head attention module layer and output layer in the initial multivariable parallel coding and temporal attention mechanism fusion network model to obtain the target medium- and long-term wind power prediction model.
[0108] It should be noted that in an embodiment of the present application, when the initial multivariate parallel encoding and temporal attention mechanism fusion network model is trained, the K-fold cross-validation method can also be used to assist model training. The K-fold cross-validation method is a data splitting technique, which is defined as a method for estimating model performance on unseen data. K>1 folds can be used to achieve sample partitioning for different purposes, and it is also a technique for hyperparameter optimization so that models with optimal hyperparameter values can be trained. This is a resampling technique that does not require adding or modifying samples. The advantage of this method is that each sample case is only used for training and verification (as part of the test fold) once. This method helps to avoid overfitting, which may occur when all data are used to train the model. By using k-fold cross validation, the model can be "tested" on k different data sets for model adjustment, with the ultimate goal of selecting a model with high generalization performance.
[0109] Based on the same inventive concept, as an implementation of the above method, an embodiment of the present application also provides a wind power prediction device, which corresponds to the above method embodiment. For ease of reading, this embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the wind power prediction device in this embodiment can correspond to all the contents in the above method embodiment.
[0110] The present application provides a wind power prediction device. Figure 4 is a schematic diagram of the structure of the wind power prediction device, such as Figure 4 As shown, the wind power prediction device 400 includes:
[0111] The collection unit 401 is used to collect multiple variables that affect the wind power of the target wind farm to generate a target sample variable set; the target sample variable set includes: multiple sample variables corresponding to the historical numerical weather forecast of the target wind farm and multiple sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm;
[0112] An acquisition unit 402 is used to acquire target sample historical wind power data of the target wind farm;
[0113] A generating unit 403 is used to generate a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data based on the target sample variable set and the target sample historical wind power data;
[0114] The training unit 404 is used to input the multiple sample variable time series and the target sample historical wind power data time series into the initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain a target medium- and long-term wind power prediction model; the target medium- and long-term wind power prediction model is used to predict the medium- and long-term wind power in the future period based on the numerical weather forecast data and historical wind power data in the future period and the historical mesoscale wind condition data within a preset range.
[0115] As an optional implementation of the embodiment of the present application, the generating unit 403 is further used to unify the time resolution of the target sample variable time series and the target sample historical wind power data time series to a preset time resolution based on a linear interpolation method.
[0116] As an optional implementation of an embodiment of the present application, the training unit 404 is specifically used to input the multiple sample variable time series and the target sample historical wind power data time series into the initial multivariable parallel coding and temporal attention mechanism fusion network model, and perform model training through the input layer, variable selection layer, LSTM encoding layer, residual module layer, gating mechanism layer, multi-head attention module layer and output layer in the initial multivariable parallel coding and temporal attention mechanism fusion network model to obtain the target medium- and long-term wind power prediction model.
[0117] As an optional implementation of the embodiment of the present application, the training unit 404 is also used to obtain the variable time series corresponding to the historical mesoscale wind condition data of the target wind farm within the preset range and the historical wind power time series corresponding to the historical wind power data of the target wind farm; the historical data set includes: the historical wind power data of the target site and the historical mesoscale wind condition data within the preset range; collect numerical weather forecast data of the target wind farm in the future time period, and generate multiple variable time series corresponding to the numerical weather forecast data for the future time period; input the variable time series corresponding to the historical mesoscale wind condition data of the target wind farm within the preset range, the historical wind power time series corresponding to the historical wind power data of the target wind farm, and the multiple variable time series corresponding to the numerical weather forecast data for the future time period into the target medium- and long-term wind power prediction model to predict the wind power for the future time period.
[0118] As an optional implementation of the embodiment of the present application, the acquisition unit 401 is specifically used to collect a historical numerical weather forecast dataset of the target wind farm; the historical numerical weather forecast dataset includes: wind speed, wind direction, temperature, air pressure, humidity and irradiance; obtain the geographical location information of the target wind farm; based on the geographical location information, collect mesoscale wind condition data within the surrounding preset range upstream and downstream of the target wind farm to generate a historical mesoscale wind condition dataset within the surrounding preset range; based on the historical numerical weather forecast dataset and the historical mesoscale wind condition dataset within the preset range, generate the target variable dataset.
[0119] As an optional implementation of the embodiment of the present application, the acquisition unit 402 is specifically used to collect the initial sample historical wind power data of the target wind farm; perform preprocessing operations on the initial sample historical wind power data to obtain the target sample historical wind power data; the preprocessing operations include: abnormal data identification, abnormal data elimination and data interpolation operations.
[0120] Based on the same inventive concept, an embodiment of the present disclosure also provides an electronic device. Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as Figure 5 As shown, the electronic device provided in this embodiment includes: a memory 501 and a processor 502, wherein the memory 501 is used to store a computer program; and the processor 502 is used to execute the audio data processing method provided in the above embodiment when executing the computer program.
[0121] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computing device implements the wind power prediction method provided in the above embodiment.
[0122] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code.
[0123] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0124] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0125] Computer readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for predicting wind power. It is characterized in that include: Collect multiple variables that affect the wind power of the target wind farm to generate a target sample variable set; The target sample variable set includes: a plurality of sample variables corresponding to the historical numerical weather forecast of the target wind farm and a plurality of sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm; Acquire target sample historical wind power data of the target wind farm; Based on the target sample variable set and the target sample historical wind power data, generate a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data; The multiple sample variable time series and the target sample historical wind power data time series are input into the initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain a target medium- and long-term wind power prediction model; the target medium- and long-term wind power prediction model is used to predict the medium- and long-term wind power in the future period based on the numerical weather forecast data and historical wind power data in the future period and the historical mesoscale wind condition data within a preset range.
2. The method according to claim 1, It is characterized in that After generating a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data based on the target sample variable set and the target sample historical wind power data, the method further includes: Based on the linear interpolation method, the time resolutions of the target sample variable time series and the target sample historical wind power data time series are unified into a preset time resolution.
3. The method according to claim 1, It is characterized in that The step of inputting the multiple sample variable time series and the target sample historical wind power data time series into the initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain the target medium- and long-term wind power prediction model includes: The multiple sample variable time series and the target sample historical wind power data time series are input into the initial multivariable parallel coding and temporal attention mechanism fusion network model, and model training is performed through the input layer, variable selection layer, LSTM encoding layer, residual module layer, gating mechanism layer, multi-head attention module layer and output layer in the initial multivariable parallel coding and temporal attention mechanism fusion network model to obtain the target medium- and long-term wind power prediction model.
4. The method according to claim 1, It is characterized in that After obtaining the target medium- and long-term wind power prediction model, the method further includes: Acquire a variable time series corresponding to historical mesoscale wind condition data of the target wind farm within the preset range and a historical wind power time series corresponding to historical wind power data of the target wind farm; Collecting numerical weather forecast data of the target wind farm in a future period, and generating a plurality of variable time series corresponding to the numerical weather forecast data in the future period; The variable time series corresponding to the historical mesoscale wind condition data of the target wind farm within the preset range, the historical wind power time series corresponding to the historical wind power data of the target wind farm, and multiple variable time series corresponding to the numerical weather forecast data of the future time period are input into the target medium- and long-term wind power prediction model to predict the wind power of the future time period.
5. The method according to claim 1, It is characterized in that The collecting of variable data affecting the wind power of the target wind farm to generate a target variable data set includes: Collecting a historical numerical weather forecast data set of the target wind farm; the historical numerical weather forecast data set includes: wind speed, wind direction, temperature, air pressure, humidity and irradiance; Acquiring geographical location information of the target wind farm; Based on the geographical location information, mesoscale wind condition data within the preset surrounding range upstream and downstream of the target wind farm are collected to generate a historical mesoscale wind condition data set within the preset surrounding range; The target variable dataset is generated based on the historical numerical weather forecast dataset and the historical mesoscale wind condition dataset within the preset range.
6. The method according to claim 1, It is characterized in that The obtaining of the historical target wind power of the target wind farm comprises: Collecting initial sample historical wind power data of the target wind farm; A preprocessing operation is performed on the initial sample historical wind power data to obtain the target sample historical wind power data; the preprocessing operation includes: abnormal data identification, abnormal data elimination and data interpolation operation.
7. A wind power prediction device, It is characterized in that include: A collection unit, used for collecting multiple variables affecting the wind power of the target wind farm to generate a target sample variable set; The target sample variable set includes: a plurality of sample variables corresponding to the historical numerical weather forecast of the target wind farm and a plurality of sample variables corresponding to the historical mesoscale wind condition data within a preset range around the target wind farm; An acquisition unit, used for acquiring target sample historical wind power data of the target wind farm; A generating unit, configured to generate, based on the target sample variable set and the target sample historical wind power data, a plurality of sample variable time series corresponding to the target sample variable set and a target sample historical wind power data time series corresponding to the target sample historical wind power data; A training unit is used to input the multiple sample variable time series and the target sample historical wind power data time series into an initial multivariate parallel coding and temporal attention mechanism fusion network model for training to obtain a target medium- and long-term wind power prediction model; the target medium- and long-term wind power prediction model is used to predict the medium- and long-term wind power in the future period based on the numerical weather forecast data and historical wind power data in the future period and the historical mesoscale wind condition data within a preset range.
8. An electronic device, It is characterized in that include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the wind power prediction method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the wind power prediction method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method, device and apparatus for predicting wind power and computer readable storage medium
CN112836870A
Wind power plant power data prediction method and device, and electronic equipment
CN117559519A
Cited By
Wind power prediction method and device based on environment intelligent learning and medium
CN119674939A
Wind power prediction method and device, equipment and storage medium
CN120454061A
