Short-term wind speed prediction method and system for refined wind field and storage medium
Through the combination of the prediction recursive neural network based on residual improvement and the weather forecast model, the problem of insufficient accuracy of short-term wind speed prediction is solved, refined wind speed prediction within 0 to 72 hours is achieved, and the prediction accuracy and stability are improved.
Patent Information
- Application Number
- CN202410836545.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-22
Smart Images

Figure CN118822009A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a short-term wind speed prediction method, system and storage medium for a refined wind field, and belongs to the technical field of predicting weather conditions (G01W1 / 10). Background Art
[0002] The intermittent nature of wind energy is the most fundamental reason that restricts the development and utilization of wind power. If the wind speed of the wind farm is accurately predicted in advance, the grid dispatching department can formulate the daily operation mode and adjust the wind power dispatching plan in time, thereby reducing or eliminating the adverse effects of wind power grid connection. Therefore, it is very important to use short-term wind speed forecasting of 0 to 72 hours in hours as the forecasting unit, which is mainly used to maintain the power balance and reasonable dispatch of the power system, the quality control of electric energy, the power market transaction, the transient and steady-state evaluation, etc.
[0003] The short-term wind speed prediction in the prior art includes the following two solutions: 1. Use the WRF (The Weather Research and Forecasting Model, WRF) weather forecast model to predict the wind speed. 2. Use deep learning algorithms, such as ST-LSTM algorithms, to learn and train a large amount of historical data to find out the relationship between the input and output of the wind field, thereby establishing the relationship between the input and output of the wind speed prediction model, and then establish a prediction model to predict the wind speed.
[0004] Although the first scheme mentioned above can predict the wind speed within 0 to 72 hours, due to the lack of mesoscale information in the initial field of the WRF weather forecast model, especially the characteristic quantities of clouds and water materials are generally zero, it takes a long spin-up time to use the WRF weather forecast model to predict the wind speed. Therefore, the prediction effect of the WRF weather forecast model within 0 to 3 hours is poor.
[0005] The second solution mentioned above mostly uses the LSTM series model. Therefore, as the model deepens with the number of network layers, the gradient disappearance phenomenon is likely to occur at the bottom layer during the back propagation process, resulting in a gap between the prediction results of the prediction model and the actual wind speed. Since the wind field data changes dramatically within 0 to 72 hours, and the LSTM series model cannot mine accurate corresponding relationships in such drastic data, the use of deep learning algorithms for wind speed prediction can often only perform segmented predictions and cannot fully predict the wind speed within 0 to 72 hours. Summary of the invention
[0006] The first technical problem to be solved by the present invention is: how to improve the accuracy of short-term wind speed prediction of a refined wind farm.
[0007] The second technical problem to be solved by the present invention is: a short-term wind speed prediction system and storage medium for a refined wind farm, which can carry the above-mentioned short-term wind speed prediction method for a refined wind farm.
[0008] In order to solve the above technical problems, the first technical solution proposed by the present invention is: a method for short-term wind speed prediction of a refined wind farm, involving an existing weather forecast model WRF and a database storing all historical wind farm data, and performing the following steps:
[0009] Step 1: Establish the first wind speed prediction model of the wind farm according to the residual-based improved prediction recurrent neural network Rd-PredRNN;
[0010] Step 2: setting a data collection cycle T, performing N consecutive data collections in the database according to the data collection cycle T, preprocessing the collected N historical wind field wind speed data and the N historical wind field observation feature data corresponding to the N historical wind field wind speed data respectively; collecting the preprocessed N historical wind field data and the N historical wind field observation feature data to form a historical wind field data set A;
[0011] Step 3: Divide the data in the historical wind farm data set A into a training set, a test set and a validation set according to an empirical ratio; substitute the training set, the test set and the validation set into the first wind speed prediction model to perform model training and complete the model training; the trained first wind speed prediction model takes the wind farm wind speed data and the wind farm observation feature data within the data collection period T before the wind farm wind speed to be predicted period as input, and takes the wind farm wind speed data within the wind farm wind speed to be predicted period as output;
[0012] Step 4: Collect in real time the wind speed data and wind field observation characteristic data of the wind field within the data collection period T before the start time of the time period for which wind speed prediction of the wind field is required; substitute the wind speed data and wind field observation characteristic data collected in real time into the trained first wind speed prediction model to obtain the wind speed data within the time period for which wind speed prediction of the wind field is required.
[0013] Furthermore, the first wind speed prediction model in step 1 is as shown in the following formula (1):
[0014]
[0015] In formula (1), is the prediction result of the first wind speed prediction model at the tth time step; k is the number of layers of the first wind speed prediction model; σ is the Sigmoid activation function; tanh(·) is the hyperbolic tangent activation function; W1 is the first learning weight; is the memory state of the lateral propagation of the kth layer of the first wind speed prediction model at the tth time step; is the memory state of the longitudinal propagation of the kth layer of the first wind speed prediction model at the tth time step; X t is the input of the first wind speed prediction model at the tth time step.
[0016] Further, the preprocessing process in step 2 includes the following contents:
[0017] 1) Processing of historical wind field observation characteristic data: Based on the visualization image of radar reflectivity, clutter data is eliminated on the basis of considering data continuity, and radar echo data containing weather processes is retained;
[0018] 2) Processing of historical wind speed data: Grid processing is performed on the discrete wind speed data of the wind field, and the data is interpolated onto the grid using the inverse distance weighted interpolation method, and matched with the historical wind field observation characteristic data in time and space;
[0019] 3) Normalization processing: The historical wind speed data and historical wind field observation characteristic data are normalized through maximum and minimum normalization, and the data are scaled to the range of [0,1].
[0020] Further, the training process of the first wind speed prediction model in step 3 is as follows:
[0021] Step 3.1: Input the training set into the first wind speed prediction model for batch training, divide the data in the training set into multiple batches again, and update the parameters of the model on each batch; during the training process of each batch, the model calculates the loss function according to the current input data and parameters, and updates the parameters of the model according to the optimizer; during the training process, reverse_scheduled_sampling or scheduled_sampling technology is used according to the set strategy, so as to gradually adjust the input data and target data during the training process;
[0022] The loss function is shown in the following formula (2):
[0023]
[0024] In formula (2), L total is the total loss function, L MSE Calculate the weighted root mean square error between the predicted echo sequence and the true value, W is the weight under different wind speed thresholds, To predict wind speed, x t is the observed wind speed; L GAN(G)is the generator loss, which is obtained by sending the predicted echo sequence and the true value sequence into the discriminator for discrimination, where D(x) represents the discriminator; L ps is the perceptual similarity loss, where and E(x t ) are the encoding vectors of the predicted echo sequence and the true value, respectively, which are learnable. The root mean square error between the two is calculated to obtain L ps ;λ1 and λ2 are regularization coefficients;
[0025] Step: 3.2: The model needs to be trained for multiple rounds before it can be fully fitted. After each round of training, the validation set data is used to test the effect. Models with qualified prediction effects will be saved for wind speed prediction, otherwise iterative training will continue;
[0026] Step 3.3: Use the final saved model and the test set to further test the robustness of the model. The model with qualified prediction effect on the test machine will be used as the first wind speed prediction model after training. Otherwise, the model's learning rate, downsampling and other hyperparameters will be further modified, and the model will be retrained until the expected effect is achieved.
[0027] Furthermore, the method for short-term wind speed prediction of a refined wind farm further includes the following steps:
[0028] Step 5: Establish a second wind speed prediction model based on the trained first wind speed prediction model and the weather forecast model WRF, as shown in the following formula (2):
[0029]
[0030] In formula (3), H Z is the prediction result of the second wind speed prediction model; and are respectively the first fusion weight of the first wind speed prediction model and the second fusion weight of the weather forecast model WRF; W is the prediction result of the weather forecast model WRF;
[0031] The harmony search algorithm and stated Solve and get the optimal first fusion weight value and the optimal second fusion weight value and the and Substituting into formula (2) we get the final second wind speed prediction model, as shown in formula (4):
[0032]
[0033] Step 6: Substitute the wind speed data obtained in step 4 through the first wind speed prediction model and the wind speed data obtained through the weather forecast model WRF into the final second wind speed prediction model to obtain the wind speed prediction data within the time period to be predicted.
[0034] Furthermore, the process of obtaining the optimal weight using the harmony search algorithm in step 5 is as follows:
[0035] Step 5.1: Initially set the parameters required for the algorithm;
[0036] Step 5.2: Initialize the harmony library HM as shown below
[0037]
[0038] Where X=(x1,x2,...,x n ), is the decision variable x i (i=1,2,...,n) composed of solution vectors; are the minimum and maximum values of the decision variables respectively;
[0039] The nth decision variable of the mth harmony solution vector is Given by the following formula, random(0,1) is a random number between 0 and 1,
[0040]
[0041] Step 5.3: Randomly generate new harmonies as shown below,
[0042]
[0043] Where HMCR refers to the probability of selecting a decision vector from the memory bank generated in the previous step;
[0044] Each variable value obtained through HMCR probability selection will further determine whether pitch fine-tuning is required. The process is as follows:
[0045]
[0046] Where PAR represents the execution probability of the process, and bw represents the adjusted bandwidth;
[0047] Step 5.4: Compare and update the HM; calculate the objective function of all solution vectors in the harmonic memory, compare the maximum value of the objective function with the objective function value of the new harmonic vector, if the objective function value of the new harmonic vector is smaller than this value, then the new harmonic vector replaces the solution vector corresponding to the objective function value, otherwise it remains unchanged; according to the actual situation, the objective function here Fitness:min[f(x)] represents minimizing the root mean square error between the previously predicted f wind speed and the observed wind speed, that is:
[0048] Fitness = min[RMSE]
[0049]
[0050] In the formula, is the ground-observed wind speed, is the fusion wind speed;
[0051] Step 5.5: Determine whether the maximum number of iterations has been reached. If not, repeat steps 5.2 and 5.3.
[0052] Step 5.6: The above fusion algorithm is based on the assumption that the wind speed forecast errors at adjacent times are similar, and the sum of the weights is 1+α, where α is the compensation for the quantitative error of the ground observation and forecast wind speed at the past moment. That is:
[0053]
[0054] in and They respectively represent the conversion of the currently selected solution vector into a matrix in i*j format.
[0055] The final fusion result is as follows:
[0056]
[0057] in and They are respectively the first wind speed prediction result weight coefficient matrix composed of the solution vector that minimizes the objective function obtained by the harmony search algorithm and the weather forecast model WRF prediction result weight coefficient matrix.
[0058] In order to solve the above second technical problem, the second technical solution proposed by the present invention is: a short-term wind speed prediction system for a refined wind field, comprising:
[0059] The first wind speed prediction model establishment module establishes the first wind speed prediction model of the wind farm by using the prediction recursive neural network Rd-PredRNN based on residual improvement;
[0060] Historical wind field data collection module, used to collect historical wind field data and perform preprocessing;
[0061] A first wind speed prediction model training module is used to train the first wind speed prediction model according to the collected historical wind field data, so that the trained first wind speed prediction model takes the wind field speed data and wind field observation characteristic data within the data collection period T before the wind field wind speed to be predicted period as input, and takes the wind field speed data within the wind field wind speed to be predicted period as output;
[0062] The first wind speed prediction module uses the trained first wind speed prediction model to perform wind speed prediction.
[0063] Furthermore, the short-term wind speed prediction system for the refined wind farm also includes:
[0064] A second wind speed prediction model establishment module is used to fuse the trained first wind speed prediction model with the weather forecast model WRF to obtain a second wind speed prediction model;
[0065] The second wind speed prediction model optimal weight calculation module is used to calculate the optimal weight in the second wind speed prediction model, and substitute the calculated optimal weight into the second wind speed prediction model to obtain the final second wind speed prediction model;
[0066] The second wind speed prediction module uses the final second wind speed prediction model to perform wind speed prediction.
[0067] To solve the above-mentioned second technical problem, the third technical solution proposed by the present invention is: a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the steps of the above-mentioned refined short-term wind speed prediction method for a wind field.
[0068] The beneficial effects of the present invention are:
[0069] 1. Since the present invention improves the existing prediction recursive neural network PredRNN and adds a residual structure, the first wind speed prediction model of the wind farm established by using the prediction recursive neural network Rd-PredRNN based on the residual improvement can better mine the relationship between data, and solves the problem that the gradient disappears easily at the bottom layer during the back propagation process as the number of network layers increases, thereby greatly improving the prediction accuracy of the wind speed prediction model.
[0070] 2. The present invention establishes a first wind speed prediction model for the wind farm based on the residual improved prediction recursive neural network Rd-PredRNN and integrates it with the existing weather forecast model WRF to obtain a second wind speed prediction model, which combines the accuracy of the weather forecast model WRF in the middle and late stage wind speed prediction of the refined wind farm and the accuracy of the LSTM series model in the front stage wind speed prediction of the short-term refined wind farm; the wind speed prediction of the refined wind farm in the entire period is very accurate.
[0071] 3. The present invention realizes the wind speed forecast of the refined wind field for 0-72 hours through the second wind speed forecast, which can meet the refinement requirements of 6 minutes time resolution and 1km spatial resolution. At the same time, the present invention uses the first wind speed prediction model constructed by the deep learning algorithm to realize the wind speed forecast for 0-3 hours, and uses the weather forecast mode WRF to realize the 0-72 hour forecast. At the same time, in order to improve the inaccurate early forecast of the weather forecast mode WRF, the two forecast results are fused to realize the wind speed forecast of the fused wind field for 0-72 hours, and improve the accuracy of the prediction.
[0072] 3. The present invention builds a system platform and storage medium that can carry a refined wind speed prediction method for a wind farm, so that a refined wind speed prediction method for a wind farm can be more smoothly applied to different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 It is a flow chart of the prediction method in Embodiment 1 of the present invention.
[0074] Figure 2 This is the network structure of the first wind speed prediction model in the first embodiment.
[0075] Figure 3 This is a training flow chart of the first wind speed prediction model in Example 1.
[0076] Figure 4 This is a diagram showing the effect of wind speed prediction in the first embodiment.
[0077] Figure 5 It is a schematic diagram of the structure of the prediction system in Example 1.
[0078] Figure 6 It is a flow chart of the prediction method in Embodiment 2 of the present invention.
[0079] Figure 7 It is a solution flow chart of the harmony search algorithm in the second embodiment. DETAILED DESCRIPTION
[0080] The following is a further description of a method, system and storage medium for short-term wind speed prediction of a refined wind farm in conjunction with the accompanying drawings and specific embodiments.
[0081] Embodiment 1
[0082] The refined short-term wind speed prediction method of the wind farm in this embodiment involves the existing weather forecast model WRF and a database storing all historical wind farm data, such as Figure 1 As shown, perform the following steps:
[0083] Step 1: Establish the first wind speed prediction model of the wind farm based on the residual-pred recurrent neural network (Rd-PredRNN). The network structure of the first wind speed prediction model is as follows: Figure 2 As shown in the following formula (1),
[0084]
[0085] In formula (1), is the prediction result of the first wind speed prediction model at the tth time step; k is the number of layers of the first wind speed prediction model; σ is the Sigmoid activation function; tanh is the hyperbolic tangent activation function; W1 is the first learning weight; is the memory state of the lateral propagation of the kth layer of the first wind speed prediction model at the tth time step; is the memory state of the longitudinal propagation of the kth layer of the first wind speed prediction model at the tth time step; X t is the input to the first wind speed prediction model at the tth time step.
[0086] Step 2: Setting a data collection cycle T, continuously collecting data N times in the database according to the data collection cycle T, and preprocessing the collected N historical wind field wind speed data and the N historical wind field observation characteristic data corresponding to the N historical wind field wind speed data respectively;
[0087] The preprocessing process includes the following:
[0088] 1) Processing of historical wind field observation characteristic data: Based on the visualization image of radar reflectivity, clutter data is eliminated on the basis of considering data continuity, and radar echo data containing weather processes is retained;
[0089] 2) Processing of historical wind speed data: Grid processing is performed on the discrete wind speed data of the wind field, and the data is interpolated onto the grid using the inverse distance weighted interpolation method, and matched with the historical wind field observation characteristic data in time and space;
[0090] 3) Normalization processing: The historical wind speed data and historical wind field observation characteristic data are normalized through maximum and minimum normalization, and the data are scaled to the range of [0,1].
[0091] Collect the preprocessed N historical wind field data and N historical wind field observation characteristic data to form a historical wind field data set A;
[0092] Step 3: Divide the data in the historical wind farm data set A into a training set, a test set and a validation set according to an empirical ratio; substitute the training set, the test set and the validation set into the first wind speed prediction model for model training and complete the model training; the trained first wind speed prediction model takes the wind farm wind speed data and wind farm observation feature data within the data collection period T before the wind farm wind speed to be predicted period as input, and takes the wind farm wind speed data within the wind farm wind speed to be predicted period as output;
[0093] The training process of the first wind speed prediction model is as follows Figure 3 As shown, the following steps are included:
[0094] Step 3.1: Input the training set into the first wind speed prediction model for batch training, divide the data in the training set into multiple batches again, and update the parameters of the model on each batch; during the training process of each batch, the model calculates the loss function according to the current input data and parameters, and updates the parameters of the model according to the optimizer; during the training process, reverse_scheduled_sampling or scheduled_sampling technology is used according to the set strategy, so as to gradually adjust the input data and target data during the training process;
[0095] The loss function is shown in the following formula (2):
[0096]
[0097] In formula (2), L total is the total loss function, L MSE Calculate the weighted root mean square error between the predicted echo sequence and the true value, W is the weight under different wind speed thresholds, To predict wind speed, x t is the observed wind speed; L GAN(G) is the generator loss, which is obtained by sending the predicted echo sequence and the true value sequence into the discriminator for discrimination, where D(x) represents the discriminator; L ps is the perceptual similarity loss, where and∈(x t ) are the encoding vectors of the predicted echo sequence and the true value, respectively, which are learnable. The root mean square error between the two is calculated to obtain L ps . λ1 and λ2 are regularization coefficients.
[0098] Step: 3.2: The model needs to be trained for multiple rounds before it can be fully fitted. After each round of training, the validation set data is used to test the effect. Models with qualified prediction results will be saved for wind speed prediction, otherwise iterative training will continue.
[0099] Step 3.3: Use the final saved model and the test set to further test the robustness of the model. The model with qualified prediction effect on the test machine will be used as the first wind speed prediction model after training. Otherwise, the model's learning rate, downsampling and other hyperparameters will be further modified, and the model will be retrained until the expected effect is achieved.
[0100] Step 4: Collect in real time the wind speed data and wind field observation feature data of the wind field within the data collection period T before the start time of the time period for which wind speed prediction of the wind field is required; substitute the wind speed data and wind field observation feature data collected in real time into the first wind speed prediction model that has been trained to obtain the wind speed data within the time period for which wind speed prediction of the wind field is required.
[0101] Next, we predict the wind speed of a wind field at a certain moment. We input the historical radar echo and wind speed data one hour before the prediction time. After the data is brought into the trained model, it can directly output the wind speed forecast for the next three hours, such as Figure 4 As shown, t represents the time, 1-10 are the input sequences, 11-40 represent the predicted sequences, 11 represents the wind speed at the predicted time + 6 minutes, 20 represents the wind speed at the predicted time + 60 minutes, and so on.
[0102] Based on the test set, the model effects before and after improvement are compared, and the CSI (critical success index), POD (hit rate), and FAR (failure rate) are calculated, as shown in Table 1. The three indicators are all between 0 and 1. The higher the CSI and POD, the better, and the lower the FAR, the better.
[0103]
[0104] Table 1
[0105] It can be clearly seen from Table 1 that the prediction effect of the present invention is better than that of the prior art.
[0106] The short-term wind speed prediction system for a refined wind farm of this embodiment is specifically described as follows: A short-term wind speed prediction system for a refined wind farm can be used to implement short-term wind speed prediction in a refined wind farm, specifically, Figure 5 As shown, the short-term wind speed prediction system of the refined wind field includes
[0107] The first wind speed prediction model establishment module establishes the first wind speed prediction model of the wind farm by using the prediction recursive neural network Rd-PredRNN based on residual improvement;
[0108] Historical wind field data collection module, used to collect historical wind field data and perform preprocessing;
[0109] A first wind speed prediction model training module is used to train the first wind speed prediction model according to the collected historical wind field data, so that the trained first wind speed prediction model takes the wind field speed data and wind field observation characteristic data within the data collection period T before the wind field wind speed to be predicted period as input, and takes the wind field speed data within the wind field wind speed to be predicted period as output;
[0110] The first wind speed prediction module uses the trained first wind speed prediction model to perform wind speed prediction.
[0111] The division of modules in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present invention may be integrated into one processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or software modules.
[0112] In this embodiment, a storage medium is also provided, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the method for predicting wind speed in a refined wind field in Example 1.
[0113] Embodiment 2
[0114] The short-term wind speed prediction method for a refined wind field in this embodiment further includes the following steps based on the first embodiment: Figure 6 As shown:
[0115] Step 5: Establish a second wind speed prediction model based on the trained first wind speed prediction model and the weather forecast model WRF, as shown in the following formula (3):
[0116]
[0117] In formula (3), HZ is the prediction result of the second wind speed prediction model; and are the first fusion weight of the first wind speed prediction model and the second fusion weight of the weather forecast model WRF; H W is the forecast result of the weather forecast model WRF;
[0118] Through the harmony search algorithm and Solve and get the optimal first fusion weight value and the optimal second fusion weight value and will and Substituting into formula (2) we get the final second wind speed prediction model, as shown in formula (4):
[0119]
[0120] The process of obtaining the optimal weight using the harmony search algorithm is as follows: Figure 7 As shown, the following steps are included:
[0121] Step 5.1: First, set the parameters required for the algorithm, as shown in the following table:
[0122]
[0123]
[0124] Step 5.2: Initialize the harmony library HM:
[0125]
[0126] Where X=(x1,x2,...,x n ), is the decision variable x i (i=1,2,...,n) composed of solution vectors; are the minimum and maximum values of the decision variables, respectively.
[0127] The nth decision variable of the mth harmony solution vector Given by the following formula, random(0,1) is a random number between 0 and 1:
[0128]
[0129] Step 5.3: In addition, new harmony vectors need to be randomly generated. The generation of new harmony vectors is a key step in the harmony search algorithm. HMCR = 0.8 means that there is a 0.8 probability of selecting a decision vector from the memory bank generated in the previous step and a 0.2 probability of selecting a decision vector from the threshold condition. The decision vector is randomly generated within the interval to form a new solution vector. This step is expressed by the formula:
[0130]
[0131] Each variable value obtained through HMCR probability selection will further determine whether pitch fine-tuning operation is required. The process is as follows.
[0132]
[0133] Where PAR represents the execution probability of the process, and bw represents the adjusted bandwidth.
[0134] Step 5.4: Compare and update HM. Calculate the objective function of all solution vectors in the harmonic memory, compare the maximum value of the objective function with the objective function value of the new harmonic vector, if the objective function value of the new harmonic vector is smaller than this value, then the new harmonic vector replaces the solution vector corresponding to the objective function value, otherwise it remains unchanged. According to the actual situation, the objective function here Fitness:min[f(x)] represents minimizing the root mean square error between the previously predicted wind speed f and the observed wind speed, that is:
[0135] Fitness=min[RMSE] (5)
[0136]
[0137] Step 5.5: Determine whether the maximum number of iterations has been reached. If not, repeat steps 5.2 and 5.3. is the ground-observed wind speed, The fusion wind speed.
[0138] Step 5.6: The above fusion algorithm is based on the assumption that the wind speed forecast errors at adjacent times are similar, and the sum of the weights is 1+α, where α is the compensation for the quantitative error of the ground observation and forecast wind speed at the past moment. That is:
[0139]
[0140] in and They respectively represent the conversion of the currently selected solution vector into a matrix in i*j format.
[0141] The final result is:
[0142]
[0143] in and They are respectively the first wind speed prediction result weight coefficient matrix composed of the solution vector that minimizes the objective function obtained by the harmony search algorithm and the weather forecast model WRF prediction result weight coefficient matrix.
[0144] Step 6: Substitute the wind speed data obtained in step 4 through the first wind speed prediction model and the wind speed data obtained through the weather forecast model WRF into the final second wind speed prediction model to obtain the wind speed prediction data within the time period to be predicted.
[0145] Next, we predict the wind speed of a certain area by inputting the historical radar echo and wind speed data 24 hours before the prediction time. After the data is brought into the trained model, it can directly output the wind speed forecast for the next 72 hours. The comparison between the fused wind speed and the wind speed score directly output by WRF is shown in Table 2 below.
[0146]
[0147] Table 2
[0148] It can be clearly seen from Table 2 that the prediction method in the present invention has higher prediction accuracy and lower error.
[0149] The short-term wind speed prediction system for a refined wind farm in this embodiment further includes the following modules based on the first embodiment:
[0150] A second wind speed prediction model establishment module is used to fuse the trained first wind speed prediction model with the weather forecast model WRF to obtain a second wind speed prediction model;
[0151] The second wind speed prediction model optimal weight calculation module is used to calculate the optimal weight in the second wind speed prediction model, and substitute the calculated optimal weight into the second wind speed prediction model to obtain the final second wind speed prediction model;
[0152] The second wind speed prediction module uses the final second wind speed prediction model to perform wind speed prediction.
[0153] In this embodiment, a storage medium is also provided, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It can be understood that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the method for short-term wind speed prediction of a refined wind field in Example 2.
Claims
1. A refined short-term wind speed prediction method for a wind farm, involving the existing weather forecast model WRF and a database storing all historical wind farm data, It is characterized in that The following steps are involved: Step 1: Establish the first wind speed prediction model of the wind farm based on the prediction recursive neural network improved by residual error; Step 2: setting a data collection cycle T, performing N consecutive data collections in the database according to the data collection cycle T, preprocessing the collected N historical wind field wind speed data and the N historical wind field observation feature data corresponding to the N historical wind field wind speed data respectively; collecting the preprocessed N historical wind field data and the N historical wind field observation feature data to form a historical wind field data set A; Step 3: Divide the data in the historical wind field data set A into a training set, a test set and a validation set according to an empirical ratio; substitute the training set, the test set and the validation set into the first wind speed prediction model to perform model training and complete the model training; The trained first wind speed prediction model takes the wind speed data of the wind farm in the data collection period T before the wind speed to be predicted period and the wind speed observation characteristic data of the wind farm as input, and takes the wind speed data of the wind farm in the wind speed to be predicted period as output; Step 4: Collect in real time the wind speed data and wind field observation characteristic data of the wind field within the data collection period T before the start time of the time period for which wind speed prediction of the wind field is required; substitute the wind speed data and wind field observation characteristic data collected in real time into the trained first wind speed prediction model to obtain the wind speed data within the time period for which wind speed prediction of the wind field is required.
2. The method for short-term wind speed prediction of a refined wind field according to claim 1, Features: The first wind speed prediction model in step 1 is shown in the following formula (1): In formula (1), is the prediction result of the first wind speed prediction model at the tth time step; k is the number of layers of the first wind speed prediction model; σ is the Sigmoid activation function; tanh(·) is the hyperbolic tangent activation function; W 1 is the first learning weight; Said is the memory state of the lateral propagation of the kth layer of the first wind speed prediction model at the tth time step; is the memory state of the longitudinal propagation of the kth layer of the first wind speed prediction model at the tth time step; X t is the input of the first wind speed prediction model at the tth time step.
3. The method for short-term wind speed prediction of a refined wind field according to claim 1, Features: The preprocessing process in step 2 includes the following contents: Step 2.1, historical wind field observation characteristic data processing: based on the visualization image of radar reflectivity, clutter data is eliminated on the basis of considering data continuity, and radar echo data containing weather processes is retained; Step 2.2, historical wind field wind speed data processing: The discrete wind field wind speed data is gridded, and the data is interpolated onto the grid using the inverse distance weighted interpolation method, and matched with the historical wind field observation characteristic data in time and space; Step 2.3, normalization processing: normalize the historical wind field wind speed data and historical wind field observation characteristic data through maximum and minimum normalization, and scale the data to the range of [0,1].
4. The method for short-term wind speed prediction of a refined wind field according to claim 1, Features: The training process of the first wind speed prediction model in step 3 is as follows: Step 3.1: Input the training set into the first wind speed prediction model for batch training, divide the data in the training set into multiple batches again, and update the parameters of the model on each batch; during the training process of each batch, the model calculates the loss function according to the current input data and parameters, and updates the parameters of the model according to the optimizer; during the training process, reverse_scheduled_sampling or scheduled_sampling technology is used according to the set strategy, so as to gradually adjust the input data and target data during the training process; The loss function is shown in the following formula (2): In formula (2), L total is the total loss function, L MSE Calculate the weighted root mean square error between the predicted echo sequence and the true value, W is the weight under different wind speed thresholds, To predict wind speed, x t is the observed wind speed; L GAN(G) is the generator loss, which is obtained by sending the predicted echo sequence and the true value sequence into the discriminator for discrimination, where D(x) represents the discriminator; L ps is the perceptual similarity loss, where and∈(x t ) are the encoding vectors of the predicted echo sequence and the true value, respectively, which are learnable. The root mean square error between the two is calculated to obtain L ps ; 1 and λ 2 is the regularization coefficient; Step 3.2: The model needs to be trained for multiple rounds to be fully fitted. After each round of training, the validation set data is used to test the effect. Models with qualified prediction effects will be saved for wind speed prediction, otherwise iterative training will continue; Step 3.3: Use the final saved model and the test set to further test the robustness of the model. The model with qualified prediction effect on the test machine will be used as the first wind speed prediction model after training. Otherwise, the model's learning rate, downsampling and other hyperparameters will be further modified, and the model will be retrained until the expected effect is achieved.
5. The method for short-term wind speed prediction of a refined wind field according to any one of claims 1 to 4, Features: The method for short-term wind speed prediction of a refined wind field also includes the following steps: Step 5: Establish a second wind speed prediction model based on the trained first wind speed prediction model and the weather forecast model WRF, as shown in the following formula (2): In formula (3), H Z is the prediction result of the second wind speed prediction model; and are respectively the first fusion weight of the first wind speed prediction model and the second fusion weight of the weather forecast model WRF; W is the prediction result of the weather forecast model WRF; The harmony search algorithm and stated Solve and get the optimal first fusion weight value and the optimal second fusion weight value and the and Substituting into formula (2) we get the final second wind speed prediction model, as shown in formula (4): Step 6: Substitute the wind speed data obtained in step 4 through the first wind speed prediction model and the wind speed data obtained through the weather forecast model WRF into the final second wind speed prediction model to obtain the wind speed prediction data within the time period to be predicted.
6. The method for short-term wind speed prediction of a refined wind farm according to claim 5, Features: The process of using the harmony search algorithm to obtain the optimal weight in step 5 is as follows: Step 5.1: Initially set the parameters required for the algorithm; Step 5.2: Initialize the harmony library HM as shown below Where X = (x 1 ,x 2 ,...,x n ), is the decision variable x i (i=1,2,...,n) composed of solution vectors; are the minimum and maximum values of the decision variables respectively; The nth decision variable of the mth harmony solution vector is Given by the following formula, random(0,1) is a random number between 0 and 1, Step 5.3: Randomly generate new harmonies as shown below, Where HMCR refers to the probability of selecting a decision vector from the memory bank generated in the previous step; Each variable value obtained through HMCR probability selection will further determine whether pitch fine-tuning is required. The process is as follows: Where PAR represents the execution probability of the process, and bw represents the adjusted bandwidth; Step 5.4: Compare and update the HM; calculate the objective function of all solution vectors in the harmonic memory, compare the maximum value of the objective function with the objective function value of the new harmonic vector, if the objective function value of the new harmonic vector is smaller than this value, then the new harmonic vector replaces the solution vector corresponding to the objective function value, otherwise it remains unchanged; according to the actual situation, the objective function here Fitness:min[f(x)] represents minimizing the root mean square error between the previously predicted f wind speed and the observed wind speed, that is: Fitness = min[RMSE] In the formula, is the ground-observed wind speed, is the fusion wind speed; Step 5.5: Determine whether the maximum number of iterations has been reached. If not, repeat steps 5.2 and 5.
3. Step 5.6: The above fusion algorithm is based on the assumption that the wind speed forecast errors at adjacent times are similar. The sum of the weights is 1+α, where α is the compensation for the quantitative error of the ground observation and forecast wind speed at the past time; that is: in and They represent converting the currently selected solution vector into a matrix of i*j format; The final fusion result is as follows: in and They are respectively the first wind speed prediction result weight coefficient matrix composed of the solution vector that minimizes the objective function obtained by the harmony search algorithm and the weather forecast model WRF prediction result weight coefficient matrix.
7. A short-term wind speed prediction system for a refined wind field carrying the short-term wind speed prediction method described in any one of claims 1 to 4 above, It is characterized in that include: The first wind speed prediction model establishment module establishes the first wind speed prediction model of the wind farm by using the prediction recursive neural network Rd-PredRNN based on residual improvement; Historical wind field data collection module, used to collect historical wind field data and perform preprocessing; A first wind speed prediction model training module is used to train the first wind speed prediction model according to the collected historical wind field data, so that the trained first wind speed prediction model takes the wind field speed data and wind field observation characteristic data within the data collection period T before the wind field wind speed to be predicted period as input, and takes the wind field speed data within the wind field wind speed to be predicted period as output; The first wind speed prediction module uses the trained first wind speed prediction model to perform wind speed prediction.
8. The short-term wind speed prediction system for a refined wind farm according to claim 7, Features: The short-term wind speed prediction system for the refined wind farm also includes: A second wind speed prediction model establishment module is used to fuse the trained first wind speed prediction model with the weather forecast model WRF to obtain a second wind speed prediction model; The second wind speed prediction model optimal weight calculation module is used to calculate the optimal weight in the second wind speed prediction model, and substitute the calculated optimal weight into the second wind speed prediction model to obtain the final second wind speed prediction model; The second wind speed prediction module uses the final second wind speed prediction model to perform wind speed prediction.
9. A computer-readable storage medium storing a computer program. Features: When the computer program is executed by a processor, the steps of the method for short-term wind speed prediction for a refined wind farm described in any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Adjacent wind speed prediction method for strong convection wind
CN119644471A
