Recurrent Neural Networks in Time-Series Forecasting: A Deep Learning Approach to Stock Market Prediction

Authors

  • Hadi Abdullah Faculty of Computer Science, Lahore Garrison University Author
  • Aamna Tariq M.Phil in Statistics, Government College University, Lahore & Data analyst, Mindrind, Johar Town Q Block, Lahore Author
  • Ijaz khan Department of Avionics Engineering, College of Aeronautical Engineering (CAE) National University of sciences and Technology (NUST) Author
  • Rizwan Iqbal Department of Telecommunication Engineering, Dawood University of Engineering and Technology, Karachi Author
  • Faisal Khan Department of Telecommunication Engineering Dawood University of Engineering and Technology, Karachi Author
  • Arshad iqbal Department of Computer Science, Khushal Khan Khattak Univversity Karak Author

DOI:

https://doi.org/10.63075/24bjb734

Abstract

Stock market prediction has been a grand challenge due to dynamic nature, non-linearity and volatility of the financial markets. Traditional statistical models have proved useful historically, but are less likely to successfully model the complex temporal dependencies in stock price data. In recent years there was a breakthrough in deep learning, namely Recurrent Neural Networks (RNNs), which opens up new opportunities in time-series forecasting. The purpose of the work is to investigate how three variations of RNN-based models, such as Simple RNN, Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU), perform on the task of predicting the direction of the stock market using the historical data of the S&P 500 index. The models were trained and tested through a pure experimental design that factored in a 60-day look-back window, normalization, and sequence modeling across diverse performance measures that include Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and Directional Accuracy (DA). This is rather clear in the findings that the LSTM and GRU networks are significantly superior to the Simple RNN in predictive power and robustness to varying market environments. LSTM in particular generalized the most, over 81 percent of its predictions fell within 2 percent error margin and directional accuracy of 72.4 percent on the test set. In addition to enhancing the applicability of deep RNN architectures in financial prediction, the results also imply that they can be applicable to algorithmic trading and investment decisions systems. Future research directions might be observed in the sphere of multi-modal data source integration and model interpretability, which would allow to advance the domain of deep learning applicability in finance further.

Keywords:  Recurrent Neural Networks, Long Short-Term Memory, Gated Recurrent Unit, Stock Market Forecasting, Deep Learning, Time-Series Prediction, Financial Markets, Algorithmic Trading, Directional Accuracy, Predictive Modeling

Downloads

Download data is not yet available.

Additional Files

Published

2025-06-15

How to Cite

Recurrent Neural Networks in Time-Series Forecasting: A Deep Learning Approach to Stock Market Prediction. (2025). Annual Methodological Archive Research Review, 3(6), 72-101. https://doi.org/10.63075/24bjb734