A time series prediction method fusing variational modal decomposition optimization and attention mechanism

By optimizing VMD parameters using intelligent optimization algorithms and combining them with an attention mechanism, the LSTM model solves the problems of VMD parameters relying on empirical settings and insufficient utilization of key information, achieving high-precision and stable prediction of complex time series, and is applicable to fields such as power, finance, meteorology, transportation and industrial monitoring.

CN123158541APending Publication Date: 2026-11-24DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611384947.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing VMD parameter settings rely on empirical settings, resulting in unstable decomposition effects. Furthermore, deep learning models do not make sufficient use of key historical information, affecting the prediction accuracy and stability of complex time series.

Method used

Intelligent optimization algorithms are used to determine VMD parameters, and LSTM models with attention mechanisms are combined to model each modal component, forming a clear time series prediction process, including data preprocessing, VMD decomposition, parameter optimization, modal prediction and result reconstruction.

Benefits of technology

It improves the adaptability and mode separation quality of VMD decomposition, enhances the utilization of key historical information, and improves the prediction accuracy and stability of complex time series, making it suitable for various time series prediction tasks.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

A time series prediction method integrating variational mode decomposition optimization and attention mechanism is disclosed, belonging to the fields of time series prediction and signal processing technology. The method includes: (1) data acquisition and preprocessing; (2) variational mode decomposition parameter optimization; (3) signal decomposition; (4) constructing and training a prediction model; and (5) component prediction and result reconstruction. This invention balances the quality of mode decomposition with the expressive power of the prediction model, effectively improving the prediction accuracy and stability of complex time series.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of time series prediction and signal processing technology, and specifically relates to a time series prediction method that integrates variational mode decomposition optimization and attention mechanism. Background Technology

[0002] Time series forecasting has significant applications in fields such as financial market analysis, power load dispatching, weather forecasting, and equipment condition monitoring. The accuracy of the forecasts directly impacts the quality of decision-making. However, real-world time series often exhibit nonlinear, non-stationary, and multi-scale fluctuation characteristics, making modeling challenging. Traditional linear models, such as ARIMA, typically require the series to satisfy prerequisites like stationarity, which struggles to adequately characterize the nonlinear relationships in complex dynamic scenarios, thus limiting forecast accuracy.

[0003] With the improvement of computing power and the development of deep learning, machine learning methods, especially recurrent neural networks, have gradually become important tools for time series modeling. LSTM can handle long-term dependency problems well and has achieved good results in many types of nonlinear prediction tasks. However, when the original sequence contains trend terms, periodic terms and noise terms at the same time, a single LSTM needs to learn information at different scales in one model, which has a heavy training burden and is also susceptible to high-frequency perturbations, thus affecting the stability and accuracy of the prediction.

[0004] To improve the prediction performance of complex sequences, researchers proposed a decomposition-then-prediction approach. This involves first decomposing the original time series into several relatively simple subsequences, modeling each subsequence separately, and then reconstructing the results. This strategy helps reduce the learning difficulty of individual models. Empirical Mode Decomposition (EMD) is a common adaptive decomposition method that can decompose a signal into several intrinsic mode functions (IMFs). However, EMD is prone to mode aliasing, leading to the interweaving of information at different scales, thus affecting subsequent predictions. To alleviate this problem, improved methods such as Ensemble Empirical Mode Decomposition (EEMD) have been proposed, but their computational cost is relatively high.

[0005] In 2014, Dragomiretskiy et al. proposed the Variational Mode Decomposition (VMD) algorithm. VMD decomposes the original signal into several narrow-band modal components by constructing a variational model and employing iterative optimization. Compared to EMD, VMD exhibits better performance in mode separation, noise resistance, and decomposition stability, and can effectively suppress mode aliasing. Currently, VMD has been applied in fields such as mechanical fault diagnosis, power load forecasting, and financial time series analysis.

[0006] However, the decomposition effect of VMD is quite sensitive to parameter settings. The number of decomposition modes K and the penalty factor α are key parameters affecting the results. If K is too small, it may lead to insufficient separation of effective information; if K is too large, it may introduce redundant modes or even spurious components. The value of α affects the bandwidth constraint of each mode, thus affecting the decomposition accuracy. In existing applications, these parameters are mostly determined by experience or repeated experiments, lacking a unified and stable adaptive selection mechanism, which can easily restrict subsequent prediction performance.

[0007] To address these issues, existing research has attempted to introduce intelligent optimization methods such as genetic algorithms, particle swarm optimization, and gray wolf optimization to automatically search for VMD parameters. By pre-setting evaluation metrics, such as reconstruction error, component purity, or subsequent prediction error, the system can automatically optimize for parameter combinations that better suit the current sequence, thereby improving the effectiveness of the decomposition results and providing a clearer modal basis for subsequent modeling.

