Wind power prediction method and related device

By extracting the fluctuation and distribution characteristics of meteorological data and combining them with the prediction inaccuracy risk index, historical data is corrected only when there is a high risk. This solves the problems of accuracy and real-time performance in wind power prediction under extreme conditions and achieves efficient wind power prediction.

CN123162767APending Publication Date: 2026-11-24BEIJING CHINA POWER INFORMATION TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611100611.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing wind power prediction methods are inaccurate under extreme non-stationary conditions, have high computational overhead and low computational efficiency, and cannot balance accuracy and real-time performance, thus limiting their application in edge devices.

Method used

By extracting the fluctuation and distribution characteristics of meteorological data within a preset time window, future wind power is predicted. Based on the prediction inaccuracy risk index, it is decided whether to introduce historical data correction. Correction is only performed in high-risk situations to improve accuracy and stability and reduce computational overhead.

Benefits of technology

It improves the accuracy and stability of wind power forecasting, reduces computational overhead, and meets the real-time forecasting needs of edge devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123162767A_ABST
    Figure CN123162767A_ABST
Patent Text Reader

Abstract

This application provides a wind power prediction method and related equipment. The method includes: extracting fluctuation characteristic information and distribution characteristic information of meteorological data within a preset time window; predicting a first predicted wind power based on the meteorological data, fluctuation characteristic information, and distribution characteristic information within the preset time window; determining a prediction inaccuracy risk index based on the fluctuation characteristic information and distribution characteristic information; correcting the first predicted wind power based on target historical data in response to the prediction inaccuracy risk index being greater than a preset risk threshold, obtaining a second predicted wind power, and outputting the second predicted wind power as the final prediction result; and outputting the first predicted wind power as the final prediction result in response to the prediction inaccuracy risk index being less than or equal to the preset risk threshold. The method and related equipment of this application can improve the accuracy, stability, and computational efficiency of wind power prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power forecasting technology, and in particular to a wind power forecasting method and related equipment. Background Technology

[0002] Therefore, existing wind power prediction methods suffer from problems such as difficulty in fully capturing the impact of extreme non-stationary operating conditions on the prediction results, insufficient prediction accuracy, large computational overhead, and low computational efficiency. They cannot balance the accuracy and real-time performance of wind power prediction, thus limiting their application in edge-side equipment. Summary of the Invention

[0003] In view of this, the purpose of this application is to propose a wind power prediction method and related equipment to solve the above-mentioned technical problems.

[0004] To achieve the above objectives, this application provides a wind power prediction method, comprising:

[0005] Extract the fluctuation and distribution characteristics of meteorological data within the preset time window; Based on meteorological data within a preset time window, the fluctuation characteristic information, and the distribution characteristic information, the first predicted wind power is predicted for a preset time step in the future. Based on the fluctuation characteristic information and the distribution characteristic information, the prediction inaccuracy risk index corresponding to the first predicted wind power is determined. In response to the prediction inaccuracy risk index being greater than a preset risk threshold, target historical data matching meteorological data within a preset time window is selected from multiple historical actual wind power data. The first predicted wind power is corrected based on the target historical data to obtain the second predicted wind power, and the second predicted wind power is output as the final prediction result. In response to the prediction inaccuracy risk index being less than or equal to a preset risk threshold, the first predicted wind power is output as the final prediction result.

[0006] Furthermore, the extraction of fluctuation characteristic information and distribution characteristic information of meteorological data within a preset time window includes: A sliding time window of preset length is used to gradually slide along the meteorological data within the preset time window, and the local variance and local information entropy are calculated based on the meteorological data within each sliding time window. The fluctuation characteristic information is obtained by arranging the local variances corresponding to each sliding time window according to the time sequence of each sliding time window, and the distribution characteristic information is obtained by arranging the local information entropy corresponding to each sliding time window.

[0007] Furthermore, the local variance is calculated based on meteorological data within the sliding time window, including: The local variance is calculated using the following formula: ; in, For time step The local variance of the corresponding sliding time window, The number of characteristics of meteorological data, Indexing the characteristic dimensions of meteorological data, The length of the sliding time window. This is the time offset. For the first Each meteorological characteristic in time step The value of , For the first Each meteorological characteristic in time step The local mean within the corresponding sliding time window, This is the normalization function.

[0008] Furthermore, the local information entropy is calculated based on meteorological data within the sliding time window, including: The probability of meteorological data falling into each preset discrete interval within the sliding time window is statistically analyzed, and the probability distribution corresponding to each preset discrete interval is obtained. The local information entropy is calculated based on the probability distribution corresponding to each preset discrete interval.

[0009] Further, the step of predicting the first predicted wind power at a preset time step based on meteorological data within a preset time window, the fluctuation characteristic information, and the distribution characteristic information includes: The fluctuation feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the first key-side bias matrix; The distribution feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the second key-side bias matrix; Based on meteorological data within a preset time window, the first key-side bias matrix, and the second key-side bias matrix, the first predicted wind power is predicted.

[0010] Further, the prediction of the first predicted wind power based on meteorological data within a preset time window, the first key-side bias matrix, and the second key-side bias matrix includes: The meteorological data within a preset time window are smoothed in the frequency domain using the exponential decay kernel to obtain low-frequency trend characteristics. Based on the low-frequency trend characteristics, the query matrix, key matrix, and value matrix used to calculate the global attention features are determined. Based on the query matrix, the key matrix, the value matrix, the first key-side bias matrix, and the second key-side bias matrix, global attention features are calculated. Based on the global attention features, the first predicted wind power is predicted.

[0011] Further, predicting the first predicted wind power based on the global attention features includes: The global attention feature is residually concatenated with meteorological data within a preset time window to obtain a residual fusion feature. Based on the residual fusion features, a first predicted wind power with a preset time step is generated through a cross-attention mechanism.

[0012] Furthermore, the step of filtering target historical data from multiple historical actual wind power data to match meteorological data within a preset time window includes: Obtain historical meteorological data corresponding to each historical actual wind power data; The cosine similarity between meteorological data within a preset time window and each historical meteorological data is calculated to obtain multiple similarity values; Based on the similarity values ​​from largest to smallest, a preset number of historical actual wind power data corresponding to similarity values ​​are selected and determined as the target historical data.

[0013] Further, determining the prediction inaccuracy risk index corresponding to the first predicted wind power based on the fluctuation characteristic information and the distribution characteristic information includes: Calculate the mean values ​​of the fluctuation characteristic information and the distribution characteristic information respectively; The mean of the fluctuation characteristic information and the mean of the distribution characteristic information are weighted and fused to obtain the prediction inaccuracy risk index.

[0014] Based on the same inventive concept, this application also provides a wind power prediction device, comprising: The feature extraction module is used to extract the fluctuation feature information and distribution feature information of meteorological data within a preset time window, respectively. The prediction module is used to predict the first predicted wind power at a preset time step based on meteorological data within a preset time window, the fluctuation characteristic information, and the distribution characteristic information. The risk calculation module is used to determine the prediction inaccuracy risk index corresponding to the first predicted wind power based on the fluctuation characteristic information and the distribution characteristic information. The response module is used to, in response to the prediction inaccuracy risk index being greater than a preset risk threshold, filter out target historical data that matches meteorological data within a preset time window from multiple historical actual wind power data, correct the first predicted wind power based on the target historical data to obtain a second predicted wind power, and output the second predicted wind power as the final prediction result; in response to the prediction inaccuracy risk index being less than or equal to the preset risk threshold, output the first predicted wind power as the final prediction result.

