Wind and solar power prediction method for extreme weather scenarios
By acquiring and enhancing data from multiple data sources under extreme weather conditions, training machine learning models, and combining the Transformer model and the attention mechanism, the problem of scarcity of extreme weather data and insufficient model adaptability in wind and solar power prediction is solved, and a more accurate model is achieved. High prediction accuracy and real-time warning capabilities.
Patent Information
- Application Number
- CN202411103039.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-13
AI Technical Summary
Under extreme weather conditions, the accuracy of wind and solar power prediction is low. Existing models are not highly sensitive to extreme weather. Data processing and model training lack special processing, making it difficult to achieve real-time prediction and warning. The scarcity of extreme weather data leads to poor model training. difficulty.
By obtaining original data from multiple data sources, selecting data at extreme weather moments for storage, using data enhancement technology to generate new training data, training machine learning models for extreme weather identification and wind and solar power prediction, combining meteorological data, historical power generation data and Satellite remote sensing data is predicted using the Transformer model and attention mechanism.
It improves the comprehensiveness and representativeness of the data, expands the size and diversity of the training data set, enhances the model's robustness and prediction accuracy under extreme weather conditions, and improves the model's interpretability and real-time prediction capabilities.
Smart Images

Figure CN118630757B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of wind and solar power generation prediction, and in particular relates to a wind and solar power prediction method for extreme weather scenarios. Background Art
[0002] In the context of the current global energy transformation, wind and solar power, as representatives of clean energy, have gradually become important components of the power system. However, wind and solar power generation has significant intermittency and instability, especially under extreme weather conditions, and the prediction of wind and solar power becomes more complex and challenging. Accurate wind and solar power prediction is of great significance for the stable operation of the power grid, the formulation of power generation plans, and the efficient use of new energy.
[0003] At present, wind and solar power prediction technology mainly relies on meteorological forecast data and historical power generation data, and uses statistical models and machine learning models for power prediction. Common prediction methods include time series analysis (such as ARIMA model), linear regression, support vector machine (SVM), random forest, neural network (NN), etc. These methods perform well under normal weather conditions, but the prediction accuracy drops significantly under extreme weather conditions.
[0004] Extreme weather events, such as typhoons, rainstorms, hail, extreme high temperatures and extreme low temperatures, can have a significant impact on wind and solar power generation systems. Specifically, the uncertainty of wind speed and solar radiation increases, making it difficult for traditional prediction models to cope with it; extreme weather may cause equipment failure or significantly reduce power generation efficiency, further increasing the difficulty of power prediction; due to the suddenness and uncertainty of extreme weather events, traditional prediction models often lack sufficient response time and adjustment capabilities.
[0005] Although the existing wind and solar power prediction technology has achieved certain results under normal weather conditions, it still has the following shortcomings under extreme weather conditions:
[0006] (1) The prediction model is not very sensitive to extreme weather and cannot accurately capture the impact of extreme weather on power generation.
[0007] (2) There is a lack of special processing and optimization of extreme weather data during data processing and model training.
[0008] (3) The existing system is unable to achieve real-time prediction and early warning, and is unable to adjust power generation plans and grid operation strategies in a timely manner.
[0009] In extreme weather conditions, there is less real data available for AI model training. The main reasons include:
[0010] (1) Low frequency of extreme weather events: Extreme weather events such as typhoons, heavy rains, ice and snow are relatively rare, resulting in less relevant wind and solar power data.
[0011] (2) Incomplete data collection and recording: When extreme weather occurs, problems such as equipment failure or data transmission interruption may result in missing or incomplete data.
[0012] (3) Limited historical data samples: Wind and solar power generation data under extreme weather conditions are often only recorded in specific areas and time periods, lacking comprehensiveness and representativeness.
[0013] Due to the above reasons, real data under extreme weather scenarios are very limited, which poses a huge challenge to the training of artificial intelligence algorithms. Without sufficient training data, the model may not be able to effectively learn and predict the changes in wind and solar power under extreme weather conditions, resulting in low prediction accuracy. Therefore, it is urgent to solve the problem of insufficient data through innovative methods to improve the accuracy of wind and solar power prediction under extreme weather conditions.
[0014] In order to meet the above challenges, the research focus in recent years has gradually shifted to the use of cutting-edge technologies such as big data analysis, deep learning, and intelligent algorithms to develop more accurate wind and solar power prediction methods. For example, the Attention mechanism has shown its potential in processing nonlinear and complex time series data. The Attention mechanism enables the model to dynamically focus on important time steps or features by assigning different weights to different parts of the input sequence. In wind and solar power prediction, meteorological data and historical power generation data at different time steps have different degrees of influence on future power. The Attention mechanism can automatically learn and assign appropriate weights, focus on key time steps and features, and thus improve prediction accuracy. In addition, fusing multi-source data, such as satellite remote sensing data, ground observation data, and meteorological forecast data, and improving the overall performance of the prediction model through data fusion technology is also a current research hotspot. Summary of the invention
[0015] The technical problem to be solved by the present invention is to provide a wind and solar power prediction method for extreme weather scenarios, which can solve the problem of insufficient available training data under extreme weather conditions, optimize the prediction model, and enhance its adaptability and prediction ability under extreme weather conditions.
[0016] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for predicting wind and solar power in extreme weather scenarios, comprising the following steps:
[0017] Step 1: Obtain raw data related to wind and solar power from multiple data sources, select the moments under extreme weather scenarios from the raw data, and store all raw data corresponding to the selected moments of extreme weather for backup, forming a basic data sample;
[0018] Step 2: Perform data enhancement on the basic data samples formed in step 1 to generate new training data;
[0019] Step 3: Using the new training data generated in step 2, the machine learning model for extreme weather recognition is trained, and the trained machine learning model recognizes extreme weather;
[0020] Step 4: Build a wind and solar power prediction model under extreme weather scenarios, use the new training data generated in step 2 to train the wind and solar power prediction model, and the trained wind and solar power prediction model predicts the wind and solar power generation under extreme weather conditions.
[0021] In the preferred scheme, in step one, the data source for obtaining the original data is meteorological data, historical power generation data and satellite remote sensing data, and the original data is the data values of various energy meteorological environmental resource parameters, including temperature, wind speed, wind direction, atmospheric pressure, humidity, precipitation and solar radiation.
[0022] In a preferred solution, in step 1, the operation of selecting the moments under extreme weather scenarios from the original data includes the following steps:
[0023] S1.1. Calculate the average value of the original data of each energy, meteorological, environmental and resource parameter at each moment in the full cycle time period. The specific expression is:
[0024] ;
[0025] in, Represents the average value of energy, meteorological and environmental resource parameters at time t, For the whole cycle i indivual t The data value of energy, meteorological, environmental and resource parameters at the moment, N=1,2,3,…,n is the total number of moments t in the whole cycle;
[0026] S1.2. Calculate the abnormal values of energy, meteorology, environment and resource parameters. The abnormal values of energy, meteorology, environment and resource parameters are calculated using the following formula:
[0027] ;
[0028] in, Representative i The abnormal value of energy, meteorological, environmental and resource parameters at time t, For the i The data value of energy, meteorological, environmental and resource parameters at time t;
[0029] S1.3. Abnormal values of energy, meteorological, environmental and resource parameters obtained using step S1.2 , calculate the standard deviation of energy, meteorological, environmental and resource parameters corresponding to 24 moments throughout the day, using the following formula:
[0030] ;
[0031] in, Represents the standard deviation of energy, meteorological, environmental and resource parameters corresponding to 24 hours of the day. t =0,1,2,…,23;
[0032] S1.4. Standardize the abnormal values of energy, meteorological, environmental and resource parameters at all times. The expression is:
[0033] ;
[0034] As long as there is one energy, meteorological and environmental resource parameter If it is greater than or equal to 2, it means that extreme weather occurs at time t. All moments greater than or equal to 2 are extracted and defined as the moments when abnormal signals occur under extreme weather conditions. All raw data corresponding to the selected moments of occurrence of extreme weather conditions are stored for backup to form basic data samples.
[0035] In a preferred solution, in step 2, the basic data samples are enhanced using at least one data enhancement processing method, and the generated enhanced data is integrated with the basic data samples to obtain new training data.
[0036] In a preferred solution, in step 2, the data enhancement processing method is selected from one or more of the following:
[0037] 1) Noise addition: adding random noise to the basic data sample;
[0038] 2) Data transformation: Use random cropping or translation transformation or scale transformation to perform geometric transformation and random operations on the time series data of the basic data samples;
[0039] 3) Time series enhancement: Time masking or time series mixing is used to enhance the time series data of basic data samples;
[0040] 4) Extreme weather simulation: Simulate extreme weather conditions on basic data samples.
[0041] In a preferred solution, the noise adding operation includes adding Gaussian noise to the data of energy meteorological environment resource parameters to simulate random fluctuations in the natural environment, and the expression is:
[0042] ;
[0043] in, It means the mean is 0 and the variance is Gaussian noise, Data of various energy, meteorological and environmental resource parameters before data enhancement; These are the data of various energy, meteorological and environmental resource parameters after data enhancement.
[0044] In a preferred solution, the noise adding operation includes adding Poisson noise to the data of energy meteorological environment resource parameters, and the expression is as follows:
[0045] ;
[0046] in, Indicates that the parameter is Poisson noise.
[0047] In a preferred solution, the random cropping is to randomly crop the time series data of energy, meteorology, environment and resource parameters to generate subsequences of different lengths, and the expression is as follows: ;
[0048] in, and The starting and ending positions of the crop are randomly selected;
[0049] The translation transformation is to perform a translation operation on the time series data of energy, meteorology, environment and resource parameters to simulate the time offset and delay in data collection. The expression is: ;
[0050] in, is a randomly selected time shift;
[0051] The scale transformation is to scale the time series data of energy meteorological environment resource parameters to simulate the intensity changes under different weather conditions. The expression is: ;
[0052] in, is a randomly chosen scaling factor.
[0053] In a preferred solution, the time masking is to randomly select a part of the time period in the time series for masking, simulating data missing or sensor failure. The data of the time period is masked, and other data are retained. The expression is:
[0054] ;
[0055] in, is the randomly selected masking period, express Other data outside the time period;
[0056] The time series mixing is to mix the data of different time series to generate a new time series, and the expression is:
[0057] ;
[0058] in, is the mixing ratio coefficient, and The time series data of various energy, meteorological and environmental resource parameters are enhanced for different data.
[0059] In a preferred solution, the extreme weather simulation includes typhoon simulation and / or rainstorm simulation;
[0060] Typhoon simulation is to simulate the wind speed data with a typhoon model so that the wind speed shows the characteristic changes when a typhoon passes. The expression is:
[0061] ;
[0062] in, is the peak wind speed of the typhoon, is the time when the typhoon center passes through, is the standard deviation of wind speed variation; represents the simulated value of typhoon wind speed, represents the exponential function;
[0063] Heavy rain simulation is to simulate the shielding of solar radiation data under heavy rain conditions and generate power data under heavy rain conditions. The expression is as follows:
[0064] ;
[0065] in, is the original solar radiation data of the basic data sample, is the occlusion coefficient, is the rainfall intensity at time t, This is the solar radiation data after heavy rain simulation.
[0066] In a preferred solution, in step 2, the generated collection of enhanced data is integrated with the basic data sample, and the expression is:
[0067] ;
[0068] in, Represents the merged data. Represents a collection of various augmented data, Indicates a merge.
[0069] In the preferred solution, in step 3, the machine learning model used for extreme weather identification uses an existing random forest learning model or a support vector machine learning model;
[0070] In step 4, the wind and solar power prediction model under extreme weather scenarios is a Transformer model.
[0071] The present invention provides a method for predicting wind and solar power in extreme weather scenarios, which has the following beneficial effects:
[0072] 1. The integration of meteorological data, historical power generation data and satellite remote sensing data improves the comprehensiveness and representativeness of the data, thereby enhancing the prediction accuracy of the model.
[0073] 2. Data enhancement methods such as noise addition, data transformation, and time series enhancement are used to effectively expand the scale and diversity of the training data set and enhance the robustness of the model under extreme weather conditions.
[0074] 3. Improve prediction accuracy: The attention mechanism effectively captures the key time steps and features in the time series, improving the accuracy of wind and solar power prediction.
[0075] 4. Enhanced model interpretability: By displaying attention weights, users can understand which time steps and features contribute most to the prediction results, enhancing the interpretability of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0077] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0078] It is clear and complete that the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0079] A wind and solar power prediction method for extreme weather scenarios, such as Figure 1 As shown, the following steps are included:
[0080] Step 1: Obtain raw data related to wind and solar power from multiple data sources, select the moments under extreme weather scenarios from the raw data, and store all raw data corresponding to the selected moments of extreme weather for backup, to form a basic data sample.
[0081] The data sources for obtaining the original data are meteorological data, historical power generation data and satellite remote sensing data. The types of original data include temperature, wind speed, wind direction, atmospheric pressure, humidity, precipitation and solar radiation.
[0082] The operation of selecting moments of extreme weather scenarios from the raw data is as follows:
[0083] S1.1. Calculate the average value of the original data of each energy, meteorological, environmental and resource parameter at each moment in the full cycle time period. The specific expression is:
[0084] ;
[0085] in, Represents the average value of energy, meteorological and environmental resource parameters at time t, For the whole cycle i indivual t The data value of the energy, meteorological, environmental and resource parameters at the moment, N=1,2,3,…,n is the total number of moments t in the whole cycle.
[0086] S1.2. Calculate the abnormal values of energy, meteorology, environment and resource parameters. The abnormal values of energy, meteorology, environment and resource parameters are calculated using the following formula:
[0087] ;
[0088] in, Representative i The abnormal value of energy, meteorological, environmental and resource parameters at time t, For the i The data values of energy, meteorological, environmental and resource parameters at time t.
[0089] S1.3. Abnormal values of energy, meteorological, environmental and resource parameters obtained using step S1.2 , calculate the standard deviation of energy, meteorological, environmental and resource parameters corresponding to 24 moments throughout the day, using the following formula:
[0090] ;
[0091] in, Represents the standard deviation of energy, meteorological, environmental and resource parameters corresponding to 24 hours of the day. t =0,1,2,…,23.
[0092] S1.4. Standardize the abnormal values of energy, meteorological, environmental and resource parameters at all times. The expression is:
[0093] .
[0094] As long as there is one energy, meteorological and environmental resource parameter Greater than or equal to 2, it means that extreme weather occurs at time t. All moments greater than or equal to 2 are extracted and defined as the moments when abnormal signals occur under extreme weather conditions. All raw data corresponding to the selected moments of occurrence of extreme weather conditions are stored for backup to form basic data samples.
[0095] From the standard normal distribution, we know that the probability of data being within 2 standard deviations of its mean value is 95%, and the probability of abnormal values of surface incident irradiance exceeding 2 standard deviations is less than 5%, which can be defined as the time when abnormal signals appear under extreme weather conditions. All raw data corresponding to the time when extreme weather occurs selected by the above method are stored for backup.
[0096] Step 2: Perform data enhancement on the basic data samples formed in step 1 to generate new training data.
[0097] Data augmentation technology generates new training data by performing various transformations on existing data to expand the size and diversity of the data set, thereby improving the performance and generalization ability of machine learning models. In extreme weather conditions, due to the scarcity of real data, data augmentation technology is particularly important and is used to expand the amount of data in extreme weather scenarios.
[0098] The following describes in detail the application of data enhancement technology in extreme weather wind and solar power prediction.
[0099] Perform at least one data enhancement process on the basic data sample, and integrate the enhanced data generated by the data enhancement process with the basic data sample to obtain new training data. The multiple data enhancement process methods can be selected from one or more of the following:
[0100] 1) Noise addition: Random noise is added to the raw data of the base data sample to simulate sensor errors and environmental changes. Noise addition can increase the robustness of the dataset and make the model more adaptable in the face of uncertainty.
[0101] The noise addition operation includes adding Gaussian noise or Poisson noise to the data of energy, meteorological, environmental and resource parameters to simulate random fluctuations in the natural environment.
[0102] The expression for adding Gaussian noise is: ;
[0103] in, It means the mean is 0 and the variance is Gaussian noise, Data of various energy, meteorological and environmental resource parameters before data enhancement; These are the data of various energy, meteorological and environmental resource parameters after data enhancement.
[0104] The expression for adding Poisson noise is: ;
[0105] in, Indicates that the parameter is Poisson noise.
[0106] 2) Data transformation: Generate diverse training data through geometric transformation and random operations to enhance the robustness of the model. Specifically, for example, random cropping, translation transformation, or scale transformation can be used.
[0107] Random cropping is to randomly crop the time series data of energy, meteorology, environment and resource parameters to generate subsequences of different lengths. The expression is as follows: ;
[0108] in, and The starting and ending positions of the crop are randomly selected;
[0109] The translation transformation is to perform a translation operation on the time series data of energy, meteorology, environment and resource parameters to simulate the time offset and delay in data collection. The expression is as follows: ;
[0110] in, is a randomly selected time shift;
[0111] The scale transformation is to scale the time series data of energy meteorological environment resource parameters to simulate the intensity changes under different weather conditions. The expression is as follows: ;
[0112] in, is a randomly chosen scaling factor.
[0113] 3) Time series enhancement: For the time series data in wind and solar power prediction, a specific enhancement method is used to maintain the temporal characteristics of the time series.
[0114] Enhance time series data using time masking or time blending.
[0115] Time masking is to randomly select some time periods in the time series to mask, simulating data missing or sensor failure. The data of the time period is masked, and other data are retained. The expression is as follows:
[0116] ;
[0117] in, is the randomly selected masking period, express Other data outside the time period.
[0118] The time series mixing is to mix the data of different time series to generate a new time series. The expression is as follows:
[0119] ;
[0120] in, is the mixing ratio coefficient, and for different time series.
[0121] 4) Extreme weather simulation: Simulate extreme weather conditions based on existing data.
[0122] Extreme weather simulation includes typhoon simulation and / or rainstorm simulation;
[0123] Typhoon simulation is to simulate the wind speed data with a typhoon model so that the wind speed shows the characteristic changes when a typhoon passes. The expression is:
[0124] ;
[0125] in, is the peak wind speed of the typhoon, is the time when the typhoon center passes through, is the standard deviation of wind speed variation; represents the simulated value of typhoon wind speed, It is an exponential function, specifically an exponential function with the real number e as the base, e≈2.71828.
[0126] Heavy rain simulation is to simulate the shielding of solar radiation data under heavy rain conditions and generate power data under heavy rain conditions. The expression is as follows:
[0127] ;
[0128] in, is the original solar radiation data, is the occlusion coefficient, is the rainfall intensity at time t,
[0129] This is the solar radiation data after heavy rain simulation.
[0130] 5) Enhanced data integration: Integrate the enhanced data generated by 1) to 4) with the original data of the basic data samples.
[0131] The enhanced data integration is to combine the collection of enhanced data with the original data of the basic data sample in proportion, and the expression is:
[0132] ;
[0133] in, Represents the merged data. Represents a collection of various augmented data.
[0134] Step 3: Use the new training data generated in step 2 to train the machine learning model for extreme weather identification. The trained machine learning model identifies extreme weather and improves the model's prediction performance under extreme weather conditions.
[0135] The machine learning model uses the existing random forest or support vector machine SVM.
[0136] Step 4: Use the new training data generated in step 2 to train the existing wind and solar power prediction model, and build a wind and solar power prediction model under extreme weather scenarios to predict wind and solar power generation under extreme weather conditions.
[0137] The wind and solar power prediction model under extreme weather scenarios is the existing Transformer model, which predicts wind and solar power based on the Transformer's attention mechanism.
[0138] The Transformer model performs well in processing nonlinear and complex time series data, and is particularly suitable for wind and solar power prediction under extreme weather conditions.
[0139] Model design:
[0140] The Transformer-based model is used to predict wind and solar power. The specific steps are as follows:
[0141] 1) Input layer: accepts preprocessed time series data.
[0142] 2) Position coding: Add position coding to time series data to retain timing information.
[0143] 3) Multi-head attention layer: Through the multi-head attention mechanism, the dependencies between different dimensions of the input data are captured.
[0144] 4) Feedforward neural network: The attention output is processed through a fully connected layer to generate the final power prediction value.
[0145] Model training:
[0146] 1) Input preparation: Organize the new training data generated in step 2 in time series format and input it into the Transformer model.
[0147] ;
[0148] Among them, xi is the feature vector of the i-th time step.
[0149] 2) Position encoding: Add position encoding to each time step to preserve the timing information.
[0150] ;
[0151] ;
[0152] Among them, pos is the time step, i is the dimension index, is the model dimension.
[0153] 3) Multi-head attention layer: The attention weights of the input sequence are calculated through the multi-head attention mechanism.
[0154] ;
[0155] Q, K, and V are query matrix, key matrix, and value matrix, respectively. is the dimension of the key.
[0156] 4) Feedforward neural network: The output of the attention layer is passed through the feedforward neural network to generate the final power prediction value.
[0157] ;
[0158] in, , , , are trainable weights and biases.
[0159] 5) Loss function: Use mean square error (MSE) as the loss function to optimize model parameters.
[0160] By monitoring the forecast error and actual power generation in real time, the model and correction strategy can be adjusted dynamically to gradually adapt the forecast model to new extreme weather conditions. Closed-loop feedback control can be achieved, and adaptive adjustments can be made based on real-time data and forecast errors to improve the long-term stability and accuracy of the model.
[0161] Method 1: In the Transformer model, increase or decrease the number of multi-head attention layers and change the number of attention heads.
[0162] Method 2 uses online learning algorithms to adjust model parameters through incremental updates to adapt the model to the latest data features.
[0163] ;
[0164] in, are the updated model parameters, is the learning rate, is the loss function, and They are the actual power and model predicted power under extreme weather conditions respectively.
[0165] Wind and solar power prediction models under normal weather conditions are usually designed with relatively stable meteorological conditions in mind. These models are often based on historical data and statistical laws to establish prediction algorithms. However, under extreme weather conditions, these models may no longer be applicable for the following reasons:
[0166] 1) Nonlinear effects under extreme conditions: Extreme weather events, such as hurricanes, sandstorms, thunderstorms, and extreme temperatures, can bring about nonlinear and sudden changes in meteorological conditions that are beyond the scope of conventional weather patterns, resulting in inaccurate model predictions.
[0167] 2) Lack of relevant data: Extreme weather events are relatively rare, which means that the historical data used to train the model may not be sufficient to cover all possible extreme situations, resulting in poor performance of the model when encountering unseen extreme events.
[0168] 3) Limited generalization ability of models: Many forecasting models are calibrated under normal weather conditions, and they may not be adequately tested to verify their performance under extreme conditions. Models may not be able to capture the complex relationships between key variables under extreme conditions.
[0169] 4) Changes in wind and light conditions:
[0170] Extreme weather may cause wind speeds to be too high or too low, exceeding the operating range of wind turbines; at the same time, clouds, snowfall, dust, etc. can significantly reduce the solar radiation reaching solar panels, affecting photovoltaic power generation.
[0171] 5) Rapid changes in environmental parameters: Under extreme weather conditions, environmental parameters such as temperature, humidity, and air pressure may change rapidly, and these parameters have a direct impact on the efficiency of wind and solar power generation.
[0172] This method expands the amount of data under extreme weather scenarios through steps one and two, effectively expanding the scale and diversity of the training data set and enhancing the robustness of the model under extreme weather conditions.
[0173] The above-mentioned embodiments are only preferred technical solutions of the present invention and should not be regarded as limitations of the present invention. The protection scope of the present invention shall be the technical solutions recorded in the claims, including equivalent replacement solutions of the technical features in the technical solutions recorded in the claims. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made on the basis of the above description. It is not necessary and impossible to list all the implementation methods here, that is, equivalent replacement improvements within this scope are also within the protection scope of the present invention.
Claims
1. A wind and solar power prediction method for extreme weather scenarios. It is characterized in that The following steps are involved: Step 1: Obtain raw data related to wind and solar power from multiple data sources, select the moments under extreme weather scenarios from the raw data, and store all raw data corresponding to the selected moments of extreme weather occurrence for backup to form a basic data sample; the operation of selecting the moments under extreme weather scenarios from the raw data includes the following steps: S1.
1. Calculate the average value of the original data of each energy, meteorological and environmental resource parameter at each moment in the full cycle time period. The expression is: ; in, Represents the average value of energy, meteorological and environmental resource parameters at time t, For the whole cycle i indivual t The data value of energy, meteorological, environmental and resource parameters at the moment, N=1,2,3,…,n is the total number of moments t in the whole cycle; S1.
2. Calculate the abnormal values of energy, meteorology, environment and resource parameters. The abnormal values of energy, meteorology, environment and resource parameters are calculated using the following formula: ; in, Representative i The abnormal value of energy, meteorological, environmental and resource parameters at time t, For the i The data value of energy, meteorological, environmental and resource parameters at time t; S1.
3. Abnormal values of energy, meteorological, environmental and resource parameters obtained using step S1.2 , calculate the standard deviation of energy, meteorological, environmental and resource parameters corresponding to 24 moments throughout the day, using the following formula: ; in, Represents the standard deviation of energy, meteorological, environmental and resource parameters corresponding to 24 hours of the day. t =0,1,2,…,23; S1.
4. Standardize the abnormal values of energy, meteorological, environmental and resource parameters at all times. The expression is: ; As long as there is one energy, meteorological and environmental resource parameter If it is greater than or equal to 2, it means that extreme weather occurs at time t. All moments greater than or equal to 2 are extracted and defined as the occurrence moments of abnormal signals under extreme weather conditions. All raw data corresponding to the selected extreme weather occurrence moments are stored for backup to form basic data samples. Step 2: Perform data enhancement on the basic data samples formed in step 1 to generate new training data; Step 3: Using the new training data generated in step 2, the machine learning model for extreme weather recognition is trained, and the trained machine learning model recognizes extreme weather; Step 4: Build a wind and solar power prediction model under extreme weather scenarios, use the new training data generated in step 2 to train the wind and solar power prediction model, and the trained wind and solar power prediction model predicts the wind and solar power generation under extreme weather conditions.
2. According to the method for predicting wind and solar power in extreme weather scenarios according to claim 1, It is characterized in that In step 1, the data sources for obtaining the original data are meteorological data, historical power generation data and satellite remote sensing data. The original data are data values of various energy meteorological environmental resource parameters, including temperature, wind speed, wind direction, atmospheric pressure, humidity, precipitation and solar radiation.
3. According to the method for predicting wind and solar power in extreme weather scenarios according to claim 1, It is characterized in that In the step 2, the basic data samples are enhanced using at least one data enhancement processing method, and the generated enhanced data is integrated with the basic data samples to obtain new training data.
4. According to claim 3, a method for predicting wind and solar power in extreme weather scenarios, It is characterized in that In step 2, the data enhancement processing method is selected from one or more of the following: 1) Noise addition: adding random noise to the basic data sample; 2) Data transformation: Use random cropping or translation transformation or scale transformation to perform geometric transformation and random operations on the time series data of the basic data samples; 3) Time series enhancement: Time masking or time series mixing is used to enhance the time series data of basic data samples; 4) Extreme weather simulation: Simulate extreme weather conditions on basic data samples.
5. According to claim 4, a method for predicting wind and solar power in extreme weather scenarios, It is characterized in that The noise adding operation includes adding Gaussian noise to the data of energy meteorological environment resource parameters to simulate random fluctuations in the natural environment. The expression is: ; in, It means the mean is 0 and the variance is Gaussian noise, Data of various energy, meteorological and environmental resource parameters before data enhancement; These are the data of various energy, meteorological and environmental resource parameters after data enhancement.
6. A method for predicting wind and solar power in extreme weather scenarios according to claim 4, It is characterized in that The noise adding operation includes adding Poisson noise to the data of energy meteorological environment resource parameters, and the expression is as follows: ; in, Indicates that the parameter is Poisson noise.
7. The method for predicting wind and solar power in extreme weather scenarios according to claim 4, It is characterized in that The random cropping is to randomly crop the time series data of energy, meteorology, environment and resource parameters to generate subsequences of different lengths. The expression is as follows: ; in, and The starting and ending positions of the crop are randomly selected; The translation transformation is to perform a translation operation on the time series data of energy, meteorology, environment and resource parameters to simulate the time offset and delay in data collection. The expression is: ; in, is a randomly selected time shift; The scale transformation is to scale the time series data of energy meteorological environment resource parameters to simulate the intensity changes under different weather conditions. The expression is: ; in, is a randomly chosen scaling factor.
8. The method for predicting wind and solar power in extreme weather scenarios according to claim 4, It is characterized in that The time masking is to randomly select some time periods in the time series for masking, simulating data missing or sensor failure. The data of the time period is masked, and other data are retained. The expression is: ; in, is the randomly selected masking period, express Other data outside the time period; The time series mixing is to mix the data of different time series to generate a new time series, and the expression is: ; in, is the mixing ratio coefficient, and The time series data of various energy, meteorological and environmental resource parameters are enhanced for different data.
9. The method for predicting wind and solar power in extreme weather scenarios according to claim 4, It is characterized in that The extreme weather simulation includes typhoon simulation and / or rainstorm simulation; Typhoon simulation is to simulate the wind speed data with a typhoon model so that the wind speed shows the characteristic changes when a typhoon passes. The expression is: ; in, is the peak wind speed of the typhoon, is the time when the typhoon center passes through, is the standard deviation of wind speed variation; represents the simulated value of typhoon wind speed, represents the exponential function; Heavy rain simulation is to simulate the shielding of solar radiation data under heavy rain conditions and generate power data under heavy rain conditions. The expression is as follows: ; in, is the original solar radiation data of the basic data sample, is the occlusion coefficient, is the rainfall intensity at time t, This is the solar radiation data after heavy rain simulation.
10. The method for predicting wind and solar power in extreme weather scenarios according to claim 3, It is characterized in that In step 2, the generated collection of enhanced data is integrated with the basic data sample, and the expression is: ; in, Represents the merged data. Represents a collection of various augmented data, Indicates a merge.
11. The method for predicting wind and solar power in extreme weather scenarios according to claim 1, It is characterized in that In step 3, the machine learning model used for extreme weather identification is a random forest learning model or a support vector machine learning model; In the step 4, the wind and solar power prediction model under extreme weather scenarios is a converter model.
Citation Information
Patent Citations
Prediction method for photovoltaic power generation
CN116760017A
New energy power prediction method in extreme climate, electronic equipment and storage medium
CN117526274A