[0008] Meanwhile, the role of attention mechanisms in sequence modeling is receiving increasing attention. Its core lies in assigning higher weights to historical information more relevant to the current prediction task, thereby improving the model's efficiency in utilizing key segments. In time series prediction, attention mechanisms can help the model identify time steps or features that have a greater impact on the current output from long sequences, compensating for the shortcomings of traditional RNNs or LSTMs in filtering long sequence information and enhancing the model's interpretability.

[0009] While existing technologies have made good progress in signal decomposition and deep learning prediction, there is still room for improvement in their combined application. Existing VMD-LSTM hybrid models typically suffer from two shortcomings: first, VMD parameters lack systematic optimization, and the decomposition effect is still influenced by human experience; second, the prediction model's utilization of key historical information is still insufficient. Therefore, it is necessary to propose a time series prediction method that simultaneously considers adaptive optimization of VMD parameters and attention-enhanced prediction to further improve the prediction accuracy and stability of complex time series.

[0010] To address the problems in existing technologies, such as VMD parameter dependence on empirical settings, insufficient utilization of key information by prediction models, and limited prediction accuracy for complex sequences, this invention proposes a time series prediction method that integrates variational mode decomposition optimization and an attention mechanism. This method determines VMD parameters through intelligent optimization and combines an LSTM with an attention mechanism to model each modal component separately, thereby improving the prediction accuracy and stability of complex time series.

[0011] To achieve the above objectives, this invention adopts a technical approach that combines decomposition, prediction, and reconstruction: First, an intelligent optimization strategy is used to determine the optimal parameters of VMD, so that the original sequence is decomposed into multiple modal components with different frequency characteristics; then, an LSTM prediction sub-model with an attention mechanism is constructed for each modal component; finally, the prediction results of each modal component are reconstructed to obtain the final predicted value of the original time series.

[0012] To achieve the above-mentioned objectives, the present invention adopts the following technical solution: A time series prediction method integrating variational mode decomposition optimization and attention mechanism includes the following steps: (1) Data acquisition and preprocessing: Acquire the original time series data to be predicted and perform preprocessing operations according to the data quality.

[0013] Furthermore, the preprocessing operations include missing value imputation, outlier correction, noise filtering, normalization, smoothing, and / or standardization to improve data quality and reduce the impact of dimensional differences and random noise on subsequent modeling.

[0014] (2) Variational Mode Decomposition Parameter Optimization: Intelligent optimization algorithm is used to search for VMD parameters, with decomposition quality and prediction effect as optimization objectives, to obtain parameter combinations that fit the current time series.

[0015] Furthermore, the parameter combination includes at least the number of decomposition modes K and the penalty coefficient α. The evaluation metric is selected from at least one of signal reconstruction error, component purity, sample entropy, or prediction error based on the decomposition results. The intelligent optimization algorithm is a genetic algorithm (GA), a particle swarm optimization algorithm (PSO), or a grey wolf optimization algorithm (GWO).

[0016] (3) Signal decomposition: Perform VMD decomposition on the original time series according to the parameter combination obtained in step (2) to obtain K modal component sequences; residual terms can also be retained when needed. Each modal component represents the variation characteristics of the original time series in different frequency ranges, so that the original complex sequence is transformed into several subsequences that are easier to model.

[0017] (4) Constructing and training prediction models: Construct prediction models for each modal component sequence and train the models using the corresponding historical samples.

[0018] Furthermore, the prediction model is a long short-term memory network that incorporates an attention mechanism, namely the LSTM-attention model.

[0019] Specifically, for the j-th modal component sequence, an LSTM network is constructed to extract its temporal dependency features, and an attention mechanism is introduced at the LSTM output to weight the hidden states of historical time steps. The model input is a historical window of data for the corresponding modal component, and the output is the predicted value of that modal component at the next time step or several future time steps. During training, the network parameters are updated by minimizing the mean squared error loss function to improve the fitting accuracy.

[0020] (5) Component prediction and result reconstruction: The trained modal component prediction models are applied to the corresponding component sequences, and the predicted values ​​of each modal component at the target time are obtained using the latest historical data.

[0021] Furthermore, in the prediction stage, for each modal component j=1,2,...,K, several historical data before the current time of the modal component are used as input, and the prediction results for the next time or several future times are obtained through the LSTM-attention model described in step (4). After all modal components are predicted, the predicted values ​​of each component are combined and reconstructed according to the inverse process of decomposition to obtain the final prediction results of the original time series.