[0015] Furthermore, the feature extraction module is also used to: A sliding time window of preset length is used to gradually slide along the meteorological data within the preset time window, and the local variance and local information entropy are calculated based on the meteorological data within each sliding time window. The fluctuation characteristic information is obtained by arranging the local variances corresponding to each sliding time window according to the time sequence of each sliding time window, and the distribution characteristic information is obtained by arranging the local information entropy corresponding to each sliding time window.

[0016] Furthermore, the feature extraction module is also used to: The local variance is calculated using the following formula: ; in, For time step The local variance of the corresponding sliding time window, The number of characteristics of meteorological data, Indexing the characteristic dimensions of meteorological data, The length of the sliding time window. This is the time offset. For the first Each meteorological characteristic in time step The value of , For the first Each meteorological characteristic in time step The local mean within the corresponding sliding time window, This is the normalization function.

[0017] Furthermore, the feature extraction module is also used to: The probability of meteorological data falling into each preset discrete interval within the sliding time window is statistically analyzed, and the probability distribution corresponding to each preset discrete interval is obtained. The local information entropy is calculated based on the probability distribution corresponding to each preset discrete interval.

[0018] Furthermore, the prediction module is also used to: The fluctuation feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the first key-side bias matrix; The distribution feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the second key-side bias matrix; Based on meteorological data within a preset time window, the first key-side bias matrix, and the second key-side bias matrix, the first predicted wind power is predicted.

[0019] Furthermore, the prediction module is also used to: The meteorological data within a preset time window are smoothed in the frequency domain using the exponential decay kernel to obtain low-frequency trend characteristics. Based on the low-frequency trend characteristics, the query matrix, key matrix, and value matrix used to calculate the global attention features are determined. Based on the query matrix, the key matrix, the value matrix, the first key-side bias matrix, and the second key-side bias matrix, global attention features are calculated. Based on the global attention features, the first predicted wind power is predicted.

[0020] Furthermore, the prediction module is also used to: The global attention feature is residually concatenated with meteorological data within a preset time window to obtain a residual fusion feature. Based on the residual fusion features, a first predicted wind power with a preset time step is generated through a cross-attention mechanism.

[0021] Furthermore, the response module is also used to: Obtain historical meteorological data corresponding to each historical actual wind power data; The cosine similarity between meteorological data within a preset time window and each historical meteorological data is calculated to obtain multiple similarity values; Based on the similarity values ​​from largest to smallest, a preset number of historical actual wind power data corresponding to similarity values ​​are selected and determined as the target historical data.

[0022] Furthermore, the risk calculation module is also used to: Calculate the mean values ​​of the fluctuation characteristic information and the distribution characteristic information respectively; The mean of the fluctuation characteristic information and the mean of the distribution characteristic information are weighted and fused to obtain the prediction inaccuracy risk index.

[0023] Based on the same inventive concept, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method described above when executing the computer program.

[0024] Based on the same inventive concept, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing a computer to perform the method described above.

[0025] As can be seen from the above, the wind power prediction method and related equipment provided in this application first extract the fluctuation characteristic information and distribution characteristic information of meteorological data within a preset time window. Then, based on the meteorological data, fluctuation characteristic information, and distribution characteristic information within the preset time window, a first predicted wind power for a preset time step is predicted. Next, a prediction inaccuracy risk index is determined based on the fluctuation characteristic information and distribution characteristic information. Finally, based on the prediction inaccuracy risk index, it is determined whether to introduce historical actual wind power data to correct the first predicted wind power. If the prediction inaccuracy risk index is greater than a preset risk threshold, the first predicted wind power is corrected using target historical data to obtain and output a second predicted wind power. If the prediction inaccuracy risk index is less than or equal to the preset risk threshold, the first predicted wind power is directly output as the prediction result. Through the above steps, on the one hand, the impact of different wind conditions on wind power prediction results can be identified by combining the short-term fluctuations and state distribution of meteorological data, and the prediction results can be specifically corrected under complex wind conditions, thereby improving the accuracy and stability of wind power prediction; on the other hand, the historical data screening and correction process is only initiated when the risk of prediction inaccuracy is high, avoiding the need to perform historical data retrieval for all meteorological data, reducing unnecessary computational overhead, improving prediction efficiency, and helping to meet the real-time prediction needs of edge devices with limited computing power. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a schematic diagram of a wind power prediction method according to an embodiment of this application; Figure 2 This is a schematic diagram of the loss curve of the prediction model in an embodiment of this application during the training process; Figure 3 This is a comparison chart of the wind power prediction results and actual results of the prediction model in this application embodiment; Figure 4 This is a schematic diagram of a wind power prediction device according to an embodiment of this application; Figure 5This is a schematic diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0029] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0030] As an important clean and renewable energy source, wind power's large-scale grid connection places high demands on the safe and stable operation of the power system. Because wind speed is influenced by various factors such as terrain conditions and weather changes, wind power sequences typically exhibit randomness, intermittency, and non-stationarity. Therefore, accurately predicting wind power output over the next few hours to tens of hours is crucial for grid dispatching, peak-shaving control, and electricity market transactions.

[0031] Currently, wind power prediction methods have evolved from traditional physical modeling and statistical methods to modern deep learning methods. Early statistical models such as autoregressive moving averages relied on the assumption of data stationarity, making it difficult to fit the complex nonlinear dynamic processes of wind power. In recent years, with the popularization of artificial intelligence technology, recurrent neural networks (such as LSTM and GRU) and Transformer architectures based on self-attention mechanisms have been gradually applied to wind power prediction due to their powerful long-term feature extraction capabilities.

[0032] However, existing deep learning prediction models still have the following problems when dealing with complex wind conditions.

[0033] 1. Existing deep sequence models have limited ability to identify short-term fluctuations in wind conditions.

[0034] Existing time-series prediction models based on deep learning primarily extract features based on the correlations between input data. For example, self-attention mechanisms typically assign attention weights based on the correlation between features at different time steps. However, in complex wind conditions, relying solely on data correlations is insufficient to accurately determine whether the current period is a stable power generation phase or a period of turbulent fluctuations, to distinguish between stable wind conditions and short-term drastic wind fluctuations, and to highlight local abrupt changes that significantly impact the prediction results.

[0035] When meteorological data such as wind speed and wind direction change significantly in a short period of time, such as during high-frequency sudden changes or extreme non-stationary conditions, some time steps with important predictive value may not be fully considered by the model due to their numerical characteristics being significantly different from other time steps, thus leading to erroneous predictions that are seriously lagging or deviate from the actual trend.

[0036] 2. Existing multi-source feature fusion methods are difficult to directly apply to the attention allocation process within the model.

