Deep learning-based space-time multivariable wind speed prediction method for wind field
Through deep learning technology, combined with graph neural network and attention mechanism, multi-variable wind field data in mountain and canyon areas are analyzed, which solves the problem of difficulty in wind speed prediction in the existing technology, achieves accurate prediction of wind speed changes and wind disaster early warning, and improves the efficiency of wind speed prediction. Construction and wind power project management capabilities.
Patent Information
- Application Number
- CN202410708332.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-10-08
AI Technical Summary
Existing wind field prediction methods fail to fully consider the impact of topography, temperature, humidity and rainfall on wind speed in mountain and canyon areas, and fail to effectively model the relationship and dynamic nature of different environmental fields, making wind speed prediction difficult.
A spatiotemporal multi-variable wind field wind speed prediction method based on deep learning is adopted. By obtaining the location and environmental data of multiple sensors, using variational autoencoders to process outliers and missing values, a wind field prediction training set and a test set are constructed, and graphs are used to construct wind field prediction training sets and test sets. The neural network and attention mechanism analyze the interaction and dynamic change properties between different environmental fields, and combine with the Informer model to predict wind speed.
It achieves accurate prediction of wind speed changes in mountain canyons, improves wind disaster early warning, construction safety planning and wind power project management capabilities, and reduces potential risks and losses.
Smart Images

