A wind speed prediction method based on variational mode decomposition and attention mechanism

Through the deep neural network method of variational mode decomposition and attention mechanism, the problems of noise robustness and endpoint effects in wind speed prediction are solved, and higher-precision wind speed prediction is achieved.

CN114218870BActive Publication Date: 2024-08-23DALIAN UNIV OF TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111583769.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-08-23
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

Existing wind speed prediction methods have problems of uncertainty and insufficient noise robustness in short-term high-precision prediction, especially due to the endpoint effect and modal aliasing phenomenon introduced by the decomposition algorithm, which affects the actual prediction effect.

Method used

A deep neural network method based on variational modal decomposition and fusion attention mechanism is adopted to filter out noise through variational modal decomposition, reduce data complexity, and use the Transformer model to capture global internal correlation information to avoid endpoint effects in the iterative process. and the false component phenomenon.

Benefits of technology

It improves the accuracy and noise robustness of wind speed prediction, significantly improves the accuracy of ultra-short-term wind speed prediction, and shows its advantages in long-term feature extraction and prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114218870B
    Figure CN114218870B
Patent Text Reader

Abstract

The present invention belongs to the technical field of wind speed prediction methods, and proposes a wind speed prediction method based on variational mode decomposition and attention mechanism. Considering the influence of natural factors, the problem of wind speed prediction under multivariate conditions is studied. The acquired data is preprocessed to perform variational mode decomposition, and the input sequence of the deep neural network is obtained; the deep neural network includes position coding, encoder and decoder; the position coding provides relative position information for the input signal; the encoder includes an attention mechanism layer, a feedforward network layer and a normalized residual connection layer, which is used for the neural network model to capture the relationship between time series features; the decoder is composed of a two-layer fully connected network, which is used to deconstruct the time series feature information obtained by the encoder to output the predicted value. This method can effectively improve the accuracy of ultra-short-term wind speed prediction; there is no restriction on the operating platform, it is flexible and convenient to use, has strong portability, and has excellent wind speed prediction performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wind speed prediction methods, and in particular to a wind speed prediction method based on variational mode decomposition and attention mechanism. Background Art

[0002] In the field of ocean navigation, effective and accurate wind speed prediction combined with sea condition information forecast can design the best route for ship navigation, while ensuring navigation safety and reducing voyage time and fuel consumption. In the military field, weather conditions are an extremely important reference factor in combat planning and task deployment. With the help of accurate weather forecasts, military commanders can equip troops, formulate marching plans, and set appropriate transportation modes in a targeted manner, thereby improving the success rate of military operations. Therefore, the research on wind speed prediction methods has great practical significance and application value.

[0003] Traditional meteorological numerical prediction technology uses NWP numerical weather forecast physical models such as WRF, which can simulate the real-time meteorological operation law well. However, due to the complexity of the modeling process itself and the high dependence on the accuracy of environmental information, the results show uncertainty in short-term high-precision prediction. The emerging meteorological numerical prediction technology is different from the analysis of the mechanism of meteorological change based on the classical physical model, and mainly processes time series data from two directions: statistical theory and machine learning. Among them, in the prediction model based on statistical theory, the more commonly used one is to classify different time series data based on classification methods such as fuzzy clustering method, and to make short-term predictions based on the type of data combined with prediction methods such as autoregressive moving average method and autoregressive difference moving average method. However, the accuracy of wind speed time series prediction based on statistical principles is easily limited by factors such as random volatility and instability of time series. Therefore, more and more scholars try to apply machine learning theory and models to time series prediction, such as support vector machine, Kalman filter and artificial neural network. Among them, in the field of deep learning, Li Dazhong et al. proposed a deep learning model based on convolutional recurrent neural network, which has greatly improved the accuracy of short-term prediction compared with general machine learning algorithms. Shi et al. proposed a convolutional long short-term memory neural network and verified it on Doppler radar echo time series data, achieving a higher prediction accuracy than the traditional physical model optical flow method. At present, some studies have begun to focus on denoising and reducing the complexity of the original data in the data preprocessing stage, adopting the idea of ​​"decomposition-prediction-reconstruction". Tanaka Dai et al. proposed a short-term wind speed combination prediction model for wind farms based on wavelet transform. Santhosh M et al. used an integrated empirical mode decomposition algorithm to decompose the original data, and input the deconstructed signal into the neural network for model training, which greatly improved the prediction accuracy of time series data. However, the decomposition algorithm will introduce endpoint effects and modal aliasing to a certain extent, interfering with the actual prediction effect. In view of the above problems, there is an urgent need for a more accurate wind speed prediction method. Summary of the invention