[0037] To improve prediction accuracy, meteorological data, statistical features, or external covariates can be introduced into wind power prediction models. However, existing methods typically fuse these features by concatenating input features or weighting output results. This shallow fusion approach simply concatenates or weights different types of features, still requiring the model to learn the correlation between wind condition statistical features and deep time-series features, resulting in extremely low efficiency. Furthermore, it is difficult to directly influence the attention allocation process within the network, thus limiting its ability to improve the model's adaptability under complex wind conditions.

[0038] 3. Prediction correction mechanisms for extreme weather conditions suffer from high computational costs.

[0039] Under extreme weather conditions, real-time meteorological data may deviate from the distribution range of regular training samples, forming out-of-distribution samples or long-tailed samples. In this case, the prediction model trained based on regular samples may experience increased prediction errors. Retrieving historical data on similar operating conditions can, to some extent, correct the initial prediction results. To determine whether to initiate the retrieval and correction process, on the one hand, an additional error assessment network or uncertainty assessment network needs to be constructed; on the other hand, historical operating condition retrieval needs to be performed on all input data. This, in turn, introduces problems of high computational cost, high energy consumption, and high latency. In practical engineering scenarios where the computing power of edge computing equipment in wind farms is limited, this high-energy-consuming and high-latency blind retrieval mechanism is difficult to meet the real-time requirements of millisecond-level or second-level ultra-short-term wind power prediction.

[0040] Therefore, existing wind power prediction methods have the following problems: difficulty in fully capturing the impact of extreme non-stationary operating conditions on prediction results, insufficient prediction accuracy under complex wind conditions, large computational overhead, and low computational efficiency. They are difficult to balance the accuracy and real-time performance of wind power prediction, which limits their application in edge-side equipment.

[0041] In view of this, this application provides a wind power prediction method that can improve prediction accuracy and stability, reduce unnecessary computational overhead, improve prediction efficiency, and help meet the real-time prediction needs of edge devices with limited computing power.

[0042] The embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0043] like Figure 1 As shown, the method includes: S101. Extract the fluctuation characteristic information and distribution characteristic information of meteorological data within the preset time window respectively; Specifically, meteorological data is multidimensional data, which can include multiple feature dimensions such as wind speed, wind direction, temperature, air pressure, and humidity. Fluctuation feature information is used to characterize the short-term fluctuation of meteorological data within a preset time window, while distribution feature information is used to characterize the distribution of meteorological data within different state ranges.

[0044] Furthermore, meteorological data can be collected through a multi-source heterogeneous sensor network deployed within the wind farm. This network may include a Supervisory Control and Data Acquisition (SCADA) system, wind measurement towers, and other meteorological monitoring equipment. By aggregating data collected from different sources, multi-dimensional meteorological data within a preset time window can be obtained. For example, the multi-source heterogeneous sensors collect various types of meteorological data at a 15-minute sampling interval; other sampling intervals can also be used, with no specific limitations.

[0045] Furthermore, the meteorological data within the preset time window is standardized data.

[0046] Meteorological data within a preset time window , The number of time steps for the preset time window. This refers to the number of features in meteorological data. Before standardizing meteorological data, data collected from different sensors can be cleaned first. For example, when meteorological data contains missing values, these missing values ​​can be imputed based on meteorological data from adjacent time steps or based on the correlation between meteorological features of different dimensions, thereby improving the completeness of the meteorological data.

[0047] Then, for the different dimensions of meteorological features after cleaning, standardization is performed based on the mean and standard deviation of the corresponding features in the training set. For the time step... The corresponding number The standardized result of a meteorological feature can be expressed as: ; in, Indicates the first before standardization. Each meteorological characteristic in time step The value of , After standardization Each meteorological characteristic in time step The value of , For the first The mean of each meteorological feature on the training set For the first The standard deviation of each meteorological feature on the training set. By standardizing meteorological features of different dimensions, meteorological features with different dimensions and numerical ranges can be transformed to a relatively consistent numerical scale, reducing the impact of numerical differences between different features on the model training process.

[0048] S102. Based on meteorological data within a preset time window, the fluctuation characteristic information, and the distribution characteristic information, predict the first predicted wind power at a preset time step in the future. Specifically, the output power of wind turbines is closely related to meteorological factors such as wind speed, wind direction, temperature, and air pressure, and meteorological conditions have a certain degree of continuity over time. By analyzing meteorological data over a historical period, the trend of meteorological conditions changing over time can be extracted, and the changes in wind power in the future can be predicted accordingly.

[0049] Furthermore, fluctuation characteristic information can reflect the degree of fluctuation of meteorological data within a short time range, while distribution characteristic information can reflect the distribution of meteorological data within different state ranges. Combining fluctuation characteristic information and distribution characteristic information with meteorological data allows the model to further identify whether the current wind condition is in a stable state or a state with significant fluctuations, based on the extraction of the temporal variation patterns of meteorological data, thereby improving the accuracy of wind power prediction results under different wind conditions.

[0050] For example, the preset time window can be set to 72 time steps, corresponding to historical meteorological data over the past 18 hours; the future preset time step can be set to 12 time steps, corresponding to wind power forecast results over the next 3 hours. The preset time window and the future preset time step can also be set to other values ​​according to actual conditions, without any specific restrictions.

[0051] S103. Based on the fluctuation characteristic information and the distribution characteristic information, determine the prediction inaccuracy risk index corresponding to the first predicted wind power; Specifically, the prediction inaccuracy risk index is used to characterize the degree of risk of a significant prediction deviation in the first predicted wind power output under current meteorological conditions. A high prediction inaccuracy risk index indicates that the meteorological data within the preset time window fluctuates drastically in the short term, or that the distribution of meteorological data across different state ranges is relatively dispersed, indicating that the current meteorological conditions are more complex than normal meteorological conditions, and the risk of a significant prediction deviation in the first predicted wind power output increases accordingly. Conversely, a low prediction inaccuracy risk index indicates that the meteorological data within the preset time window fluctuates less in the short term, or that the distribution of meteorological data in different state ranges is relatively concentrated, indicating that the current meteorological conditions are relatively stable, and the risk of a significant prediction deviation in the first predicted wind power output decreases accordingly.

[0052] S104. In response to the prediction inaccuracy risk index being greater than a preset risk threshold, target historical data matching meteorological data within a preset time window is selected from multiple historical actual wind power data. The first predicted wind power is corrected based on the target historical data to obtain the second predicted wind power, and the second predicted wind power is output as the final prediction result. In response to the prediction inaccuracy risk index being less than or equal to a preset risk threshold, the first predicted wind power is output as the final prediction result.

[0053] Specifically, the prediction inaccuracy risk index is compared with a preset risk threshold to determine whether further correction is needed for the first predicted wind power. When the prediction inaccuracy risk index exceeds the preset risk threshold, it indicates that the short-term fluctuations under current meteorological conditions are high or the data distribution is relatively scattered, posing a significant risk of prediction inaccuracy for the first predicted wind power. In this case, target historical data matching the meteorological data within a preset time window is selected from multiple historical actual wind power data sets. The first predicted wind power is then corrected based on the target historical data to obtain the second predicted wind power. The second predicted wind power, corrected by the target historical data, better reflects current meteorological conditions, resulting in a more accurate prediction.

