[Paper Review] Reinforcement Learning based dynamic weighing of Ensemble Models for Time Series Forecasting
This paper proposes a reinforcement learning (RL)-based method for dynamically adjusting ensemble model weights in time series forecasting, enabling adaptive response to local data features. By treating weight adjustment as a sequential decision problem, the RL agent learns to minimize prediction error in real time, achieving a 44.1% improvement in NMSE over the next best method (0.143 vs. 0.256), demonstrating superior accuracy and adaptability in online settings.
Ensemble models are powerful model building tools that are developed with a focus to improve the accuracy of model predictions. They find applications in time series forecasting in varied scenarios including but not limited to process industries, health care, and economics where a single model might not provide optimal performance. It is known that if models selected for data modelling are distinct (linear/non-linear, static/dynamic) and independent (minimally correlated models), the accuracy of the predictions is improved. Various approaches suggested in the literature to weigh the ensemble models use a static set of weights. Due to this limitation, approaches using a static set of weights for weighing ensemble models cannot capture the dynamic changes or local features of the data effectively. To address this issue, a Reinforcement Learning (RL) approach to dynamically assign and update weights of each of the models at different time instants depending on the nature of data and the individual model predictions is proposed in this work. The RL method implemented online, essentially learns to update the weights and reduce the errors as the time progresses. Simulation studies on time series data showed that the dynamic weighted approach using RL learns the weight better than existing approaches. The accuracy of the proposed method is compared with an existing approach of online Neural Network tuning quantitatively through normalized mean square error(NMSE) values.
Motivation & Objective
- To address the limitation of static weighting in ensemble models, which fails to adapt to local data features and changing model performance over time.
- To develop an online, dynamic weighting mechanism that updates model weights in real time based on prediction error and data context.
- To improve forecasting accuracy in time series by leveraging RL to optimize ensemble weights adaptively, rather than using fixed or batch-optimized weights.
- To enable real-time model selection and weight adjustment, allowing identification of the most relevant model at any time instant.
- To demonstrate the feasibility and superiority of RL-based dynamic weighting in univariate time series forecasting compared to static and online learning baselines.
Proposed method
- The method formulates the dynamic weight adjustment as a Markov Decision Process (MDP), where the state is defined by the prediction error of individual models and the current time step.
- The action space consists of the weights assigned to each model in the ensemble, with the goal of minimizing the overall prediction error.
- A deep Q-network (DQN) is used to approximate the Q-function, with the network input being the current state (prediction errors) and output being the Q-values for each action (weight vector).
- The reward function is defined as the negative of the normalized mean square error (NMSE) at each time step, encouraging the agent to minimize error.
- The model is trained online, updating weights after each new data sample using experience replay and target networks to stabilize learning.
- The final weights are applied to the ensemble prediction, with the system continuously adapting as new data arrives.
Experimental results
Research questions
- RQ1Can reinforcement learning effectively learn dynamic, time-varying weights for ensemble models in time series forecasting?
- RQ2How does the performance of RL-based dynamic weighting compare to static weighting and online neural network tuning in terms of prediction accuracy?
- RQ3Can the RL agent adapt to local features in time series data, such as non-linear trends or periodicities, by adjusting model weights accordingly?
- RQ4What is the computational overhead of the RL-based method, and is it suitable for real-time online forecasting applications?
- RQ5Can the RL method identify the most relevant model at any given time instant, providing interpretability in ensemble decisions?
Key findings
- The proposed RL-based dynamic weighting method achieved an NMSE of 0.143 on the test set, significantly outperforming the next best method, online neural network tuning, which had an NMSE of 0.256.
- The method reduced the NMSE by 44.1% compared to the online NN baseline, demonstrating substantial improvement in forecasting accuracy.
- Among individual models, the ANN performed best with an NMSE of 0.26, but the ensemble with RL weighting surpassed it, indicating effective model combination.
- The computational time for weight computation using RL was 0.2 seconds per sample on average, which is feasible for real-time applications with sampling times below 0.2 seconds.
- The RL agent successfully adapted to local data features, as evidenced by the dynamic weight updates and closer alignment of predictions with true values in both training and test phases.
- The method enables real-time model identification, as the learned weights at each time step reveal which model is most influential at that instant.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.