IDEAS home Printed from https://ideas.repec.org/a/abq/ijist1/v6y2024i5p329-337.html

Stock Market Analysis and Prediction Using Deep Learning

Author

Listed:
  • Muhammad Safiullah, Madiha Sher,MuhammadKashan,Adeel Rehman, Yasir Saleem Afridi

    (Department of Computer Systems Engineering, University of Engineering and Technology, Peshawar,Pakistan)

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.

Suggested Citation

  • Muhammad Safiullah, Madiha Sher,MuhammadKashan,Adeel Rehman, Yasir Saleem Afridi, 2024. "Stock Market Analysis and Prediction Using Deep Learning," International Journal of Innovations in Science & Technology, 50sea, vol. 6(5), pages 329-337, June.
  • Handle: RePEc:abq:ijist1:v:6:y:2024:i:5:p:329-337
    as

    Download full text from publisher

    File URL: https://journal.50sea.com/index.php/IJIST/article/view/833/1402
    Download Restriction: no

    File URL: https://journal.50sea.com/index.php/IJIST/article/view/833
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Jorge Martinez & Baoyun Qian & Shuilin Wang & Heng-fu Zou, 2006. "Local Public Finance in China: Challenges and Policy Options," CEMA Working Papers 549, China Economics and Management Academy, Central University of Finance and Economics.
    2. Jorge Martinez & Baoyun Qian & Shuilin Wang & Heng-fu Zou, 2006. "Local Public Finance in China: Revenues of Local Governments," CEMA Working Papers 551, China Economics and Management Academy, Central University of Finance and Economics.
    3. Mojtaba Nabipour & Pooyan Nayyeri & Hamed Jabani & Amir Mosavi, 2020. "Deep learning for Stock Market Prediction," Papers 2004.01497, arXiv.org.
    4. Jorge Martinez & Baoyun Qian & Shuilin Wang & Li Zhang & Heng-fu Zou, 2006. "Local Public Finance in China: Policy Options," CEMA Working Papers 554, China Economics and Management Academy, Central University of Finance and Economics.
    5. Jorge Martinez & Baoyun Qian & Shuilin Wang & Heng-fu Zou, 2006. "Local Public Finance in China: Intergovernmental transfers," CEMA Working Papers 552, China Economics and Management Academy, Central University of Finance and Economics.
    6. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Yong Zhang & Jianping Qin & Bocun Lin & Yongbin Su & Xingyu Yang, 2026. "Wavelet Denoising and Double-Layer Feature Selection for Stock Trend Prediction," Computational Economics, Springer;Society for Computational Economics, vol. 67(2), pages 1203-1231, February.
    2. Mufhumudzi Muthivhi & Terence L. van Zyl, 2022. "Fusion of Sentiment and Asset Price Predictions for Portfolio Optimization," Papers 2203.05673, arXiv.org.
    3. Li-Chen Cheng & Yu-Hsiang Huang & Ming-Hua Hsieh & Mu-En Wu, 2021. "A Novel Trading Strategy Framework Based on Reinforcement Deep Learning for Financial Market Predictions," Mathematics, MDPI, vol. 9(23), pages 1-16, November.
    4. Jorge Martinez-Vazquez & Baoyun Qiao & Li Zhang, 2007. "The Role of Provincial Policies in Fiscal Equalization Outcomes in China," International Center for Public Policy Working Paper Series, at AYSPS, GSU paper0705, International Center for Public Policy, Andrew Young School of Policy Studies, Georgia State University.
    5. Geng, Ru & Zhang, Hong-Kun & Gao, Yixian & Yuan, Gangnan, 2025. "Decoding global economic dynamic: A graph-based examination of contemporary ETF markets," Chaos, Solitons & Fractals, Elsevier, vol. 201(P3).
    6. Namitha Yeldho & Dany Thomas & Vimal George Kurian & Chandralekha Arathy & Ajithakumari Vijayappan Nair Biju, 2025. "Are machine learning models effective in predicting emerging markets? Investigating the accuracy of predictions in emerging stock market indices," Quality & Quantity: International Journal of Methodology, Springer, vol. 59(1), pages 839-904, February.
    7. Wei Dai & Yuan An & Wen Long, 2021. "Price change prediction of ultra high frequency financial data based on temporal convolutional network," Papers 2107.00261, arXiv.org.
    8. repec:bjc:journl:v:12:y:2025:i:10:p:2945-2962 is not listed on IDEAS
    9. Ahmet Murat Ozbayoglu & Mehmet Ugur Gudelek & Omer Berat Sezer, 2020. "Deep Learning for Financial Applications : A Survey," Papers 2002.05786, arXiv.org.
    10. Shao, Zhen & Zheng, Qingru & Yang, Shanlin & Gao, Fei & Cheng, Manli & Zhang, Qiang & Liu, Chen, 2020. "Modeling and forecasting the electricity clearing price: A novel BELM based pattern classification framework and a comparative analytic study on multi-layer BELM and LSTM," Energy Economics, Elsevier, vol. 86(C).
    11. Erdinc Akyildirim & Oguzhan Cepni & Shaen Corbet & Gazi Salah Uddin, 2023. "Forecasting mid-price movement of Bitcoin futures using machine learning," Annals of Operations Research, Springer, vol. 330(1), pages 553-584, November.
    12. Yang Dexiang & Mu Shengdong & Yunjie Liu & Gu Jijian & Lien Chaolung, 2023. "An Improved Deep-Learning-Based Financial Market Forecasting Model in the Digital Economy," Mathematics, MDPI, vol. 11(6), pages 1-18, March.
    13. Xiaohua Zeng & Changzhou Liang & Qian Yang & Fei Wang & Jieping Cai, 2025. "Enhancing stock index prediction: A hybrid LSTM-PSO model for improved forecasting accuracy," PLOS ONE, Public Library of Science, vol. 20(1), pages 1-31, January.
    14. Haithem Awijen & Hachmi Ben Ameur & Zied Ftiti & Waƫl Louhichi, 2025. "Forecasting oil price in times of crisis: a new evidence from machine learning versus deep learning models," Annals of Operations Research, Springer, vol. 345(2), pages 979-1002, February.
    15. Abraham Itzhak Weinberg, 2025. "Hybrid Quantum-Classical Ensemble Learning for S\&P 500 Directional Prediction," Papers 2512.15738, arXiv.org.
    16. Sarbjit Singh Oberoi & Sayan Banerjee, 2023. "Bankruptcy Prediction of Indian Banks Using Advanced Analytics," Economic Studies journal, Bulgarian Academy of Sciences - Economic Research Institute, issue 4, pages 22-41.
    17. Kamaladdin Fataliyev & Aneesh Chivukula & Mukesh Prasad & Wei Liu, 2021. "Stock Market Analysis with Text Data: A Review," Papers 2106.12985, arXiv.org, revised Jul 2021.
    18. Zhenya Liu & Nawazish Mirza & Rongyu You & Yaosong Zhan, 2026. "Understanding the complexity of futures markets investing in China: evidence from deep learning techniques," Annals of Operations Research, Springer, vol. 357(1), pages 409-440, February.
    19. Liu Jieni, 2026. "A Search-Then-Forecast Transformer Framework for Mid-Term Stock Price Prediction: An Empirical Case Study on the Chinese A-Share Market," Discussion Papers in Economics and Business 26-06, Osaka University, Graduate School of Economics.
    20. Tianyu Zhou & Pinqiao Wang & Yilin Wu & Hongyang Yang, 2024. "FinRobot: AI Agent for Equity Research and Valuation with Large Language Models," Papers 2411.08804, arXiv.org.
    21. Firat Melih Yilmaz & Engin Yildiztepe, 2024. "Statistical Evaluation of Deep Learning Models for Stock Return Forecasting," Computational Economics, Springer;Society for Computational Economics, vol. 63(1), pages 221-244, January.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:abq:ijist1:v:6:y:2024:i:5:p:329-337. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Iqra Nazeer (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.