[0054] When the prediction inaccuracy risk index is less than or equal to the preset risk threshold, it indicates that the current meteorological conditions are relatively stable, and the risk of a large prediction deviation in the first predicted wind power is low. Therefore, there is no need to initiate a correction process based on historically similar operating conditions. In this case, the first predicted wind power is directly output as the final prediction result.

[0055] Therefore, the process of screening and correcting historical similar operating conditions can be initiated only when there is a high risk of inaccuracy in the first predicted wind power, avoiding the need to perform historical data retrieval for all input data. This improves the accuracy of predictions under complex weather conditions while reducing unnecessary computational overhead.

[0056] In this embodiment, based on steps S101-S104, firstly, the fluctuation characteristic information and distribution characteristic information of meteorological data within a preset time window are extracted. Secondly, based on the meteorological data, fluctuation characteristic information, and distribution characteristic information within the preset time window, the first predicted wind power for a preset time step is predicted. Then, based on the fluctuation characteristic information and distribution characteristic information, a prediction inaccuracy risk index is determined. Finally, based on the prediction inaccuracy risk index, it is determined whether to introduce historical actual wind power data to correct the first predicted wind power. If the prediction inaccuracy risk index is greater than a preset risk threshold, the first predicted wind power is corrected using target historical data to obtain and output the second predicted wind power. If the prediction inaccuracy risk index is less than or equal to the preset risk threshold, the first predicted wind power is directly output as the prediction result. Through the above steps, on the one hand, the impact of different wind conditions on wind power prediction results can be identified by combining the short-term fluctuations and state distribution of meteorological data, and the prediction results can be specifically corrected under complex wind conditions, thereby improving the accuracy and stability of wind power prediction; on the other hand, the historical data screening and correction process is only initiated when the risk of prediction inaccuracy is high, avoiding the need to perform historical data retrieval for all meteorological data, reducing unnecessary computational overhead, improving prediction efficiency, and helping to meet the real-time prediction needs of edge devices with limited computing power.

[0057] In some embodiments, the step of extracting the fluctuation characteristic information and distribution characteristic information of meteorological data within a preset time window includes: A sliding time window of preset length is used to gradually slide along the meteorological data within the preset time window, and the local variance and local information entropy are calculated based on the meteorological data within each sliding time window. The fluctuation characteristic information is obtained by arranging the local variances corresponding to each sliding time window according to the time sequence of each sliding time window, and the distribution characteristic information is obtained by arranging the local information entropy corresponding to each sliding time window.

[0058] Specifically, within a preset time window, a sliding time window of preset length is used to gradually slide along the time axis on the meteorological data sequence. For each time step, the local variance and local information entropy are calculated based on the meteorological data within the corresponding sliding time window.

[0059] The local variances corresponding to each time step are arranged sequentially according to their order to obtain the fluctuation characteristic information. The distribution feature information is obtained by sequentially arranging the local information entropy corresponding to each time step. : ; ; in, This indicates the number of time steps within the preset time window. , ... They represent the 1st, 2nd, ..., Local variance of meteorological data within a sliding time window corresponding to each time step; , ... They represent the 1st, 2nd, ..., Local information entropy of meteorological data within a sliding time window corresponding to each time step.

[0060] For example, the sliding step size for gradually sliding along the meteorological data within a preset time window can be set to 1, or it can be set to other values ​​according to the actual situation, without any specific restrictions.

[0061] In this embodiment, by progressively sliding the calculation of local variance and local information entropy on the meteorological data sequence, and forming fluctuation characteristic information and distribution characteristic information in chronological order, the fluctuation and distribution changes of meteorological data in different time periods can be reflected, providing a more complete characteristic basis for subsequent wind power prediction.

[0062] In some embodiments, the local variance is calculated based on meteorological data within a sliding time window, including: The local variance is calculated using the following formula: ; in, For time step The local variance of the corresponding sliding time window, The number of characteristics of meteorological data, Indexing the characteristic dimensions of meteorological data, The length of the sliding time window. This is the time offset. For the first Each meteorological characteristic in time step The value of , For the first Each meteorological characteristic in time step The local mean within the corresponding sliding time window, This is the normalization function.

[0063] Specifically, regarding time steps Based on the meteorological data within the sliding time window corresponding to the time step, the local variance of each dimension of meteorological characteristics within the sliding time window is calculated. The local variances corresponding to each dimension of meteorological characteristics are then averaged and normalized to obtain the normalized averaged local variance. This allows us to obtain short-term fluctuation information of meteorological data within the current sliding time window.

[0064] In this embodiment, the local variance is calculated for each sliding time window corresponding to different time steps, which yields the local fluctuation characteristics of meteorological data over time. This forms fluctuation characteristic information that reflects the short-term fluctuations of meteorological data within different time periods. Therefore, in subsequent forecasting processes, meteorological change information can be accurately captured, the impact of meteorological fluctuations on wind power changes can be fully considered, and the accuracy of forecast results can be effectively improved.

[0065] In some embodiments, the local information entropy is calculated based on meteorological data within a sliding time window, including: The probability of meteorological data falling into each preset discrete interval within the sliding time window is statistically analyzed, and the probability distribution corresponding to each preset discrete interval is obtained. The local information entropy is calculated based on the probability distribution corresponding to each preset discrete interval.

[0066] Specifically, meteorological data within a sliding time window is typically continuous. To facilitate analysis of the distribution of meteorological data across different state ranges, multiple preset discrete intervals are pre-defined, and then the continuous meteorological data is mapped to these preset discrete intervals. For example, the value space of the meteorological data can be divided into B=16 preset discrete intervals.

[0067] Then, the probability of meteorological data falling into each preset discrete interval within the sliding time window is statistically analyzed to obtain the probability distribution corresponding to each preset discrete interval. Finally, based on the probability distribution corresponding to each preset discrete interval, the local information entropy is calculated.

[0068] Local information entropy reflects the distribution of meteorological data across different state ranges. When meteorological data is mainly concentrated in a few pre-defined discrete intervals, the local information entropy is relatively low, indicating that the state distribution of meteorological data is relatively concentrated within the current time period. When meteorological data is dispersed across many pre-defined discrete intervals, the local information entropy is relatively high, indicating that the state distribution of meteorological data is relatively dispersed within the current time period.

[0069] Furthermore, the local information entropy is calculated using the following formula: ; in, For time step The local information entropy of the corresponding sliding time window, To preset the number of discrete intervals, For the index of the preset discrete interval. For meteorological data falling within the sliding time window The probability of a preset discrete interval. This is the normalization function.

[0070] Furthermore, meteorological data can be multidimensional feature data. When meteorological data is multidimensional feature data, the meteorological data corresponding to each time step can include multiple meteorological features such as wind speed, wind direction, temperature, humidity, and air pressure. Correspondingly, each preset discrete interval corresponds to a joint value range defined by multiple dimensions of meteorological features.

