Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 20 February 2026

A Dynamic Lifelong Learning Network for Real-Time Stock Prediction With Reinforcement Tuning

Talent Mawere1, Selvaraj Rajalakshmi1, Venu Madhav Kuthadi1 & Otlhapile Dinakanyane1

Journal of Computer Science, Volume 22, Issue 2, pp. 420–434 · doi.org/10.3844/jcssp.2026.420.434

1,822 accesses1,057 downloads0 citations (Crossref)Metrics
Cite Check for updates

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.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Mawere, T., Rajalakshmi, S., Kuthadi, V. M. & Dinakanyane, O. (2026). A Dynamic Lifelong Learning Network for Real-Time Stock Prediction With Reinforcement Tuning. Journal of Computer Science, 22(2), 420–434. https://doi.org/10.3844/jcssp.2026.420.434

Licence
CC BY 4.0
Issue
Volume 22, Issue 2
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
A Dynamic Lifelong Learning Network for Real-Time Stock Prediction With Reinforcement TuningJournal of Computer Science · Volume 22, Issue 2 · pp. 420–434 · CC BY 4.0Download