Stock Market Analysis and Prediction Using Deep Learning

Authors

  • Safiullah Muhammad Student
  • Madiha Sher Department of Computer Systems Engineering, University of Engineering and Technology, Peshawar, Pakistan
  • Muhammad Kashan Department of Computer Systems Engineering, University of Engineering and Technology, Peshawar, Pakistan
  • Adeel Rehman Department of Computer Systems Engineering, University of Engineering and Technology, Peshawar, Pakistan
  • Yasir Saleem Afridi Department of Computer Systems Engineering, University of Engineering and Technology, Peshawar, Pakistan.

Keywords:

Predictive Modeling, Stock Market, Deep Learning, LSTM, Data Analysis, Financial Technology

Abstract

The stock market is a complex system influenced by various factors, including economic indicators, geopolitical events, and investor sentiments. Traditional methods of stock market analysis often rely on statistical models and technical indicators, which may struggle to capture the intricate patterns and non-linear relationships present in financial data. This paper is about an innovative application which is designed to fill the gap between traditional stock market analysis and cutting-edge predictive modeling. The paper not only addresses the challenges associated with fragmented data and delayed analysis but also opens avenues for continuous monitoring and optimization of predictive models in response to dynamic market conditions. These models are seamlessly integrated into the application developed in the Analysis Phase, providing users with real-time predictions and valuable insights. Many machines learning (ML) and deep learning (DL) techniques have demonstrated to perform well in stock price prediction by prior research, and most people regard DL techniques them as one of the most accurate prediction methods, particularly when used for longer prediction ranges. In this research, after performing pre-processing steps like data normalization, we have employed an LSTM and GRU based models. Through training and testing, we determined the ideal settings for the optimizer, dropout, batch size, epochs, and other parameters. The outcome of comparing the LSTM network model with GRU we concluded that LSTM it is not suitable for short-term forecasting, and performs well for long-term forecasting whereas GRU performs well in both cases.

References

M. R. Hassan and B. Nath, “Stock market forecasting using Hidden Markov Model: A new approach,” Proc. - 5th Int. Conf. Intell. Syst. Des. Appl. 2005, ISDA ’05, vol. 2005, pp. 192–196, 2005, doi: 10.1109/ISDA.2005.85.

T. Fischer and C. Krauss, “Deep learning with long short-term memory networks for financial market predictions,” Eur. J. Oper. Res., vol. 270, no. 2, pp. 654–669, Oct. 2018, doi: 10.1016/J.EJOR.2017.11.054.

J. Martinez, B. Qian, S. Wang, and H. Zou, “Local Public Finance in China: Revenues of Local Governments,” CEMA Work. Pap., vol. 49, no. 1, pp. 1–21, 2006, doi: 10.1086/452488.

“Stock Prediction Based on Optimized LSTM and GRU Models.” Accessed: May 22, 2024. [Online]. Available: https://www.hindawi.com/journals/sp/2021/4055281/

M. Qiu and Y. Song, “Predicting the Direction of Stock Market Index Movement Using an Optimized Artificial Neural Network Model,” PLoS One, vol. 11, no. 5, p. e0155133, May 2016, doi: 10.1371/JOURNAL.PONE.0155133.

“Stock Market Prediction Using Machine Learning’.” Accessed: May 22, 2024. [Online]. Available: https://www.researchgate.net/publication/328930285_Stock_Market_Prediction_Using_Machine_Learning

S. Patel, A., Patel, D., & Yadav, “Prediction of stock market using artificial intelligence,” Proc. 4th Int. Conf. Adv. Sci. Technol., [Online]. Available: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3871022

S. S. Patil, P. K. Patidar, and A. P. M. Jain, “A Survey on Stock Market Prediction Using SVM,” 2016.

B. Weng, L. Lu, X. Wang, F. M. Megahed, and W. Martinez, “Predicting short-term stock prices using ensemble methods and online data sources,” Expert Syst. Appl., vol. 112, pp. 258–273, Dec. 2018, doi: 10.1016/J.ESWA.2018.06.016.

S. McNally, J. Roche, and S. Caton, “Predicting the Price of Bitcoin Using Machine Learning,” Proc. - 26th Euromicro Int. Conf. Parallel, Distrib. Network-Based Process. PDP 2018, pp. 339–343, Jun. 2018, doi: 10.1109/PDP2018.2018.00060.

F. Liu, C. Weng, and H. Yu, “Advancing Clinical Research Through Natural Language Processing on Electronic Health Records: Traditional Machine Learning Meets Deep Learning,” pp. 357–378, 2019, doi: 10.1007/978-3-319-98779-8_17.

M. Nabipour, P. Nayyeri, H. Jabani, and A. Mosavi, “Deep learning for Stock Market Prediction,” Entropy 2020, Vol. 22, Page 840, vol. 22, no. 8, p. 840, Mar. 2020, doi: 10.3390/e22080840.

Downloads

Published

2024-06-05

How to Cite

Muhammad, S., Madiha Sher, Muhammad Kashan, Adeel Rehman, & Yasir Saleem Afridi. (2024). Stock Market Analysis and Prediction Using Deep Learning. International Journal of Innovations in Science & Technology, 6(5), 329–337. Retrieved from https://journal.50sea.com/index.php/IJIST/article/view/833