[0071] For example, when meteorological data includes meteorological features in two dimensions: wind speed and temperature, wind speed and temperature can be divided into three value ranges respectively. Wind speed can be divided into low wind speed range, medium wind speed range, and high wind speed range, and temperature can be divided into low temperature range, medium temperature range, and high temperature range. Combining different wind speed ranges with different temperature ranges yields nine preset discrete intervals, each corresponding to a joint value range defined by both the wind speed range and the temperature range.

[0072] For example, the first preset discrete interval corresponds to the low wind speed range and the low temperature range; the second preset discrete interval corresponds to the low wind speed range and the medium temperature range; the third preset discrete interval corresponds to the low wind speed range and the high temperature range; the fourth preset discrete interval corresponds to the medium wind speed range and the low temperature range; the fifth preset discrete interval corresponds to the medium wind speed range and the medium temperature range; the sixth preset discrete interval corresponds to the medium wind speed range and the high temperature range; the seventh preset discrete interval corresponds to the high wind speed range and the low temperature range; the eighth preset discrete interval corresponds to the high wind speed range and the medium temperature range; and the ninth preset discrete interval corresponds to the high wind speed range and the high temperature range.

[0073] For each time step within the sliding time window, the meteorological data corresponding to that time step is mapped to a corresponding preset discrete interval based on the range of wind speed and temperature values. For example, when the wind speed at a certain time step is in the medium wind speed range and the temperature is in the high temperature range, the meteorological data corresponding to that time step is mapped to the 6th preset discrete interval.

[0074] For each time step within the sliding time window, based on the meteorological characteristics of each time step, the preset discrete intervals into which the multidimensional meteorological data for that time step falls are determined, and the number of time steps falling into each preset discrete interval is counted to determine the probability corresponding to each preset discrete interval. Therefore, the local information entropy corresponding to the sliding time window can be calculated based on the distribution of multidimensional meteorological data within each preset discrete interval.

[0075] For example, the number of preset discrete intervals can be set to 16, or it can be set to other values ​​according to the actual situation, such as 14, 13, 12, 15, 18, 20, 25, etc., without any specific restrictions.

[0076] In this embodiment, by gradually sliding along the time axis on the meteorological data sequence and calculating the local information entropy corresponding to each sliding time window, the distribution characteristics of meteorological data over time can be obtained. Therefore, in subsequent forecasting, the distribution of meteorological data across different time periods can be combined to identify time periods with significant changes in meteorological conditions. This allows the wind power forecasting process to more fully consider the impact of changes in meteorological data distribution on the forecast results, thereby improving the accuracy of the forecasts.

[0077] In some embodiments, predicting the first predicted wind power at a preset time step based on meteorological data within a preset time window, the fluctuation characteristic information, and the distribution characteristic information includes: The fluctuation feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the first key-side bias matrix; The distribution feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the second key-side bias matrix; Based on meteorological data within a preset time window, the first key-side bias matrix, and the second key-side bias matrix, the first predicted wind power is predicted.

[0078] Specifically, the transformation formula for the first bond-side bias matrix is ​​as follows: ; in, This is the first bond-side bias matrix. For fluctuation characteristic information; A multilayer perceptron, corresponding to the fluctuation feature information, is used to map the fluctuation feature information to a multi-head attention space; This is for tensor broadcast operations.

[0079] The transformation formula for the second bond-side bias matrix is ​​as follows: ; in, This is the second bond-side bias matrix. For distribution characteristic information, A multilayer perceptron, corresponding to the distribution feature information, is used to map the distribution feature information to a multi-head attention space. This is for tensor broadcast operations.

[0080] In this embodiment, fluctuation and distribution characteristics are mapped to the multi-head attention space, and corresponding key-side bias matrices are generated through tensor broadcasting. This allows short-term fluctuations and distribution changes in meteorological data to directly influence the attention allocation process within the model. Therefore, when predicting wind power, the level of attention given to meteorological data in different time periods can be dynamically adjusted based on the degree of fluctuation and distribution within those periods. This enhances the feature extraction capability for key time periods with significant meteorological changes, thereby more fully considering the impact of complex weather on wind power prediction results and improving the accuracy and stability of the predictions.

[0081] In some embodiments, predicting the first predicted wind power based on meteorological data within a preset time window, the first key-side bias matrix, and the second key-side bias matrix includes: The meteorological data within a preset time window are smoothed in the frequency domain using the exponential decay kernel to obtain low-frequency trend characteristics. Based on the low-frequency trend characteristics, the query matrix, key matrix, and value matrix used to calculate the global attention features are determined. Based on the query matrix, the key matrix, the value matrix, the first key-side bias matrix, and the second key-side bias matrix, global attention features are calculated. Based on the global attention features, the first predicted wind power is predicted.

[0082] Specifically, the low-frequency trend characteristics are calculated using the following formula: ; in, It is a low-frequency trend characteristic. Meteorological data within a preset time window, It is an exponentially decaying kernel. For Fourier transform, For inverse Fourier transform, This is for element-wise multiplication.

[0083] Define time lag The exponential decay kernel function is as follows: ;in, Scaling factor It is the damping factor; This indicates that the exponentially decaying kernel function has a time lag. The values ​​at the specified points are used. The scaling factor and damping factor are learnable parameters that can be updated during model training. An exponentially decaying kernel is constructed based on the function values ​​corresponding to different time lags. .

[0084] Furthermore, the global attention features are calculated using the following formula: ; ; in, For attention scoring matrix, For querying the matrix, The key matrix, Let be the transpose of the key matrix. The feature dimension of the key vector. , These are the first gating parameter and the second gating parameter, respectively. , These are all learnable gating parameters used to adjust the influence of the first-key bias matrix and the second-key bias matrix on the attention score; This is the first bond-side bias matrix. This is the second bond-side bias matrix. For value matrices, This is a global attention feature.

[0085] In this embodiment, the meteorological data is first smoothed in the frequency domain using an exponential decay kernel to reduce the impact of local high-frequency disturbances on the feature extraction results, and low-frequency trend features reflecting the overall trend of meteorological data are extracted. The first key-side bias matrix reflects the fluctuation of meteorological data over different time periods, and the second key-side bias matrix reflects the distribution changes of meteorological data over different time periods. Combining the first and second key-side bias matrices to calculate the global attention process allows for full consideration of the fluctuations and distribution of meteorological data during the global attention calculation. Therefore, in wind power prediction, the focus on key time periods with significant meteorological changes can be increased, while excessive attention to time periods with weaker predictive power can be reduced. This allows the obtained global attention features to more fully reflect the complex patterns of meteorological changes, thereby improving the accuracy and stability of wind power prediction.

[0086] In some embodiments, predicting the first predicted wind power based on the global attention features includes: The global attention feature is residually concatenated with meteorological data within a preset time window to obtain a residual fusion feature. Based on the residual fusion features, a first predicted wind power with a preset time step is generated through a cross-attention mechanism.

[0087] Specifically, by using residual connections, the correlation between different time periods represented by global attention features can be introduced while preserving the original features of meteorological data, thereby reducing the loss of effective information during feature extraction.

[0088] Furthermore, the residual fusion features are input into a learnable query-based decoder. The decoder uses a cross-attention mechanism to extract feature information related to each future prediction time step from the residual fusion features, and generates wind power prediction values ​​for the future preset time steps, thus obtaining the first predicted wind power.