[0022] If the decomposition step includes residual terms, the predicted value of the residual terms or the last known residual value are included in the reconstruction process to restore the complete prediction signal. The final output is used in business scheduling, risk warning, and status assessment applications.

[0023] This invention organically combines signal decomposition, parameter optimization, and deep learning prediction models to form a clearly hierarchical time series prediction process. Compared with existing technologies, this invention has the following advantages: (1) Strong adaptive decomposition capability: The key parameters of VMD are automatically determined by intelligent optimization algorithm. The values ​​of K, α, etc. can be adjusted according to different data characteristics, reducing the uncertainty caused by manual experience setting and improving the quality of modal separation.

[0024] (2) Lower modeling burden: After decomposition, the original complex sequence is transformed into multiple relatively stable subsequences. Each prediction sub-model only needs to learn the corresponding frequency band or change pattern, which is conducive to improving the accuracy of component prediction and the stability of the overall results.

[0025] (3) More efficient use of key information: After introducing the attention mechanism into the prediction model, the model can automatically identify historical time steps or features that have a greater impact on the current output, and improve the ability to capture trend reversals, cyclical fluctuations and local anomalies.

[0026] (4) Wide range of applications: This invention has a low dependence on data scenarios and can be applied to various time series forecasting tasks such as power, finance, meteorology, transportation, and industrial monitoring. It has good versatility and engineering application value.

[0027] In summary, this invention balances the quality of mode decomposition with the expressive power of the prediction model, effectively improving the prediction accuracy and stability of complex time series. Detailed Implementation

[0028] The implementation process of the present invention will be further described below with reference to an embodiment. It should be understood that the following embodiment is used to illustrate the technical concept and beneficial effects of the present invention, and is not intended to limit the scope of protection of the present invention. Equivalent substitutions or conventional modifications made by those skilled in the art without departing from the concept of the present invention should all fall within the scope of protection of the present invention.

[0029] This embodiment selects a 15-minute active power load sequence of a 10kV main incoming line in an industrial park as the research object. The data sampling period is from 00:00 on January 1, 2023 to 23:45 on December 31, 2023, with a total of 35,040 sampling points obtained, in kW. The dataset is divided according to time sequence: the first 28,032 sampling points are used as the training set, the next 3,504 sampling points are used as the validation set, and the last 3,504 sampling points are used as the test set. In the preprocessing stage, linear interpolation is used to impute data with a missing rate of approximately 0.43%, then outliers are corrected according to the 3σ principle, and finally, minimum-maximum normalization is used to scale the load values ​​to the [0,1] interval. The model input uses a sliding time window of length 96 to predict the load value at the next sampling time.

[0030] In the VMD parameter optimization stage, a genetic algorithm was used to jointly search for the number of decomposition modes K and the penalty coefficient α. The search range for K was set to integers from 4 to 8, and the search range for α was set to 1500 to 3500. The genetic algorithm had a population size of 20, a maximum number of iterations of 30, a crossover probability of 0.8, a mutation probability of 0.1, and used the minimum RMSE on the validation set as the fitness function. After iteration, the optimal parameter combination K=6 and α=2480 was obtained in the 18th generation. Based on these parameters, VMD decomposition was performed on the original load sequence, yielding six modal components. IMF1 and IMF2 mainly reflect high-frequency fluctuations, IMF3 to IMF5 mainly characterize intraday periodic changes, and IMF6 characterizes the low-frequency trend term. The remaining VMD parameters were set to DC=0, init=1, and tol=1×10^-7.

[0031] Attention-LSTM prediction sub-models were constructed for each modality component. Each sub-model employed a two-layer LSTM structure with 64 and 32 hidden units respectively, and dropout was set to 0.2. The attention layer used an additive attention mechanism to weight and converge the hidden states at 96 time steps within the sliding window. The output layer was a fully connected layer that output the predicted value for the next time step. During training, the Adam optimizer was used with a learning rate of 0.001, a loss function of mean squared error, a batch size of 64, a maximum training epoch of 80, and an early stopping epoch of 8. To ensure the comparability of the comparison results, the baseline model maintained the same data partitioning and training strategy as the method of this invention.

[0032] Test results show that the method of this invention achieves an RMSE of 21.37 kW, a MAE of 15.26 kW, and a MAPE of 1.82% on the test set. 2 The efficiency score is 0.987. In comparison, the RMSE, MAE, and MAPE of the single LSTM model are 34.91kW, 25.84kW, and 3.11%, respectively; the Attention-LSTM model is 31.26kW, 22.91kW, and 2.76%; the VMD-Attention-LSTM model without parameter optimization is 24.58kW, 17.63kW, and 2.12%; and the VMD-LSTM model with GA optimization but without an attention mechanism is 24.06kW, 17.42kW, and 2.05%. Therefore, the method of this invention achieves the best results in all metrics, reducing the RMSE by 38.79% and the MAPE by 41.48% compared to the single LSTM model.

