A wind speed prediction method for multiple wind farms based on mRMR-RF and GS-LSTM
The multi-wind farm wind speed prediction method of mRMR-RF and GS-LSTM solves the problem of insufficient wind speed prediction accuracy in the existing technology. By extracting spatial features through feature selection and graph neural network, combined with the LSTM model, the wind speed prediction accuracy is improved. It reduces the threat of wind power to the stability of the power system and achieves long-term economic benefits.
Patent Information
- Application Number
- CN202411168909.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-23
AI Technical Summary
Existing wind speed prediction methods are difficult to effectively capture the dynamic changes and nonlinear characteristics of wind speed, resulting in insufficient wind speed prediction accuracy in wind farms and affecting the stability of the power system.
A multi-wind farm wind speed prediction method based on mRMR-RF and GS-LSTM is used to select feature subsets through minimum redundancy maximum correlation random forest (mRMR-RF) to construct graph structure data, use GraphSAGE network to extract spatial features, and combine sliding The window method generates spatio-temporal feature vectors and inputs them into the LSTM model for training to improve wind speed prediction accuracy.
It improves the accuracy of wind speed prediction, reduces the threat of wind power grid connection to the stability of the power system, reduces the cost of wind energy utilization, and brings long-term positive economic impact.
Smart Images

Figure CN118690178B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wind speed prediction for wind farms, and in particular to a wind speed prediction method for multiple wind farms based on mRMR-RF and GS-LSTM. Background Art
[0002] Wind energy, as a green, environmentally friendly, renewable and clean energy, is crucial to mitigating climate change and building a sustainable energy system. At present, wind power generation has become an important part of global renewable energy. However, due to the high randomness and volatility of wind speed, large-scale wind power grid connection will pose a serious threat to the smooth operation of the power system. Predicting wind speed can help wind farms adjust scheduling plans in time and provide a reference for the operation and maintenance time of wind turbines. Therefore, improving the accuracy of wind speed prediction will reduce the cost of wind energy utilization and improve the efficiency of wind power generation access.
[0003] At present, wind speed prediction methods are mainly divided into physical methods, statistical methods and machine learning methods. The physical method uses numerical weather prediction models (NWP) and probability density models to correct errors. The statistical method mainly uses the difference autoregressive moving average (ARIMA) model to fit historical data, but neither of the above two methods can capture the dynamic changes and nonlinear characteristics of wind speed well. Thanks to its powerful feature extraction capabilities, machine learning methods have been widely used in the field of wind speed prediction.
[0004] In order to characterize the spatial correlation of wind power station characteristics, in recent years, the use of graph models to model spatial features has been increasingly studied. Graph neural networks use graph models to characterize the spatial relationships between nodes, and use these relationships for feature transfer and aggregation, thereby better extracting spatial features. Therefore, the wind speed prediction of multiple wind farms needs to comprehensively consider the mutual influence of the time series characteristics of each site and the spatial distribution characteristics between sites on the wind speed of the wind farm. Reasonable and efficient characterization and utilization of this spatiotemporal correlation of multiple wind farms is the key to improving the accuracy of the wind speed prediction model. Therefore, a wind speed prediction method for multiple wind farms based on mRMR-RF and GS-LSTM is proposed. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In view of the shortcomings of the prior art, the present invention provides a multi-wind farm wind speed prediction method based on mRMR-RF and GS-LSTM, which has the advantages of improving the wind speed prediction accuracy, etc., and solves the problem that the current wind speed prediction method cannot well capture the dynamic changes and nonlinear characteristics of wind speed.
[0007] (II) Technical solution
[0008] In order to achieve the above-mentioned purpose of improving the accuracy of wind speed prediction, the present invention provides the following technical solution: a method for predicting wind speed of multiple wind farms based on mRMR-RF and GS-LSTM, comprising the following steps:
[0009] S1. Integrate the original data of multiple wind farms into one data set to obtain the original data set. The random forest RF feature selection method mRMR-RF based on minimum redundancy and maximum relevance mRMR calculates the scores of each feature subset of multiple wind farms and selects the optimal feature subset. ;
[0010] S2. Using the optimal feature subset Constructing graph-structured data of multiple wind farms ;
[0011] S3. Use GraphSAGE network to analyze graph structure data Perform training and generate spatial feature vectors ;
[0012] S4. Spatial eigenvectors Use sliding window method to resample the time series and generate spatiotemporal feature vectors ;
[0013] S5. Transform the spatiotemporal feature vector As input, the LSTM model is used for training and the spatiotemporal correlation prediction values of various features of multiple wind farms are obtained.
[0014] Further, the scores of each feature subset of multiple wind farms are calculated in step S1, and the optimal feature subset is selected. The specific steps are:
[0015] S1.1. Divide the historical wind speed features in the original data set into the target variable data set, and divide other features into the feature data set;
[0016] S1.2. Perform data normalization on the target variable data set and the feature data set. The expression is:
[0017] ;
[0018] In the formula, Input data to the standardized model, is the original data, and are the minimum and maximum values of the original data respectively;
[0019] S1.3. Use Bootstrap Sampling to randomly extract sample data from the feature data set with replacement, and establish A decision tree, the data that will not be extracted from the original data set is out-of-bag data;
[0020] S1.4. Use out-of-bag data to calculate feature importance. The error value of each decision tree is calculated for each out-of-bag data, denoted as ,right The out-of-bag data The features are randomly sorted and other features are kept unchanged. The error value is calculated and recorded as , candidate features are obtained according to the order of feature importance;
[0021] Among them, the formula for calculating feature importance is:
[0022] .
[0023] S1.5. Exhaustively enumerate all possible feature subsets from the candidate feature set ;
[0024] S1.6. In feature subsets In the above example, the correlation between each feature and the target variable is calculated. and the redundancy between features , and obtain the feature subset score;
[0025] The score calculation formula is:
[0026] .
[0027] S1.7 Based on each feature subset The best feature subset is selected by sorting the scores .
[0028] Further, the correlation between each feature and the target variable is calculated as described in step S1.6 and the redundancy between features , which also includes the following sub-steps:
[0029] 1) Calculate the correlation between each feature and the target variable and the mutual information between the features ;
[0030] ;
[0031] In the formula, yes and The joint probability distribution function of and They are and The marginal probability distribution function of , the larger the mutual information, the and The stronger the correlation between them;
[0032] 2) Calculate the correlation D between each feature and the target variable:
[0033] ;
[0034] Calculate the redundancy between the selected features and the features to be selected :
[0035] ;
[0036] In the formula, represents a feature subset, represents the dimension of the feature subset, represents the target feature variable, is the mutual information between the feature and the target feature variable, is the mutual information between the remaining features except the target feature variable.
[0037] Further, the optimal feature subset is used in step S2 The specific steps to construct multi-wind farm graph structure data are:
[0038] S2.1. The relationship between multiple wind farms and their characteristics is described as graph structure data G, expressed as:
[0039] ;
[0040] in, Used to represent the set of wind farm nodes, represents the edge set (0, 1) formed by the connections between wind farm nodes, represents the optimal feature subset of wind farm nodes, is the weighted adjacency matrix between wind farm nodes;
[0041] S2.2. Based on any two wind farm nodes and The edge weights between them are used to construct a spatial weighted adjacency matrix , where the edge weight calculation expression is:
[0042] ;
[0043] In the formula, Represents a wind farm node and The spherical distance, represents the standard deviation of the Gaussian kernel function, is the threshold parameter;
[0044] S2.3. Using the maximum mutual information coefficient MIC to construct the time-weighted adjacency matrix , whose expression is:
[0045] ;
[0046] In the formula, Is a node and The mutual information between them is expressed as
[0047] ;
[0048] is the joint probability density between nodes, is the maximum information coefficient between nodes, is the number of grids;
[0049] S2.4. According to and Get the weighted adjacency matrix , whose expression is:
[0050] ;
[0051] in, is a weighting parameter, ranging from 0 to 1.
[0052] Further, step S3 uses The network trains graph structure data and generates spatial feature vectors The specific steps are:
[0053] S3.1. First, for The target nodes of the neighbor nodes of the first layer are randomly sampled. The neighbor nodes collected by the layer are recorded as , , , the number of neighbor nodes that need to be sampled in each layer is recorded as ;
[0054] S3.2. Through aggregate functions To aggregate the neighbor node information of each layer and continuously update the node information of the target node itself, the expression is:
[0055] ;
[0056] in, represents the edge weight between node u and its neighbor node v, Representation Node In the Layer-aggregated neighbor node features, Indicates The number of neighbor nodes collected by the layer;
[0057] S3.3. The first The feature representation of the target node in the first layer is The aggregate features of the neighbor nodes of the layer are concatenated and used Functions and The matrix performs a nonlinear transformation on the concatenated vector and obtains , whose expression is:
[0058] ;
[0059] in, is the weight matrix that GraphSAGE needs to learn, and ReLU is the nonlinear activation function;
[0060] S3.4. Continuously sample and aggregate the feature vectors of adjacent nodes, and then perform iterative updates to obtain a feature vector carrying global features, namely, a spatial feature vector, which is expressed as:
[0061] .
[0062] Further, in step S4, the spatial feature vector Use sliding window method to resample the time series and generate spatiotemporal feature vectors The specific steps are:
[0063] S4.1. Set the time window size of the sliding window method to 24 and the step size to 1;
[0064] S4.2. Sliding window extracts spatial feature vectors from t to t+23 Generate a new spatiotemporal feature vector , whose expression is:
[0065] .
[0066] Further, in step S5, the spatiotemporal feature vector As input, the specific steps of using the LSTM model for training and obtaining the spatiotemporal correlation prediction values of each feature of multiple wind farms are as follows:
[0067] S5.1. At each moment, the LSTM unit receives and the previous hidden state The input expression is:
[0068] ;
[0069] S5.2. After receiving input information, each gate will operate on the input from different sources, and its activation is determined by its logic function, which is expressed as:
[0070] ;
[0071] S5.3. After the input of the input gate is transformed by a nonlinear function, it is superimposed with the memory cell state processed by the forget gate to form a new memory cell state. , whose expression is:
[0072] ;
[0073] S5.4. Memory cell status The output of the LSTM unit is formed by the operation of nonlinear functions and the dynamic control of the output gate. , whose expression is:
[0074] ;
[0075] .
[0076] in are bias vectors, , , and These are the parameters that LSTM needs to learn. and Represent the Sigmoid activation function and the hyperbolic tangent function respectively, represents the Hadamard product;
[0077] S5.5. After a linear layer adjusts the dimension of the feature, the wind speed prediction result is finally output.
[0078] (III) Beneficial effects
[0079] Compared with the prior art, the present invention provides a multi-wind farm wind speed prediction method based on mRMR-RF and GS-LSTM, which has the following beneficial effects:
[0080] This multi-wind farm wind speed prediction method based on mRMR-RF and GS-LSTM analyzes the correlation between various characteristics of multiple wind farms and wind speed through feature topology graphs, obtains spatial feature vectors based on the spatial feature extraction framework of mRMR-RF-GraphSAGE, and inputs the spatial feature vectors at different times as time series into the LSTM model to obtain the wind speed prediction value of each site in the wind farm. In this way, the wind speed prediction accuracy can be improved, and the threat of wind power grid connection to the stability of the power system can be reduced, thereby bringing positive long-term impact on the economy. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 This is a schematic flow chart of a multi-wind farm wind speed prediction method based on mRMR-RF and GS-LSTM proposed in the present invention. DETAILED DESCRIPTION
[0082] The following will be combined with 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.
[0083] See also Figure 1 , a wind speed prediction method for multiple wind farms based on mRMR-RF and GS-LSTM, comprising the following steps:
[0084] S1. Integrate the original data of multiple wind farms into one data set to obtain the original data set. The random forest RF feature selection method mRMR-RF based on minimum redundancy and maximum relevance mRMR calculates the scores of each feature subset of multiple wind farms and selects the optimal feature subset. ;
[0085] S2. Using the optimal feature subset Constructing graph-structured data of multiple wind farms ;
[0086] S3. Use Networks for graph-structured data Perform training and generate spatial feature vectors ;
[0087] S4. Spatial eigenvectors Use sliding window method to resample the time series and generate spatiotemporal feature vectors ;
[0088] S5. Transform the spatiotemporal feature vector As input, the LSTM model is used for training and the spatiotemporal correlation prediction values of various features of multiple wind farms are obtained.
[0089] In this embodiment, the raw data of multiple wind farms in step S1 include the geographical location of the wind farm, historical wind speed, forecast time, temperature, momentum flux, wind direction, mean sea level pressure, cloud cover, sensible heat flux, latent heat flux, shortwave radiation, longwave radiation, surface pressure, precipitation rate, large-scale precipitation, convective precipitation, and humidity.
[0090] In this embodiment, in step S1, the scores of each feature subset of multiple wind farms are calculated, and the optimal feature subset is selected. The specific steps are:
[0091] S1.1. Divide the historical wind speed features in the original data set into the target variable data set, and divide other features into the feature data set. In case the denominator is 0 during calculation, To replace the data value of 0;
[0092] S1.2. Perform data normalization on the target variable data set and the feature data set. The expression is:
[0093] ;
[0094] In the formula, Input data to the standardized model, is the original data, and are the minimum and maximum values of the original data respectively;
[0095] S1.3. Use Bootstrap Sampling to randomly extract sample data from the feature data set with replacement, and establish decision tree, the data that will not be extracted from the original data set is out-of-bag data. When the autonomous sampling method is used to extract data, if the amount of original data is Then the probability that each piece of data will not be drawn is ,when As time approaches infinity, ;
[0096] S1.4. Use out-of-bag data to calculate feature importance. The error value of each decision tree is calculated for each out-of-bag data, denoted as ,right The out-of-bag data The features are randomly sorted and other features are kept unchanged. The error value is calculated and recorded as , candidate features are obtained according to the order of feature importance;
[0097] Among them, the formula for calculating feature importance is:
[0098] ;
[0099] S1.5. Exhaustively enumerate all possible feature subsets from the candidate feature set ;
[0100] S1.6. In feature subsets In the above example, the correlation between each feature and the target variable is calculated. and the redundancy between features , and obtain the feature subset score;
[0101] The score calculation formula is:
[0102] ;
[0103] S1.7 Based on each feature subset The best feature subset is selected by sorting the scores .
[0104] In this embodiment, step S1.6 calculates the correlation between each feature and the target variable. and the redundancy between features , which also includes the following sub-steps:
[0105] 1) Calculate the correlation between each feature and the target variable and the mutual information between the features ;
[0106] ;
[0107] In the formula, yes and The joint probability distribution function of and They are and The marginal probability distribution function of , the larger the mutual information, the and The stronger the correlation between them;
[0108] 2) Calculate the correlation D between each feature and the target variable:
[0109] ;
[0110] Calculate the redundancy between the selected features and the features to be selected :
[0111] ;
[0112] In the formula, represents a feature subset, represents the dimension of the feature subset, represents the target feature variable, is the mutual information between the feature and the target feature variable, is the mutual information between the remaining features except the target feature variable.
[0113] In this embodiment, step S2 uses the optimal feature subset The specific steps to construct multi-wind farm graph structure data are:
[0114] S2.1. The relationship between multiple wind farms and their characteristics is described as graph structure data G, expressed as:
[0115] ;
[0116] in, Used to represent the set of wind farm nodes, represents the edge set (0, 1) formed by the connections between wind farm nodes, represents the optimal feature subset of wind farm nodes, is the weighted adjacency matrix between wind farm nodes;
[0117] S2.2. Based on any two wind farm nodes and The edge weights between them are used to construct a spatial weighted adjacency matrix , where the edge weight calculation expression is:
[0118] ;
[0119] In the formula, Represents a wind farm node and The spherical distance, represents the standard deviation of the Gaussian kernel function, is the threshold parameter;
[0120] S2.3. Using the maximum mutual information coefficient MIC to construct the time-weighted adjacency matrix , whose expression is:
[0121] ;
[0122] In the formula, Is a node and The mutual information between them is expressed as
[0123] ;
[0124] is the joint probability density between nodes, is the maximum information coefficient between nodes, is the number of grids, which is generally taken as 0.6 of the total amount of data;
[0125] S2.4. According to and Get the weighted adjacency matrix , whose expression is:
[0126] ;
[0127] in, is a weighting parameter, ranging from 0 to 1.
[0128] In this embodiment, step S3 uses The network trains graph structure data and generates spatial feature vectors The specific steps are:
[0129] S3.1. First, for The target nodes of the neighbor nodes of the first layer are randomly sampled. The neighbor nodes collected by the layer are recorded as , , , the number of neighbor nodes that need to be sampled in each layer is recorded as , when sampling, if the number of neighbor nodes is less than , then the sampling method without replacement is adopted; if the number of neighbor nodes is greater than , then the sampling method with replacement is adopted;
[0130] S3.2. Through the aggregation function To aggregate the neighbor node information of each layer and continuously update the node information of the target node itself, the expression is:
[0131]
[0132] in, represents the edge weight between node u and its neighbor node v, Representation Node In the Layer-aggregated neighbor node features, Indicates The number of neighbor nodes collected by the layer;
[0133] S3.3. The first The feature representation of the target node in the first layer is The aggregate features of the neighbor nodes of the layer are concatenated and used Functions and The matrix performs a nonlinear transformation on the concatenated vector and obtains , whose expression is:
[0134] ;
[0135] in, yes The weight matrix to be learned, is a nonlinear activation function;
[0136] S3.4. Continuously sample and aggregate the feature vectors of adjacent nodes, and then perform iterative updates to obtain a feature vector carrying global features, namely, a spatial feature vector, which is expressed as:
[0137] .
[0138] In this embodiment, step S4 performs spatial feature vector Use sliding window method to resample the time series and generate spatiotemporal feature vectors The specific steps are:
[0139] S4.1. Set the time window size of the sliding window method to 24 and the step size to 1;
[0140] S4.2. Sliding window extracts spatial feature vectors from t to t+23 Generate a new spatiotemporal feature vector , whose expression is:
[0141] .
[0142] In this embodiment, step S5 converts the spatiotemporal feature vector As input, the specific steps of using the LSTM model for training and obtaining the spatiotemporal correlation prediction values of each feature of multiple wind farms are as follows:
[0143] S5.1. At each moment, the LSTM unit receives and the previous hidden state The input expression is:
[0144] ;
[0145] S5.2. After receiving input information, each gate will operate on the input from different sources, and its activation is determined by its logic function, which is expressed as:
[0146] ;
[0147] S5.3. After the input of the input gate is transformed by a nonlinear function, it is superimposed with the memory cell state processed by the forget gate to form a new memory cell state. , whose expression is:
[0148] ;
[0149] S5.4. Memory cell status The output of the LSTM unit is formed by the operation of nonlinear functions and the dynamic control of the output gate. , whose expression is:
[0150] ;
[0151] .
[0152] in are bias vectors, , , and These are the parameters that LSTM needs to learn. and Represent the Sigmoid activation function and the hyperbolic tangent function respectively, represents the Hadamard product;
[0153] S5.5. After a linear layer adjusts the dimension of the feature, the wind speed prediction result is finally output.
[0154] Experimental example:
[0155] The mean absolute error (MAE) and root mean square error (RMSE) are selected as model evaluation indicators, and their expressions are:
[0156] ;
[0157] ;
[0158] In the formula is the actual observed value of the variable, The model outputs predicted values for the variables, is the total number of data samples this time.
[0159] Data from 10 wind farms in a certain area were selected (the data span is from January 1, 2017 to November 1, 2018, about 661 days of data, where the data sampling time interval is 15 minutes, and the first 5000 rows of data for each feature data column are intercepted for experiments. The data is divided into training set, validation set and test set according to 8:1:1. In order to eliminate the gap between the value ranges of different feature data, 0-1 normalization is used to normalize the data. In order to eliminate the influence of random factors on the deep learning model, a fixed random seed is set for the above model to eliminate randomness and make the results reproducible). GCN-MLP, GAT-MLP, GS-MLP, GCN-LSTM, GAT-LSTM and MRGS-LSTM models are used for comparative experiments. The experimental results are as follows:
[0160]
[0161] Among them, the MAE and RMSE error values in the MRGS-LSTM model proposed in this application are the smallest, and it performs best among all prediction models. Compared with GCN-MLP, GAT-MLP and GS-MLP that do not use time series features, the MAE statistical average of MRGS-LSTM has improved by 0.4414m / s, 0.4027m / s and 0.2494m / s, and the RMSE statistical average has improved by 0.4346m / s, 0.4007m / s and 0.2133m / s, respectively. At the same time, compared with GCN-LSTM and GAT-LSTM that use other graph neural networks to extract spatial features, the MAE statistical average of MRGS-LSTM has improved by 0.3070m / s and 0.3544m / s, and the RMSE statistical average has improved by 0.2981m / s and 0.3591m / s, respectively. Moreover, the error ranges of MAE and RMSE of wind speed prediction by MRGS-LSTM are 0.0995~0.1290m / s and 0.2565~0.3190m / s, and the statistical average of the error is also significantly smaller than that of other prediction models, which proves that the proposed model MRGS-LSTM is more accurate and stable in extracting spatiotemporal features of multiple wind farms compared with other wind speed prediction models.
[0162] The beneficial effects of the present invention are as follows: the wind speed prediction method for multiple wind farms based on mRMR-RF and GS-LSTM analyzes the correlation between various characteristics of multiple wind farms and wind speed through a feature topology graph, obtains spatial feature vectors based on the spatial feature extraction framework of mRMR-RF-GraphSAGE, and inputs the spatial feature vectors at different times as time series into the LSTM model to obtain the wind speed prediction value of each site in the wind farm. In this way, the wind speed prediction accuracy can be improved, and the threat of wind power grid connection to the stability of the power system can be reduced, thereby bringing positive long-term economic impact.
[0163] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A wind speed prediction method for multiple wind farms based on mRMR-RF and GS-LSTM, characterized in that: The following steps are involved: S1. Integrate the original data of multiple wind farms into one data set to obtain the original data set. The random forest RF feature selection method mRMR-RF based on minimum redundancy and maximum relevance mRMR calculates the scores of each feature subset of multiple wind farms and selects the optimal feature subset. ; S1.
1. Divide the historical wind speed features in the original data set into the target variable data set, and divide other features into the feature data set; S1.
2. Perform data normalization on the target variable data set and the feature data set. The expression is: In the formula, Input data to the standardized model, is the original data, and are the minimum and maximum values of the original data respectively; S1.
3. Use Bootstrap Sampling to randomly extract sample data from the feature data set with replacement, and establish A decision tree, the data that will not be extracted from the original data set is out-of-bag data; S1.
4. Use out-of-bag data to calculate feature importance. The error value of each decision tree is calculated for each out-of-bag data, denoted as right The out-of-bag data The features are randomly sorted and other features are kept unchanged. The error value is calculated and recorded as , candidate features are obtained according to the order of feature importance; Among them, the formula for calculating feature importance is: S1.
5. Exhaustively enumerate all possible feature subsets from the candidate feature set ; S1.
6. In feature subsets In the above example, the correlation between each feature and the target variable is calculated. and the redundancy between features , and obtain the feature subset score; 1) Calculate the correlation between each feature and the target variable and the mutual information between the features ; In the formula, yes and The joint probability distribution function of and They are and The marginal probability distribution function of , the larger the mutual information, the and The stronger the correlation between them; 2) Calculate the correlation D between each feature and the target variable: Calculate the redundancy between the selected features and the features to be selected : In the formula, represents a feature subset, represents the dimension of the feature subset, represents the target feature variable, is the mutual information between the feature and the target feature variable, is the mutual information between the other features except the target feature variable; 3) Calculate the score: ; S1.7 Based on each feature subset The best feature subset is selected by sorting the scores ; S2. Using the optimal feature subset Constructing graph structure data of multiple wind farms ; S2.
1. Describe the relationships between multiple wind farms and their characteristics as graph structure data , the expression is: in, Used to represent the set of wind farm nodes, represents the edge set (0, 1) formed by the connections between wind farm nodes, represents the optimal feature subset of wind farm nodes, is the weighted adjacency matrix between wind farm nodes; S2.
2. Based on any two wind farm nodes and The edge weights between them are used to construct a spatial weighted adjacency matrix , where the edge weight calculation expression is: In the formula, Represents a wind farm node and The spherical distance, represents the standard deviation of the Gaussian kernel function, is the threshold parameter; S2.
3. Using the maximum mutual information coefficient MIC to construct the time-weighted adjacency matrix , whose expression is: In the formula, Is a node and The mutual information between them is expressed as: is the joint probability density between nodes, is the maximum information coefficient between nodes, is the number of grids; S2.
4. According to and Get the weighted adjacency matrix , whose expression is: in, is a weighting parameter, ranging from 0 to 1; S3. Use GraphSAGE network to analyze graph structure data Perform training and generate spatial feature vectors ; S3.1.GraphSAGE first performs The target nodes of the neighbor nodes of the first layer are randomly sampled. The neighbor nodes collected by the layer are recorded as , , , the number of neighbor nodes that need to be sampled in each layer is recorded as ; S3.
2. GraphSAGE by Aggregation Function To aggregate the neighbor node information of each layer and continuously update the node information of the target node itself, the expression is: in, represents the edge weight between node u and its neighbor node v, Representation Node In the Layer-aggregated neighbor node features, Indicates The number of neighbor nodes collected by the layer; S3.
3. GraphSAGE will The feature representation of the target node in the first layer is the same as that in the The aggregate features of the neighbor nodes of the layer are concatenated and used Functions and The matrix performs a nonlinear transformation on the concatenated vector and obtains , whose expression is: in, is the weight matrix that GraphSAGE needs to learn, and ReLU is the nonlinear activation function; S3.
4. Continuously sample and aggregate the feature vectors of adjacent nodes, and then perform iterative updates to obtain a feature vector carrying global features, namely, a spatial feature vector, which is expressed as: ; S4. Spatial eigenvectors Use sliding window method to resample the time series and generate spatiotemporal feature vectors ; S5. Transform the spatiotemporal feature vector As input, the LSTM model is used for training and the spatiotemporal correlation prediction values of various features of multiple wind farms are obtained.
2. According to claim 1, a method for predicting wind speed of multiple wind farms based on mRMR-RF and GS-LSTM is characterized in that: Step S4 describes the spatial feature vector Use sliding window method to resample the time series and generate spatiotemporal feature vectors The specific steps are: S4.
1. Set the time window size of the sliding window method to 24 and the step size to 1; S4.
2. Sliding window extracts spatial feature vectors from t to t+23 Generate a new spatiotemporal feature vector Its expression is: 。 3. The method for predicting wind speed of multiple wind farms based on mRMR-RF and GS-LSTM according to claim 2 is characterized in that: Step S5: As input, the specific steps of using the LSTM model for training and obtaining the spatiotemporal correlation prediction values of each feature of multiple wind farms are as follows: S5.
1. At each moment, the LSTM unit receives and the hidden state at the previous moment The input expression is: S5.
2. After receiving input information, each gate will operate on the input from different sources, and its activation is determined by its logic function, which is expressed as: S5.
3. After the input of the input gate is transformed by a nonlinear function, it is superimposed with the memory cell state processed by the forget gate to form a new memory cell state. , whose expression is: S5.
4. Memory cell status The output of the LSTM unit is formed by the operation of nonlinear functions and the dynamic control of the output gate. , whose expression is: in are bias vectors, , , and These are the parameters that LSTM needs to learn. and Represent the Sigmoid activation function and the hyperbolic tangent function respectively, represents the Hadamard product; S5.
5. After a linear layer adjusts the dimension of the feature, the wind speed prediction result is finally output.