[0089] Furthermore, before inputting the residual fusion features into the learnable query-based decoder, a feedforward neural network can be used to process them. This feedforward neural network consists of a first linear layer, an activation layer, and a second linear layer. The first linear layer performs a linear mapping on the residual fusion features, the activation layer performs nonlinear activation on the linearly mapped features, and finally, the second linear layer remaps the nonlinearly activated features to obtain the enhanced residual fusion features. This amplifies the nonlinear physical relationships within the residual fusion features. The residual fusion features processed by the feedforward neural network are then input into the learnable query-based decoder to generate the first predicted wind power at a predetermined future time step through a cross-attention mechanism.

[0090] In this embodiment, the wind power prediction results within a preset time step can be obtained directly, reducing the error propagation caused by time-step recursive prediction, thereby improving the accuracy and efficiency of wind power prediction.

[0091] In some embodiments, the step of filtering target historical data that matches meteorological data within a preset time window from multiple historical actual wind power data includes: Obtain historical meteorological data corresponding to each historical actual wind power data; The cosine similarity between meteorological data within a preset time window and each historical meteorological data is calculated to obtain multiple similarity values; Based on the similarity values ​​from largest to smallest, a preset number of historical actual wind power data corresponding to similarity values ​​are selected and determined as the target historical data.

[0092] Specifically, the cloud-based data platform can pre-establish a historical operating condition database. This database stores historical meteorological data corresponding to multiple historical time periods, as well as historical actual wind power data corresponding to each historical meteorological data point.

[0093] When it is necessary to correct the first predicted wind power, meteorological data within a preset time window is used as the data to be matched. The cosine similarity between the data to be matched and each historical meteorological data is calculated, resulting in multiple similarity values. A preset number of historical meteorological data points are selected according to the order of similarity values ​​from largest to smallest, and the corresponding historical actual wind power data is obtained as the target historical data. Specifically, the preset number can be 6, 7, 8, 9, 10, etc., with no specific limitation.

[0094] Furthermore, the second predicted wind power output is calculated using the following formula: ; ; in, This is a global correction value. Indexing the target historical data. For the second predicted wind power, The first predicted wind power output, As the gating factor, For the first Historical data for each target For the first The weights of historical data for each target. Specifically, the gating factor. It can be derived from the prediction inaccuracy risk index This approach achieves the optimal balance between baseline generalization capability and historical empirical experience, effectively mitigating prediction errors caused by anomalous changes and improving the accuracy and robustness of wind power prediction.

[0095] By calculating the cosine similarity, the samples with the highest similarity were selected. The historical meteorological data is obtained by acquiring historical actual wind power sequences corresponding to the historical meteorological data, thus obtaining the target historical data: ,in ... The target historical data is divided into M, numbered 1 through M. Then, the similarity value corresponding to each target historical data point is normalized using the Softmax function; the normalized value is the weight of that target historical data point. Finally, based on each weight, all target historical data points are weighted and fused to obtain the global correction value. .

[0096] In this embodiment, by calculating the cosine similarity between meteorological data within a preset time window and historical meteorological data, and selecting historical actual wind power data corresponding to historical meteorological data with high similarity, historical power data that is closer to the current meteorological conditions can be filtered out, reducing the interference of irrelevant historical data on the prediction correction process. Therefore, this provides a more targeted reference for correcting the first predicted wind power, improving the accuracy of wind power prediction under complex meteorological conditions, while reducing unnecessary data processing overhead.

[0097] In some embodiments, determining the prediction inaccuracy risk index corresponding to the first predicted wind power based on the fluctuation characteristic information and the distribution characteristic information includes: Calculate the mean values ​​of the fluctuation characteristic information and the distribution characteristic information respectively; The mean of the fluctuation characteristic information and the mean of the distribution characteristic information are weighted and fused to obtain the prediction inaccuracy risk index.

[0098] Specifically, the prediction inaccuracy risk index is calculated using the following formula: ; in, To predict the risk index of inaccuracy, For fluctuation characteristic information, For distribution characteristic information, and These are the first fusion weight and the second fusion weight, respectively. This is for averaging.

[0099] Furthermore, the preset risk threshold is: It can be obtained by fitting historical probability distributions. The prediction inaccuracy risk index is calculated in real time by edge computing nodes. When the risk exceeds the preset risk threshold, i.e. This indicates that current meteorological conditions may deviate from the normal meteorological range, and the first predicted wind power output... There is a high risk of prediction inaccuracy. In this case, a high-risk warning is issued, triggering subsequent adjustments to the first predicted wind power output using historical target data. The process of making corrections; conversely, if If the wind conditions are stable, the first predicted wind power will be directly output at the edge computing node. Therefore, while ensuring the reliability of predictions, unnecessary historical data retrieval and correction calculations can be reduced, thereby improving the response efficiency of edge-side predictions.

[0100] Faced with long-tailed operating conditions such as extreme weather events that deviate from the normal sample distribution, traditional deep learning models may struggle to promptly identify situations where the reliability of prediction results declines, continuing to output results according to the conventional prediction path, thereby increasing wind power prediction deviations and grid dispatch risks. In this embodiment, the fluctuation characteristic information and distribution characteristic information obtained from the aforementioned calculations are reused to determine the prediction inaccuracy risk index corresponding to the first predicted wind power, in order to identify the degree of risk of significant deviations in the prediction results under the current meteorological conditions. Since the fluctuation characteristic information and distribution characteristic information have already been extracted in the aforementioned prediction process, there is no need to construct an additional complex error evaluation network, nor is it necessary to perform historical data retrieval for all input data. When the prediction inaccuracy risk index exceeds a preset risk threshold, target historical data matching the current meteorological conditions is introduced to correct the first predicted wind power. Therefore, when meteorological conditions show significant fluctuations or deviate from the normal distribution, the prediction correction process can be initiated promptly, improving the accuracy of wind power prediction under complex meteorological conditions while reducing unnecessary computational overhead and improving prediction efficiency.

[0101] To further verify the technical effectiveness of this application, the prediction method of this application was tested and verified on a real open-source wind farm dataset.

[0102] A prediction model is constructed using the wind power prediction method provided in this application, and the model is trained using a publicly available wind farm dataset. The loss convergence curve during model training is shown below. Figure 2 As shown.

[0103] from Figure 2 As can be seen, both training loss and validation loss decrease rapidly as the training process progresses, and gradually stabilize after about seven training epochs. The trends of the training loss and validation loss are quite similar, indicating that the prediction model can converge quickly and has good generalization ability. Therefore, by incorporating the fluctuation and distribution characteristics of meteorological data into the feature extraction process within the model, the model's ability to identify different wind conditions can be improved, which helps reduce the number of iterations required for model training and lowers the model training cost.

[0104] Furthermore, the trained prediction model is used to predict short-term wind power, and the predicted wind power is compared with the corresponding actual wind power. The comparison results are as follows: Figure 3 As shown.

