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 22 April 2026

Deep Learning Models for Predicting Stock Closing Prices in the Saudi Stock Market

Areej Alhumaidi1 & Hoda A. Abdelhafez1,2

Journal of Computer Science, Volume 22, Issue 4, pp. 1370–1386 · doi.org/10.3844/jcssp.2026.1370.1386

1,355 accesses757 downloads0 citations (Crossref)Metrics
Cite Check for updates

Abstract

Financial time series data are inherently volatile and nonlinear, presenting considerable challenges in accurately forecasting stock market trends. This study aims to predict the closing prices of companies listed on the Saudi stock market by analyzing historical data spanning from 2013 to 2023. To this end, four deep learning models were employed-Long Short-Term Memory (LSTM), Bidirectional LSTM (Bi-LSTM), Gated Recurrent Units (GRU), and Convolutional Neural Networks (CNN). In addition, two hybrid models, GRU-LSTM and CNN-LSTM, were developed to enhance predictive performance. The models were evaluated using five key regression metrics: Mean Squared Error (MSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), Root Mean Squared Error (RMSE), and the coefficient of determination (R²). The findings indicate that the GRU and GRU-LSTM models demonstrated superior performance relative to the other models. The GRU model attained the lowest MSE and RMSE, demonstrating superior overall accuracy and robustness, while the GRU-LSTM model achieved the lowest MAE and MAPE, reflecting more precise pointwise and relative error estimates. Although the LSTM and CNN-LSTM models exhibited reasonable performance, the Bi-LSTM and CNN models were comparatively less effective. This study underscores the efficacy of deep learning, particularly GRU-based and hybrid architectures, in forecasting stock prices with high accuracy. The results offer valuable insights for investors and financial institutions operating within the Saudi stock market, demonstrating the practical implications of applying advanced deep learning methodologies. Moreover, the study contributes to the broader body of literature on financial forecasting and supports the development of more informed, data-driven investment strategies.

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

Alhumaidi, A. & Abdelhafez, H. A. (2026). Deep Learning Models for Predicting Stock Closing Prices in the Saudi Stock Market. Journal of Computer Science, 22(4), 1370–1386. https://doi.org/10.3844/jcssp.2026.1370.1386

Licence
CC BY 4.0
Issue
Volume 22, Issue 4
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Deep Learning Models for Predicting Stock Closing Prices in the Saudi Stock MarketJournal of Computer Science · Volume 22, Issue 4 · pp. 1370–1386 · CC BY 4.0Download