[0004] The present invention provides a wind speed prediction method based on a deep neural network with variational mode decomposition and fusion attention mechanism. In order to overcome the above-mentioned shortcomings of the prior art, the present invention studies the problem of wind speed prediction under multivariate conditions based on natural factors such as wind direction, wind speed, gusts, air pressure, temperature and water surface temperature. While filtering out noise and reducing data complexity, variational mode decomposition can effectively improve noise robustness so that the wind speed time series can be effectively decomposed and feature extracted. At the same time, through mirror extension, the endpoint effect and false component phenomenon in the iteration process can be avoided. The deep neural network model Transformer with fusion attention mechanism has the ability to capture global internal correlation information, and can effectively capture long-distance dependencies without excessive information accumulation, redundancy and loss. Comparative experiments show that the model can effectively improve the accuracy of ultra-short-term wind speed prediction. By designing a deep learning model, focusing on issues such as signal denoising, feature extraction, and attention mechanism, the superiority of the proposed method is verified by theoretical analysis, comparative experiments, and the like.

[0005] The technical solution of the present invention is a wind speed prediction method based on variational mode decomposition and attention mechanism, comprising the following steps:

[0006] Step 1: Collect historical meteorological data, construct the original wind speed and related covariate data set, and use weighted linear interpolation to fill in the data when the data is missing or abnormal, that is, the value is ≥999;

[0007] Step 2: Data preprocessing: In order to eliminate the impact of different dimensions of different feature variables in the data set on the experiment, the mean-variance normalization method is used to scale the data in the data set to the same scale (mean is 0, variance is 1); the data set is divided into training set, validation set and test set in a ratio of 8:1:1;

[0008] Step 3: Variational mode decomposition: Take a sequence of a certain step length of the data set as the input sequence u(t) of the deep neural network, and use variational mode decomposition on the input sequence u(t) to obtain K sequences u with specific modes k (t), k = 1, 2...K; by mirror extension, the endpoint effect and false component phenomenon in the iteration process can be avoided. Variational mode decomposition can filter out noise, reduce data complexity, and effectively improve noise robustness;

[0009] (3.1) The analytical signals of each mode of the input sequence u(t) after Hilbert transformation are mixed into an estimated center frequency:

[0010]

[0011] Among them, δ(t) is the Dirac function, ω k is the center frequency of the kth mode;

[0012] The sum of the K modes is the input sequence u(t) and the sum of the estimated bandwidths of each mode is the smallest, that is:

[0013]

[0014] Among them, {u k}={u 1 ,…,u K},{ω k}={ω 1 ,…,ω K};

[0015] (3.2) The constrained variational problem of formula (2) is transformed into an unconstrained variational problem:

[0016]

[0017] In the formula, α is the quadratic penalty factor, which ensures the reconstruction accuracy of the input sequence u(t) when mixed with noise signals; λ(t) is the Lagrange multiplication operator, which maintains the strictness of the constraint conditions;

[0018] The alternating direction multiplier method is used to iteratively update and The optimal solution in equation (2) is obtained; the center frequency of each new modal component is expressed by the following equation:

[0019]

[0020] New components of each mode after decomposition for:

[0021]