[0105] from Figure 3It can be seen that the wind power prediction curve output by the prediction model closely matches the overall trend of the actual wind power curve. During periods of significant power fluctuations, such as the ramp-up and peak phases corresponding to time steps 200-400 in the figure, the prediction model can still accurately follow the actual wind power trend. The prediction model not only extracts temporal variation features based on historical meteorological data but also further incorporates the fluctuation and distribution characteristics of the meteorological data to adjust the feature extraction results for different time periods. This improves the model's focus on key time periods with significant meteorological changes and reduces the likelihood of overly smoothed predictions or predictions that lag behind the actual trend.

[0106] Quantitative tests show that, compared to baseline models such as LSTM, the prediction method provided in this application reduces the root mean square error (RMSE) by approximately 40.0% and the mean absolute error (MAE) by approximately 50.6%. Furthermore, in the binary classification evaluation of high and low output states, the area under the curve (AUC) reaches 0.9810.

[0107] The test results above show that the method provided in this application can improve the fitting degree between the wind power prediction results and the actual wind power, and has a better ability to distinguish between high and low power output states, thus providing a more reliable basis for wind power prediction for grid dispatch.

[0108] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0109] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0110] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a wind power prediction device.

[0111] refer to Figure 4 The device includes: The feature extraction module 401 is used to extract the fluctuation feature information and distribution feature information of meteorological data within a preset time window, respectively. Prediction module 402 is used to predict the first predicted wind power at a preset time step based on meteorological data within a preset time window, the fluctuation characteristic information and the distribution characteristic information. The risk calculation module 403 is used to determine the prediction inaccuracy risk index corresponding to the first predicted wind power based on the fluctuation characteristic information and the distribution characteristic information. The response module 404 is used to, in response to the prediction inaccuracy risk index being greater than a preset risk threshold, filter out target historical data that matches meteorological data within a preset time window from multiple historical actual wind power data, correct the first predicted wind power based on the target historical data to obtain a second predicted wind power, and output the second predicted wind power as the final prediction result; in response to the prediction inaccuracy risk index being less than or equal to the preset risk threshold, output the first predicted wind power as the final prediction result.

[0112] In some embodiments, the feature extraction module 401 is further configured to: A sliding time window of preset length is used to gradually slide along the meteorological data within the preset time window, and the local variance and local information entropy are calculated based on the meteorological data within each sliding time window. The fluctuation characteristic information is obtained by arranging the local variances corresponding to each sliding time window according to the time sequence of each sliding time window, and the distribution characteristic information is obtained by arranging the local information entropy corresponding to each sliding time window.

[0113] In some embodiments, the feature extraction module 401 is further configured to: The local variance is calculated using the following formula: ; in, For time step The local variance of the corresponding sliding time window, The number of characteristics of meteorological data, Indexing the characteristic dimensions of meteorological data, The length of the sliding time window. This is the time offset. For the first Each meteorological characteristic in time step The value of , For the first Each meteorological characteristic in time step The local mean within the corresponding sliding time window, This is the normalization function.

[0114] In some embodiments, the feature extraction module 401 is further configured to: The probability of meteorological data falling into each preset discrete interval within the sliding time window is statistically analyzed, and the probability distribution corresponding to each preset discrete interval is obtained. The local information entropy is calculated based on the probability distribution corresponding to each preset discrete interval.

[0115] In some embodiments, the prediction module 402 is further configured to: The fluctuation feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the first key-side bias matrix; The distribution feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the second key-side bias matrix; Based on meteorological data within a preset time window, the first key-side bias matrix, and the second key-side bias matrix, the first predicted wind power is predicted.

[0116] In some embodiments, the prediction module 402 is further configured to: The meteorological data within a preset time window are smoothed in the frequency domain using the exponential decay kernel to obtain low-frequency trend characteristics. Based on the low-frequency trend characteristics, the query matrix, key matrix, and value matrix used to calculate the global attention features are determined. Based on the query matrix, the key matrix, the value matrix, the first key-side bias matrix, and the second key-side bias matrix, global attention features are calculated. Based on the global attention features, the first predicted wind power is predicted.

[0117] In some embodiments, the prediction module 402 is further configured to: The global attention feature is residually concatenated with meteorological data within a preset time window to obtain a residual fusion feature. Based on the residual fusion features, a first predicted wind power with a preset time step is generated through a cross-attention mechanism.

[0118] In some embodiments, the response module 404 is further configured to: Obtain historical meteorological data corresponding to each historical actual wind power data; The cosine similarity between meteorological data within a preset time window and each historical meteorological data is calculated to obtain multiple similarity values; Based on the similarity values ​​from largest to smallest, a preset number of historical actual wind power data corresponding to similarity values ​​are selected and determined as the target historical data.

[0119] In some embodiments, the risk calculation module 403 is further configured to: Calculate the mean values ​​of the fluctuation characteristic information and the distribution characteristic information respectively; The mean of the fluctuation characteristic information and the mean of the distribution characteristic information are weighted and fused to obtain the prediction inaccuracy risk index.

[0120] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0121] The apparatus described above is used to implement a wind power prediction method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0122] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a wind power prediction method as described in any of the above embodiments.

[0123] Figure 5 This embodiment illustrates a more specific hardware structure of an electronic device. The device may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0124] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0125] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0126] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0127] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0128] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0129] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0130] The electronic devices described above are used to implement a wind power prediction method in any of the foregoing embodiments and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0131] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute a wind power prediction method as described in any of the above embodiments.

[0132] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0133] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute a wind power prediction method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0134] Based on the same concept, corresponding to any of the above embodiments, this application also provides a computer program product, including computer program instructions, which, when run on a computer, cause the computer to perform the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0135] It is understood that before using the technical solutions of the various embodiments in this application, users will be informed of the type, scope of use, and usage scenarios of the personal information involved in an appropriate manner, and user authorization will be obtained.

[0136] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices, applications, servers, or storage media performing the operations described in this application.

[0137] As an optional but not limited implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0138] It is understood that the above notification and user authorization process is merely illustrative and does not limit the implementation of this application. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this application.

[0139] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application is limited to these examples; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in detail for the sake of brevity.

[0140] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0141] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0142] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the claims of this application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for predicting wind power output, characterized in that, include: Extract the fluctuation and distribution characteristics of meteorological data within the preset time window; Based on meteorological data within a preset time window, the fluctuation characteristic information, and the distribution characteristic information, the first predicted wind power is predicted for a preset time step in the future. Based on the fluctuation characteristic information and the distribution characteristic information, the prediction inaccuracy risk index corresponding to the first predicted wind power is determined. In response to the prediction inaccuracy risk index being greater than a preset risk threshold, target historical data matching meteorological data within a preset time window is selected from multiple historical actual wind power data. The first predicted wind power is corrected based on the target historical data to obtain the second predicted wind power, and the second predicted wind power is output as the final prediction result. In response to the prediction inaccuracy risk index being less than or equal to a preset risk threshold, the first predicted wind power is output as the final prediction result.

2. The method according to claim 1, characterized in that, The extraction of fluctuation and distribution characteristics of meteorological data within a preset time window includes: A sliding time window of preset length is used to gradually slide along the meteorological data within the preset time window, and the local variance and local information entropy are calculated based on the meteorological data within each sliding time window. The fluctuation characteristic information is obtained by arranging the local variances corresponding to each sliding time window according to the time sequence of each sliding time window, and the distribution characteristic information is obtained by arranging the local information entropy corresponding to each sliding time window.

