Construction method and application of hybrid deep learning prediction model based on SSA-VMD and CNN-BiLSTM
Through the hybrid deep learning model of SSA-VMD and CNN-BiLSTM, the problem of difficult to capture nonlinear changes in wind speed data is solved, high-precision wind speed prediction is achieved, and the generalization ability and performance of the model are enhanced.
Patent Information
- Application Number
- CN202410965684.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-29
AI Technical Summary
When existing wind speed prediction models process wind speed data, it is difficult to capture nonlinear change trends, resulting in low prediction accuracy and insufficient prediction ability of a single model for complex wind speed data.
A hybrid deep learning prediction model based on SSA-VMD and CNN-BiLSTM is adopted to decompose wind speed data through SSA-optimized VMD algorithm, reduce noise and extract effective features, and combine CNN and BiLSTM models for series fusion to capture the timing and spatial characteristics of wind speed data.
The wind speed prediction accuracy is significantly improved, the modal overlap and over-decomposition problems are avoided, and the generalization ability and prediction performance of the model are enhanced.
Smart Images

Figure CN119047516A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of wind power generation, and in particular relates to a method for constructing a hybrid deep learning prediction model based on SSA-VMD and CNN-BiLSTM and an application thereof. Background Art
[0002] Wind energy is a renewable clean energy. It is inexhaustible and pollution-free. As a new energy source, wind has a very broad development prospect and is increasingly valued by the world. At present, the most researched is how to use wind to generate electricity. Wind power generation does not require any fuel, nor does it produce radiation or air pollution. It is very environmentally friendly and has unlimited potential. my country has abundant wind energy resources and is widely distributed, so wind power generation has rapidly risen and flourished in my country. Wind power generation is to convert wind energy into electrical energy. A certain wind speed is required to rotate the turbine and drive the generator to generate electricity. Therefore, wind speed is one of the most important factors in wind power generation. Too strong or too weak wind speed will affect the power generation efficiency. If the wind speed is weak, it cannot generate sufficient electricity. If the wind speed is too strong, it will exceed the load range of the turbine, resulting in damage to the equipment and reduced life. The instability of wind speed directly leads to low power generation efficiency, which has a certain negative impact on the stable operation of the power grid. Therefore, in order to promote the sustainable development of the wind power industry, an effective method is to accelerate the research on wind speed prediction.
[0003] At present, the methods of wind speed prediction can be summarized into four types, namely physical methods, statistical methods, artificial intelligence methods and combined methods. Physical methods usually use numerical prediction models, climate models, etc., which require a lot of information when building models, with high computing power and time costs, and are not suitable for short-term predictions; statistical methods include kernel regression, vector autoregression, etc., which require fewer computing resources and are suitable for short-term predictions, but wind has the characteristics of randomness, non-stationarity, irregularity, etc., and it is difficult to capture nonlinear change trends, resulting in poor prediction results; with the development of artificial intelligence, data-driven machine learning models and deep learning models in big data environments are highly favored. Artificial intelligence methods have the characteristics of self-organization and self-adaptation, and are very suitable for dealing with nonlinear problems. Common artificial intelligence methods include recurrent neural networks, time-domain convolutional networks, convolutional neural networks, long short-term memory networks, gated recurrent units and other network models. The emergence of artificial intelligence methods has provided new ideas for wind speed prediction, but a single model still shows low prediction accuracy and poor prediction performance for complex nonlinear problems; the combined method is to integrate different prediction models, give full play to the advantages of different models, learn from each other's strengths and weaknesses, and thus solve the problem of insufficient prediction ability and low prediction accuracy of a single model. The combined prediction method is the current mainstream wind speed prediction method and has been widely used in the field of wind power.
[0004] Since wind speed data has strong volatility, randomness and irregularity, the prediction accuracy may not be very high if the original wind speed data is used directly for prediction. With the continuous development of signal processing technology, many researchers have tried to decompose complex historical wind speed data to mine effective time-frequency information in historical data and achieve accurate prediction of wind speed. Mi et al. designed a novel multi-step wind speed prediction model based on singular spectrum analysis (SSA), empirical mode decomposition (EMD) and convolutional support vector machine (CNNSVM). SSA was used for noise reduction, EMD obtained the fluctuation characteristics of wind speed, and CNNSVM was used to predict each decomposed sub-wind speed. Xiang Ling et al. performed a secondary decomposition of the original wind speed data. First, the original wind speed data was decomposed using the variational mode decomposition algorithm (VMD), and then the residual components generated by VMD decomposition were decomposed using the complete empirical mode decomposition (CEEMDAN). The prediction of the subsequence was completed using the LSTM model. Yan et al. proposed a hybrid wind speed prediction model based on seasonal autoregressive moving average (SARIMA), ensemble empirical mode decomposition (EEMD) and long short-term memory (LSTM) methods. The model mainly uses the SARIMA model to extract the linear features and nonlinear residual sequences of wind speed sequences at different time scales, and performs EEMD secondary decomposition on the nonlinear residual sequences. Tao Kai et al. designed a prediction model based on variational mode decomposition (VMD) and least squares support vector machine (LSSVM), using VMD to decompose the original wind speed data, using LSSVM to predict the results, and using the JAYA algorithm to optimize the LSSVM parameters. Bi Guihong et al. used two signal decomposition methods, singular spectrum decomposition (SSD) and variational mode decomposition (VMD), to decompose the original wind speed data separately, merged the decomposed subsequences into a CNN with dual-channel attributes for feature extraction, and then used LSTM to predict the results. Wang Xuguang et al. improved the original Transformer model and added a variable-related attention mechanism to the wind speed prediction model to explore the relationship between wind speed and other factors. The model predicted wind speed in all four seasons with significant results. Wang Yiwen et al. used the complete empirical mode decomposition (CEEMDAN) to decompose and divide it into three categories, then performed singular spectrum decomposition on the high-frequency terms and used the extreme learning machine ELM for prediction. Li et al. designed a hybrid decomposition method that couples the integrated patch transform (EPT) with the fully integrated empirical mode decomposition (CEEMDAN) with adaptive noise. EPT was used to extract the wind speed change trend, and then CEEMDAN was used to decompose the volatility into multiple fluctuation components with different frequency characteristics. Finally, a temporal convolutional neural network (TCN) was used for prediction.Chen et al. used EMD and CEEMD to decompose the measured wind speed series into a finite number of intrinsic mode functions (IMFs) and decomposition residuals. Each IMF subsequence has good linear characteristics. The ARIMA algorithm is used to predict each subsequence, and then a new subsequence is reconstructed using the sum of the prediction errors of all subsequences. The support vector machine is used to model the nonlinear characteristics of the reconstructed error subsequence. Summary of the invention
[0005] In order to further improve the prediction accuracy of wind speed, the present invention proposes a construction method and application of a hybrid deep learning prediction model based on SSA-VMD and CNN-BiLSTM. Firstly, considering the seasonality of wind speed data, the wind speed data is divided according to season. Since spring belongs to the transitional season, the randomness and instability of wind speed are greater. Therefore, spring is selected as the research object; secondly, the VMD algorithm is used to decompose the original wind speed data sequence so that the data characteristics of the subsequence can be better expressed by the prediction model. In order to further improve the decomposition quality of the VMD algorithm and reduce noise, the SSA algorithm is used to optimize the VMD parameters; finally, a CNN-BiLSTM hybrid deep learning prediction model is constructed based on the subsequence decomposed by VMD, and the SSA algorithm is used to find the optimal hyperparameters of the CNN-BiLSTM model. The model is used to extract component space and time domain features, which are sent to the fully connected layer to achieve high-precision prediction.
[0006] An object of the present invention is to provide a method for constructing a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM, the method comprising the following steps:
[0007] Step 1: Divide the collected original wind speed data throughout the year into four seasons: spring, summer, autumn and winter;
[0008] Step 2: Use SSA to optimize the VMD algorithm to obtain the SSA-VMD algorithm, and use the SSA-VMD algorithm to decompose the divided original wind speed data into several different simple subsequences;
[0009] Step 3: Use simple subsequences to build a CNN-BiLSTM hybrid deep learning prediction model.
[0010] Furthermore, in step 1, data are collected every 1 hour, 24 sample points are collected every day, the original wind speed sequence for the whole year is collected, and the wind speed data for the whole year is divided into four seasons: spring, summer, autumn and winter.
[0011] Furthermore, spring is selected as the prediction object, the original wind speed series in spring is preprocessed, and then the sliding window method is used to make a data set, and then the data set is divided into a training set and a test set according to a certain ratio.
[0012] Furthermore, the steps of optimizing the VMD algorithm using the SSA algorithm in step 2 are as follows:
[0013] Step 201: Initialize the sparrow population, each sparrow represents a candidate solution, that is, a set of VMD parameters, including two dimensions k and a;
[0014] Step 202: Calculate the fitness value. For each candidate solution, use the VMD algorithm to decompose the signal into IMF components, and calculate the envelope entropy value of each IMF component.
[0015] Step 203: According to the free flight, foraging and following behaviors of the sparrow, the position of each candidate solution is updated, that is, the VMD parameters are adjusted, the fitness value is calculated and the global optimal solution is updated;
[0016] Step 204: Repeat steps 202 and 203 until the stop condition is met, and output the best set of VMD parameters [k, a].
[0017] Furthermore, in step 2, the optimized VMD algorithm is used to decompose the original wind speed sequences of the training set and the test set to obtain several simple subsequences in different frequency bands.
[0018] Furthermore, the steps for constructing the CNN-BiLSTM hybrid deep learning prediction model in step 3 are as follows:
[0019] Step 301: Use the SSA algorithm to optimize the hyperparameters in the CNN-BiLSTM hybrid deep learning model;
[0020] Step 302: Using the training set to train the optimized CNN-BiLSTM hybrid deep learning model;
[0021] Step 303: Use the test set to input into the CNN-BiLSTM hybrid deep learning model for testing, output the prediction results of each subsequence, and superimpose and reconstruct the prediction results of each subsequence to obtain the final wind speed prediction result;
[0022] Step 304: Compare the wind speed prediction result obtained by using the CNN-BiLSTM hybrid deep learning model with the true wind speed value, evaluate the prediction performance of the CNN-BiLSTM hybrid deep learning model, and obtain the final CNN-BiLSTM hybrid deep learning prediction model.
[0023] Another object of the present invention is to provide a wind speed prediction method based on a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM, the wind speed prediction method comprising the following steps:
[0024] Step 1: Collect the original wind speed sequence throughout the year;
[0025] Step 2: Perform anomaly detection on the original wind speed data throughout the year, replace the abnormal data using the neighborhood average method, and then perform normalization processing;
[0026] Step 3: The pre-processed original wind speed data for the whole year is decomposed using the SSA-VMD algorithm optimized in claim 4 to obtain several subsequences;
[0027] Step 4: Input the subsequence into the CNN-BiLSTM hybrid deep learning prediction model constructed in claim 6. The CNN network is used to capture the spatial features of the original wind speed data. The captured spatial features are then provided to the BiLSTM network for prediction. The temporal dependency in the original wind speed data throughout the year is found. The prediction results of each subsequence are output, and the prediction results of each subsequence are superimposed and reconstructed to obtain the final prediction result of the wind speed.
[0028] Another object of the present invention is to provide a wind speed prediction system based on a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM, the prediction system comprising:
[0029] The acquisition module is used to collect the original wind speed data throughout the year;
[0030] The preprocessing module is used to detect anomalies in the original wind speed data throughout the year, replace the abnormal data with the neighborhood average method, and then perform normalization processing;
[0031] The decomposition module deploys the SSA-VMD algorithm optimized in claim 4 to the background, and calls the SSA-VMD algorithm to decompose the preprocessed original wind speed data throughout the year to obtain several subsequences;
[0032] The prediction module deploys the CNN-BiLSTM hybrid deep learning prediction model constructed in claim 6 to the background, calls the CNN-BiLSTM hybrid deep learning prediction model to predict each subsequence, and superimposes and reconstructs the prediction results of each subsequence to obtain the final prediction result of the wind speed.
[0033] Compared with the prior art, the present invention has the following advantages:
[0034] 1. The present invention uses the SSA-VMD algorithm to decompose the original wind speed data, which can effectively decompose the original sequence and reduce the complexity of the original signal. The model proposed in this application makes a great contribution to wind speed prediction and greatly improves the prediction accuracy of wind speed. It effectively avoids the problem of mode overlap or over-decomposition caused by insufficient manual experience and reduces the number of experiments.
[0035] 2. In the present invention, the CNN and BiLSTM models are fused in series. CNN is good at extracting local features of data, and BiLSTM is good at capturing long-term dependencies in sequence data. By combining the advantages of the two, the model can simultaneously consider the temporal characteristics and spatial characteristics of wind speed data, thereby improving the accuracy of prediction.
[0036] 3. Through experimental comparison and error analysis of multiple models, the hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM proposed in the present invention has higher accuracy, better performance and stronger generalization ability than a single prediction model. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is the CNN network structure diagram;
[0038] Figure 2 This is the BiLSTM network structure diagram;
[0039] Figure 3 Optimize VMD algorithm flow chart for SSA;
[0040] Figure 4 Flowchart for wind speed prediction using the hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM;
[0041] Figure 5 It is the original wind speed data series diagram;
[0042] Figure 6 Optimize VMD convergence curve for SSA;
[0043] Figure 7 Decomposition of the original wind speed series by VMD;
[0044] Figure 8 is the spectrum of each component;
[0045] Fig. 9 is the prediction result on the test set;
[0046] Fig.10 are the prediction results of other models on the test set. DETAILED DESCRIPTION
[0047] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.
[0048] 1. Basic principles of the algorithm
[0049] 1.1 Variational Mode Decomposition
[0050] Variational Mode Decomposition (VMD) is a signal processing technology used for signal decomposition and mode extraction. It can adaptively decompose the original complex wind speed signal into multiple intrinsic mode functions (IMFs). Each IMF represents a local vibration mode within a specific frequency range. The basic principle of VMD is to iteratively search the variational model so that the sum of the estimated bandwidth of each IMF is minimized, thereby determining the frequency and amplitude of each IMF. Its constrained variational problem model is shown in formula (1).
[0051]
[0052] In formula (1), u k represents the submodal component u k ={u1,u2,...,u k},w k represents the center frequency w of each mode k ={w1,w2,...,w k}, δ(t) represents the Dirac distribution function, * represents the convolution operator, k represents the number of decomposition modes, f represents the sequence to be decomposed, j is the imaginary unit, and t is a variable representing time.
[0053] In formula (1), the Lagrangian multiplication operator and the quadratic multiplication factor parameter are introduced, so that formula (1) is transformed from a constrained variational problem to an unconstrained variational problem. The augmented Lagrangian expression is shown in formula (2).
[0054]
[0055] In formula (2), a is the penalty parameter, λ is the Lagrange multiplier, f(t) represents the original signal, and the Alternate Direction Method of Multipliers (ADMM) is used to solve the variational problem and continuously iterate and update and λ n+1 , until the stopping condition is reached. k and w k The Fourier transform iterations are shown in equations (3) and (4).
[0056]
[0057] The VMD algorithm is achieved by continuous iteration in the frequency domain and then performing Fourier transform to obtain the result. The VMD algorithm is described in detail as follows.
[0058] Step 1: Initialize u k 、w k ,λand n=0,k=0.
[0059] Step 2: Perform iteration n=n+1, k=k+1 and update u using formulas (3) and (4) k and w k .
[0060] Step 3: Update the Lagrange multiplier
[0061]
[0062] Step 4: Determine whether the convergence condition is met. If so, stop; otherwise, go to step (2).
[0063]
[0064] 1.2 Envelope entropy
[0065] Information entropy is one of the most important concepts in information theory. It is used to measure the uncertainty and average randomness of transmitted information. The size of the entropy value can well reflect the uniformity of the time probability distribution. The larger the entropy value, the greater the uncertainty of the information. The smaller the entropy value, the smaller the uncertainty of the information and the higher the predictability of the information. Therefore, entropy has a wide range of applications in many fields, including information communication, data compression, machine learning, and deep learning.
[0066] Envelope entropy is to decompose the original signal into envelope signals, and then process them into a series of probability distribution sequences, on which the entropy value is calculated. The entropy value obtained can accurately reflect the distribution characteristics of the original signal. Its mathematical expression is shown in formula (7).
[0067]
[0068] Where N is the number of samples, a(j) is the envelope signal of the jth IMF after Hilbert transform, and p j is the probability distribution sequence after normalization of a(j), and Ep is the envelope entropy value calculated for p(j).
[0069] 1.3 Basic Mahjong Search Algorithm
[0070] The Sparrow Search Algorithm (SSA) is a new meta - heuristic intelligent algorithm proposed by Xue et al. in 2020. SSA is mainly inspired by the foraging behavior of sparrows and their natural behavior of avoiding foragers. This algorithm is relatively novel and has advantages such as strong optimization ability and fast convergence speed. In nature, sparrows mainly have two behaviors: foraging and anti - foraging. In the foraging behavior, sparrows are divided into explorers and pursuers. During the process of finding food, explorers can discover better food first and provide the foraging direction and location for followers. In the anti - foraging behavior, when the scout discovers danger, it will issue an alarm in time so that the whole population can quickly escape from the dangerous source. The basic steps of the algorithm are as follows:
[0071] Step 1: Population initialization. The population individuals are randomly generated by Equation (8), and the position vector of the population individuals is expressed as shown in Equation (9):
[0072] X = lb+rand*(ub - lb) (8)
[0073]
[0074] In the formula, d represents the dimension of the problem to be optimized, and n represents the number of the population. represents the position of the i - th sparrow in the d - dimensional space.
[0075] Step 2: Update the position of the explorers. They search for better food by constantly updating their positions, and the position update method is shown in Equation (10).
[0076]
[0077] In Equation (10), a is a random number between [0, 1], Q represents a random number subject to a normal distribution, T represents the maximum number of iterations, R2 is the warning threshold, a random number between [0, 1], ST is the safety value, a random number between [0.5, 1]. L is a 1×d matrix with all elements being 1. When R2 < ST, it means the surrounding environment is safe, and the explorers can search globally. When R2 ≥ ST, it means that the warning sparrow in the population has found a predator around, and at this time, the explorers will lead the population to transfer to a safe environment to avoid the predator.
[0078] Step 3: Update the position of the followers. Its position update is shown in Equation (11):
[0079]
[0080] In Equation (11), represents the i - th sparrow individual in the t - th generation, x p is the optimal position currently discovered by the explorers, represents the worst position of the global iteration of the tth generation, A represents a 1x d matrix, in which each element is randomly assigned a value of 1 or -1, A + =A T (AA T ) -1 When i>n / 2, it means that the i-th follower has not obtained food and needs to fly to other places to find food.
[0081] Step 4: Detection and early warning behavior. Scouts account for 10% to 20% of the population. They are mainly responsible for the safety of the entire population and prevent attacks by predators. When scouts find danger, they promptly notify the discoverer to move to a safe place. Their position update is shown in formula (12).
[0082]
[0083] In formula (12), represents the global optimal position after the tth iteration, B is the control step size parameter, which is a normally distributed random number with a mean of 0 and a variance of 1, k represents the moving direction of the sparrow, which is a random number between 0 and 1, ε is a very small constant to ensure that the denominator cannot be 0, and f i represents the fitness value of the i-th sparrow, f g and f w Indicates the global best and worst fitness values. i ≠f g When f , it means that the i-th sparrow is at the edge of the population and is easily attacked by predators. At this time, it will move closer to the optimal position. i =f g This means that the sparrow in the middle is aware of the danger and needs to move closer to other sparrows to reduce the risk of predator attack.
[0084] 1.4 Convolutional Neural Networks
[0085] Convolutional Neural Networks (CNN) is a feedforward neural network with a deep structure. It is one of the most important algorithms in deep learning. CNN is widely used in computer vision, speech processing, natural language processing and other fields. It consists of input layer, convolution layer, activation layer, pooling layer and fully connected layer. Its structure is as follows: Figure 1 shown.
[0086] (1) Input layer: This layer mainly preprocesses the raw data, including removing the mean and normalizing, which is beneficial to improving the learning efficiency and performance of CNN.
[0087] (2) Convolutional layer: The convolutional layer is a key part of the CNN network. It requires multiple different convolution kernels to perform convolution operations on the input raw data, and also requires multiple convolutional layers to perform convolution to extract deeper features. In the convolution operation, the local connection and weight sharing methods are used to effectively reduce the parameters to be solved, making the model easier to optimize and reducing the risk of overfitting. Its operation expression is shown in (13).
[0088]
[0089] in, is the input of the jth convolution kernel of the lth layer, f represents the activation function, * represents the convolution operation, is the weight matrix of the jth convolution kernel in the lth layer, is the bias term. j is the set of feature maps of layer j.
[0090] (3) Activation layer: The activation layer mainly performs nonlinear mapping on the output of the convolutional layer. Commonly used activation functions include Sigmoid function, Tanh function, ReLU function, etc. The CNN activation function is generally ReLU, which has the characteristics of fast convergence, simple gradient calculation, and high training efficiency.
[0091] (4) Pooling layer: The convolution layer extracts local features through convolution kernel operations, but does not reduce the data of the features. The final fully connected layer still faces a large number of parameters. Compared with the convolution layer, the pooling layer can more effectively reduce the data dimension. It can not only greatly reduce the amount of calculation and storage space, but also effectively avoid overfitting. The most commonly used pooling methods are maximum pooling and average pooling, which take the maximum value and average value of the input elements in the pooling window as the output respectively.
[0092] (5) Fully connected layer: The fully connected layer performs nonlinear combination of the features extracted by the convolutional layer and the pooling layer to output the desired result. The fully connected layer has no feature extraction capability.
[0093] 1.5 Bidirectional Long Short-Term Memory Network
[0094] Long Short-Term Memory Network (LSTM) is a special recurrent neural network. It is one of the core architectures that plays an important role in time series data in the field of deep learning and can learn long-term dependent information. The LSTM neural network is composed of three gate units: input gate, output gate and forget gate. The input gate is a calculation unit that determines how much new information to absorb into the long-term memory; the forget gate is an important calculation unit that determines how much long-term information to keep; the output gate is a calculation unit that selects the short-term information that is most suitable for the current time step from the new long-term information. The calculation formula of the LSTM neural network is shown in (14).
[0095]
[0096] Among them, σ is the activation function, f t is the activation value of the forget gate, w f is the weight vector of the forget gate, w o is the weight of the input gate, w i is the weight of the output gate, b f is the bias of the forget gate, * represents the convolution operation, h t-1 represents the output of the memory unit at time t-1, h t Represents the output of the memory unit at time t. t represents the activation value of the input gate, g t is the candidate state of the memory cell, C t is the state of the memory unit at time t.
[0097] The Bi-directional Long Short-Term Memory (BiLSTM) network is composed of a forward LSTM and a backward LSTM. The final output of the BiLSTM is the concatenation of the hidden states in the two directions. Its structure is as follows: Figure 2 shown.
[0098] 2. Building a wind speed prediction model
[0099] 2.1 SSA Optimized VMD Algorithm
[0100] In the traditional VMD algorithm, the mode number k value and the quadratic penalty factor a are manually set before the original signal is decomposed. The manual setting is usually based on personal experience and is subjective. The traditional VMD algorithm has certain limitations in parameter selection and optimization. If k is set too large, over-decomposition will occur, which will cause over-decomposition to produce false modes; when the k value is set too small, under-decomposition will occur, and the implicit features of the time series cannot be fully extracted; at the same time, a also has an important impact on the decomposition results, which can affect the bandwidth of the modal component and is inversely proportional to the bandwidth. If a is set small, mode aliasing will occur, thereby affecting the extraction of features. If a is set too large, although mode aliasing can be avoided, it will cause local information loss. Therefore, the VMD algorithm is very sensitive to parameters k and a, and it is very necessary to optimize the VMD parameters. The penalty factor a and the mode number k value restrict each other and jointly determine the decomposition quality of the VMD algorithm, which will seriously affect the prediction accuracy. Therefore, this application uses the SSA algorithm to optimize the parameters of the VMD algorithm, with the minimum envelope entropy as the fitness value. The basic idea of the SSA-VMD algorithm is to first use the SSA algorithm to optimize the initial parameters k and a of the VMD algorithm to obtain a better set of initial parameters. These parameters are input into the VMD algorithm as initial values for signal decomposition. Finally, the parameters of the VMD algorithm are continuously optimized in an iterative manner to obtain a better decomposition result. The steps of SSA optimization of the VMD algorithm are as follows.
[0101] Step 1: Initialize the sparrow population. Each sparrow represents a candidate solution, that is, a set of VMD parameters, containing two dimensions k and a.
[0102] Step 2: Calculate the fitness value. For each candidate solution, use the VMD algorithm to decompose the signal into IMF components and calculate the envelope entropy value of each IMF component.
[0103] Step 3: Position update. According to the sparrow's free flight, foraging, and following behaviors, the position of each candidate solution is updated, that is, the VMD parameters are adjusted. The fitness value is calculated and the global optimal solution is updated.
[0104] Step 4: Determine the algorithm stopping condition. Repeat steps 2 and 3 until the stopping condition is met and output the best set of VMD parameters [k, a]. The flowchart is as follows: Figure 3 shown.
[0105] 2.2 SSA Optimization of CNN-BiLSTM
[0106] Although CNN can extract the features of the multidimensional space of the original data, for data with strong time dependence, CNN may not be the best choice and cannot discover the long-term dependent relationship in the time series data. For time series data, BiLSTM is more suitable because it has a special mechanism for processing time dependence in time series, which can effectively solve the problem that CNN cannot handle long-term dependent relationships. Therefore, this application effectively combines CNN and BiLSTM to form a CNN-BiLSTM model, which can give full play to the advantages of each neural network model, while making up for each other's shortcomings, and construct a more powerful and comprehensive prediction model, thereby improving the prediction accuracy of the model. In this model, CNN is a feature extractor, which is mainly used to capture the spatial features of the original wind speed data, and then provide it to the BiLSTM network for prediction. When the spatial feature data of the wind speed enters the BiLSTM network, BiLSTM can learn from past and future data at the same time, and can capture information from two directions, reducing the calculation time, so that the associated information in the time series can be captured more comprehensively, and the understanding and representation of the sequence features can be improved, thereby improving the prediction of the wind speed.
[0107] However, the CNN-BiILSTM model needs to perform parameter tuning and hyperparameter selection during the prediction training process. Good parameters can help the model converge faster during the training process and avoid the problem of overfitting. Parameter adjustment is a complex and very time-consuming task. It is currently based on manual experience or multiple experiments. The hyperparameters selected based on manual experience have a great influence on the prediction accuracy. Therefore, this application introduces the SSA algorithm and applies the SSA algorithm to the optimization of the CNN-BiLSTM model parameters. The optimization parameters include the BiLSTM layer, the number of neurons in each layer, and the learning rate. The SSA algorithm has the characteristics of strong optimization ability and fast convergence speed. Through the global search ability and local search ability of the SSA algorithm, the optimal parameters of the model can be effectively found, thereby improving the prediction accuracy of the wind speed model. Its overall prediction process is as follows: Figure 4 shown.
[0108] 3 Simulation Experiment and Result Analysis
[0109] 3.1 Experimental data and preprocessing
[0110] This application selected the actual observed wind speed data in a certain area of Gansu as the research sample, and the collection time was from March 1, 2023 to March 1, 2024. The data was collected every 1 hour, and 24 sample points were collected every day. The original wind speed sequence is as follows Figure 5 As shown. Figure 5It can be seen that wind speed has great volatility, randomness and instability. Considering the seasonality of wind speed data, the wind speed data is divided according to season. Since spring is a transitional season, the randomness and instability of wind speed are greater. Therefore, spring is selected as the research object. Spring contains 2208 sample points. The original wind speed data is detected for anomalies, and the abnormal data is replaced by the neighborhood average method, and then normalized by the Min-Max normalization method.
[0111] The sliding window method is used in this paper to produce the data set. The basic idea of the sliding window method is to divide the time series into fixed time window lengths, and slide a fixed time step each time to generate a series of subsequences. These subsequences are the input features of the model. This application selects 90% of the samples as the training set and 10% as the test set.
[0112] 3.2 SSA optimization VMD decomposition wind speed
[0113] The SSA algorithm is used to optimize the parameters of VMD, and the minimum envelope entropy is selected as the fitness function. The main parameters of SSA are set as follows: population size pop = 20, maximum number of iterations max iter =40, dimension is 2, penalty factor a∈[100,2500], decomposition mode number k∈[3,10], the convergence curve of the minimum envelope entropy value is as follows Figure 6 shown.
[0114] Depend on Figure 6 It can be seen that the SSA algorithm begins to converge at the 10th generation, with the minimum envelope entropy value of 7.47823943. The optimal parameter combination of VMD is (a, k) = [309, 5]. The optimal parameters a and k are brought into the VMD algorithm. The sub-modes obtained after VMD decomposition are as follows: Figure 7 As shown, the spectrum generated by each sub-mode is as follows Figure 8 shown.
[0115] Depend on Figure 8 It can be seen that after SSA optimization of VMD, 5 sub-modal components are obtained. The decomposed wind speed signals are basically not in the same frequency band, the distinction is more obvious, and the decomposition effect is good. Not only does it maintain the characteristics of the original wind speed, but it also avoids the modal aliasing phenomenon. It can be seen that the VMD optimized by SSA has better performance and can further improve the accuracy of wind speed prediction.
[0116] 3.3 Model performance evaluation indicators
[0117] In order to accurately and comprehensively evaluate the performance of the wind speed prediction model, this application uses the mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE) and goodness of fit R 2 Evaluation is performed, and the calculation formulas are shown in equations (15)-(18).
[0118]
[0119] Among them, N is the total number of samples, y i is the actual wind speed observation value, is the predicted value of wind speed, is the average value of the observed data. The smaller the RMSE and MAE values are, the better the prediction performance of the model is. 2 ∈[0,1], the closer this value is to 1, the better the fit is, and the closer the predicted value is to the actual observed value.
[0120] 3.4 Experimental Environment
[0121] The experimental environment uses Win10 Professional Edition, 11th Gen Intel(R)Core(TM)i5-11500@2.70GHz, 16G memory, 6-core CPU, 256GB SSD+1TB hard disk, and the development framework is Python3.9, Pytorch2.2.0, scikit-learn1.3.0, pandas2.1.4, and numpy1.26.4.
[0122] 3.5 Model parameter setting
[0123] The model parameters are set as follows: the sliding window value is 10, the batch size batch_size is set to 16, the CNN convolution layer is set to 2, the number of neurons in each layer is set to [16,32], the number of BiLSTM layers is set to 3, the number of neurons in each layer is [91,211,151], the learning rate is 0.0022, the number of training times is 50, the activation function is ReLU, the optimizer is Adam, and the convolution kernel size is 3×3.
[0124] 3.6 Experimental results and analysis
[0125] In order to verify the effectiveness of the SSA-VMD and SSA-CNN-BiLSTM prediction models and combined modules, this application uses 2208 continuous sample data as the input of the model, and uses the relevant models to train and test the pre-processed data. This group mainly discusses the impact and contribution of the VMD algorithm and SSA algorithm on the overall performance of the prediction model. There are three models:
[0126] Model 1 (CNN-BiLSTM): The original wind speed sequence is fed into the CNN-BiLSTM combined model to build a CNN-BiLSTM prediction model based on the original wind speed sequence.
[0127] Model 2 (VMD-CNN-BiLSTM): The VMD algorithm is used to decompose the original wind speed sequence, and the CNN-BiLSTM prediction models are constructed using the decomposed subsequences.
[0128] Model 3 (SSA-VMD-CNN-BiLSTM): The SSA algorithm is used to optimize VMD and determine the optimal combination parameters a and k. The VMD algorithm is used to decompose the original wind speed data, and the CNN-BiLSTM prediction models are constructed using the decomposed subsequences.
[0129] The prediction results of the three models on the test set are as follows Fig. 9 As shown in the figure, in order to avoid the impact of the randomness of the deep learning algorithm on the prediction results, 10 prediction experiments were conducted on the model and their average was taken as the final result to increase the reliability of the results.
[0130] Fig. 9 The figure shows the comparison between the predicted values and the true values of the three models on the test set. The curve change of model 1 (CNN-BiLSTM) has the worst agreement with the curve change of the true value. Compared with model 1, the prediction performance of model 2 (VMD-CNN-BiLSTM) is greatly improved, and the curve change is closer to the true value, which verifies the effectiveness and feasibility of VMD for decomposing the original wind speed data and its applicability to non-stationary wind speed series. Compared with model 2, the curve change trend of model 3 (SSA-VMD-CNN-BiLSTM) is basically the same as that of model 2, but at some "inflection points", the predicted value of model 3 is closer to the true value and has better prediction performance.
[0131] In order to compare the performance of the three models in terms of prediction accuracy, Table 1 lists the RMSE, MAE, MSE, R 2 Performance indicators.
[0132] Table 1 Comparison of prediction errors of three models
[0133]
[0134] As can be seen from Table 1, the RMSE, MAE, MSE, and R 2 The prediction index values are much better than those of Model 1. Compared with Model 1, the RMSE value is reduced by 0.2417, the MAE value is reduced by 0.1796, the MSE value is reduced by 0.116, and the R 2 The value increased by 0.3539. It can be seen that the model prediction accuracy is higher and the error is smaller after VMD is used to decompose the original wind speed, which verifies that VMD can effectively separate IMF and divide the wind speed signal in the frequency domain. It is suitable for the wind speed data set of this application and can extract effective components. Compared with model 2, model 3 has improved performance. The RMSE value is reduced by 0.016, the MAE value is reduced by 0.0141, the MSE value is reduced by 0.0036, and the R 2 The value increased by 0.0108. It can be seen that the optimized SSA-VMD algorithm has significantly improved the prediction accuracy compared with the traditional VMD algorithm, making the overall algorithm prediction performance higher.
[0135] In order to further verify the effectiveness and feasibility of the model in wind speed prediction, the LSTM model, CNN-LSTM model, CNN-GRU model, EMD-LSTM-Attention model, and EMD-CNN-GRU model were selected for comparison. The fitting curves on the test set are as follows: Fig.10 shown.
[0136] from Fig.10 It can be seen that the model SSA-VMD-SSA-CNN-BiLSTM of this application has the best fitting effect on the test set. At the 16th, 40th, and 63rd data points, the wind speed prediction values of the model of this application are almost close to the true values, while the other models are quite different from the true values. The change trends of the LSTM model, CNN-LSTM model, and CNN-GRU model are basically the same, but the deviation from the actual wind speed value is relatively large. The fitting trends of the EMD-LSTM-Attention model and the EMD-CNN-GRU model are basically the same. Compared with the LSTM model, CNN-LSTM model, and CNN-GRU model, they are closer to the true value.
[0137] In order to verify the wind speed prediction accuracy of the model of this application, the model SSA-VMD-SSA-CNN-BiLSTM of this application is compared with other wind speed prediction models. Table 2 lists the RMSE, MAE, MSE, R 2 Performance indicators.
[0138] Table 2 Comparison of prediction errors of other models
[0139]
[0140] As can be seen from Table 2, compared with other models, the SSA-VMD-SSA-CNN-BiLSTM model has higher RMSE, MAE, MSE, and R 2 The performance indicators are all optimal. Compared with the LSTM model, CNN-LSTM model, and CNN-GRU model, the performance indicator values of the model of this application are much smaller than those of the three models. The RMSE is reduced by 0.316 / 0.294 / 0.307, the MAE is reduced by 0.242 / 0.227 / 0.231, the MSE is reduced by 0.143 / 0.127 / 0.135, and the R 2 The EMD-LSTM-Attention model and the EMD-CNN-GRU model have improved the prediction performance compared with the previous three models due to the integration of EMD wind speed decomposition, attention mechanism and parallel mechanism. However, compared with the model of this application, there is still a certain gap in prediction performance. The RMSE is reduced by 0.218 / 0.284, the MAE is reduced by 0.171 / 0.208, the MSE is reduced by 0.077 / 0.12, and the R 2 The increase was 0.202 / 0.225 respectively. The experimental results show that the wind speed prediction performance of the SSA-VMD-SSA-CNN-BiLSTM model of this application is much better than other models.
[0141] 4 Conclusion
[0142] This application proposes a hybrid deep learning wind speed prediction model based on sparrow search algorithm (SSA), variational mode decomposition (VMD), convolutional neural network (CNN), and bidirectional long short-term memory neural network (BiLSTM). Through experimental verification analysis and model comparison, the following conclusions are drawn:
[0143] 1) The VMD algorithm is very suitable for decomposing the original wind speed data of this application, and can effectively decompose the original sequence, reducing the complexity of the original signal. The model proposed in this application has made a great contribution to wind speed prediction and greatly improved the prediction accuracy of wind speed. At the same time, the SSA algorithm is used to optimize the VMD parameters, which can effectively avoid the problem of mode overlap or over-decomposition caused by insufficient manual experience, and reduce the number of experiments.
[0144] 2) The CNN and BiLSTM models are fused in series. CNN is good at extracting local features of data, and BiLSTM is good at capturing long-term dependencies in sequence data. By combining the advantages of both, the model can take into account both the temporal and spatial characteristics of wind speed data, thereby improving the accuracy of prediction.
[0145] 3) Through experimental comparison and error analysis of multiple models, the hybrid prediction model of this application has higher accuracy, better performance and stronger generalization ability than a single prediction model.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, rather than to limit the protection scope of the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the essence and scope of the technical solution of the present invention.
Claims
1. A method for constructing a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM, characterized in that: The construction method includes the following steps: Step 1: Divide the collected original wind speed data throughout the year into four seasons: spring, summer, autumn and winter; Step 2: Use SSA to optimize the VMD algorithm to obtain the SSA-VMD algorithm, and use the SSA-VMD algorithm to decompose the divided original wind speed data into several different simple subsequences; Step 3: Use simple subsequences to build a CNN-BiLSTM hybrid deep learning prediction model.
2. The method for constructing a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM according to claim 1, characterized in that: In step 1, data are collected every hour, 24 sample points are collected every day, the original wind speed sequence for the whole year is collected, and the wind speed data for the whole year is divided into four seasons: spring, summer, autumn, and winter.
3. The method for constructing a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM according to claim 2, characterized in that: Spring is selected as the prediction object, the original wind speed sequence in spring is preprocessed, and then the sliding window method is used to make a data set. The data set is then divided into a training set and a test set according to a certain ratio.
4. The method for constructing a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM according to claim 3, characterized in that: In step 2, the steps of using the SSA algorithm to optimize the VMD algorithm are as follows: Step 201: Initialize the sparrow population, each sparrow represents a candidate solution, that is, a set of VMD parameters, including two dimensions k and a; Step 202: Calculate the fitness value. For each candidate solution, use the VMD algorithm to decompose the signal into IMF components, and calculate the envelope entropy value of each IMF component. Step 203: According to the free flight, foraging and following behaviors of the sparrow, the position of each candidate solution is updated, that is, the VMD parameters are adjusted, the fitness value is calculated and the global optimal solution is updated; Step 204: Repeat steps 202 and 203 until the stop condition is met, and output the best set of VMD parameters [k, a].
5. The method for constructing a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM according to claim 4, characterized in that: In step 2, the SSA-VMD algorithm is used to decompose the original wind speed sequences of the training set and the test set to obtain several simple subsequences in different frequency bands.
6. The method for constructing a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM according to claim 5, characterized in that: The steps to build the CNN-BiLSTM hybrid deep learning prediction model in step 3 are as follows: Step 301: Use the SSA algorithm to optimize the hyperparameters in the CNN-BiLSTM hybrid deep learning model; Step 302: Using the training set to train the optimized CNN-BiLSTM hybrid deep learning model; Step 303: Use the test set to input into the CNN-BiLSTM hybrid deep learning model for testing, output the prediction results of each subsequence, and superimpose and reconstruct the prediction results of each subsequence to obtain the final wind speed prediction result; Step 304: Compare the wind speed prediction result obtained by using the CNN-BiLSTM hybrid deep learning model with the true wind speed value to evaluate the prediction performance of the CNN-BiLSTM hybrid deep learning model.
7. A wind speed prediction method based on a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM, characterized in that: The wind speed prediction method includes the following steps: Step 1: Collect the original wind speed sequence throughout the year; Step 2: Perform anomaly detection on the original wind speed data throughout the year, replace the abnormal data using the neighborhood average method, and then perform normalization processing; Step 3: The pre-processed original wind speed data for the whole year is decomposed using the SSA-VMD algorithm optimized in claim 4 to obtain several subsequences; Step 4: Input the subsequence into the CNN-BiLSTM hybrid deep learning prediction model constructed in claim 6. The CNN network is used to capture the spatial features of the original wind speed data. The captured spatial features are then provided to the BiLSTM network for prediction. The temporal dependency in the original wind speed data is found and the prediction results of each subsequence are output. The prediction results of each subsequence are superimposed and reconstructed to obtain the final prediction result of the wind speed.
8. A wind speed prediction system based on a hybrid deep learning prediction model of SSA-VMD and CNN-BiLSTM, characterized in that: The forecasting system includes: The acquisition module is used to collect the original wind speed data throughout the year; The preprocessing module is used to detect anomalies in the original wind speed data throughout the year, replace the abnormal data with the neighborhood average method, and then perform normalization processing; The decomposition module deploys the SSA-VMD algorithm optimized in claim 4 to the background, and calls the SSA-VMD algorithm to decompose the preprocessed original wind speed data throughout the year to obtain several subsequences; The prediction module deploys the CNN-BiLSTM hybrid deep learning prediction model constructed in claim 6 to the background, calls the CNN-BiLSTM hybrid deep learning prediction model to predict each subsequence, and superimposes and reconstructs the prediction results of each subsequence to obtain the final prediction result of the wind speed.
Citation Information
Cited By
Protein AI enzyme digestion prediction method based on CNN-Bilstm model and application
CN119626334A
Hybrid deep learning sea outlet water quality prediction method based on particle swarm optimization
CN119940089A
Geoscience signal processing method for accelerating variational mode decomposition optimization based on deep learning
CN121009315A
Wind speed prediction method based on combined weight prediction model, medium and equipment
CN121388498A
