Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Predicting Stock Closing Prices in Emerging Markets with Transformer Neural Networks: The Saudi Stock Exchange Case

Author 1: Nadeem Malibari Author 2: Iyad Katib Author 3: Rashid Mehmood
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 12, No. 12 · Published 2021 · Cited by 33

DOI: https://doi.org/10.14569/IJACSA.2021.01212106

Abstract

Deep learning has transformed many fields includ-ing computer vision, self-driving cars, product recommendations, behaviour analysis, natural language processing (NLP), and medicine, to name a few. The financial sector is no surprise where the use of deep learning has produced one of the most lucrative applications. This research proposes a novel fintech machine learning method that uses Transformer neural networks for stock price predictions. Transformers are relatively new and while have been applied for NLP and computer vision, they have not been explored much with time-series data. In our method, self-attention mechanisms are utilized to learn nonlinear patterns and dynamics from time-series data with high volatility and nonlinearity. The model makes predictions about closing prices for the next trading day by taking into account various stock price inputs. We used pricing data from the Saudi Stock Exchange (Tadawul) to develop this model. We validated our model using four error evaluation metrics. The applicability and usefulness of our model to fintech are demonstrated by its ability to predict closing prices with a probability above 90%. To the best of our knowledge, this is the first work where transformer networks are used for stock price prediction. Our work is expected to make significant advancements in fintech and other fields depending on time-series forecasting.

Keywords

How to Cite this Article

Malibari, N., Katib, I., & Mehmood, R. (2021). Predicting Stock Closing Prices in Emerging Markets with Transformer Neural Networks: The Saudi Stock Exchange Case. International Journal of Advanced Computer Science and Applications, 12(12). https://doi.org/10.14569/IJACSA.2021.01212106

Malibari, Nadeem, et al.. "Predicting Stock Closing Prices in Emerging Markets with Transformer Neural Networks: The Saudi Stock Exchange Case." International Journal of Advanced Computer Science and Applications, vol. 12, no. 12, 2021, https://doi.org/10.14569/IJACSA.2021.01212106.

@article{Malibari2021,
  title     = {Predicting Stock Closing Prices in Emerging Markets with Transformer Neural Networks: The Saudi Stock Exchange Case},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {12},
  number    = {12},
  year      = {2021},
  publisher = {The Science and Information Organization},
  author    = {Nadeem Malibari and Iyad Katib and Rashid Mehmood},
  doi       = {10.14569/IJACSA.2021.01212106},
  url       = {https://doi.org/10.14569/IJACSA.2021.01212106}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.