[0033] The prediction curves from the test set show that the method of this invention can effectively track load switching between weekdays and weekends, as well as typical changes such as morning ramp-up, afternoon plateau, and nighttime decline. Analysis of the attention weights reveals that when predicting the current time, the model assigns high weights to the most recent 8 to 12 sampling points and historical information from the same time period of the previous day, indicating that the attention mechanism can effectively capture short-term fluctuations and intraday cyclical characteristics.

[0034] Therefore, in complex load sequence prediction scenarios, VMD decomposition optimized by genetic algorithms can improve the rationality of modality partitioning, while the attention mechanism enhances the model's ability to utilize key historical segments. Combining these two with LSTM can improve the response accuracy to local fluctuations while maintaining trend fitting capabilities, thus obtaining more stable prediction results.

[0035] It should be noted that the above embodiments are only used to illustrate the application of the present invention in power load forecasting scenarios and do not constitute a limitation on the scope of protection. The present invention is also applicable to other time series forecasting tasks such as meteorology, finance, transportation, and industrial sensors. In different application scenarios, the VMD optimization objective, the range of modal numbers, and the forecasting model structure can be adjusted according to data frequency, noise level, and business objectives. These equivalent substitutions should all fall within the scope of protection of the present invention.

Claims

1. A time-series prediction method integrating variational mode decomposition optimization and attention mechanism, characterized in that, Includes the following steps: (1) Data acquisition and preprocessing: Acquire the raw time series data to be predicted and perform preprocessing operations according to the data quality. (2) Variational Mode Decomposition Parameter Optimization: Intelligent optimization algorithm is used to search for VMD parameters, with decomposition quality and prediction effect as optimization objectives, to obtain parameter combinations that fit the current time series; (3) Signal decomposition: Perform VMD decomposition on the original time series according to the parameter combination obtained in step (2) to obtain K modal component sequences; when needed, residual terms can also be retained; each modal component represents the variation characteristics of the original time series in different frequency ranges, so that the original complex sequence is transformed into several subsequences that are easier to model. (4) Constructing and training prediction models: Construct prediction models for each modal component sequence and train the models using the corresponding historical samples; (5) Component prediction and result reconstruction: The trained modal component prediction models are applied to the corresponding component sequences, and the predicted values ​​of each modal component at the target time are obtained using the latest historical data.

2. The time-series prediction method integrating variational mode decomposition optimization and attention mechanism according to claim 1, characterized in that, In step (1), the preprocessing operations include missing value imputation, outlier correction, noise filtering, normalization, smoothing and / or standardization, in order to improve data quality and reduce the impact of dimensional differences and random noise on subsequent modeling.

3. The time-series prediction method integrating variational mode decomposition optimization and attention mechanism according to claim 1, characterized in that, In step (2), the parameter combination includes at least the number of decomposition modes K and the penalty coefficient α; the evaluation index is selected from at least one of signal reconstruction error, component purity, sample entropy or prediction error based on decomposition results; the intelligent optimization algorithm is a genetic algorithm, particle swarm optimization algorithm or gray wolf optimization algorithm.

4. The time-series prediction method integrating variational mode decomposition optimization and attention mechanism according to claim 1, characterized in that, In step (4), the prediction model is further defined as a long short-term memory network that incorporates an attention mechanism, namely, an LSTM-attention model. Specifically, for the j-th modal component sequence, an LSTM network is constructed to extract its temporal dependency features. An attention mechanism is introduced at the LSTM output to weight the hidden states at historical time steps. The model input is a historical window of data for the corresponding modal component, and the output is the predicted value of the modal component at the next time step or several future time steps. During training, the network parameters are updated by minimizing the mean squared error loss function to improve the fitting accuracy.

5. The time-series prediction method integrating variational mode decomposition optimization and attention mechanism according to claim 1, characterized in that, In step (5), further, during the prediction stage, for each modal component j=1,2,...,K, several historical data before the current time of the modal component are used as input, and the prediction results of its next time or several future times are obtained through the LSTM-attention model described in step (4); after all modal components are predicted, the predicted values ​​of each component are combined and reconstructed according to the inverse process of decomposition to obtain the final prediction results of the original time series. If the decomposition step includes residual terms, the predicted value of the residual terms or the last known residual value will be included in the reconstruction process to restore the complete prediction signal; the final output results will be used for business scheduling, risk warning, and status assessment application scenarios.