Abstract
Stock price forecasting is important for financial decision-making but remains challenging because of complex and volatile market dynamics. Although existing forecasting methods have achieved considerable progress, they still face several limitations. Decomposition-based approaches are sensitive to manually specified parameters, deep learning models often require high computational resources, and individual lightweight models may not adequately capture diverse temporal characteristics. To address these limitations, this study proposes an improved whale optimization-based variational mode decomposition and dual-branch normalized linear forecasting (IWVMD-DNFLinear) framework, which integrates adaptive sequence decomposition, complementary linear forecasting, and learnable fusion. An improved beluga whale optimization (IBWO) algorithm is employed to adaptively optimize the parameters of variational mode decomposition (VMD). The decomposed components are then processed by parallel decomposition-based linear forecasting (DLinear) and normalized linear forecasting (NLinear) branches with a learnable fusion mechanism. Extensive experiments on four stock datasets under multiple forecasting horizons demonstrate that IWVMD-DNFLinear achieves consistently competitive forecasting performance against the trained baseline models across different datasets and forecasting horizons. On the AAPL dataset under single-step forecasting, IWVMD-DNFLinear achieves the lowest root mean square error (RMSE) of 5.1220. The DNFLinear forecasting network contains only 743 trainable parameters and requires 0.0110 MB of model storage. The proposed framework achieves high forecasting accuracy while maintaining a parameter-efficient forecasting structure, providing a practical solution for stock price forecasting.
Keywords:
stock price forecasting; variational mode decomposition; improved beluga whale optimization algorithm; DLinear; NLinear MSC:
62M10; 91G15; 68T07
1. Introduction
Stock price forecasting plays a pivotal role in investment decision-making and financial risk control. However, stock price movements are driven by a complex interplay of internal and external factors. Consequently, stock price series exhibit strong nonlinearity driven by market dynamics [1], as well as non-stationarity, high volatility, and pronounced uncertainty caused by market noise [2]. These characteristics pose substantial challenges to accurate forecasting. To address these challenges, a wide range of forecasting methods have been developed, including traditional statistical models such as ARIMA and GARCH [3,4], machine learning methods such as support vector machines and random forests [5], and deep learning architectures such as convolutional neural networks (CNNs), recurrent neural networks (RNNs), long short-term memory networks (LSTMs), and Transformer-based models [6,7,8,9].
Building on these advances, stock price forecasting research has gradually shifted from individual forecasting models toward more sophisticated deep learning and hybrid architectures. Recurrent models, particularly LSTM and GRU, improve the modeling of sequential dependencies through gating mechanisms, whereas CNN-based methods are effective in extracting local temporal patterns from historical observations [6,7,8]. With the development of self-attention mechanisms, Transformer-based models have further improved the ability to capture long-range temporal relationships. Representative models such as Informer, Autoformer, and FEDformer enhance time series forecasting through efficient attention mechanisms and temporal decomposition strategies [9,10,11]. Meanwhile, hybrid forecasting methods increasingly combine sequence decomposition with machine learning or deep learning models to simplify complex temporal patterns and improve forecasting accuracy in financial forecasting tasks [12,13,14,15]. These developments highlight the importance of effective sequence representation and forecasting architecture design for improving stock price prediction.
However, despite these advances, several challenges remain unresolved. First, decomposition-based forecasting methods mainly focus on extracting multiscale temporal patterns, but their performance is often affected by manually selected decomposition parameters. Second, although advanced deep learning architectures achieve strong representation capability, their increasing complexity may introduce additional computational costs and reduce efficiency. Third, lightweight linear forecasting models provide attractive efficiency advantages, but a single linear modeling mechanism may not sufficiently capture diverse temporal characteristics in financial time series. Therefore, an effective forecasting framework that simultaneously achieves adaptive decomposition, lightweight prediction, and complementary utilization of different forecasting mechanisms remains desirable.
Stock price series usually contain long-term trends, short-term fluctuations, and irregular variations at different temporal scales, making direct forecasting challenging. Variational Mode Decomposition (VMD), proposed by Dragomiretskiy and Zosso [16], decomposes the original series into multiple band-limited intrinsic mode functions with different center frequencies, providing an effective representation of multiscale characteristics. However, its decomposition quality depends heavily on the number of modes K and the penalty coefficient , which are typically determined through empirical selection. To address this limitation, the improved beluga whale optimization (IBWO) algorithm developed by Wang and Ma [17] introduces a nonlinear factor into the Lévy flight strategy, thereby improving the balance between global exploration and local exploitation. Previous studies have shown that IBWO can reduce the forecasting errors by more than 20% compared with empirically selected VMD parameters [17]. Motivated by these advantages, this study employs IBWO to optimize K and , forming the proposed IWVMD method for adaptive sequence decomposition.
Model complexity constitutes another important challenge in time series forecasting. Transformer-based models have demonstrated strong capabilities in capturing long-range temporal dependencies, but standard self-attention involves quadratic computational complexity and high memory consumption as the sequence length increases. Although subsequent models introduce sparse attention, decomposition, and frequency-domain mechanisms to improve forecasting efficiency, their multilayer architectures still involve relatively complex computational procedures [18]. In contrast, Zeng et al. [19] demonstrated that simple linear architectures can achieve competitive performance against sophisticated Transformer-based models in time series forecasting. The proposed Linear, DLinear, and NLinear models contain only lightweight linear mappings and require substantially simpler training and inference procedures. These findings indicate that lightweight linear models provide a promising alternative for achieving efficient stock price forecasting. However, existing lightweight linear models usually rely on a single temporal representation mechanism. DLinear emphasizes global trend-residual decomposition, whereas NLinear reduces the influence of the initial value through normalization and focuses on relative variations. Their different modeling perspectives suggest that combining them may provide complementary forecasting information for stock price series.
Despite their lightweight structures, individual linear forecasting models remain constrained by their specific modeling mechanisms and may not consistently capture diverse temporal patterns [20]. To alleviate this limitation, DNFLinear employs DLinear and NLinear as two complementary forecasting branches. DLinear explicitly models trend and residual components, whereas NLinear focuses on relative temporal variations through normalization with respect to the latest observation. Their predictions are then combined through a learnable scalar weight, allowing the model to adaptively balance the contributions of the two branches during training. Compared with using either branch individually or applying a fixed averaging strategy, this dual-branch adaptive fusion preserves the lightweight structure while exploiting complementary temporal information for more robust forecasting.
Motivated by the above considerations, this study proposes a lightweight stock price forecasting framework termed IWVMD-DNFLinear. In the proposed framework, IBWO is first employed to adaptively optimize the number of modes K and the penalty coefficient of VMD, forming the IWVMD module for stock price decomposition. The resulting components are then fed into parallel DLinear and NLinear branches, which provide complementary forecasting representations. Finally, a learnable fusion mechanism combines the outputs of the two branches to generate the final prediction. Through this design, IWVMD-DNFLinear integrates adaptive sequence decomposition, lightweight forecasting, and complementary prediction fusion within a unified framework. The main contributions of this study are summarized as follows:
- An adaptive decomposition method, termed IWVMD, is developed by integrating IBWO with VMD. IBWO automatically determines the number of modes K and the penalty coefficient , reducing the dependence on manually specified parameters and providing suitable decomposition configurations for different stock price series.
- A lightweight dual-branch forecasting model, termed DNFLinear, is constructed by treating DLinear and NLinear as complementary forecasting experts. A learnable fusion mechanism is introduced to balance their contributions and integrate complementary temporal information.
- Extensive empirical evaluations on four diverse stock datasets cover forecasting tasks with varying horizons. IWVMD-DNFLinear achieves consistently competitive forecasting performance against the trained comparison models across different datasets and forecasting horizons. Meanwhile, it maintains a lightweight architecture with only 743 trainable parameters and low model storage requirements.
The remainder of this paper is organized as follows. Section 2 reviews related studies on stock price forecasting, decomposition-based forecasting, and lightweight linear forecasting models. Section 3 presents the proposed IWVMD-DNFLinear framework and describes its main components. Section 4 introduces the experimental settings and discusses the experimental results. Finally, Section 5 concludes the paper and outlines directions for future research.
2. Related Work
2.1. Stock Price Forecasting Models
Stock price series typically exhibit strong nonlinearity [21], non-stationarity [22], and high volatility [23]. To model these complex characteristics, a wide range of forecasting methods have been developed, ranging from classical statistical approaches to machine learning and deep learning techniques. Statistical models, including linear regression [24,25], ARIMA [3], and GARCH [4], have been widely used in financial forecasting. Machine learning methods have subsequently been introduced to capture nonlinear relationships in financial data, including decision trees [26] and support vector machines [5]. Although these methods provide relatively simple and interpretable forecasting frameworks, their ability to model complex temporal dependencies and rapidly changing market dynamics remains limited.
With the development of deep learning, CNNs, RNNs, and LSTMs have been increasingly applied to stock price forecasting. CNN-based models are effective in extracting local patterns from historical observations, whereas RNN-based models capture temporal dependencies through recurrent connections [6,7]. LSTM further alleviates the vanishing-gradient problem through its gated memory mechanism and improves the modeling of nonlinear and long-term temporal dependencies [8,27]. More recently, Transformer-based models have been introduced into time series forecasting because of their ability to capture long-range temporal relationships. Representative models such as Informer, Autoformer, and FEDformer employ efficient attention mechanisms, temporal decomposition, or frequency-domain representations to improve forecasting performance [9,10,11].
In addition to individual forecasting models, increasing attention has been devoted to hybrid architectures that integrate complementary modeling mechanisms. Baek [28] proposed a CNN–LSTM model whose parameters were optimized using a genetic algorithm, demonstrating that the combination of deep learning and metaheuristic optimization can improve stock price forecasting accuracy. Yuan et al. [29] introduced the MVCNN-BiLSTM-Att model to jointly capture global and local features and reported improved forecasting performance on the CSI 300 Index compared with individual LSTM and TCN models. Shah et al. [30] developed an ARIMA–LSTM ensemble model that combines the linear modeling capability of ARIMA with the nonlinear representation capability of LSTM. These studies indicate that integrating models with complementary characteristics can improve forecasting performance and alleviate the limitations associated with relying on a single modeling mechanism.
2.2. Decomposition-Based Forecasting Models
Decomposition-based forecasting has become an important approach for modeling nonlinear and non-stationary time series. This strategy reduces the complexity of the original series and allows the forecasting model to focus on simpler temporal patterns. Empirical Mode Decomposition (EMD), proposed by Huang et al. [31], adaptively decomposes a time series into several intrinsic mode functions without requiring a predefined basis. However, EMD may suffer from mode mixing and end effects, which can affect the stability of the resulting components [32,33]. To alleviate these limitations, improved decomposition methods such as Ensemble Empirical Mode Decomposition, Complete Ensemble Empirical Mode Decomposition with Adaptive Noise (CEEMDAN), and VMD have been developed. CEEMDAN improves decomposition completeness and reduces mode mixing by introducing adaptive noise, and it has been successfully combined with LSTM-based models for financial forecasting [12,13].
VMD, proposed by Dragomiretskiy and Zosso [16], formulates decomposition as a constrained variational optimization problem and extracts several band-limited intrinsic mode functions with different center frequencies. Compared with recursive decomposition methods, VMD provides a more controlled decomposition process and has demonstrated favorable performance in modeling non-stationary time series. For example, Wu et al. [14] combined VMD with a Temporal Fusion Transformer for wind speed forecasting, while Zhang et al. [15] integrated VMD with GRU for oil price prediction. In stock price forecasting, Zhang et al. [34] proposed a VMD–TMFG–LSTM model to capture multiscale temporal and relational information.
Despite these advances, the performance of VMD depends strongly on the number of modes K and the penalty coefficient [35]. These parameters are often determined through empirical selection or manual tuning, which may produce suboptimal decomposition results when the temporal characteristics of the data change. Consequently, metaheuristic optimization algorithms have increasingly been introduced to determine appropriate VMD parameters automatically. Such approaches improve the adaptability of VMD and reduce its dependence on manually specified configurations. Nevertheless, many existing decomposition-based forecasting models still rely on relatively complex deep learning architectures after decomposition, leaving room for the integration of adaptive decomposition with lightweight forecasting models.
2.3. Linear Models for Time Series Forecasting
Although deep learning and Transformer-based models have achieved notable progress in time series forecasting, their complex architectures often introduce considerable computational and storage costs [18]. Moreover, increasing model complexity does not necessarily produce consistent improvements in forecasting performance. Zeng et al. [19] demonstrated that simple linear architectures can achieve competitive or superior performance on several long-term forecasting benchmarks. Recent explainable AI studies further reveal that linear models often capture long-term periodic patterns more effectively than Transformers, which tend to overfit to recent data [36]. Linear models have therefore attracted increasing attention owing to their simple structures, low computational costs, and efficient training processes [37].
Among representative linear forecasting models, Linear directly maps historical observations to the forecasting horizon. DLinear introduces moving-average decomposition to model the trend and residual components separately [38,39], whereas NLinear normalizes the sequence with respect to its last observed value to alleviate distribution shifts [37]. These models demonstrate that simple linear architectures can retain low computational complexity while providing competitive forecasting performance.
Despite their efficiency, DLinear and NLinear characterize temporal dynamics from different perspectives [40]. DLinear explicitly decomposes the input sequence into trend and residual components, enabling the modeling of global temporal movements, whereas NLinear removes the influence of the latest observed level through normalization and focuses on relative variations. Therefore, these two models can provide complementary representations for stock price series, which usually contain both long-term movements and short-term fluctuations. However, relying on either DLinear or NLinear alone may limit the ability to capture diverse temporal patterns. Moreover, the integration of adaptive sequence decomposition and complementary linear forecasting mechanisms has received limited attention. Large-scale benchmark studies also indicate that no single forecasting model consistently dominates under all data conditions [41]. This motivates the development of a lightweight forecasting framework that retains the efficiency of linear models while exploiting complementary modeling capabilities.
3. Proposed Method
This section presents the proposed IWVMD-DNFLinear framework for stock time series forecasting. The overall architecture is first described, followed by the IWVMD-based decomposition module and the DNFLinear forecasting model.
3.1. Overall Architecture
Consider a multivariate stock time series , where T denotes the look-back window length and denotes the number of input variables at each time step. Each observation is represented as , which may contain price-related variables, trading volume, decomposed components, or other financial indicators. The forecasting objective is to predict the future sequence over a prediction horizon of N steps. Therefore, the model aims to learn a mapping , parameterized by , to generate the prediction . The model is trained by minimizing the discrepancy between the ground-truth future sequence and the predicted sequence .
The overall architecture of the proposed IWVMD-DNFLinear framework is shown in Figure 1. The original stock time series is first divided into training, validation, and test sets. During the IBWO optimization process, for each candidate parameter pair , the forecasting model is trained using the training set, while the corresponding forecasting performance on the validation set is used to evaluate the effectiveness of the candidate parameters and determine the optimal pair . The normalization parameters are estimated from the training set and then applied to the validation and test sets. The test set is not involved in IBWO optimization, parameter selection, normalization parameter estimation, or model training and is retained only for the final performance evaluation. After data partitioning, the IWVMD module independently decomposes each data partition into several intrinsic mode functions (IMFs) and a residual component using the selected parameters.
Figure 1.
Architecture of the IWVMD-DNFLinear model.
The resulting IMFs and residual component are organized as input features and separately processed by the DLinear branch and the NLinear branch of the DNFLinear forecasting model, producing two branch predictions, denoted as and . A trainable adaptive fusion coefficient is then introduced to combine the two predictions and generate the final forecasting result. Through this design, the proposed framework integrates adaptive signal decomposition and dual-branch linear forecasting within a unified lightweight architecture.
3.2. IWVMD-Based Decomposition
This subsection first describes the basic formulation of VMD, then introduces the IBWO algorithm for VMD parameter optimization, and finally presents the IWVMD procedure for adaptive signal decomposition.
3.2.1. Variational Mode Decomposition
The core idea of VMD is to perform band-limited decomposition in the frequency domain by jointly optimizing each mode function and its corresponding center frequency . This process is mathematically formulated as the constrained variational problem in Equation (1).
To solve this constrained optimization problem, an augmented Lagrangian is constructed by introducing the Lagrange multiplier and the quadratic penalty coefficient , as given in Equation (2).
The mode functions , center frequencies , and Lagrange multiplier are updated iteratively using the alternating direction method of multipliers (ADMM). The iteration terminates when the relative change between two consecutive updates satisfies the convergence criterion
The effectiveness of VMD is largely determined by two parameters, the number of modes K and the penalty coefficient . In conventional applications, these parameters are usually specified empirically, which may introduce subjective bias and reduce adaptability across datasets. Moreover, inappropriate parameter settings may lead to mode mixing, insufficient decomposition, or over-decomposition. To improve the data adaptiveness of VMD, this study introduces an improved beluga whale optimization algorithm to search for the optimal parameter pair . The resulting IWVMD procedure aims to enhance decomposition stability and provide more informative components for subsequent forecasting.
3.2.2. Improved Beluga Whale Optimization Algorithm
The standard beluga whale optimization (BWO) algorithm is inspired by the social behavior, cooperative foraging, and whale-fall mechanism of beluga whale populations. Although BWO has a simple structure and favorable adaptability, its local search ability and convergence speed may be limited when solving complex optimization problems. To address these limitations, this study adopts the improved beluga whale optimization (IBWO) algorithm proposed by Wang and Ma [17], which extends the original framework of Zhong et al. [42]. The specific IBWO formulation adopted in this study follows the work of Wang and Ma [17], in which the exploitation phase employs a nonlinear control factor in the Lévy flight strategy, while the whale-fall phase uses a time-varying whale-fall probability.
In this study, the search process is governed by seven independent random variables , which are uniformly sampled from to promote population diversity and accelerate convergence.
- Exploration Phase: This phase simulates the beluga whales traveling in groups. Two whale positions are randomly selected, and sinusoidal or cosinusoidal perturbations are applied to generate new solutions, thereby expanding the search range.Here, ; denotes the position of the i-th whale in the j-th dimension at t iteration, and is the updated position. denotes randomly selected integers from the two dimensions, and r indicates a randomly chosen whale.
- Exploitation Phase: This phase mimics how whales communicate via echolocation and share position information to locate prey and find the optimal solution. A Lévy flight strategy is employed to enhance local search, and a jump strength control factor is introduced to dynamically regulate the search process. The update formula iswhere is the current position of the i-th whale; represents the current best position (i.e., the best solution found so far); and is the Lévy flight term defined as with , where and are random variables drawn from a standard normal distribution, and . To achieve an adaptive transition between global exploration and local exploitation, the jump strength coefficient is dynamically adjusted as . This mechanism provides stronger stochastic perturbations during the early iterations to improve exploration capability and gradually reduces unnecessary jumps during later iterations to enhance convergence accuracy.
- Whale-Fall Phase: This phase simulates partial death or migration within the whale population to maintain diversity and prevent stagnation at local optima. A portion of individuals are probabilistically migrated or updated to induce structural changes in the population. Following the IBWO formulation in the work of Wang and Ma [17], the whale-fall probability varies with the optimization stage. The whale-fall likelihood is formulated as a temporally decaying function , and the positional update expression is given as follows:where , and the step-size coefficient is defined as , with n being the population size and , denoting the respective upper and lower limits of the variables.
3.2.3. IWVMD Algorithm
To reduce mode mixing and over-decomposition caused by manually specified VMD parameters, this study proposes the IWVMD algorithm. Although only two VMD parameters are optimized, the optimization problem is not equivalent to a simple linear parameter search. The mode number K determines the number of decomposed components, while the penalty coefficient controls the bandwidth constraint of each mode. Different combinations of may lead to substantially different decomposition characteristics and forecasting performance. Therefore, an adaptive optimization strategy is adopted to automatically identify suitable VMD parameters instead of relying on manually selected configurations.The IBWO formulation of Wang and Ma [17] is adapted to VMD parameter optimization for stock price forecasting. In particular, the continuous search process is adapted to the discrete mode number K through integer rounding and boundary constraints, while the validation forecasting MSE under the causal decomposition setting is used as the fitness criterion.
In IWVMD, IBWO is used to automatically optimize the two key VMD parameters, namely the mode number K and the penalty coefficient . By adaptively searching for the optimal parameter pair , IWVMD provides a more stable and data-driven decomposition of the original signal. The detailed procedure is presented in Algorithm 1.
| Algorithm 1: IWVMD Optimization via improved beluga whale optimization |
| Input: Original ; population size n, maximum iterations T |
| Output: Optimal parameters |
| Step 1: Divide the raw series into training, validation, and test sets. |
| Step 2: Generate n candidate solutions uniformly. Since the VMD mode number K must be an integer, the corresponding dimension of each candidate position is rounded to the nearest integer and constrained within the predefined search range before fitness evaluation. |
| Step 3: For each candidate solution , independently decompose the training set using VMD with parameters . The validation set is evaluated using a causal rolling-window VMD. Train the forecasting model on the training set and use the validation forecasting error as the fitness value [35,43], which is defined as mean squared error (MSE) Set the candidate with the lowest fitness value as . |
| Step 4: Iterative optimization |
![]() |
| Step 5: Use the optimal parameter pair to independently perform VMD decomposition on the training set and apply causal rolling-window VMD decomposition on the validation and test sets. |
3.3. DNFLinear Forecasting Model
After IWVMD decomposition, the original stock time series is decomposed into K IMF components together with a residual component, which are then fed into the DLinear and NLinear branches for forecasting. The predictions of the two branches are subsequently combined through a learnable scalar weight to produce the final prediction.
3.3.1. DLinear and NLinear Models
DLinear is a decomposition-based linear forecasting model developed by Zeng et al. [19]. Given an input sequence , DLinear first decomposes it into a trend component and a remainder component through a moving-average operation, as given in Equations (6) and (7):
where k denotes the moving-average kernel size, and . These two components are then modeled independently by two linear layers in Equations (8) and (9):
where , N denotes the forecasting horizon, and denotes the output dimension. Finally, the prediction is obtained by summing the two branch outputs according to Equation (10):
where . The forecasting architecture of DLinear is shown in Figure 2. Figure 2 highlights the explicit decomposition structure of DLinear, where trend and remainder information are modeled through separate forecasting paths, allowing the model to account for different temporal characteristics within the input sequence.
Figure 2.
Representation of the DLinear architecture.
The NLinear model introduces a modification designed to deal with distribution shifts in time series. To do so, the last observed value of the input sequence is first subtracted from the original sequence, and the resulting residual sequence is then mapped to the forecasting horizon by a linear layer. Finally, the last value is added back to obtain the prediction. This process is described by Equations (11) and (12):
and
where denotes the input sequence, is the last observed value, represents the last-value-normalized sequence, and is the forecasting output. Figure 3 further illustrates the architecture of NLinear. Figure 3 highlights a different modeling mechanism, where prediction is performed relative to the most recent observation rather than through explicit trend-remainder decomposition, making its representation complementary to that of DLinear.
Figure 3.
Representation of the NLinear architecture.
3.3.2. Adaptive Output Fusion and Prediction
After obtaining the predictions from the DLinear and NLinear branches, an adaptive output fusion mechanism is used to generate the final prediction. To combine the complementary forecasting information captured by the two branches, a learnable fusion coefficient is introduced, and the final prediction is obtained according to Equation (13). Specifically, is obtained by applying a sigmoid function to a learnable parameter, allowing the model to automatically balance the contributions of the two branches during training rather than relying on a manually specified fixed weight.
where and denote the outputs of the DLinear and NLinear branches, respectively. Through this fusion strategy, the proposed model combines the decomposition-based representation ability of DLinear with the last-value residual modeling ability of NLinear while maintaining a lightweight linear forecasting structure.
4. Experiment
In this section, the experimental datasets and evaluation metrics are first introduced, followed by the implementation settings and the decomposition results of the stock price data. Subsequently, ablation experiments and comparisons with baseline models conducted to evaluate the forecasting performance of IWVMD-DNFLinear are described. Finally, statistical significance tests and computational efficiency analysis to further assess the reliability and practical applicability of the proposed model are outlined.
4.1. Data
To evaluate the forecasting performance of the proposed method under different stock price patterns, four representative U.S. stocks were selected: Apple Inc. (AAPL), NVIDIA Corporation (NVDA), Amazon.com, Inc. (AMZN), and Meta Platforms, Inc. (META). The historical daily stock data were collected from Yahoo Finance, and the adjusted closing price was used as the forecasting target. These stocks exhibit distinct price levels, volatility characteristics, and temporal dynamics, providing diverse forecasting scenarios for evaluating the effectiveness and robustness of the proposed IWVMD-DNFLinear model.
Table 1 summarizes the data periods and descriptive statistics of the adjusted closing prices, including the mean, minimum, maximum, quartiles, variance, standard deviation, skewness, and kurtosis. The results reveal considerable differences in the statistical characteristics of the four datasets, indicating substantial variations in price distribution and volatility. Such heterogeneous datasets provide a comprehensive benchmark for assessing the forecasting performance and robustness of the proposed model.
Table 1.
Summary of the adjusted closing prices for the four stock datasets.
4.2. Evaluation Metrics
Model performance was evaluated using several standard metrics, including root mean squared error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE), and the coefficient of determination (). Among them, RMSE, MAE, and MAPE are error-based metrics, where lower values indicate better forecasting performance. In contrast, measures the goodness of fit, where a higher value indicates better model performance. The definitions of these metrics are given in Equations (14)–(17) below.
where and denote the actual and predicted values, respectively; is the mean value of the actual observations; and n is the number of samples.
To further quantify the performance improvement of the proposed IWVMD-DNFLinear model over benchmark models, an improvement metric denoted as Score is introduced. For error-based metrics, including RMSE, MAE, and MAPE, Score is calculated as
where and represent the evaluation metric values obtained by the benchmark model and the proposed IWVMD-DNFLinear model, respectively. As defined in Equation (18), a positive Score indicates that the proposed model reduces the prediction error compared with the benchmark model, whereas a negative value indicates performance degradation. Since can yield negative values for poorly performing models, the improvement is measured by the direct difference rather than the relative percentage improvement, and is defined as
A positive in Equation (19) indicates that the proposed IWVMD-DNFLinear model achieves a higher goodness of fit than the corresponding benchmark model. In the following tables, the column headers (e.g., , ) correspond to the or values computed using the above equations, where the subscript denotes the specific benchmark model.
4.3. Experiment Settings
For each stock, the observations are arranged and divided into training, validation, and test sets using proportions of 70%, 10%, and 20%, respectively. The test set is used only for the final performance evaluation and is not involved in model training, hyperparameter selection, or IBWO optimization. The normalization parameters are estimated using the training data and then applied unchanged to the validation and test sets. The predicted values are transformed back to the original price scale using the target scaler fitted on the training set.
Supervised samples are constructed using a sliding window with an input sequence length of 60 trading days. For each forecasting horizon , the models directly generate the complete H-step output sequence from the preceding input window rather than recursively using previous predictions. The input length of 60 trading days is used to capture approximately three months of recent market information while maintaining a compact input window. The forecasting horizons of 1 and 20 are selected to evaluate both next-day prediction and multi-step prediction over approximately one trading month. The moving-average kernel size of 25 approximately corresponds to one trading month and provides a practical window for separating the trend and residual components in the DLinear branch. The learning rate of and batch size of 256 are adopted to balance optimization stability and computational efficiency, while 80 epochs are specified as the maximum training budget rather than a fixed training duration. Early stopping with a patience of 8 is employed to terminate training when the validation performance no longer improves, thereby reducing unnecessary training and limiting overfitting. All comparison models follow the same data partition, input length, forecasting horizons, normalization procedure, and evaluation metrics. The hyperparameter configurations of comparison models are determined according to the validation MSE on the validation set, and the configurations achieving the lowest validation errors are retained. The detailed configurations of all comparison models are provided in Table A1 of Appendix A.
To avoid look-ahead bias during decomposition, VMD-based models adopt a rolling decomposition strategy on both the validation and test sets. Specifically, at each forecasting origin, VMD is applied only to the historical observations contained in the current input window, while the observations to be predicted are excluded from the decomposition. Let the input length be L and the forecasting horizon be H. For the i-th forecasting sample,
where . Based on the sample construction in Equation (20), the decomposition is performed only on , and the resulting components are used as the model input to predict . The window then moves forward by one observation, and the decomposition is repeated for the next forecasting origin. Therefore, each prediction uses only the information available before its corresponding forecasting origin, preventing future validation or test observations from influencing the decomposed input features.
All experiments were implemented in Python 3.10 using the PyTorch 2.13 framework and were conducted on an NVIDIA V100 GPU. The random seed was fixed at 42 for reproducibility. For IBWO, the population size was set to 10, the maximum number of iterations was set to 20, and the search ranges were and . The range of K was restricted to a moderate number of modes to avoid insufficient decomposition at very small values and excessive decomposition at large values, while provided a sufficiently broad range for controlling the bandwidth of the decomposed modes. The population size of 10 and the maximum number of 20 iterations were adopted to balance search capability and computational cost since each candidate evaluation required model training and validation. These settings were kept identical across all datasets. The validation MSE corresponding to each candidate parameter pair was used as the fitness value, and the pair with the lowest fitness value was selected. The main model training settings are summarized in Table 2.
Table 2.
Main experimental settings of IWVMD-DNFLinear.
4.4. Decomposition of Stock Price Data
The optimal IWVMD parameters obtained by IBWO for the four stock datasets are summarized in Table 3, and the corresponding decomposition results are presented in Figure 4, Figure 5, Figure 6 and Figure 7. Each stock price series is decomposed into several IMFs and a residual component. The IMFs represent price variations at different frequencies, where the higher-frequency components mainly describe short-term fluctuations, while the lower-frequency components capture relatively smooth variations. The residual component reflects the overall long-term trend of the stock price series. The differences in the optimal values of indicate that the four stock datasets require different decomposition configurations.
Table 3.
Optimal IWVMD parameters for the four stock datasets.
Figure 4.
Decomposition results for AAPL.
Figure 5.
Decomposition results for NVDA.
Figure 6.
Decomposition results for AMZN.
Figure 7.
Decomposition results for META.
To further verify the effectiveness of the proposed IBWO-based VMD parameter optimization strategy, an additional comparison with grid search was conducted. A GridVMD-DNFLinear variant was constructed by replacing the IBWO-based parameter optimization procedure with grid search while maintaining the same VMD decomposition framework and DNFLinear forecasting architecture. Both methods optimize the VMD parameters under the same search space and employ the same causal validation strategy. After obtaining the optimal VMD parameters, the corresponding models were retrained and evaluated on the test set using the same experimental settings. The prediction performance comparison between IWVMD-DNFLinear and GridVMD-DNFLinear is presented in Table 4.
Table 4.
Prediction performance comparison between IWVMD-DNFLinear and GridVMD-DNFLinear.
The results show that IWVMD-DNFLinear consistently outperforms GridVMD-DNFLinear across all four stock datasets and all evaluation metrics. The performance differences are particularly evident for NVDA and AMZN, where the proposed method achieves noticeably lower prediction errors and higher values. Since the two variants differ only in the VMD parameter optimization strategy, these results indicate that the IBWO-based search can identify more effective VMD parameter configurations than grid search under the adopted experimental settings.
4.5. Ablation Experiments
4.5.1. Single-Step Ablation Results
To validate the effectiveness of each component of the proposed IWVMD-DNFLinear model, ablation experiments were conducted under the one-step forecasting setting. Specifically, DNFLinear removes the decomposition module, VMD-DNFLinear replaces IWVMD with conventional VMD, and IWVMD-DLinear/IWVMD-NLinear retains only the DLinear or NLinear branch, respectively, to evaluate the contribution of the dual-branch forecasting structure. The results are presented in Table 5.
Table 5.
Prediction performance comparison of ablation models ().
As shown in Table 5, IWVMD-DNFLinear achieves the best overall performance on all four datasets, obtaining the lowest error metrics and the highest values in most cases. For example, on AAPL and NVDA, the proposed model achieves RMSE values of 5.1220 and 4.7935, respectively, which are substantially lower than those of all ablation variants. Compared with DNFLinear and VMD-DNFLinear, the improved performance demonstrates the effectiveness of adaptive decomposition and IBWO-based parameter optimization. Moreover, the superiority over IWVMD-DLinear and IWVMD-NLinear verifies the contribution of the dual-branch forecasting structure. The corresponding improvements are further quantified in Table 6.
Table 6.
Performance improvements of IWVMD-DNFLinear over ablation models ().
The quantified improvements in Table 6 further show that the contribution of each component varies across datasets. Compared with VMD-DNFLinear, IWVMD-DNFLinear reduces RMSE by 30.18%, 19.10%, 25.81%, and 56.15% on AAPL, NVDA, AMZN, and META, respectively, supporting the benefit of the adaptive VMD parameter optimization. The consistently positive improvements over DNFLinear further demonstrate the value of incorporating decomposition, while the substantial gains over the single-branch variants indicate that combining the DLinear and NLinear branches provides more robust forecasting performance than using either branch alone.
4.5.2. Multi-Step Ablation Results
The ablation analysis is further extended to a forecasting horizon of 20 to evaluate whether the effectiveness of each component can be maintained for long-term prediction. The prediction results are reported in Table 7, and the corresponding improvements are summarized in Table 8.
Table 7.
Prediction performance comparison of ablation models ().
Table 8.
Performance improvements of IWVMD-DNFLinear over ablation models ().
As shown in Table 7, IWVMD-DNFLinear achieves the best overall performance across the four datasets under the 20-step forecasting setting. It performs best across all evaluation metrics on AAPL and AMZN, while achieving the lowest MAE and MAPE on NVDA and the lowest RMSE and highest on META. Although VMD-DNFLinear achieves slightly better RMSE and on NVDA, and DNFLinear obtains lower MAE and MAPE on META, IWVMD-DNFLinear maintains strong overall performance across the four datasets.
The improvement results in Table 8 further demonstrate the effectiveness of the proposed framework. Compared with DNFLinear and VMD-DNFLinear, IWVMD-DNFLinear achieves consistent improvements on most datasets, indicating the benefits of adaptive decomposition and IBWO-based parameter optimization. Moreover, the superiority over the two single-branch variants verifies the effectiveness of the dual-branch forecasting structure. Overall, the proposed model maintains its advantages under longer forecasting horizons, demonstrating improved adaptability and robustness for multi-step stock price prediction.
4.5.3. Visualization of Ablation Results
Taking the single-step forecasting setting as an example, Figure 8 presents the prediction curves of IWVMD-DNFLinear and the four ablation models across the four stock datasets. The quantitative results are reported in Table 5. On AAPL, IWVMD-DNFLinear achieves the lowest RMSE of 5.1220, compared with 7.3359 for VMD-DNFLinear, 14.6549 for DNFLinear, 16.6685 for IWVMD-DLinear, and 102.3130 for IWVMD-NLinear. On META, IWVMD-DNFLinear also achieves the lowest RMSE of 50.3440, while DNFLinear and VMD-DNFLinear obtain RMSE values of 57.2950 and 114.8078, respectively.
Figure 8.
Prediction curves of IWVMD-DNFLinear and the ablation models.
Similar observations are found on NVDA and AMZN. On NVDA, IWVMD-DNFLinear achieves the lowest RMSE of 4.7935, followed by VMD-DNFLinear with an RMSE of 5.9253. On AMZN, IWVMD-DNFLinear obtains the lowest RMSE of 7.2708, compared with 9.2689 for DNFLinear and 9.8004 for VMD-DNFLinear. Overall, the visual comparisons are consistent with the quantitative results in Table 5, supporting the effectiveness of IWVMD preprocessing, IBWO-based parameter optimization, and the dual-branch forecasting structure.
4.6. Performance Comparison with Other Models
4.6.1. Single-Step Comparison Results
To compare the forecasting performance of IWVMD-DNFLinear with other models, several representative comparison models were selected. These included Random Walk (RW) as a simple benchmark for stock-price forecasting; Random Forest (RF) as a traditional machine learning model; Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU) as representative deep learning models; and PatchTST and Informer as Transformer-based models for time series forecasting. RW was included because stock price series often exhibit random-walk-like behavior, making it a simple and relevant benchmark for evaluating whether a forecasting model can capture additional predictable information beyond basic price fluctuations [44]. The RW benchmark is defined as
In Equation (21), denotes the most recently observed stock price, and denotes a zero-mean Gaussian innovation. The innovation standard deviation is fixed at for all stock datasets and forecasting horizons without dataset-specific tuning. The value is predefined as a small innovation scale to represent minor daily price fluctuations and is not estimated from the training data or adjusted for individual datasets.
The single-step forecasting results are presented in Table 9, where the best result for each metric is highlighted in bold. As shown in Table 9, IWVMD-DNFLinear achieves the best performance across all four evaluation metrics on AAPL. On AMZN, it achieves the best RMSE and , while GRU obtains slightly lower MAE and MAPE.
Table 9.
Prediction performance of comparison models and IWVMD-DNFLinear ().
On NVDA and META, RW achieves the best performance across all four metrics. This result is consistent with previous findings that simple forecasting benchmarks can remain highly competitive for financial time series [44]. Similar behavior is also reported by [45], where a persistence-based RW benchmark outperformed all data-driven models on level-error metrics across three financial indices. From the perspective of market efficiency, daily stock prices may exhibit near-martingale behavior, such that the most recently observed price already provides a strong estimate of the next price level and additional model complexity does not necessarily translate into lower point-prediction error. Therefore, the superior performance of RW on NVDA and META does not necessarily indicate a failure of the proposed model but rather reflects the strong persistence and near-random-walk characteristics of these stock-price series during the test period.
IWVMD-DNFLinear achieves the best results on AAPL and remains highly competitive on AMZN, while RW performs best on NVDA and META. Nevertheless, IWVMD-DNFLinear consistently outperforms all trained comparison models on AAPL, NVDA, and META and achieves competitive performance on AMZN, where GRU obtains slightly better MAE and MAPE. The corresponding performance differences are summarized in Table 10. The quantified results in Table 10 further reveal clear differences between RW and the trained comparison models. IWVMD-DNFLinear reduces RMSE relative to all trained comparison models on AAPL, NVDA, and META, with improvements ranging from 39.87% to 95.23%, while on AMZN the RMSE improvements range from 0.22% to 77.89%. In contrast, the negative improvements relative to RW on NVDA and META quantitatively confirm the strong competitiveness of the simple persistence-based benchmark on these two datasets.
Table 10.
Performance improvements of IWVMD-DNFLinear over comparison models ().
4.6.2. Multi-Step Comparison Results
The comparison was further extended to the 20-step forecasting horizon. The prediction results are reported in Table 11, while the corresponding performance improvements are summarized in Table 12.
Table 11.
Prediction performance of comparison models and IWVMD-DNFLinear ().
Table 12.
Performance improvements of IWVMD-DNFLinear over comparison models ().
As shown in Table 11, IWVMD-DNFLinear achieves the best performance across all four evaluation metrics on AAPL, with an RMSE of 11.5046, MAE of 8.6992, MAPE of 4.2216, and of 0.8538. On NVDA, AMZN, and META, RW achieves the best performance across all four metrics under the 20-step forecasting setting. For NVDA and META, this result is consistent with the single-step comparison, further demonstrating the strong competitiveness of the RW benchmark for stock-price forecasting. On AMZN, however, RW becomes the best-performing method under multi-step forecasting, indicating that the relative advantage of different forecasting methods may vary with the forecasting horizon.
The quantified improvements in Table 12 show that IWVMD-DNFLinear consistently reduces the forecasting errors relative to all trained comparison models across the four datasets. For RMSE, the improvements range from 64.96% to 87.01% on AAPL, 84.45% to 88.07% on NVDA, 24.51% to 59.90% on AMZN, and 13.25% to 71.37% on META. In contrast, the negative improvements relative to RW on NVDA, AMZN, and META further quantify the advantage of the persistence-based benchmark on these datasets under the multi-step forecasting setting.
Nevertheless, IWVMD-DNFLinear consistently outperforms all trained comparison models across the four datasets under the 20-step forecasting setting. IWVMD-DNFLinear therefore maintains strong multi-step forecasting performance, while the relative performance between IWVMD-DNFLinear and RW varies across different stock series.
4.6.3. Visualization of Comparison Results
Figure 9 presents the single-step prediction curves of IWVMD-DNFLinear and the comparison models for the four stock datasets. On AAPL, IWVMD-DNFLinear follows the actual price movements most closely, consistent with its lowest RMSE of 5.1220. On AMZN, IWVMD-DNFLinear also shows strong tracking performance, achieving the lowest RMSE of 7.2708, although GRU obtains slightly lower MAE and MAPE.
Figure 9.
Prediction curves of IWVMD-DNFLinear and the comparison models.
A different pattern is observed for NVDA and META, where RW tracks the actual price series more closely and achieves RMSE values of 3.5320 and 22.1123, compared with 4.7935 and 50.3440 for IWVMD-DNFLinear, respectively. This is consistent with the quantitative results in Table 9 and the characteristics discussed above. The prediction curves therefore further confirm that the relative performance of IWVMD-DNFLinear and RW varies across stock datasets, while IWVMD-DNFLinear generally performs better than the trained comparison models.
4.7. Statistical Significance Analysis
Although IWVMD-DNFLinear achieved strong forecasting performance compared with the ablation and comparison models, numerical superiority alone was insufficient to establish statistical significance. Therefore, the Diebold–Mariano (DM) test [46] was employed to compare the predictive accuracy of IWVMD-DNFLinear with the competing models. To evaluate the statistical significance under different forecasting horizons, DM tests were conducted for both single-step forecasting () and multi-step forecasting ().
For a forecasting horizon H, the loss differential at each forecasting origin is defined as
Based on the loss differential defined in Equation (22), a positive DM statistic indicates that IWVMD-DNFLinear achieves a lower forecasting loss than the corresponding comparison model. Possible serial correlation in the loss differential is addressed using the Newey–West variance estimator, with the lag length determined as
The lag length obtained from Equation (23) is used in the Newey–West variance estimation. The Harvey–Leybourne–Newbold small-sample correction is further applied, and the corresponding one-sided p-values are calculated using the t distribution with degrees of freedom.
4.7.1. DM Test Results for Single-Step Forecasting
The DM test results for the ablation models and comparison models are presented in Figure 10. For the ablation models, all DM statistics are positive and all corresponding one-sided p-values are below 0.05. This indicates that IWVMD-DNFLinear achieves significantly lower forecasting losses than DNFLinear, VMD-DNFLinear, IWVMD-DLinear, and IWVMD-NLinear on all four datasets at the 5% significance level.
Figure 10.
DM test results for single-step forecasting ().
For the comparison models, IWVMD-DNFLinear achieves significantly lower forecasting losses than RF, RNN, LSTM, PatchTST, and Informer on all four datasets. For GRU, the improvement is significant on AAPL and NVDA, while the difference on AMZN is not statistically significant. The comparison with RW varies across datasets. On AAPL and AMZN, IWVMD-DNFLinear significantly outperforms RW, with DM statistics of 7.61 and 4.96, respectively. On NVDA and META, the DM statistics are −5.91 and −11.22, indicating that RW achieves lower average squared forecasting losses. These results confirm the statistical advantage of IWVMD-DNFLinear over the trained comparison models in most comparisons, while its relative performance against RW depends on the stock dataset.
Figure 10 further reveals a clear contrast between the two panels. The ablation results show consistently positive DM statistics across all datasets, while their magnitudes vary among model variants, indicating that the contribution of the complete framework differs across ablation settings. In the comparison-model panel, the trained models generally exhibit positive DM statistics, whereas RW shows a dataset-dependent pattern, with negative values on NVDA and META. This contrast indicates that IWVMD-DNFLinear provides a consistent advantage over the trained forecasting models, while RW remains highly competitive for some stock series.
4.7.2. DM Test Results for Multi-Step Forecasting
To further evaluate the statistical significance under longer forecasting horizons, additional DM tests were conducted for the 20-step forecasting setting using the same squared loss, Newey–West variance estimator, and HLN correction. The results are presented in Figure 11. Overall, IWVMD-DNFLinear maintains statistically significant improvements over most ablation variants. For AMZN, IWVMD-DNFLinear significantly outperforms all four ablation models, with positive DM statistics and one-sided p-values below 0.05. For the comparison models, IWVMD-DNFLinear achieves significantly lower forecasting losses than RF, RNN, LSTM, GRU, PatchTST, and Informer on all four datasets under the 20-step forecasting setting. Compared with RW, IWVMD-DNFLinear achieves a significant improvement on AAPL, with a DM statistic of 2.5502 and a one-sided p-value of 0.0055. On NVDA, AMZN, and META, the DM statistics are , , and , respectively, indicating that RW achieves lower average squared forecasting losses on these datasets.
Figure 11.
DM test results for multi-step forecasting ().
Compared with the one-step forecasting results, several comparisons under the multi-step setting show weaker statistical significance. Specifically, the comparison with VMD-DNFLinear on AAPL exhibits a positive DM statistic but does not reach the 5% significance level, while the comparison with VMD-DNFLinear on NVDA and DNFLinear on META does not show statistically significant differences. These results indicate that certain individual components may remain competitive for specific datasets under longer forecasting horizons. Nevertheless, IWVMD-DNFLinear maintains strong forecasting performance across the four datasets, demonstrating the effectiveness of the complete framework for multi-step stock price prediction.
4.8. Additional Experiment on a Chinese Stock Dataset
To further examine the performance of the proposed framework beyond the U.S. stock datasets, an additional experiment was conducted on a representative Chinese financial stock. Specifically, the Ping An Insurance (PINGAN) stock from the Chinese A-share market was selected as an additional dataset.
The experimental settings, including data preprocessing, input sequence length, prediction horizon, and evaluation metrics, were kept consistent with those in the main experiments. The prediction results on the PINGAN dataset are presented in Table 13. As shown in Table 13, RW achieves the best performance across all four metrics, while IWVMD-DNFLinear performs best among the trained comparison models in terms of RMSE, MAE, and . Its MAPE of 1.4823 is also close to the best result of 1.4788 obtained by PatchTST. These results indicate that the proposed framework remains competitive on stock data from a different market and industrial sector, although the strong performance of RW again highlights the persistence characteristics of stock-price series.
Table 13.
Prediction results on PINGAN dataset.
4.9. Computational Efficiency Analysis
In addition to forecasting accuracy, the computational efficiency of different models was evaluated in terms of the number of trainable parameters, model storage size, training time, and testing time. To ensure a fair comparison, all models were evaluated on the AAPL dataset with a look-back window of 60 and a forecasting horizon of 1. The batch size was fixed at 32, and all neural network models were trained for 20 epochs under the same experimental settings. The reported trainable parameter count and model storage size for IWVMD-DNFLinear refer specifically to the DNFLinear forecasting network since the VMD decomposition and IBWO optimization stages do not contain trainable network parameters. The training and testing times reported in Table 14 correspond to the forecasting networks, while the additional decomposition and optimization costs of IWVMD-DNFLinear are reported separately. The results are summarized in Table 14.
Table 14.
Computational efficiency comparison of different forecasting models.
Taking the random seed of 42 as an example, for IWVMD-DNFLinear, the additional computational cost of the adaptive decomposition and optimization stages is also considered. On the AAPL dataset, the IBWO parameter search requires 139.50 s, including the repeated VMD decompositions and candidate-model evaluations. After the optimal parameters are obtained, the final VMD decomposition and data construction require 1.0420 s, followed by 10.4948 s for formal network training. The inference time on the test set is 0.0453 s.
As shown in Table 14, the DNFLinear forecasting network in IWVMD-DNFLinear contains 743 trainable parameters and requires 0.0110 MB of model storage, both of which are substantially lower than those of the neural comparison models. Its network training time is lower than that of PatchTST but higher than those of the recurrent models and Informer, while its testing time remains within the same order of magnitude as those of the competing models. Although the IBWO optimization and repeated VMD decompositions introduce additional offline computational cost, IWVMD-DNFLinear provides a reasonable trade-off between forecasting performance and computational cost.
5. Conclusions
This study proposed IWVMD-DNFLinear, a stock price forecasting framework that integrates adaptive sequence decomposition with complementary linear prediction. In the IWVMD module, IBWO is employed to automatically optimize the number of modes K and the penalty coefficient of VMD, thereby reducing the dependence on manually specified decomposition parameters. The decomposed components are processed by parallel DLinear and NLinear branches, and their outputs are fused through a learnable mechanism.
Extensive experiments are conducted on four stock datasets under 1-step and 20-step forecasting settings. For single-step forecasting, IWVMD-DNFLinear achieves RMSE values of 5.1220 and 7.2708 on AAPL and AMZN, respectively, with corresponding values of 0.9728 and 0.9650. For multi-step forecasting on AAPL, the proposed model achieves an RMSE of 11.5046, an MAE of 8.6992, and an of 0.8538. Although RW remains superior on some datasets, IWVMD-DNFLinear consistently outperforms the trained comparison models across the main forecasting settings. Ablation experiments confirm the contributions of adaptive decomposition and dual-branch forecasting, while the DM tests further support the statistical significance of the observed improvements. These results indicate that the proposed framework provides a lightweight forecasting approach that balances predictive performance and model simplicity.
Several limitations should also be acknowledged. First, the current experiments are limited to a relatively small number of individual stocks, and the strong performance of RW on some datasets indicates that the advantage of the proposed framework may depend on the persistence characteristics and market conditions of different stock series. Second, although DNFLinear maintains a lightweight forecasting structure, the rolling VMD decomposition and IBWO parameter optimization introduce additional computational cost during preprocessing and parameter search. Future work will therefore evaluate the framework across broader financial markets and asset types, investigate more adaptive forecasting and fusion mechanisms under different market conditions, and improve the computational efficiency of the IWVMD optimization procedure. Incorporating additional market information, such as trading volume and other relevant financial variables, may also be explored to enhance forecasting robustness.
Author Contributions
Conceptualization, Y.X.; Methodology, Y.X.; Software, G.H.; Validation, T.S.; Formal analysis, C.H.; Investigation, C.H.; Resources, Y.H.; Data curation, G.H.; Writing—original draft, G.H.; Writing—review & editing, C.H. and Y.H.; Visualization, T.S.; Supervision, Y.X. and Y.H.; Funding acquisition, Y.X. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Fundamental Research Funds for the Central Universities under Grant No. CCNU24ZZ131.
Data Availability Statement
The data presented in this study are publicly available from Yahoo Finance at https://finance.yahoo.com/. These data were derived from the following resource available in the public domain Yahoo Finance (https://finance.yahoo.com/) and were accessed using the yfinance Python package.
Conflicts of Interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Appendix A. Hyperparameter Configurations of Comparison Models
All neural network baselines were trained using the Adam optimizer with a batch size of 256, a learning rate of , a maximum number of 80 epochs, and early stopping patience of 8. The hyperparameter configurations were selected according to the validation MSE under the same data partition and forecasting settings as the proposed method.
Table A1.
Main hyperparameter configurations of comparison models.
References
- Caginalp, G.; DeSantis, M. Nonlinear Price Dynamics of S&P 100 Stocks. Phys. A Stat. Mech. Its Appl. 2020, 547, 122067. [Google Scholar] [CrossRef] [Scilit]
- Shen, Y.; Dai, J.; Wang, M.; Arce, G.R. Stock Price Trend Forecasting Based on Multi-Channel Complementary Network with CEEMDAN Decomposition and Transformer Residual Prediction. Expert Syst. Appl. 2025, 299, 130028. [Google Scholar] [CrossRef] [Scilit]
- Ahangar, R.G.; Yahyazadehfar, M.; Pournaghshband, H. The Comparison of Methods Artificial Neural Network with Linear Regression Using Specific Variables for Prediction Stock Price in Tehran Stock Exchange. arXiv 2010, arXiv:1003.1457. [Google Scholar]
- Kristjanpoller, W.; Michell, K. A Stock Market Risk Forecasting Model through Integration of Switching Regime, ANFIS and GARCH Techniques. Appl. Soft Comput. 2018, 67, 106–116. [Google Scholar] [CrossRef] [Scilit]
- Leung, C.K.S.; MacKinnon, R.K.; Wang, Y. A machine learning approach for stock price prediction. In Proceedings of the 18th International Database Engineering & Applications Symposium, Porto, Portugal, 7–9 July 2014; pp. 274–277. [Google Scholar]
- Hoseinzade, E.; Haratizadeh, S. CNNpred: CNN-Based Stock Market Prediction Using a Diverse Set of Variables. Expert Syst. Appl. 2019, 129, 273–285. [Google Scholar] [CrossRef] [Scilit]
- Nelson, D.M.; Pereira, A.C.; De Oliveira, R.A. Stock Market’s Price Movement Prediction with LSTM Neural Networks. In Proceedings of the 2017 International Joint Conference on Neural Networks (IJCNN); IEEE: New York, NY, USA, 2017; pp. 1419–1426. [Google Scholar]
- Siami-Namini, S.; Tavakoli, N.; Namin, A.S. A Comparison of ARIMA and LSTM in Forecasting Time Series. In Proceedings of the 2018 17th IEEE International Conference on Machine Learning and Applications (ICMLA); IEEE: New York, NY, USA, 2018; pp. 1394–1401. [Google Scholar]
- Zhou, H.; Zhang, S.; Peng, J.; Zhang, S.; Li, J.; Xiong, H.; Zhang, W. Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting. In Proceedings of the AAAI Conference on Artificial Intelligence, Virtual, 2–9 February 2021; Volume 35, pp. 11106–11115. [Google Scholar]
- Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting. In Proceedings of the Advances in Neural Information Processing Systems, Virtual, 6–14 December 2021; Volume 34, pp. 22419–22430. [Google Scholar]
- Zhou, T.; Ma, Z.; Wen, Q.; Wang, X.; Sun, L.; Jin, R. FEDformer: Frequency Enhanced Decomposed Transformer for Long-Term Series Forecasting. In Proceedings of the International Conference on Machine Learning; PMLR: Brookline, MA, USA, 2022; pp. 27268–27286. [Google Scholar]
- Lin, Y.; Yan, Y.; Xu, J.; Liao, Y.; Ma, F. Forecasting Stock Index Price Using the CEEMDAN-LSTM Model. N. Am. J. Econ. Financ. 2021, 57, 101421. [Google Scholar] [CrossRef] [Scilit]
- Lin, Y.; Lin, Z.; Liao, Y.; Li, Y.; Xu, J.; Yan, Y. Forecasting the Realized Volatility of Stock Price Index: A Hybrid Model Integrating CEEMDAN and LSTM. Expert Syst. Appl. 2022, 206, 117736. [Google Scholar] [CrossRef] [Scilit]
- Wu, B.; Wang, L.; Zeng, Y.R. Interpretable wind speed prediction with multivariate time series and temporal fusion transformers. Energy 2022, 252, 123990. [Google Scholar] [CrossRef] [Scilit]
- Zhang, S.; Luo, J.; Wang, S.; Liu, F. Oil Price Forecasting: A Hybrid GRU Neural Network Based on Decomposition–Reconstruction Methods. Expert Syst. Appl. 2023, 218, 119617. [Google Scholar] [CrossRef] [Scilit]
- Dragomiretskiy, K.; Zosso, D. Variational Mode Decomposition. IEEE Trans. Signal Process. 2014, 62, 531–544. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Ma, W. A Hybrid Deep Learning Model with an Optimal Strategy Based on Improved VMD and Transformer for Short-Term Photovoltaic Power Forecasting. Energy 2024, 295, 131071. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Jin, X.; Xuan, Y.; Zhou, X.; Chen, W.; Wang, Y.X.; Yan, X. Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecasting. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; Volume 32. [Google Scholar]
- Zeng, A.; Chen, M.; Zhang, L.; Xu, Q. Are Transformers Effective for Time Series Forecasting? In Proceedings of the AAAI Conference on Artificial Intelligence, Washington, DC, USA, 7–14 February 2023; Volume 37, pp. 11121–11128. [Google Scholar]
- Li, Z.; Qi, S.; Li, Y.; Xu, Z. Revisiting long-term time series forecasting: An investigation on affine mapping. Acad. Ai Appl. 2026, 2. [Google Scholar] [CrossRef] [Scilit]
- Mallikarjuna, M. Comparison of Linear, Non-Linear and Frequency Domain Models in Forecasting Stock Returns of Emerging Markets. Wealth Int. J. Money Bank. Finance 2019, 8, 107. [Google Scholar]
- Astudillo, K.; Flores, M.; Soliz, M.; Ferreira, G.; Varela-Aldás, J. A Hybrid GAS-ATT-LSTM Architecture for Predicting Non-Stationary Financial Time Series. Mathematics 2025, 13, 2300. [Google Scholar] [CrossRef] [Scilit]
- Zhang, L.; Aggarwal, C.; Qi, G.J. Stock price prediction via discovering multi-frequency trading patterns. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Halifax, NS, Canada, 13–17 August 2017; pp. 2141–2149. [Google Scholar]
- Roy, S.S.; Mittal, D.; Basu, A.; Abraham, A. Stock Market Forecasting Using LASSO Linear Regression Model. In Proceedings of the First International Afro-European Conference for Industrial Advancement (AECIA 2014); Springer: Berlin/Heidelberg, Germany, 2015; pp. 371–381. [Google Scholar]
- Kavitha, S.; Varuna, S.; Ramya, R. A comparative analysis on linear regression and support vector regression. In Proceedings of the 2016 Online International Conference on Green Engineering and Technologies (IC-GET); IEEE: New York, NY, USA, 2016; pp. 1–5. [Google Scholar]
- Nair, B.B.; Mohandas, V.P.; Sakthivel, N.R. A Decision Tree–Rough Set Hybrid System for Stock Market Trend Prediction. Int. J. Comput. Appl. 2010, 6, 1–6. [Google Scholar] [CrossRef] [Scilit]
- Graves, A. Long Short-Term Memory. In Supervised Sequence Labelling with Recurrent Neural Networks; Springer: Berlin/Heidelberg, Germany, 2012; pp. 37–45. [Google Scholar]
- Baek, H. A CNN–LSTM Stock Prediction Model Based on Genetic Algorithm Optimization. Asia-Pac. Financ. Mark. 2024, 31, 205–220. [Google Scholar] [CrossRef] [Scilit]
- Yuan, C.; Ma, X.; Wang, H.; Zhang, C.; Li, X. COVID19-MLSF: A Multi-Task Learning-Based Stock Market Forecasting Framework During the COVID-19 Pandemic. Expert Syst. Appl. 2023, 217, 119549. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Shah, H.; Bhatt, V.; Shah, J. A Neoteric Technique Using ARIMA-LSTM for Time Series Analysis on Stock Market Forecasting. In Proceedings of the Second International Conference on Mathematical Modeling, Computational Intelligence Techniques and Renewable Energy (MMCITRE 2021); Springer: Berlin/Heidelberg, Germany, 2021; pp. 381–392. [Google Scholar]
- Huang, N.E.; Shen, Z.; Long, S.R.; Wu, M.C.; Shih, H.H.; Zheng, Q.; Yen, N.C.; Tung, C.C.; Liu, H.H. The Empirical Mode Decomposition and the Hilbert Spectrum for Nonlinear and Non-Stationary Time Series Analysis. Proc. R. Soc. Lond. Ser. A Math. Phys. Eng. Sci. 1998, 454, 903–995. [Google Scholar] [CrossRef] [Scilit]
- Novianty, I.; Baskoro, R.G.; Nurulhaq, M.I.; Nanda, M.A. Empirical mode decomposition of near-infrared spectroscopy signals for predicting oil content in palm fruits. Inf. Process. Agric. 2023, 10, 289–300. [Google Scholar] [CrossRef] [Scilit]
- Zare, M.; Nouri, N.M. End-effects mitigation in empirical mode decomposition using a new correlation-based expansion model. Mech. Syst. Signal Process. 2023, 194, 110205. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Liu, Q.; Hu, Y.; Liu, H. Multi-Feature Stock Price Prediction by LSTM Networks Based on VMD and TMFG. J. Big Data 2025, 12, 74. [Google Scholar] [CrossRef] [Scilit]
- Chen, Y.; Ye, N.; Zhang, W.; Lv, S.; Shao, L.; Li, X. VMD-MSAnet: A Multi-Scale Attention Network for Stock Series Prediction with Variational Mode Decomposition. Neurocomputing 2025, 650, 130854. [Google Scholar] [CrossRef] [Scilit]
- Calero, A.M.; Rasheed, A.; Lekkas, A.M. ChronoSHAP: Revealing Temporal Patterns from Transformers and LTSF-Linear Models in Time Series Forecasting. Knowl.-Based Syst. 2026, 331, 114802. [Google Scholar] [CrossRef] [Scilit]
- Rizvi, S.T.H.; Kanwal, N.; Naeem, M. Bridging Simplicity and Sophistication Using GLinear: A Novel Architecture for Enhanced Time Series Prediction. Digit. Signal Process. 2026, 170, 105702. [Google Scholar] [CrossRef] [Scilit]
- Luo, J.; Li, Q.; Piao, S. SLA-DLinear: Spatio-Temporal Lag Adapter DLinear for Interpretable and Scalable Multivariate Time Series Forecasting. Neurocomputing 2026, 697, 134200. [Google Scholar] [CrossRef] [Scilit]
- Hetherington, A.; Leones, J.L.; Le Clainche, S. LC-SVD-DLinear: A Low-Cost Physics-Based Hybrid Machine Learning Model for Data Forecasting Using Sparse Measurements. Expert Syst. Appl. 2026, 307, 131009. [Google Scholar] [CrossRef] [Scilit]
- Li, H.; Gao, F.; Zuo, N.; Gao, X.; Shao, T.; Pan, X. Forecasting China’s Carbon Prices Using a TVFEMD-DLinear Framework Incorporating Climate Policy Uncertainty. Environ. Impact Assess. Rev. 2026, 117, 108242. [Google Scholar] [CrossRef] [Scilit]
- Cyranka, J.; Haponiuk, S. Unified Long-Term Time-Series Forecasting Benchmark. Neurocomputing 2026, 696, 134091. [Google Scholar] [CrossRef] [Scilit]
- Zhong, C.; Li, G.; Meng, Z. Beluga whale optimization: A novel nature-inspired metaheuristic algorithm. Knowl.-Based Syst. 2022, 251, 109215. [Google Scholar] [CrossRef] [Scilit]
- Rahebi, J.; Esen, V. A Hybrid VMD-BFO-LSTM Method for Accurate Photovoltaic Power Forecasting: Enhancing Grid Integration of Renewable Energy. Ain Shams Eng. J. 2026, 17, 104254. [Google Scholar] [CrossRef] [Scilit]
- Hewamalage, H.; Ackermann, K.; Bergmeir, C. Forecast evaluation for data scientists: Common pitfalls and best practices. Data Min. Knowl. Discov. 2023, 37, 788–832. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Xia, Q.; Kang, W. MSTFNet: Multi-Scale Temporal Fusion Network with Frequency-Enhanced Attention for Financial Time Series Forecasting. Mathematics 2026, 14, 1391. [Google Scholar] [CrossRef] [Scilit]
- Diebold, F.; Mariano, R. Comparing Predictive Accuracy. J. Bus. Econ. Stat. 2002, 20, 134–144. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.