[0022] Where n is the number of algorithm iterations, and Represent u(ω), With λ n (ω) Fourier transform;

[0023] After decomposition, the real part of the input sequence u(t) is obtained by inverse Fourier transform:

[0024]

[0025] In the formula, F -1 (·) indicates inverse Fourier transform, and Real(·) indicates taking the real part of a complex number;

[0026] Step 4: The decomposed K components {u k(t)} The real part is taken as the input signal of the deep neural network integrated with the attention mechanism, and the actual wind speed is taken as the prediction target to train, verify or predict the parameters of the deep neural network; the deep neural network includes position encoding, encoder and decoder; the position encoding provides relative position information for the input signal; the encoder includes an attention mechanism layer, a feedforward network layer and a normalized residual connection layer, which is used for the neural network model to capture the relationship between time series features; the decoder is composed of a two-layer fully connected network, which is used to deconstruct the time series feature information obtained by the encoder to output a prediction value.

[0027] The weighted linear interpolation method is as follows:

[0028]

[0029] Among them, u(t miss ) represents the sequence t miss The missing or abnormal value to be filled at the moment, u(t prev ) is the nearest t before the missing or outlier value. prev The effective value at the moment, u(t next ) is the nearest t value after the missing or outlier value next The position encoding construction method is as follows: a unique vector is added to each single point data of the input sequence u(t), and the entire input sequence signal is injected with position information; a matrix with the same dimension as the input sequence u(t) is constructed and added to the input sequence u(t) to obtain the input of the next attention mechanism layer;

[0030]

[0031] Among them, pos represents the position of the single point data in the entire input sequence u(t), d model is the dimension of the unique vector, and i represents the position of the unique vector.

[0032] In the attention mechanism layer, three matrices W with the same dimensions are randomly initialized. Q , W K and W V , use these three matrices to perform linear transformation on the input sequence respectively, and the results are recorded as query vector Q, key vector K and value vector V, and the three are mapped to an output matrix through calculation, where the weight assigned to each value is calculated by the compatibility function softmax function of the query vector Q and the corresponding key vector K; the output matrix is ​​calculated as:

[0033]

[0034] in Take the square root of the column dimension of matrix K to prevent training instability.

[0035] A multi-head attention mechanism layer is formed by setting h attention mechanism layers.

[0036] Model output results: predicted wind speed at a specified time in the future, and save the predicted results in a file.

[0037] Beneficial effects of the present invention: After acquiring the meteorological observation data of the buoy station, the method of the present invention performs preprocessing, variational mode decomposition, and neural network prediction on the data, and finally obtains the wind speed forecast value at a specified time in the future.

[0038] The invention has no restriction on the operating platform, is flexible and convenient to use, has strong portability, and has excellent wind speed prediction performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is the overall flow chart of the wind speed prediction method based on variational mode decomposition and attention mechanism;

[0040] Figure 2 It is the attention mechanism layer structure;

[0041] Figure 3 It is a multi-head attention mechanism structure;

[0042] Figure 4 This is the result of decomposing the wind speed time series using the variational mode decomposition algorithm. DETAILED DESCRIPTION

[0043] The specific embodiments of the present invention are described in detail below in conjunction with the content of the invention:

[0044] The following describes in detail the process of predicting wind speed using a deep neural network model based on variational mode decomposition and fusion attention mechanism. The present invention further illustrates the purpose and use method of the present invention through the following case, but the present invention is not limited thereto.

[0045] 1. Experimental environment configuration

[0046] Software system: Window10 system

[0047] Programming language: Python 3.7

[0048] Deep learning framework: Pytorch 1.10

[0049] 2. Experimental Methods

[0050] (1) Obtaining wind speed and related meteorological data: The historical wind speed and related meteorological data observed by meteorological buoys are saved as .csv files. When the observed data is missing or abnormal (value ≥ 999), the weighted linear interpolation method is used to fill the data. The weighted linear interpolation expression is as follows:

[0051]

[0052] Among them, u(t miss ) represents the sequence t miss The missing or abnormal values ​​to be filled at the moment, u(t prev ) is the nearest t before the missing or outlier value. prev The effective value at the moment, u(t next ) is the nearest t value after the missing or outlier value next The effective value at the moment. The data set is divided into training set, validation set and test set in a ratio of 8:1:1;

[0053] (2) Data preprocessing: In order to eliminate the impact of different dimensions of different feature variables in the data set on the experiment, the present invention uses the mean-variance normalization method to scale the data to the same scale (mean is 0, variance is 1), and applies it to the training set, validation set and test set respectively. The conversion formula is as follows:

[0054]

[0055] Among them, μ is the mean of the data set, and σ is the standard deviation of the data set.

[0056] The present invention takes the wind direction, wind speed, gust, atmospheric pressure, air temperature and water temperature measured at the site as six features that may affect wind speed prediction, and takes 36 data observation values ​​observed continuously for 18 hours at an interval of 30 minutes as the data input of each feature dimension to form an input matrix of [Batch Size, 36, 6], where Batch Size is the number of samples selected for a single training, and Batch Size = 256.

[0057] (3) Variational mode decomposition: Variational mode decomposition is used to find K sequences u with specific modes for the original input sequence u(t). k (t), k = 1, 2...K, so that the sum of the estimated bandwidth of each mode is minimized, and the constraint condition is that the sum of the K mode reconstructions is equal to the input sequence u(t). The setting of the target mode number K depends on the non-overlapping center frequencies of the modes and the relative stability of the center frequency of the last layer component. If the value of K is too large, it will cause mode overlap and introduce noise. If the value of K is too small, there will be an incomplete decomposition problem, which will affect the prediction accuracy. Specifically, the following steps are included:

[0058] (3.1) For the wind speed input sequence u(t), the analytical signals of each mode after Hilbert transformation are mixed with the estimated center frequency, so that the spectrum of each mode is modulated to the corresponding baseband:

[0059]

[0060] Among them, δ(t) is the Dirac function, ω k is the center frequency of the kth mode.

[0061] The constrained variational problem can be described as the sum of K modes is the input time series and the sum of the estimated bandwidths of each mode is minimized, that is:

[0062]

[0063] Among them, {u k}={u 1 ,…,u K},{ω k}={ω 1 ,…,ω K}

[0064] (3.2) On this basis, the quadratic penalty factor α is introduced to ensure the reconstruction accuracy of the time series when mixed with noise signals. At the same time, the Lagrangian multiplication operator λ(t) is introduced to maintain the strictness of the constraints, thereby transforming the constrained variational problem into an unconstrained variational problem. The extended Lagrangian expression is as follows:

[0065]

[0066] The alternating direction multiplier method is used to iteratively update and (n is the number of iterations) to find the "saddle point" of the extended Lagrangian expression, and then find the optimal solution in equation (2). The center frequency of the new components of each mode after decomposition can be expressed by the following equation:

[0067]

[0068] New components of each mode after decomposition It can be expressed as:

[0069]

[0070] Where n is the number of algorithm iterations, and Represent u(ω), With λ n (ω) Fourier transform. The decomposed sequence is transformed by inverse Fourier transform to obtain the real part as the model input. The real part can be expressed as:

[0071]

[0072] In the formula, F -1 (·) represents inverse Fourier transform, and Real(·) represents taking the real part of a complex number.

[0073] The K components after decomposition {u k(t)} as the model input, the original input data dimension becomes [256,36,6K].

[0074] The hyperparameters involved in the variational mode decomposition are taken according to empirical values: penalty factor α = 1000, fidelity sparsity τ = 1×10-6 and convergence stop condition ∈ = 1×10 -9 The schematic diagram of the result of decomposing the wind speed time series using the variational mode decomposition algorithm is shown in Figure 4 As shown;

