A method and system for constructing a hybrid model for wind speed prediction based on correlation matrix
Through a wind speed prediction hybrid model based on the correlation matrix, multi-scale features are used to enhance the convolutional network and random forest feature selection, combined with the two-way long short-term memory network, to solve the problem of data nonlinearity and non-stationarity in wind speed prediction and improve the prediction accuracy. and computational efficiency, reducing the risk of overfitting.
Patent Information
- Application Number
- CN202410626835.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-21
AI Technical Summary
Due to the nonlinearity and non-stationarity of the data, existing wind speed prediction technology is difficult to capture the long-term dependence and periodic patterns of wind speed, resulting in low model prediction accuracy, increased computational complexity, and an increased risk of overfitting.
A wind speed prediction hybrid model based on the correlation matrix is used to construct the wind speed correlation matrix through sliding time window sampling. The multi-scale feature enhanced convolutional network is used to extract the wind speed features. The feature selection of the random forest and the two-way long short-term memory network are combined for sequence analysis and the wind speed is output. Predict the results.
It improves the amount of data for wind speed prediction and the accuracy of feature extraction, reduces the computational complexity and over-fitting risk, and significantly improves the computational efficiency and prediction accuracy of the model.
Smart Images

Figure CN118211494B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of meteorological forecasting, and more specifically, to a method and system for constructing a wind speed forecasting hybrid model based on a correlation matrix. Background Art
[0002] Weather forecasts have a direct impact on human production and life, especially in the fields of agricultural production, long-distance transportation, wind power, photovoltaics, and hydropower. Among them, wind speed forecasts are an important part of weather forecasts. In the long term, the distribution of wind speed has obvious temporal and regional distribution characteristics. Therefore, in addition to analyzing meteorological satellite cloud images, wind speed forecasts can also use long-term accumulated wind speed data to build mathematical models to predict and evaluate wind speed conditions in the future.
[0003] However, the nonlinearity and non-stationarity of wind speed data make it difficult for the model to capture its long-term dependencies and periodic patterns, making it impossible to learn a stable prediction model from historical data. In order to improve the accuracy of wind speed prediction, the technical solutions adopted in the existing data analysis wind speed prediction technology are:
[0004] 1. A Chinese invention patent with publication number CN112990354A, a method and device for constructing a deep convolutional regression network for wind speed prediction, proposes collecting ground observation meteorological sample data, high-altitude observation meteorological sample data and terrain sample data; constructing each channel data in the time series coding layer data based on the ground observation meteorological sample data, the total prediction time series number and the target prediction time series; for each historical moment, splicing and fusing the constructed time series coding layer data, ground observation meteorological sample data and terrain sample data to obtain ground fusion data, and splicing and fusing the constructed time series coding layer data, high-altitude observation meteorological sample data and terrain sample data to obtain high-altitude fusion data; based on the ground fusion data and the high-altitude fusion data, training the preset deep convolutional regression training network to obtain a deep convolutional regression network.
[0005] 2. The Chinese invention patent with publication number CN115392595B, a method and system for spatiotemporal short-term wind speed prediction based on graph convolutional neural network and Transformer, proposes obtaining meteorological data of multiple adjacent wind farms and preprocessing the data; constructing a complex adjacency matrix based on the historical wind speed measurement values of multiple adjacent wind farms; inputting the preprocessed meteorological data into the wind speed prediction model, using the complex adjacency matrix as the adjacency matrix required by the graph convolutional neural network, and using a two-layer graph convolutional neural network to extract features from the preprocessed meteorological data of multiple adjacent wind farms; then inputting the obtained spatiotemporal features into the Transformer network to obtain the predicted value of the wind speed.
[0006] It can be seen that in order to improve the accuracy of wind speed prediction, the existing technology has adopted methods such as multi-layer data nesting and expansion of adjacent wind fields to increase the richness of data and expand the data dimension. However, the richness of data has brought many challenges, resulting in increased computational complexity, increased risk of overfitting and longer calculation time. Summary of the invention
[0007] To solve the above problems, the technical solution adopted in this application is: a method for constructing a wind speed prediction hybrid model based on a correlation matrix, comprising the following steps:
[0008] S1: Sample the time series wind speed data through a sliding time window to obtain sub-data groups, and arrange the sub-data groups in columns to construct a wind speed correlation matrix;
[0009] S2: Extract wind speed features through a multi-scale feature enhanced convolutional network to generate a downsampled feature map containing wind speed information;
[0010] S3: Screen the optimal feature subset through the random forest feature selection method;
[0011] S4: Perform sequence analysis through a bidirectional long short-term memory network and output wind speed prediction results.
[0012] Preferably, the multi-scale enhanced convolutional network includes an input layer, a convolutional layer, a selective convolutional kernel network layer and a pooling layer.
[0013] Preferably, S2 comprises the following steps:
[0014] S2-1: Normalize the wind speed correlation matrix at the input layer;
[0015] S2-2: In the convolution layer, the normalized wind speed correlation matrix is convolved to extract local features to generate feature maps, the feature maps are stacked along the channel dimension to form a three-dimensional feature tensor, and batch normalization is used for normalization.
[0016] S2-3: In the selective convolution kernel network layer, the normalized three-dimensional feature tensor is split, fused and selected to generate an aggregated feature map;
[0017] S2-4: Downsample the aggregated feature map in the pooling layer to reduce the spatial dimension of the aggregated feature map and output the downsampled feature map.
[0018] Preferably, S2-3 specifically includes:
[0019] Split processing: The normalized three-dimensional feature tensor is input into two parallel branches. Each branch uses a different convolution kernel to extract features and obtains feature maps containing wind speed feature information.
[0020] Fusion processing: The wind speed feature information from the two branches is fused to obtain a global and comprehensive representation of the selection weights;
[0021] Selection processing: Aggregate the feature maps of the two branches according to the selection weight to form an aggregated feature map.
[0022] Preferably, S3 comprises the following steps:
[0023] S3-1: Construct a high-dimensional wind speed prediction dataset based on meteorological conditions and downsampled feature maps containing wind speed information;
[0024] S3-2: Multiple sample subsets are randomly extracted from the data set with replacement, and each subset is used to train an independent decision tree model;
[0025] S3-3: Accumulate the purity gains of the wind speed prediction dataset features in all decision trees to obtain the wind speed prediction importance scores of the wind speed prediction dataset features, sort the wind speed prediction dataset features according to the wind speed prediction importance scores, and use the cross-validation method to determine the optimal threshold of the wind speed prediction importance scores of the wind speed prediction dataset features. Take the wind speed prediction dataset features whose wind speed prediction importance scores are higher than the optimal threshold to form the optimal feature subset.
[0026] Preferably, the purity gain is calculated by randomly selecting a feature subset for each splitting node of each decision tree to find the best splitting point, and taking the reduction in impurity caused by the selected features during the tree splitting process as the purity gain.
[0027] The present application also provides a wind speed prediction hybrid model system based on a correlation matrix, comprising:
[0028] Data processing module: used to sample the time series wind speed data through a sliding time window to obtain sub-data groups, and arrange the sub-data groups in columns to construct a wind speed correlation matrix;
[0029] Feature extraction module: used to extract wind speed features through a multi-scale feature enhanced convolutional network and generate a downsampled feature map containing wind speed information;
[0030] Feature selection module: used to select the optimal feature subset through the random forest feature selection method;
[0031] Sequence prediction module: used to perform sequence analysis through a bidirectional long short-term memory network and output wind speed prediction results.
[0032] The beneficial effects of the present invention are:
[0033] (1) By constructing a correlation matrix of sub-data groups of time-series wind speed data, the wind speed feature data with a longer time span is included, which increases the amount of data used to predict wind speed. The long-term dependencies and periodic patterns of wind speed data are identified through a multi-scale feature enhanced convolutional network. The multi-scale feature enhanced convolutional network replaces a convolutional layer in the traditional convolutional network with a selective convolutional kernel network. Through its unique selective kernel network structure, it can better adapt to the dynamic characteristics and complexity of wind speed data.
[0034] (2) The attention mechanism of the selective convolution kernel network enables the network to adaptively focus on the most informative features. This method not only improves the accuracy of feature extraction, but also significantly improves the computational efficiency of the model.
[0035] (3) Meteorological conditions were included in the feature selection dataset to enrich the data volume of wind speed prediction. A feature selection method based on random forest was adopted to reduce the dimension of input data, reduce computational complexity, shorten computational time, and reduce the risk of overfitting.
[0036] (4) The bidirectional long short-term memory network is introduced into the wind speed prediction model to further improve the globality and completeness of feature extraction. The bidirectional long short-term memory network processes the input sequence in parallel in two directions: the historical trend of wind speed and the future prediction, giving the model a deeper time perception ability and providing strong support for accurate wind speed prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art.
[0038] Figure 1 A schematic diagram of the data assembly method for this application;
[0039] Figure 2 This is a schematic diagram of the overall algorithm framework of the multi-scale feature enhancement convolutional network of this application;
[0040] Figure 3 Schematic diagram of long short-term memory network;
[0041] Figure 4 Schematic diagram of the bidirectional long short-term memory network for this application;
[0042] Figure 5 This is a structural block diagram of the wind speed prediction hybrid model system based on the correlation matrix provided in Example 2 of the present application. DETAILED DESCRIPTION
[0043] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0044] Example 1
[0045] A wind speed prediction hybrid model based on correlation matrix includes the following steps:
[0046] S1: Sample the time series wind speed data through a sliding time window to obtain sub-data groups, and arrange the sub-data groups in columns to construct a wind speed correlation matrix.
[0047] Step S1 performs preliminary processing on the data entering the model, such as Figure 1 As shown in the figure, the time series wind speed data of the original wind speed data is sampled through a sliding time window to obtain a sub-data group. Among them, the sliding time window size is 24, and one time point is moved each time. The sub-data groups are grouped into groups of 24 to form different combinations. In each combination, the sub-data groups are arranged in columns for data reorganization to construct a correlation matrix. This matrix implies the wind speed characteristics with a longer time span.
[0048] Converting serial time series data into a parallel matrix saves computing time, and the matrix contains data for a longer period of time, which makes up for the shortcoming that only information from several adjacent data points can be used for prediction when using serial data for prediction.
[0049] S2: Extract wind speed features through a multi-scale feature enhanced convolutional network to generate a downsampled feature map containing wind speed information.
[0050] In this section, a method for extracting wind speed features, MFE-CNN, is proposed. This strategy successfully simplifies the continuous wind speed time series into short segments. And the previously constructed correlation matrix captures the correlation characteristics between wind speed values in different time periods. With these features, the hybrid model can more effectively understand the changing trend of wind speed, thereby improving the prediction accuracy of future wind speed changes.
[0051] Conventional CNN models are mainly designed to process structured data with translation invariance and local correlation. The nonlinearity and non-stationarity of wind speed data make it difficult for the model to capture its long-term dependencies and periodic patterns, making it impossible to learn a stable prediction model from historical data. In order to overcome the challenges encountered by traditional CNN in processing wind speed data, this application proposes to use a multiscale feature-enhanced convolutional network (Multiscale Feature-Enhanced Convolutional Network, hereinafter referred to as MFE-CNN) to extract wind speed features, aiming to identify the long-term dependencies and periodic patterns of wind speed data. This method replaces a convolutional layer of the CNN network with a selective convolution kernel network (Selective Kernel Convolution, hereinafter referred to as SKNet). SKNet can better adapt to the dynamic characteristics and complexity of data through its unique selective kernel network structure. In addition, SKNet's attention mechanism enables the network to adaptively focus on the most informative features. This method not only improves the accuracy of feature extraction, but also significantly improves the computational efficiency of the model.
[0052] like Figure 2 As shown in the figure, the proposed MFE-CNN consists of four main parts, namely the input layer (Input), the convolution layer (Conv), the SKNet layer and the pooling layer (Pooling). The network is designed to efficiently extract features from the wind speed correlation matrix, and its operation process is simple and intuitive: first, the wind speed correlation matrix is pre-processed in the input layer; then, the convolution layer performs local feature extraction on the data to generate a set of feature maps. These feature maps are stacked along the channel dimension and batch normalized to form a three-dimensional feature tensor. Next, the SKNet layer is used to further capture and integrate feature information from different scales to enhance the network's ability to represent the multi-scale characteristics of wind speed data. Finally, the pooling layer is introduced to reduce the spatial dimension of the features, while improving the generalization ability of the model and effectively avoiding the occurrence of overfitting.
[0053] S2-1: Normalize the wind speed correlation matrix at the input layer.
[0054] The standard score normalization formula is as follows:
[0055] .
[0056] Among them, y i,j and c i,j are the normalized value and original value of the element in the i-th row and j-th column of the correlation matrix C, respectively, μ j is the average value of the jth column of C, σ j is the standard deviation of the jth column of C. i,jThe composed matrix Y is the final output of the input layer.
[0057] Before introducing the wind speed correlation matrix into the network model, it is crucial to perform normalization, which helps improve the performance of the network model. Standard score (Z-score) normalization is a commonly used data preprocessing technique. The purpose is to standardize the numerical range of the data, thereby reducing the scale difference between features. This process helps to balance the contribution of each matrix element to the model, thereby improving the performance and generalization ability of the model in extracting wind speed features.
[0058] S2-2: In the convolution layer, a convolution operation is performed on the normalized wind speed correlation matrix to extract local features to generate a feature map. The feature map is stacked along the channel dimension to form a three-dimensional feature tensor, and batch normalization is used for normalization.
[0059] The convolution layer extracts local features by applying a series of 3×3 convolution kernels to the input matrix. In this process, the convolution kernel slides from the upper left corner of the input matrix to cover local areas (receptive fields) of equal size. The weight of each convolution kernel is used to weight the elements in the receptive field to represent the weighted sum of the local features. This process is repeated for each local area of the input matrix to generate a set of feature maps. Each feature map corresponds to the output of a convolution kernel.
[0060] .
[0061] Among them, * is the convolution operator; Y represents the input matrix; W m and X m is the weight matrix of the mth convolution kernel and the corresponding feature map; b m represents the bias corresponding to the mth convolution kernel; finally, LeakyReLU (Leaky Rectified LinearUnit) is applied to the result as the activation function ƒ(·).
[0062] After the convolutional layer generates feature maps, these feature maps are usually stacked along the channel dimension to form a three-dimensional feature tensor. This three-dimensional tensor contains the feature representation of the input data at multiple levels. In order to further optimize the network training process and improve the performance of the model, batch normalization is used to normalize the feature tensor. The normalized three-dimensional feature vector X is the final output of the convolutional layer.
[0063] S2-3: In the selective convolution kernel network layer, the normalized three-dimensional feature tensor is split, fused and selected to generate an aggregated feature map.
[0064] In order to enhance the network's wind speed feature extraction performance, the traditional convolutional layer is innovatively replaced with the SKNet layer. The SKNet layer effectively extracts and fuses multi-scale information in the input data by dynamically adjusting the receptive field of the convolution kernel. This mechanism gives the network the ability to focus on local details and capture global context information at the same time, significantly improving the ability to characterize the changing characteristics of wind speed data.
[0065] The adaptive adjustment of the receptive field is achieved through three steps: splitting, fusion, and selection. First, the input data is separated by convolution, and each branch uses a different receptive field for feature extraction. Subsequently, the feature information from the two branches is fused to obtain a global and comprehensive representation of the selection weights. Finally, the feature maps of receptive fields of different sizes are aggregated according to the selection weights. The specific implementation steps are as follows.
[0066] Split processing:
[0067] The three-dimensional feature vector X∈R obtained by batch normalization in step S2-2 H×W×C , H, W, C are the height, width and number of channels respectively, and are input to two parallel branches. Each branch uses convolution kernels of different sizes for feature extraction. The first branch uses a 3x3 convolution kernel to capture detailed features, and the second branch uses a 5x5 convolution kernel to extract broader context information to generate multi-scale feature maps U1 and U2. It should be noted that convolution, batch normalization and ReLU activation functions are combined in the branches, which can be expressed as:
[0068] .
[0069] Among them, U i is the feature map, σ(·) represents the ReLU activation function, BN is Batch Normalization, W i is the convolution kernel, * is the convolution operator, b i is the bias.
[0070] Fusion processing:
[0071] In order to use gates to control the flow of feature maps carrying information of different scales into the next layer of neurons, it is necessary to integrate information from all branches. First, the feature maps from the two branches are fused by element-by-element addition:
[0072] .
[0073] Where U1 and U2 represent the feature maps from the two branches respectively, and global average pooling is used to obtain s∈R C The cth element of s is calculated as follows:
[0074] .
[0075] in, It is global average pooling, which averages all elements in each channel of the input feature map.
[0076] In addition, a compression vector Z∈R is constructed d×1 As a guide, aiming to optimize the accuracy and efficiency of the adaptive selection process, d is the length of the compressed vector, which is set here as The dimension of s is reduced by adding a fully connected layer.
[0077] .
[0078] Where W∈R d×c , c is the length of s, d is the length of z.
[0079] Select Processing:
[0080] Guided by the compressed feature z, adaptive selection of information at different spatial scales is achieved by using cross-channel soft attention. Specifically, a softmax (normalized exponential function) operator is applied to the channel dimension:
[0081] .
[0082] Among them, A,B∈R C×d are the science matrix of U1 and U2, a and b are the soft attention vectors of U1 and U2 respectively. Then, the soft attention vector is applied to the corresponding feature map, and the final feature map V is obtained by weighted addition:
[0083] .
[0084] Where V = [V1, V2, …, V c ],V n ∈R H×W . Feature map V∈R H×W×C It is the final output of the SKNet layer.
[0085] S2-4: Downsample the aggregated feature map in the pooling layer to reduce the spatial dimension of the aggregated feature map and output the downsampled feature map.
[0086] The feature map extracted from the SKNet layer contains a lot of redundant information. Therefore, this application adds a pooling layer to downsample the feature map to reduce the spatial dimension of the feature map. It reduces the number of neurons and the amount of calculation, but retains the key feature information. In this embodiment, maximum pooling is used for downsampling.
[0087] .
[0088] Among them, Y n Represents the pooling layer output corresponding to the nth convolution kernel, W s is the size of the pooling window.
[0089] S3: Screen the optimal feature subset through the random forest feature selection method.
[0090] Although the use of MFE-CNN can effectively capture and identify the characteristics and changing trends in wind speed data, it significantly increases the dimension of data representation. Given that meteorological conditions have an important impact on the accuracy of the forecast model, this study also incorporates these conditions into the input data set, further expanding the data dimension. Although this high-dimensional data representation method enhances the input information of the model, it also brings a variety of challenges, including increased computational complexity, increased risk of overfitting, and longer computational time.
[0091] In order to meet the above challenges, this study uses the Random Forest Feature Select (RF-FS) method to reduce the dimension of input data. Random forest can measure the importance of each feature and select the optimal feature subset that has a significant impact on wind speed prediction based on this importance index. The implementation steps of RF-FS are as follows.
[0092] S3-1: Construct a wind speed prediction dataset based on downsampled feature maps of meteorological conditions and wind speed information.
[0093] S3-2: Multiple sample subsets are randomly extracted from the data set with replacement, and each subset is used to train an independent decision tree model.
[0094] First, the input data set is randomly sampled, and multiple sample subsets with the same number of elements are randomly selected with replacement. Each subset is used to train an independent decision tree model. For each tree, a feature subset is randomly selected at each split node to find the best split point.
[0095] S3-3: Accumulate the purity gains of the wind speed prediction dataset features in all decision trees to obtain the wind speed prediction importance scores of the wind speed prediction dataset features, sort the wind speed prediction dataset features according to the wind speed prediction importance scores, and use the cross-validation method to determine the optimal threshold of the wind speed prediction importance scores of the wind speed prediction dataset features. Take the wind speed prediction dataset features whose wind speed prediction importance scores are higher than the optimal threshold to form the optimal feature subset.
[0096] Feature importance scores are calculated by quantifying the purity gain caused by each feature in all decision tree node splits. Purity gain refers to the reduction in impurity caused by the selected feature during the tree split process. This reduction is a key metric for evaluating the effectiveness of a feature in partitioning a dataset. Commonly used impurity metrics in random forests include the Gini coefficient and entropy, which capture the unevenness and uncertainty of the class distribution in the dataset, respectively. To get a feature importance score, we accumulate the purity gain of the feature in all decision trees.
[0097] In the feature selection and dimensionality reduction stage, we sorted all features according to their feature importance scores to identify features that contribute significantly to the model's prediction accuracy. To select the feature set for model training, we used a cross-validation method to determine the optimal threshold for feature importance scores. We then screened out features with importance scores above this threshold to reduce the model's complexity and the dimensionality of the input features while retaining the information that has the greatest impact on the prediction results.
[0098] This application proposes the use of RF-FS as a wind speed feature selection method. This method accurately extracts features that are critical to wind speed prediction from high-dimensional data sets. Through the application of RF-FS, we are able to extract an optimal feature subset from a high-dimensional data set containing wind speed information and other environmental variables. This process not only reduces the complexity of the model, but also improves the accuracy and efficiency of the prediction model.
[0099] S4: Perform sequence analysis on the optimal feature subset through a bidirectional long short-term memory network and output the prediction results.
[0100] After selecting the optimal feature subset of wind speed data, we use it as the input for sequence analysis. Figure 3 As shown in the figure, traditional LSTM mainly relies on historical data for prediction, while ignoring the potential value of future information. However, in practical applications, accurate predictions usually require considering both past and future information. To solve this problem, this application introduces a bidirectional long short-term memory network (Bidirectional long short-term memory network, hereinafter referred to as Bi-LSTM) into the model. This network effectively captures the dynamic changes of the time series by integrating the forward and backward information of the sequence, thereby achieving more accurate predictions. Figure 4 As shown in Figure 2, Bi-LSTM provides a more comprehensive perspective for time series data analysis.
[0101] The LSTM unit consists of a forget gate, an input gate, and an output gate. The architecture of LSTM is as follows Figure 3 As shown. The forget gate combines the hidden state h at time t-1 t-1and input x at time t t , using the sigmoid activation function to generate the forget gate state ƒ at time t t , and selectively retain important information in the memory cell state.
[0102] .
[0103] Among them, σ(·) is the sigmoid activation function, W ƒ is the forget weight matrix, b ƒ is the forget bias vector. The input gate controls the inflow of new information. It uses the sigmoid activation function to determine which information should be included in the LSTM unit, and uses the tanh function to generate temporary cell states. , thereby updating the memory unit C t content.
[0104] .
[0105] Among them, i t is the input gate state, W i and W c are the input and memory weight matrices, respectively, and b i and b c The output gate uses a sigmoid activation function to determine which information in the memory cell is important and uses this information to construct the final output value h. t .
[0106] .
[0107] Among them, O t is the output gate state, W o is the output weight matrix, b o are bias vectors.
[0108] In this application, Bi-LSTM is introduced into the wind speed prediction model to further improve the globality and completeness of feature extraction. Bi-LSTM not only considers the historical trend of wind speed changes, but also captures future trends by processing the input sequence in parallel in two directions. Among them, the forward LSTM network processes the original order of the input sequence, that is, from time step 1 to time step T. It can capture all historical information before each time point in the sequence; the backward LSTM network processes the reverse order of the input sequence, that is, from time step T to time step 1. It can capture all information after each time point in the sequence, that is, future information. After the LSTM in both directions has processed the input sequence, an additional fully connected layer is used to combine the information in the two directions.
[0109] .
[0110] in, and Respectively represent the hidden states of the forward and backward at time t, and is the splicing weight, is the deviation vector.
[0111] It gives the model a deeper time perception capability and provides strong support for accurate wind speed prediction.
[0112] The sea surface wind speed dataset with a time span of 12 months was collected and divided into four sub-datasets according to the four seasons of spring, summer, autumn and winter. The first 70% of the dataset was used as a training set, followed by 20% as a test set and 10% as a validation set. The division and characteristics of the wind speed dataset are shown in Table 1.
[0113] Table 1 Division and characteristics of wind speed dataset
[0114]
[0115] In this method, the wind speed data is first reorganized to obtain the wind speed correlation matrix, and then a convolution kernel of size 3×3 is used to extract local features, and then a selective convolution kernel network is used to extract multi-scale features. After obtaining the wind speed features, in order to reduce the feature dimension, a feature selection algorithm based on random forest is introduced. Finally, the reduced-dimensional wind speed features are input into the Bi-LSTM network to obtain the final prediction results. Among them, the relevant parameters of the random forest are obtained by grid search, and the specific parameters are shown in Table 2.
[0116] Table 2 Related parameters of random forest
[0117]
[0118] In order to comprehensively evaluate the performance of the proposed hybrid wind speed prediction model based on correlation matrix and demonstrate its advantages over existing prediction methods, the mean absolute error (MAE), root mean square error (RMSE) and mean absolute percentage error (MAPE) are used to comprehensively evaluate the prediction performance of the proposed model. 2 Measuring the goodness of fit of the predicted values to the observed values, these indicators can objectively quantify the difference between the model predicted values and the actual observed values.
[0119] ;
[0120] ;
[0121] ;
[0122] .
[0123] In the formula, is the predicted value; is the measured value; is the sample mean; is the sample size.
[0124] Next, we selected several existing wind speed prediction methods for comparison, ensuring that they were trained and tested on the same dataset. The three-hour wind speed prediction results are shown in Table 3. Among them, SVR is the support vector regression algorithm, RNN is the recurrent neural network, CNN is the convolutional neural network, and CNN-LSTM is the convolutional neural network combined with the long short-term memory neural network.
[0125] Table 3 Three-hour wind speed forecast results
[0126]
[0127] It can be seen from Table 3 above that the hybrid wind speed prediction model based on the correlation matrix provided in this application has excellent overall performance, showing the smallest mean absolute error, root mean square error and mean absolute percentage error and the highest goodness of fit in the three data sets of spring, summer and winter.
[0128] Example 2
[0129] like Figure 5 As shown, a wind speed prediction hybrid model system based on correlation matrix includes:
[0130] Data processing module 1: used to sample the time series wind speed data through a sliding time window to obtain sub-data groups, and arrange the sub-data groups in columns to construct a wind speed correlation matrix;
[0131] Feature extraction module 2: used to extract wind speed features through a multi-scale feature enhanced convolutional network and generate a downsampled feature map containing wind speed information;
[0132] Feature selection module 3: used to select the optimal feature subset through the random forest feature selection method;
[0133] Sequence prediction module 4: used to perform sequence analysis through a bidirectional long short-term memory network and output wind speed prediction results.
[0134] Among them, the feature extraction module 2 includes an input layer 21, a convolution layer 22, a selective convolution kernel network (SKNet) layer 23 and a pooling layer 24.
[0135] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for constructing a wind speed prediction hybrid model based on a correlation matrix, characterized in that: The following steps are involved: S1: sampling the time series wind speed data through a sliding time window to obtain a sub-data group, and arranging the sub-data group in columns to construct a wind speed correlation matrix; S2: Extract wind speed features through a multi-scale feature enhanced convolutional network to generate a downsampled feature map containing wind speed information; S3: Screen the optimal feature subset through the random forest feature selection method; S4: Perform sequence analysis through a bidirectional long short-term memory network and output wind speed prediction results; The multi-scale feature enhancement convolutional network includes an input layer, a convolutional layer, a selective convolutional kernel network layer and a pooling layer; The S2 comprises the following steps: S2-1: normalizing the wind speed correlation matrix at the input layer; S2-2: performing a convolution operation on the normalized wind speed correlation matrix in the convolution layer, extracting local features therefrom to generate a feature map, stacking the feature map along the channel dimension to form a three-dimensional feature tensor, and performing normalization by using batch normalization; S2-3: splitting, fusing and selecting the normalized three-dimensional feature tensor in the selective convolution kernel network layer to generate an aggregated feature map; S2-4: Down-sample the aggregated feature map in the pooling layer to reduce the spatial dimension of the aggregated feature map, and output the down-sampled feature map.
2. The method for constructing a wind speed prediction hybrid model based on a correlation matrix according to claim 1, characterized in that: The S2-3 specifically includes: Splitting processing: inputting the normalized three-dimensional feature tensor into two parallel branches, each branch uses a different convolution kernel to extract features to obtain feature maps containing wind speed feature information; Fusion processing: The wind speed feature information from the two branches is fused to obtain a global and comprehensive representation of the selection weights; Selection processing: Aggregate the feature maps of the two branches according to the selection weight to form an aggregated feature map.
3. The method for constructing a wind speed prediction hybrid model based on a correlation matrix according to claim 1, characterized in that: The S3 comprises the following steps: S3-1: constructing a high-dimensional wind speed prediction data set based on meteorological conditions and the downsampled feature graph containing wind speed information; S3-2: randomly extracting multiple sample subsets from the data set with replacement, and each subset is used to train an independent decision tree model; S3-3: Accumulate the purity gains of the wind speed prediction data set features in all decision trees to obtain the wind speed prediction importance scores of the wind speed prediction data set features, sort the wind speed prediction data set features according to the wind speed prediction importance scores, and use the cross-validation method to determine the optimal threshold of the wind speed prediction importance scores of the wind speed prediction data set features, and take the wind speed prediction data set features whose wind speed prediction importance scores are higher than the optimal threshold to form the optimal feature subset.
4. The method for constructing a wind speed prediction hybrid model based on a correlation matrix according to claim 3, characterized in that: The purity gain is calculated by randomly selecting a feature subset for each splitting node of each decision tree to find the best splitting point, and taking the reduction in impurity caused by the selected features during the tree splitting process as the purity gain.
5. A wind speed prediction hybrid model system based on correlation matrix, characterized in that: include: Data processing module: used to sample the time series wind speed data through a sliding time window to obtain sub-data groups, and arrange the sub-data groups in columns to construct a wind speed correlation matrix; Feature extraction module: used to extract wind speed features through a multi-scale feature enhanced convolutional network and generate a downsampled feature map containing wind speed information; The multi-scale feature enhancement convolutional network includes an input layer, a convolutional layer, a selective convolutional kernel network layer and a pooling layer; The method of extracting wind speed features through a multi-scale feature enhanced convolutional network and generating a downsampled feature map containing wind speed information comprises the following steps: S2-1: normalizing the wind speed correlation matrix at the input layer; S2-2: performing a convolution operation on the normalized wind speed correlation matrix in the convolution layer, extracting local features therefrom to generate a feature map, stacking the feature map along the channel dimension to form a three-dimensional feature tensor, and performing normalization by using batch normalization; S2-3: splitting, fusing and selecting the normalized three-dimensional feature tensor in the selective convolution kernel network layer to generate an aggregated feature map; S2-4: downsampling the aggregated feature map in a pooling layer to reduce the spatial dimension of the aggregated feature map, and outputting a downsampled feature map; Feature selection module: used to select the optimal feature subset through the random forest feature selection method; Sequence prediction module: used to perform sequence analysis through a bidirectional long short-term memory network and output wind speed prediction results.
