A Dynamic Lifelong Learning Network for Real-Time Stock Prediction With Reinforcement Tuning
- 1 Department of Computing and Informatics, School of Pure and Applied Sciences, Botswana International University of Science and Technology, Palapye, Botswana
Abstract
Companies and investors require accurate market forecasting to make more informed decisions. Traditional methods for predicting stock market performance have become less useful considering the dynamic and volatile nature that characterizes stock markets today. In this paper, we propose an innovative Dynamic Lifelong Learning Network for stock market prediction. The model incorporates a hybrid convolutional long short-term memory with an attention mechanism for spatiotemporal feature extraction. To address the problem of static batch processing common in most current machine learning techniques in use, we employ reinforcement learning through a Deep Q-Network for real-time adaptation. We then integrated Elastic Weight Consolidation to address the problem of catastrophic forgetting. The model inputs a comprehensive set of structured features, including historical OHLCV data, technical indicators, and macroeconomic variables such as interest rates and the Consumer Price Index. We applied principal component analysis to optimize dimensionality. The model was trained and tested on APPL data extracted from Yahoo Finance for the period 2010-2023. Macroeconomic features were extracted from the Federal Reserve Economic Data for the same period. Ablation studies confirmed the hypothesis that add-on features such as the attention network and RL-EWC improve the prediction capacity of our model by at least 12.35%. Comparison of our model with literature-identified baselines showed that our model performed much better, with an R² of 0.967±0.01 and an MAE of 3.22±0.27. Generalization testing on the SPY ticker, a key representative for the S&P 500 index, shows that the model is robust.
DOI: https://doi.org/10.3844/jcssp.2026.420.434
Copyright: © 2026 Talent Mawere, Selvaraj Rajalakshmi, Venu Madhav Kuthadi and Otlhapile Dinakanyane. This is an open access article distributed under the terms of the
Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
- 41 Views
- 8 Downloads
- 0 Citations
Download
Keywords
- Attention Networks
- Dynamic Lifelong Learning Network
- Elastic Weight Consolidation
- Fisher Information Matrix
- Hybrid Convolutional Long Short-Term Memory
- Stock Prediction
- Reinforcement Learning