[0075] (4) Integrating attention mechanism neural network: The attention mechanism neural network model Transformer is completely based on the attention mechanism and does not require recursion and convolution calculations. This means that the calculation of model parameters no longer depends on the output of the previous position and the input of the current position to calculate the output of the current position, thereby converting serial calculations into parallel ones, effectively saving running time. In addition, traditional recursive neural network algorithms have poor ability to extract global information and have a large bottleneck in feature extraction and prediction over long time scales. Transformer can extract information from the global perspective and has a great advantage in feature extraction and prediction over long time scales.

[0076] like Figure 1 As shown in the figure, the model is divided into two parts: encoding and decoding. The encoder is composed of several identical unit blocks, each of which is composed of two sub-units, including a multi-head attention mechanism layer and a fully connected feedforward network layer. Each sub-layer adds residual connections and standardization. The decoder part uses a two-layer fully connected neural network.

[0077] The time series data after variational mode decomposition will first be positionally encoded. Transformer uses the position information of the time series and introduces position encoding in the model to record the relative positional spatial information between each data in the sequence. Transformer adds a unique vector to each input single-point data source. The vector follows a specific pattern, which helps to determine the position of each single-point data source and the distance between different single-point data sources, so that in subsequent calculations, the distance between each data point can be better expressed. The construction method of position encoding can be adopted as follows: a matrix with the same dimension as the input data is constructed by the following formula, and it is added to the input to obtain the input of the next attention layer.

[0078]

[0079] Among them, pos represents the position of the single point data in the entire sequence, d model is the dimension of the input vector, and i represents the position of the encoding vector. The entire input sequence signal injects position information, and the difference in position information depends on the difference in frequency and phase.

[0080] The input signal sequence u(t) is input into the attention layer after adding the position encoding, such as Figure 2 As shown in Figure 2. Attention mechanism is the core of Transformer, which can learn the corresponding position information features in different subspaces. The attention mechanism function can be described as a set of d k The query vector Q and d k The key vector K and d v The value vector V of dimension V is mapped to an output, which is calculated as the weighted sum of the values, where the weight assigned to each value is calculated by the softmax function of the compatibility function between the query and the corresponding key. The output matrix is ​​calculated as:

[0081]

[0082] In the formula, the dot product is calculated using all the keys, and each key is divided by Prevent the gradient of softmax from being extremely small due to the dot product dimension being too large, which in turn leads to unstable training.

[0083] like Figure 3 As shown in the figure, the multi-head attention mechanism projects Q, K, and V through linear transformations of h different attention layers, that is, there are multiple subspaces in the model, and the self-attention mechanism is applied to each subspace. Finally, the outputs of different subspaces are spliced ​​to convert them into results of the same dimension as a single self-attention mechanism. The above-mentioned mechanism of adding multi-head attention further improves the self-attention layer and expands the model's ability to focus on different positions.

[0084] Each layer in the encoder contains a fully connected feedforward network. This fully connected network has two layers. The activation function of the first layer is ReLu, whose mathematical expression is f(x)=max(0,x), and the second layer is a linear activation function, which are collectively expressed as:

[0085] FFW(x)=max[W 2 (0,W 1 x+b 1 )+b 2 ] (20)

[0086] Among them, x is the output of the multi-head attention layer, W is the weight matrix, and b is the offset value. The two linear transformation parts together constitute a feedforward neural network. The parameters of each feedforward network in Transformer are different, which can flexibly match different sequence data and improve prediction accuracy.

[0087] The attention layer is normalized and then residual connections are made. Residual connections connect the input and output of the multi-head self-attention or forward feedback layer within each layer. The processed time series data is then input into the decoder, i.e., the fully connected neural network, to optimize the model.

[0088] The present invention can predict the wind speed in one step or multiple steps, and select the mean square error (MSE) and the determination coefficient R 2 As an evaluation index of the prediction result accuracy. The definition of performance index is as follows:

[0089]

[0090]

[0091] Where N is the total number of samples in each batch of the wind speed time series data test set, and i They represent the predicted value and actual observed value of wind speed time series respectively, Represents the mean of the actual observed values. The smaller the MSE value, the closer the predicted value is to the actual value, and the higher the prediction accuracy of the model. 2 It reflects the linear relationship between the two variables and shows how well the predicted value fits the actual observed value. It can measure the accuracy of the model's predicted wind speed value. The higher the correlation coefficient, the better the model's prediction performance.

[0092] In the present invention, the encoding layer is set to 2 in the fusion attention mechanism neural network, in which the multi-head attention mechanism layer is set to dual-head attention, the hidden unit of the feedforward network in each encoder is set to 64, and the decoder part is a two-layer fully connected neural network with 36 and 18 hidden units respectively. The model uses 256 groups, each group of 36 consecutive observations as a batch of data sets input into the network, that is, Batch Size = 256, the network uses mean square error as the loss function, uses the back propagation algorithm to update the network parameters, and uses the adaptive optimizer Adam (Adaptive Moment Estimation) to optimize the network model parameters. The model regularization Dropout ratio is set to 0.2, and the Adam optimizer learning rate is set to 0.002.

[0093] 3. Experimental results

[0094] (1) Comparative experiment:

[0095] The model is trained on the training set, and the model is verified on the verification set after each training round and the verification effect is compared. When the performance of the model on the verification set does not improve for 5 consecutive rounds, the training is stopped, and the model parameters with the best verification effect are saved and used for wind speed sequence prediction. The following is a comparison of the invention with other classic wind speed prediction methods.

[0096] Table 1 Comparison of model prediction effects (MSE index)

[0097]

[0098] Table 2 Comparison of model prediction effects (R 2 index)

[0099]

[0100]

[0101] The VMD-Transformer model is compared with other classic wind speed prediction methods such as LSTM, VMD-LSTM, and Persistence Model. The buoy station 46087 at 48.493 N, 124.726 W of the National Data Buoy Center of the National Oceanic and Atmospheric Administration of the United States (https: / / www.ndbc.noaa.gov / ) is used. A total of 84,944 meteorological data with a time interval of 30 minutes measured from December 31, 2015 to November 23, 2020 are selected as the experimental data set. The standard deviation MSE and the determination coefficient R 2 As evaluation indicators, the experimental results are shown in Table 1 and Table 2. Through the comparison experiment in the above table, it can be found that compared with directly processing the original data without variational mode decomposition, the model combined with VMD has better prediction effect, indicating that VMD can effectively extract the characteristics of the input time series data, so that the neural network model parameter training can focus more on the processing of key feature information. At the same time, by comparing different neural network models, it is found that VMD-LSTM is better in 1-step prediction, but VMD-Transformer has better prediction performance in 2-18 steps. Therefore, it can be seen that the neural network model Transformer that introduces the fusion attention mechanism has a better learning effect on global information features than the recurrent neural network LSTM, which makes it have better performance in the prediction of relatively longer time series.

Claims