Figure CN118747545A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of wind field prediction and relates to a spatiotemporal multivariable wind field wind speed prediction method based on deep learning. Background Art
[0002] In mountainous valley areas, especially in complex terrains such as deep canyons, the dramatic changes in wind speed pose a severe challenge to local communities and construction projects. The wind speed characteristics in this terrain background are affected by multiple factors, including but not limited to the acceleration effect of terrain complexity on wind speed, the effects of temperature, rainfall and humidity on wind speed. In addition, these terrain conditions often make wind speed forecasting in wind farms extremely difficult, however, accurate wind farm forecasting is crucial for community safety, construction planning and the feasibility of wind power projects.
[0003] Although existing wind field prediction methods also rely on recurrent neural networks (RNN), transformers, graph neural networks (GNN), etc. for prediction, such as using transformers to capture the time series information of wind field historical data and using GNNs to model spatial information, existing methods fail to fully consider the impact of other environmental fields (temperature field, humidity field) and terrain on the wind field, and do not show the relationship between modeling different environmental fields, the interaction relationship between different sources of the same environment, and the dynamic change nature of the environmental field relationship. Summary of the invention
[0004] The present invention solves the technical problems existing in the prior art, thereby providing a spatiotemporal multivariable wind field wind speed prediction method based on deep learning.
[0005] Based on expert experience and meteorological principles, the wind speed change pattern is closely related to terrain characteristics, climate conditions and atmospheric environment. The existing technical problems are solved by the following technical solutions:
[0006] A spatiotemporal multivariable wind field wind speed prediction method based on deep learning comprises the following steps:
[0007] Step 1: Get the positions C of multiple different position sensors k , Terrain k And the multiple environmental data it records, including: wind field data: wind speed W s 、Wind direction W d , temperature and humidity field data: temperature T, humidity H and rain field data rainfall R.
[0008] Step 2: Use the variational encoder-based method to process the outliers and missing values in the multi-sensor multi-variable time series data obtained in step 1; normalize the data to 0-1, and use the processed data as the historical time series data set.
[0009] Step 3: Construct the wind farm prediction training set and test set from the historical time series data set in step 2. The training set is D train , the test set is D test ; where each sample is represented by Where l represents the length of each time series sample, represents the wind field data recorded by the kth sensor at the i-th moment,
[0010] Step 4: The training set D in step 3 train Input the time series prediction model M, and the output is the wind speed time series data The supervised loss L for wind speed prediction in wind farm is constructed as formula (1):
[0011]
[0012] Where y represents the label of the predicted wind speed in the training set.
[0013] Step 5: For different prediction time steps S i , train different models according to the order of step size from small to large, and obtain different prediction models M from step 4 i , and use the results of the short-step prediction to correct the results of the long-step prediction.
[0014] Step 6: Use the mean absolute error (MAE) and root mean square error (RMSE) evaluation indicators to evaluate the performance of the test set D. test The performance of the wind speed prediction method for this wind field is verified.
[0015] The advantages of the present invention are: it can accurately predict the wind speed change of the wind field in the alpine canyon area. By collecting and analyzing the meteorological data in the alpine canyon area, combined with advanced prediction algorithms and models, it can accurately predict the wind speed change of the wind field, which is very critical for planning and managing buildings and wind power generation projects under complex terrain conditions; improve the early warning capability of wind disasters, and by accurately predicting the wind speed change of the wind field, the present invention can provide timely and effective wind disaster warning. In the alpine canyon area, wind disasters may have a serious impact on buildings and wind power generation projects, so it is possible to obtain wind disaster early warning information in advance, which is helpful to take corresponding protective measures and reduce potential risks and losses; improve the construction safety planning capability, accurately predict the wind speed change of the wind field in the alpine canyon area, so that the construction safety can be better planned when the construction project is carried out. According to the prediction results of the wind speed change, corresponding safety measures can be taken to ensure the safety of construction personnel and equipment, and avoid accidents and losses caused by wind disasters; improve the management and optimization capabilities of wind power generation projects, and the wind speed change of the wind field has an important impact on the efficiency and production capacity of wind power generation projects. By accurately predicting the wind speed change in the alpine canyon area, the wind power generation project can be more accurately managed and optimized. According to the prediction results, the operation and maintenance of power generation equipment can be reasonably arranged to maximize the power generation efficiency and the economic benefits of the project. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. As shown in the figure:
[0017] Figure 1 It is a flow chart of the present invention.
[0018] Figure 2 A relationship diagram of the present invention
[0019] Figure 3 A relationship diagram of the present invention
[0020] Figure 4 A relationship diagram of the present invention
[0021] The present invention is further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0023] Example 1: Figure 1 , Figure 2 , Figure 3 and Figure 4 As shown in the figure, a spatiotemporal multivariable wind field speed prediction method based on deep learning is mainly used for wind field prediction in complex mountainous areas. It fully considers the external factors affecting the wind field (temperature field, humidity field), terrain and the internal laws of time series data, and uses graph neural networks and attention mechanisms to analyze the interaction between different environmental fields, the interaction between different sources of the same environmental field, and the dynamic change properties of the interaction relationship. Then, a spatiotemporal multivariable wind field speed prediction method based on deep learning is proposed.
[0024] A spatiotemporal multivariable wind field wind speed prediction method based on deep learning comprises the following steps:
[0025] Step 1: Get the positions C of multiple different position sensors k , Terrain k And the multiple environmental data it records, including: wind field data: wind speed W s 、Wind direction W d , temperature and humidity field data: temperature T, humidity H and rain field data: rainfall R;
[0026] Step 2: Use the variational autoencoder-based method to process the outliers and missing values in the multi-sensor multi-variable time series data obtained in step 1; normalize the data to 0-1, and use the processed data as a historical time series data set;
[0027] Step 3: Construct the wind farm prediction training set and test set from the historical time series data set in step 2. The training set is D train , the test set is D test ; where each sample is represented by Where l represents the length of each time series sample, represents the wind field data recorded by the kth sensor at the i-th moment,
[0028] Step 4: The training set D in step 3 train Input the time series prediction model M, and the output is the wind speed time series data The supervised loss L for wind speed prediction in wind farm is constructed as formula (1):
[0029]
[0030] Where y represents the label of the predicted wind speed in the training set;
[0031] Step 5: For different prediction time steps S i , train different models according to the order of step size from small to large, and obtain different prediction models M from step 4 i , and use the results of the short-step prediction to correct the results of the long-step prediction;
[0032] Step 6: Use mean absolute error and root mean square error to evaluate the test set D test The performance of the wind speed prediction method for this wind field is verified.
[0033] The method based on variational auto-encoders (VAE) described in step 2 is specifically as follows: based on the principle of variational auto-encoders, by constructing encoder and decoder networks, feature extraction and reconstruction of the collected multi-field environmental data are realized, and the generation mechanism of latent variables is used to fill missing values and detect and repair outliers. During the training process, the robustness and generalization ability of the model are improved by maximizing the reconstruction probability of the improved data and the regularization constraints of the latent variables. For the completion of missing values, the generation ability of the VAE model is used, combined with the characteristics and distribution information of the existing data and Markov Chain Monte Carlo sampling (MCMC), to achieve reasonable estimation and filling of missing values. For the detection and repair of outliers, the learning ability of the VAE model for normal data distribution is used, and the posterior distribution of the latent variables is inferred, and the reconstruction probability is used to detect outliers, and then the abnormal data is combined with the characteristics and distribution information of the existing data and MCMC sampling to repair outliers.
[0034] Step 3 specifically includes: dividing the multi-sensor multi-variable time series data into training set and test set in a ratio of 7:3, and the time series data recorded by sensors at different locations should be divided in the same way; then using the sliding window method to divide the data into separate samples, each with a length of l = t 1 +t 2 , that is, we know that from 0 to t 1 Multivariate time series data at time t 1 to 2 Wind speed data at the moment.
[0035] The time series prediction model described in step 4 specifically includes:
[0036] Step 4-1: In order to capture the dynamic relationship between different sensors in the time dimension, the multi-sensor multi-variable time series data is divided into T time periods, and then a multi-sensor multi-variable relationship diagram under different time periods with dynamic changes is constructed. Specifically, for a certain time period t, according to the location information C of sensors at different locations k , terrain information k , and the multivariate time series data for the corresponding time period Construct a multi-sensor relationship diagram of the wind field, temperature and humidity field, and rain field in the corresponding time period. For the construction of the wind field multi-sensor relationship diagram, according to the location information C of the sensor k , terrain information k , Wind farm time series data for the current time period Calculate the characteristic data X of different spatial position sensors in the current time period k Specifically, the location information C k , terrain information k Coded as P C , P L Add the coded data to the wind field time series data to obtain the characteristic data X of the sensor k Then calculate the characteristic data X of sensors k1 and k2 at different spatial positions k1 and X k2 The correlation coefficient Corr between them is expressed as formula (2):
[0037]
[0038] where cov(X k1 , X k2 ) represents two sequences X k1 and X k2 Covariance, σ X k1 Represents the sequence X k1 The standard deviation, σ X k2 Represents the sequence X k2 The standard deviation of .
[0039] Constructing wind farm multi-sensor relationship diagram based on correlation coefficient Figure 2 , Figure 3 and Figure 4 The first node 1, the second node 2, the third node 3, the fourth node 4 and the fifth node 5 represent sensors respectively, and the node vector represents the wind field time series data of the sensor The edge represents the correlation between two sensors in the wind field space.
[0040] If the spatial distance between two sensors is greater than the threshold d or the correlation coefficient is less than the threshold θ, it is considered that there is no relationship between the two sequences.
[0041] like Figure 2 The relationship diagram shown The first node 1, the second node 2, the third node 3, the fourth node 4 and the fifth node 5 represent sensors respectively, and the node vector It represents the wind field time series data of the kth sensor in the tth time period, k is 1, 2, 3, 4 and 5, and the edge represents the correlation between the two sensors in the wind field space. For example, the wind field spatial correlation coefficient between the first node 1 and the second node 2 is 0.7, the wind field spatial correlation coefficient between the fourth node 4 and the second node 2 is 0.5, the wind field spatial correlation coefficient between the first node 1 and the fifth node 5 is 0.8, and the fourth node 4 and the fourth node 5 have no relationship in the wind field space.
[0042] like Figure 3 The relationship diagram shown The first node 1, the second node 2, the third node 3, the fourth node 4 and the fifth node 5 represent sensors respectively, and the node vector It represents the time series data of the temperature and humidity field of the kth sensor in the tth time period, k is 1, 2, 3, 4 and 5, and the edge represents the correlation between the two sensors in the temperature and humidity field space. For example, the spatial correlation coefficient of the temperature and humidity field between the first node 1 and the second node 2 is 0.5, the spatial correlation coefficient of the temperature and humidity field between the first node 1 and the fifth node 5 is 0.9, the spatial correlation coefficient of the temperature and humidity field between the fifth node 5 and the third node 3 is 0.5, and the fourth node 4 has no relationship with the fifth node 5 and the second node 2 in the temperature and humidity field space.
[0043] like Figure 4 The relationship diagram shown The first node 1, the second node 2, the third node 3, the fourth node 4 and the fifth node 5 represent sensors respectively, and the node vector It represents the rain field time series data of the kth sensor in the tth time period, k is 1, 2, 3, 4 and 5, and the edge represents the correlation between the two sensors in the rain field space. For example, the rain field spatial correlation coefficient between the first node 1 and the second node 2 is 0.8, the rain field spatial correlation coefficient between the first node 1 and the fourth node 4 is 0.7, the rain field spatial correlation coefficient between the third node 3 and the fifth node 5 is 0.5, and the fourth node 4 and the fifth node 5 have no relationship in the rain field space. Similarly, follow the same steps to obtain the multi-sensor relationship diagram of the temperature and humidity field Multi-sensor relationship diagram of the rain field
[0044] Step 4-2: Follow the steps in 4-1 to obtain the multi-sensor multi-variable relationship diagram of the time series data in T time periods {G 1 , G 2 , ..., G T}, where
[0045] Step 4-3: Multi-sensor multi-variable relationship graph G for a certain period of time t As the input of the multi-field coupled spatial structure attention module, the temporal feature data z that integrates multi-field information and spatial structure information is obtained t , perform the same operation on the multi-sensor multi-variable relationship diagram of T time periods, and concatenate the obtained time series feature data to obtain the multi-sensor multi-variable feature data Z = {z 1 , z 2 , ..., z T}.
[0046] Step 4-4: Multivariate time series data of a sensor in continuous time periods As the input of the multi-field temporal self-attention module, the temporal feature data that integrates the spatial structure information in continuous time is obtained. The same operation is performed on the time series training data of all sensors, and the obtained time series feature data are concatenated to obtain the multi-sensor multi-variable feature data F = {f 1 , f 2 , ..., f T}.
[0047] Step 4-3 specifically includes:
[0048] Step 5-1: In order to integrate multi-field information and spatial structure information, the multi-field coupling and spatial structure attention module is used. This module uses the attention mechanism to enable a certain environmental field data of node k to integrate the information of other environmental fields of the same node and the same environmental field data of different nodes.
[0049] Step 5-2: Use the attention mechanism to map the multi-sensor wind field relationship The wind field time series data of node k Multi-sensor temperature and humidity field relationship diagram The temperature and humidity field time series data of node k Multi-sensor rain field relationship diagram The rainfall time series data of node k Perform fusion calculation to obtain the time series data of fusion multiple field data. Named V 1 , V 2 , V 3 Specifically, the similarity coefficient e between the time series data of environment field i and the time series data of environment field j is calculated according to formula (3): ij :
[0050] e ij =a([WV i ][WV j]) (3)
[0051] Where V i represents the vector corresponding to the i-th environmental field data of node k, [·][·] represents the concatenation of two vectors, W represents the shared weight transformation matrix, a represents the mapping implemented by a single-layer feedforward neural network, and finally the similarity coefficient e expressed in real number is obtained ij .
[0052] Step 5-3: Use formula (4) to calculate the attention coefficient a between the i-th environment field data of node k and the j-th environment field data of node k: ij :
[0053]
[0054] in represents a collection of different environmental fields, LeakyReLU(·) represents the activation function, e ij2 The similarity coefficient e represents the time series data of environment field i and environment field j2. ij2 .
[0055] Step 5-4: Use formula (5) to calculate the vector represented by the ith environmental field data of the fused node k:
[0056]
[0057] where σ(·) represents the activation function, W represents the shared weight transformation matrix, V j represents the vector corresponding to the j-th environmental field data of node k, Represents a collection of different environment fields.
[0058] Step 5-5. Similarly, according to steps 5-2, 5-3 and 5-4, the wind field time series data, the temperature and humidity field time series data, and the rain field time series data of all nodes are fused and calculated to obtain the time series data of fused multi-field data.
[0059] Step 5-6: Use the attention mechanism to map the multi-sensor wind field relationship The wind field time series data of node k Wind farm time series data of all its adjacent nodes Perform fusion calculation to obtain time series data with fused spatial structure information. Named V K , Named V K2 ,in represents the set of nodes adjacent to k. Specifically, formula (6) is used to calculate the similarity coefficient E between node k and its adjacent node k2 one by one. kk2 :
[0060] E kk2 =A([W 2 V K ][W 2 V K2 ]) (6)
[0061] Where V K represents the vector corresponding to node k, [·][·] represents the concatenation of two vectors, W 2 represents the shared weight transformation matrix, A represents the mapping implemented by a single-layer feedforward neural network, and finally obtains the similarity coefficient E represented by a real number kk2 .
[0062] Step 5-7: Use formula (7) to calculate the attention coefficient A between the wind farm time series data of node k and the wind farm time series data of node k2: kk2 :
[0063]
[0064] in represents the set of nodes adjacent to k, LeakyReLU(·) represents the activation function, E kk3 Represents the similarity coefficient between node k and its adjacent node k3.
[0065] Step 5-8: Use formula (8) to calculate the vector represented by the fused wind field time series data of node k:
[0066]
[0067] where σ(·) represents the activation function, W 2 represents the shared weight transformation matrix, V k2 represents the vector corresponding to node k2, represents the set of nodes adjacent to k, A kk2 Represents the attention coefficient A between the wind farm time series data of node k and the wind farm time series data of node k2 kk2 .
[0068] Step 5-19: According to step 5-6, step 5-7, and step 5-8, the wind field time series data of all nodes are fused and calculated with the wind field time series data of all adjacent nodes, so as to obtain the wind field time series data with fused spatial structure information.
[0069] Steps 5-10: Follow the above steps and calculate the relationship between the temperature and humidity fields of multiple sensors. Multi-sensor rain field relationship diagram The temperature, humidity and rainfall field time series data integrating spatial structure information are obtained.
[0070] Step 4-4 specifically includes:
[0071] Step 6-1: For the mth environmental field data V of node k in T time periods, V = {V 1 , V 2 , ... V T}, use formula (9) to calculate the similarity coefficient of the current environment field time period i and time period j data of the current node one by one
[0072]
[0073] Where V represents the current environment field data vector of the current node, W q and W k denote the query and index matrices of the temporal self-attention module respectively, and M is the mask matrix, which is defined as shown in (10):
[0074]
[0075] Step 6-2: Use formula (11) to calculate the attention coefficient of the data of the current mth environment field time period i and time period j of the current node k
[0076]
[0077] in The similarity coefficient of the data of time period i and time period k of the current environment field of the current node, T represents the number of vectors in V.
[0078] Step 6-3, use formula (12) to calculate the vector V′ corresponding to the current environmental field data of the current node that integrates the spatial structure information in the historical time continuous time:
[0079] V′=β m (VW v ) (12)
[0080] where β m represents the attention coefficient matrix, W v The value matrix of the temporal self-attention module, V represents the current environment field data vector of the current node.
[0081] Step 6-4: Input all environmental field data of the current node into the multi-field temporal self-attention module according to steps 6-1, 6-2, and 6-3 to obtain time series data of multi-field spatial structure information in the integrated historical continuous time.
[0082] Steps 4-5 specifically include:
[0083] Step 7-1: a sensor data F of the feature time series data F processed in step 4-4 k The multivariate data at time t1 before is used as the input part X of the informer model en , X en is an m*d matrix, d is the sequence length, m is the number of features; the wind speed feature data from t1 to t1+t2 As the informer model label y.
[0084] Step 7-2, X en The matrix is input into the encoder module of the informer model to generate a feature matrix.
[0085] The encoder module contains K modules stacked for feature extraction, and each sub-module includes multi-head probable sparse self-attention (Multi-head ProbSparse Self-attention) and self-attention distilling (Self-attentiondistilling).
[0086] In the self-attention structure, W Q , W K , W V , matrix, let the input data be I, and calculate the corresponding Q, K, V according to formula (13):
[0087] Q=W Q I, K = W K I, V = W V I (13)
[0088] Then, the features extracted after self-attention are calculated according to formula (14):
[0089]
[0090] Where d is the dimension of the vector in Q.
[0091] Step 7-3: In the multi-head probabilistic sparse self-attention, use the sparse matrix Q to perform feature extraction calculations. First, set the sampling factor c, let U = clnL, for each vector q in Q i , according to formula (15) calculate the sparse metric M(q i , K):
[0092]
[0093] Where K jis the jth vector in K, and d is the vector q i Dimensions, where Represents a set of vectors with U number of samples in K.
[0094] Step 7-4: Select U q with the largest sparseness metric i Reassemble into Then perform feature extraction calculations and only calculate the selected U q i According to formula (16), S 1 :
[0095]
[0096] Other q i Directly take mean(V) and calculate S according to formula (14) 0 , then S 1 and S 0 The results are combined to get the final output S.
[0097] Step 7-5: In the self-attention distillation operation, higher weights are given to the dominant features with main features, and a focused self-attention feature matrix is generated in the next layer according to formula (17):
[0098] I j+1 =maxPool(ELU(Conv1d[S j ])) (17)
[0099] Self-attention distillation includes one-dimensional convolution (Conv1d), ELU activation function and maximum pooling (Maxpool) operations, where j is the number of layers of the current multi-head probabilistic sparse self-attention.
[0100] Step 7-6, X en The latter part X token And the time series data X with a length of t2 to be predicted 0 (filled with 0) combined into X de , X de The output feature map S of the encoder is input into the decoder module to generate the predicted wind power.
[0101] Step 7-7. Decoder input vector X de Through a masked multi-head probabilistic sparse self-attention module, each position can be prevented from paying attention to future positions, thereby avoiding autoregression. The output of the masked multi-head probabilistic sparse self-attention module is used as Q, and the output feature map S of the encoder is used as K and V, which are input into the multi-head attention. Finally, the output of the decoder passes through a fully connected layer to output the wind farm power prediction result with a future time length of t2.
[0102] Step 5 specifically includes:
[0103] Step 8-1: Use different prediction time steps S 1 and S 2 , and S 1 2 , and train two models M respectively 1 and Mx, the prediction results of the two models are expressed as and
[0104] Step 8-2: Use formula (18) to correct the predicted time in [S 1 :S 2 ] The prediction results of the range:
[0105]
[0106] Where σ represents the correction factor, and Represents two models M 1 and M 2 Prediction time step S 1 and S 2 The prediction results, Represents model M 2 Prediction time step S 1 To S 2 The prediction result of , avg() represents the average value function.
[0107] like Figure 1 As shown, a spatiotemporal multivariable wind field wind speed prediction method based on deep learning includes the following steps:
[0108] Obtain wind field data: including sensor location, terrain data, wind field data: wind speed, wind direction, temperature and humidity field data: temperature, humidity, rain field data: rainfall.
[0109] Data preprocessing: Use variational autoencoders to handle anomalies and missing values. Then normalize and divide the data into training and testing data.
[0110] Establish a dynamic multi-sensor multi-variable relationship graph: divide the time series data into T time periods, and construct a multi-sensor relationship graph of the wind field, temperature, humidity field and rain field for each time period. Construct edge relationships based on sensor locations, terrain, and time series data, where nodes represent sensors, vectors represent corresponding environmental field data, and edges represent two sensor locations.
[0111] The multi-sensor multi-variable relationship graph is placed into the multi-field coupling and spatial structure self-attention module: other environmental field information of the same node and the same environmental field information of different nodes are integrated.
[0112] For example: the data of the environment field 1 of node k is fused with the data of the environment fields 2 and 3 of node k according to the attention mechanism; the data of the environment field 1 of node k is fused with the data of the environment fields 1 of adjacent nodes according to the attention mechanism.
[0113] The processed data is put into the multi-field temporal self-attention module: the information of the same environment field of the same node in different time periods is integrated.
[0114] The data is put into the time series prediction model Informer model for wind speed prediction to obtain wind speed prediction data of different step lengths.
[0115] Multi-step multi-model result correction: Use short-step results to correct long-step prediction results, and finally obtain multi-step wind speed prediction.
[0116] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A spatiotemporal multivariable wind speed prediction method based on deep learning, It is characterized in that The steps include: Step 1: Get the positions C of multiple different position sensors k , Terrain k And the multiple environmental data it records, including: wind field data: wind speed W s 、Wind direction W d , temperature and humidity field data: temperature T, humidity H and rain field data rainfall R, Step 2: Use the variational autoencoder-based method to process the outliers and missing values in the multi-sensor multi-variable time series data obtained in step 1; normalize the data to 0-1, and use the processed data as the historical time series data set. Step 3: Construct the wind farm prediction training set and test set from the historical time series data set in step 2. The training set is D train , the test set is D test ; where each sample is represented by Where l represents the length of each time series sample, represents the wind field data recorded by the kth sensor at the i-th moment, Step 4: The training set D in step 3 train Input the time series prediction model M, and the output is the wind speed time series data The supervised loss L for wind speed prediction in wind farm is constructed as formula (1): Where y represents the label of the predicted wind speed in the training set, Step 5: For different prediction time steps S i , train different models according to the order of step size from small to large, and obtain different prediction models M from step 4 i , and use the results of the short-step prediction to correct the results of the long-step prediction, Step 6: Use the mean absolute error (MAE) and root mean square error (RMSE) evaluation indicators to evaluate the performance of the test set D. test The performance of the wind speed prediction method for this wind field is verified.
2. According to the spatiotemporal multivariable wind field wind speed prediction method based on deep learning according to claim 1, It is characterized in that The method based on variational auto-encoders (VAE) described in step 2 is specifically as follows: by constructing encoder and decoder networks, feature extraction and reconstruction of the collected multi-field environmental data are achieved, and the generation mechanism of latent variables is used to fill in missing values and detect and repair outliers.
3. According to the spatiotemporal multivariable wind field wind speed prediction method based on deep learning according to claim 1, It is characterized in that Step 3 specifically includes: dividing the multi-sensor multi-variable time series data into a training set and a test set in a ratio of 7:3, and the time series data recorded by sensors at different locations should be divided in the same way; then using the sliding window method to divide the data into separate samples, each with a length of l = t 1 +t 2 , that is, we know that from 0 to t 1 Multivariate time series data at time t 1 to 2 Wind speed data at the moment.
4. The method for predicting wind speed in a spatiotemporal multivariable wind field based on deep learning according to claim 1, It is characterized in that The time series prediction model M described in step 4 specifically includes: Step 4-1: In order to capture the dynamic relationship between different sensors in the time dimension, the multi-sensor multi-variable time series data is divided into T time periods, and then a multi-sensor multi-variable relationship diagram under different time periods with dynamic changes is constructed; Step 4-2: Follow the steps in 4-1 to obtain the multi-sensor multi-variable relationship diagram of the time series data in T time periods {G 1 , G 2 , ..., G T },in Step 4-3: Multi-sensor multi-variable relationship graph G for a certain period of time t As the input of the multi-field coupled spatial structure attention module, the temporal feature data z that integrates multi-field information and spatial structure information is obtained t , perform the same operation on the multi-sensor multi-variable relationship diagram of T time periods, and concatenate the obtained time series feature data to obtain the multi-sensor multi-variable feature data Z = {z 1 , z 2 , ..., z T }; Step 4-4: Multivariate time series data of a sensor in continuous time periods As the input of the multi-field temporal self-attention module, the temporal feature data that integrates the spatial structure information in continuous time is obtained. The same operation is performed on the time series training data of all sensors, and the obtained time series feature data are concatenated to obtain the multi-sensor multi-variable feature data F = {f 1 , f 2 , ..., f T }.
5. According to claim 4, a spatiotemporal multivariable wind field wind speed prediction method based on deep learning, It is characterized in that Step 4-3 specifically includes: Step 5-1: In order to integrate multi-field information and spatial structure information, a multi-field coupling and spatial structure attention module is used. This module uses an attention mechanism to enable a certain environmental field data of node k to integrate the information of other environmental fields of the same node and the same environmental field data of different nodes; Step 5-2: Use the attention mechanism to map the multi-sensor wind field relationship The wind field time series data of node k Multi-sensor temperature and humidity field relationship diagram The temperature and humidity field time series data of node k Multi-sensor rain field relationship diagram The rainfall time series data of node k Perform fusion calculation to obtain time series data that integrates multiple fields of data. For simplicity, Named V 1 , V 2 , V 3 Specifically, the similarity coefficient e between the time series data of environment field i and the time series data of environment field j is calculated according to formula (2): ij : e ij =a([WV i ][WV j ]) (2) Where V i represents the vector corresponding to the i-th environmental field data of node k, [·][·] represents the concatenation of two vectors, W represents the shared weight transformation matrix, a represents the mapping implemented by a single-layer feedforward neural network, and finally the similarity coefficient e expressed in real number is obtained ij ; Step 5-3: Use formula (3) to calculate the attention coefficient a between the i-th environment field data of node k and the j-th environment field data of node k: ij : in represents a collection of different environmental fields, LeakyReLU(·) represents the activation function, e ij2 The similarity coefficient e represents the time series data of environment field i and environment field j2. ij ; Step 5-4: Use formula (4) to calculate the vector represented by the ith environmental field data of the fused node k: where σ(·) represents the activation function, W represents the shared weight transformation matrix, V j Represents the vector corresponding to the j-th environmental field data of node k, Represents a collection of different environmental fields; Step 5-5: Similarly, according to step 5-2, step 5-3, and step 5-4, the wind field time series data, the temperature and humidity field time series data, and the rain field time series data of all nodes are fused and calculated to obtain the time series data of fusion of multiple field data; Step 5-6: Use the attention mechanism to map the multi-sensor wind field relationship The wind field time series data of node k Wind farm time series data of all its adjacent nodes Perform fusion calculation to obtain the time series data of fused spatial structure information. For simplicity, Named V k , Named V k2 ,in represents the set of nodes adjacent to k. Specifically, formula (5) is used to calculate the similarity coefficient E between node k and its adjacent node k2 one by one. kk2 : HAVE BEEN kk2 =A([W 2 W k ][W 2 V k2 ]) (5) Where V k represents the vector corresponding to node k, [·][·] represents the concatenation of two vectors, W 2 represents the shared weight transformation matrix, A represents the mapping implemented by a single-layer feedforward neural network, and finally obtains the similarity coefficient E represented by a real number kk2 ; Step 5-7: Use formula (6) to calculate the attention coefficient A between the wind farm time series data of node k and the wind farm time series data of node k2 kk2 : in represents the set of nodes adjacent to k, LeakyReLU(·) represents the activation function, E kk3 represents the similarity coefficient between node k and its adjacent node k3; Step 5-8: Use formula (7) to calculate the vector represented by the fused wind field time series data of node k: where σ(·) represents the activation function, W 2 represents the shared weight transformation matrix, V k2 represents the vector corresponding to node k2, represents the set of nodes adjacent to k, A kk2 Represents the attention coefficient A between the wind farm time series data of node k and the wind farm time series data of node k2 kk2 ; Step 5-9: According to step 5-6, step 5-7, and step 5-8, the wind field time series data of all nodes are fused and calculated with the wind field time series data of all adjacent nodes, so as to obtain the wind field time series data with fused spatial structure information; Steps 5-10: Follow the above steps and calculate the relationship between the temperature and humidity fields of multiple sensors. Multi-sensor rain field relationship diagram The temperature, humidity and rainfall field time series data integrating spatial structure information are obtained.
6. The spatiotemporal multivariable wind speed prediction method based on deep learning according to claim 4, It is characterized in that Step 4-4 specifically includes: Step 6-1: For the mth environmental field data V of node k in T time periods, V = {V 1 , V 2 , ... V T }, use formula (8) to calculate the similarity coefficient of the current environment field time period i and time period j data of the current node one by one Where V represents the current environment field data vector of the current node, W q and W k denote the query and index matrices of the temporal self-attention module respectively, and M is the mask matrix, which is defined as shown in (9): Step 6-2: Use formula (10) to calculate the attention coefficient of the data of the current mth environment field time period i and time period j of the current node k in The similarity coefficient of the current node's current environment field time period i and time period k data, T represents the number of vectors in V; Step 6-3, use formula (11) to calculate the vector V′ corresponding to the current environmental field data of the current node that integrates the spatial structure information in the historical time continuous time: V′=β m (VW v ) (11) where β m represents the attention coefficient matrix, W v The value matrix of the temporal self-attention module, V represents the current environment field data vector of the current node; Step 6-4: Input all environmental field data of the current node into the multi-field temporal self-attention module according to steps 6-1, 6-2, and 6-3 to obtain time series data of multi-field spatial structure information in the integrated historical continuous time.
7. The method for predicting wind speed in a spatiotemporal multivariable wind field based on deep learning according to claim 4, It is characterized in that Steps 4-5 specifically include: Step 7-1: The sensor k data F of the feature time series data F processed in step 4-4 k The multivariate data at time t1 before is used as the input part X of the informer model en , X en is an m*d matrix, d is the sequence length, m is the number of features; the wind speed feature data from t1 to t1+t2 As the informer model label y; Step 7-2, X en The matrix is input into the encoder module of the informer model to generate a feature matrix. The encoder module contains K modules stacked for feature extraction, and each submodule includes multi-head probable sparse self-attention and self-attention distilling. In the self-attention structure, W Q , W K , W V , matrix, let the input data be I, and calculate the corresponding Q, K, V according to formula (12): Q=W W I,K=W K I,V=W v I (12) Then, the features extracted after the self-attention structure are calculated according to formula (13): Where d is the dimension of the vector in Q; Step 7-3: In multi-head probabilistic sparse self-attention, use matrix Q for feature extraction calculation. First, set the sampling factor c, let U = clnL, for each vector q in Q i , according to formula (14) to calculate the sparse metric M(q i , K): Where K j is the jth vector in K, and d is the vector q i Dimensions, where represents a set of vectors with U sampling numbers in K; Step 7-4: Select U q with the largest sparseness metric i Reassemble into Then perform feature extraction calculations and only calculate the selected U q i According to formula (15), S 1 : Other q i Directly take mean(V) and calculate S according to formula (13) 0 , then S 1 and S 0 The results are combined to obtain the final output S; Step 7-5: In the self-attention distillation operation, higher weights are given to the dominant features with main features, and a focused self-attention feature matrix is generated in the next layer according to formula (16): I j+1 =MaxPool(ELU(Conv1d[S j ])) (16) The self-attention distillation operation includes one-dimensional convolution (Conv1d), ELU activation function and maximum pooling (Maxpool) operation, where j is the number of layers of the current multi-head probabilistic sparse self-attention; Step 7-6, X en The latter part X token And the time series data X with a length of t2 to be predicted 0 (filled with 0) combined into X de , X de The output feature map S of the encoder is input into the decoder module to generate the predicted wind power; Step 7-7. Decoder input vector X de Through a masked multi-head probabilistic sparse self-attention module, it is possible to prevent each position from paying attention to the future position, thereby avoiding autoregression. The output of the masked multi-head probabilistic sparse self-attention module is used as Q, and the output feature map S of the encoder is used as K and V, which are input into the multi-head attention module. Finally, the output of the decoder passes through a fully connected layer to output the wind farm power prediction result with a future time length of t2.
8. The spatiotemporal multivariable wind speed prediction method based on deep learning according to claim 1, It is characterized in that Step 5 specifically includes: Step 8-1: Use different prediction time steps S 1 and S 2 , and S 1 <S 2 , and train two models M respectively 1 and M 2 , two models M 1 and M 2 The prediction results are expressed as and Step 8-2: Use formula (17) to correct the predicted time in [S 1 :S 2 ] The prediction results of the range: Where σ represents the correction factor, and Represents two models M 1 and M 2 Prediction time step S 1 and S 2 The prediction results, Represents model M 2 Prediction time step S 1 To S 2 The prediction result of , avg(·) represents the average function.
Citation Information
Cited By
Wind speed data processing method and device
CN119558489A
Avalanche monitoring and early warning method based on deep learning
CN119782772A