3. The method according to claim 2, characterized in that, The local variance is calculated based on meteorological data within a sliding time window, including: The local variance is calculated using the following formula: ; in, For time step The local variance of the corresponding sliding time window, The number of characteristics of meteorological data, Indexing the characteristic dimensions of meteorological data, The length of the sliding time window. This is the time offset. For the first Each meteorological characteristic in time step The value of , For the first Each meteorological characteristic in time step The local mean within the corresponding sliding time window, This is the normalization function.

4. The method according to claim 2, characterized in that, The local information entropy is calculated based on meteorological data within a sliding time window, including: The probability of meteorological data falling into each preset discrete interval within the sliding time window is statistically analyzed, and the probability distribution corresponding to each preset discrete interval is obtained. The local information entropy is calculated based on the probability distribution corresponding to each preset discrete interval.

5. The method according to claim 1, characterized in that, The method of predicting the first predicted wind power at a preset time step based on meteorological data within a preset time window, the fluctuation characteristic information, and the distribution characteristic information includes: The fluctuation feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the first key-side bias matrix; The distribution feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the second key-side bias matrix; Based on meteorological data within a preset time window, the first key-side bias matrix, and the second key-side bias matrix, the first predicted wind power is predicted.

6. The method according to claim 5, characterized in that, The prediction of the first predicted wind power based on meteorological data within a preset time window, the first key-side bias matrix, and the second key-side bias matrix includes: The meteorological data within a preset time window are smoothed in the frequency domain using the exponential decay kernel to obtain low-frequency trend characteristics. Based on the low-frequency trend characteristics, the query matrix, key matrix, and value matrix used to calculate the global attention features are determined. Based on the query matrix, the key matrix, the value matrix, the first key-side bias matrix, and the second key-side bias matrix, global attention features are calculated. Based on the global attention features, the first predicted wind power is predicted.

7. The method according to claim 6, characterized in that, The step of predicting the first predicted wind power based on the global attention features includes: The global attention feature is residually concatenated with meteorological data within a preset time window to obtain a residual fusion feature. Based on the residual fusion features, a first predicted wind power with a preset time step is generated through a cross-attention mechanism.

8. The method according to claim 1, characterized in that, The process of selecting target historical data that matches meteorological data within a preset time window from multiple historical actual wind power data includes: Obtain historical meteorological data corresponding to each historical actual wind power data; The cosine similarity between meteorological data within a preset time window and each historical meteorological data is calculated to obtain multiple similarity values; Based on the similarity values ​​from largest to smallest, a preset number of historical actual wind power data corresponding to similarity values ​​are selected and determined as the target historical data.

9. The method according to claim 1, characterized in that, The step of determining the prediction inaccuracy risk index corresponding to the first predicted wind power based on the fluctuation characteristic information and the distribution characteristic information includes: Calculate the mean values ​​of the fluctuation characteristic information and the distribution characteristic information respectively; The mean of the fluctuation characteristic information and the mean of the distribution characteristic information are weighted and fused to obtain the prediction inaccuracy risk index.

10. A wind power prediction device, characterized in that, include: The feature extraction module is used to extract the fluctuation feature information and distribution feature information of meteorological data within a preset time window, respectively. The prediction module is used to predict the first predicted wind power at a preset time step based on meteorological data within a preset time window, the fluctuation characteristic information, and the distribution characteristic information. The risk calculation module is used to determine the prediction inaccuracy risk index corresponding to the first predicted wind power based on the fluctuation characteristic information and the distribution characteristic information. The response module is used to, in response to the prediction inaccuracy risk index being greater than a preset risk threshold, filter out target historical data that matches meteorological data within a preset time window from multiple historical actual wind power data, correct the first predicted wind power based on the target historical data to obtain a second predicted wind power, and output the second predicted wind power as the final prediction result; in response to the prediction inaccuracy risk index being less than or equal to the preset risk threshold, output the first predicted wind power as the final prediction result.

11. The apparatus according to claim 10, characterized in that, The feature extraction module is also used for: A sliding time window of preset length is used to gradually slide along the meteorological data within the preset time window, and the local variance and local information entropy are calculated based on the meteorological data within each sliding time window. The fluctuation characteristic information is obtained by arranging the local variances corresponding to each sliding time window according to the time sequence of each sliding time window, and the distribution characteristic information is obtained by arranging the local information entropy corresponding to each sliding time window.

12. The apparatus according to claim 11, characterized in that, The feature extraction module is also used for: The local variance is calculated using the following formula: ; in, For time step The local variance of the corresponding sliding time window, The number of characteristics of meteorological data, Indexing the characteristic dimensions of meteorological data, The length of the sliding time window. This is the time offset. For the first Meteorological characteristics at time step The value of , For the first Meteorological characteristics at time step The local mean within the corresponding sliding time window. This is the normalization function.

13. The apparatus according to claim 11, characterized in that, The feature extraction module is also used for: The probability of meteorological data falling into each preset discrete interval within the sliding time window is statistically analyzed, and the probability distribution corresponding to each preset discrete interval is obtained. The local information entropy is calculated based on the probability distribution corresponding to each preset discrete interval.

14. The apparatus according to claim 10, characterized in that, The prediction module is also used for: The fluctuation feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the first key-side bias matrix; The distribution feature information is mapped to the multi-head attention space and tensor broadcast is performed to obtain the second key-side bias matrix; Based on meteorological data within a preset time window, the first key-side bias matrix, and the second key-side bias matrix, the first predicted wind power is predicted.

15. The apparatus according to claim 14, characterized in that, The prediction module is also used for: The meteorological data within a preset time window are smoothed in the frequency domain using the exponential decay kernel to obtain low-frequency trend characteristics. Based on the low-frequency trend characteristics, the query matrix, key matrix, and value matrix used to calculate the global attention features are determined. Based on the query matrix, the key matrix, the value matrix, the first key-side bias matrix, and the second key-side bias matrix, global attention features are calculated. Based on the global attention features, the first predicted wind power is predicted.

16. The apparatus according to claim 15, characterized in that, The prediction module is also used for: The global attention feature is residually concatenated with meteorological data within a preset time window to obtain a residual fusion feature. Based on the residual fusion features, a first predicted wind power with a preset time step is generated through a cross-attention mechanism.

17. The apparatus according to claim 10, characterized in that, The response module is also used to: Obtain historical meteorological data corresponding to each historical actual wind power data; The cosine similarity between meteorological data within a preset time window and each historical meteorological data is calculated to obtain multiple similarity values; Based on the similarity values ​​from largest to smallest, a preset number of historical actual wind power data corresponding to similarity values ​​are selected and determined as the target historical data.

18. The apparatus according to claim 10, characterized in that, The risk calculation module is also used for: Calculate the mean values ​​of the fluctuation characteristic information and the distribution characteristic information respectively; The mean of the fluctuation characteristic information and the mean of the distribution characteristic information are weighted and fused to obtain the prediction inaccuracy risk index.

19. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 9.

20. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method described in any one of claims 1 to 9.