1. A wind speed prediction method based on variational mode decomposition and attention mechanism, It is characterized in that The steps include: Step 1: Collect historical meteorological data, construct the original wind speed and related covariate data set, and use the weighted linear interpolation method to fill in the data when the data is missing or abnormal; Step 2: Data preprocessing: Use mean-variance normalization method to scale the data in the dataset to the same scale; divide the dataset into training set, validation set and test set in a ratio of 8:1:1; Step 3: Variational mode decomposition: Take a sequence of a certain step length of the data set as the input sequence u(t) of the deep neural network, and use variational mode decomposition on the input sequence u(t) to obtain K sequences u with specific modes k (t), k = 1, 2, ... K; (3.1) The analytical signals of each mode of the input sequence u(t) after Hilbert transformation are mixed into an estimated center frequency: Among them, δ(t) is the Dirac function, ω k is the center frequency of the kth mode; The sum of the K modes is the input sequence u(t) and the sum of the estimated bandwidths of each mode is the smallest, that is: where, {u k} = {u 1 , …, u K}, {ω k} = {ω 1 , …, ω K}; (3.2) The constrained variational problem of formula (2) is transformed into an unconstrained variational problem: In the formula, α is the quadratic penalty factor, which ensures the reconstruction accuracy of the input sequence u(t) when mixed with noise signals; λ(t) is the Lagrange multiplication operator, which maintains the strictness of the constraint conditions; The alternating direction multiplier method is used to iteratively update and The optimal solution in equation (2) is obtained; the center frequency of each new modal component is expressed by the following equation: New components of each mode after decomposition for: Where n is the number of algorithm iterations, and Represent u(w), With λ n (w) Fourier transform; After decomposition, the real part of the input sequence u(t) is obtained by inverse Fourier transform: In the formula, F -1 (·) indicates inverse Fourier transform, and Real(·) indicates taking the real part of a complex number; Step 4: The decomposed K components {u k (t)} The real part is taken as the input signal of the deep neural network integrated with the attention mechanism, and the actual wind speed is taken as the prediction target to train, verify or predict the parameters of the deep neural network; the deep neural network includes position encoding, encoder and decoder; the position encoding provides relative position information for the input signal; the encoder includes an attention mechanism layer, a feedforward network layer and a normalized residual connection layer, which is used for the neural network model to capture the relationship between time series features; the decoder is composed of a two-layer fully connected network, which is used to deconstruct the time series feature information obtained by the encoder to output a prediction value.

2. According to the wind speed prediction method based on variational mode decomposition and attention mechanism according to claim 1, It is characterized in that The weighted linear interpolation method is as follows: Among them, u(t miss ) represents the sequence t miss The missing or abnormal value to be filled at the moment, u(t prev ) is the nearest t before the missing or outlier value. prev The effective value at the moment, u(t next ) is the nearest t value after the missing or outlier value next Valid value for time.

3. The wind speed prediction method based on variational mode decomposition and attention mechanism according to claim 1 or 2, It is characterized in that The construction method of the position encoding is as follows: a unique vector is added to each single point data of the input sequence u(t), and the entire input sequence signal is injected with position information; a matrix with the same dimension as the input sequence u(t) is constructed and added to the input sequence u(t) to obtain the input of the next attention mechanism layer; Among them, pos represents the position of the single point data in the entire input sequence u(t), d model is the dimension of the unique vector, and i represents the position of the unique vector.

4. The wind speed prediction method based on variational mode decomposition and attention mechanism according to claim 1 or 2, It is characterized in that In the attention mechanism layer, three matrices W with the same dimensions are randomly initialized. Q , W K and W V , use these three matrices to perform linear transformation on the input sequence u(t) respectively, and the results are recorded as query vector Q, key vector K and value vector V, and the three are mapped to an output matrix through calculation, where the weight assigned to each value is calculated by the compatibility function softmax function of the query vector Q and the corresponding key vector K; the output matrix is ​​calculated as: in Take the square root of the column dimension of matrix K to prevent training instability.

5. The wind speed prediction method based on variational mode decomposition and attention mechanism according to claim 1 or 2, It is characterized in that A multi-head attention mechanism layer is formed by setting h attention mechanism layers.

Citation Information

Patent Citations

  • Wind power plant short-term wind speed prediction method

    CN112613657A

  • Wind power prediction method and system for optimizing deep Transformer network

    CN112653142A

  • Meteorological drought prediction method and device based on VMD-CNN-BiLSTM-ATT hybrid model

    CN113705864A

  • Sequence-to-sequence prediction using a neural network model

    US20190130273A1

  • Weather parameter prediction model training method, weather parameter prediction method, electronic device and storage medium

    US20210341646A1