IDEAS home Printed from https://ideas.repec.org/a/abq/ijist1/v6y2024i5p329-337.html
   My bibliography  Save this article

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: Revenues of Local Governments," CEMA Working Papers 551, China Economics and Management Academy, Central University of Finance and Economics.
    2. Mojtaba Nabipour & Pooyan Nayyeri & Hamed Jabani & Amir Mosavi, 2020. "Deep learning for Stock Market Prediction," Papers 2004.01497, arXiv.org.
    3. 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.
    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. 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.
    6. 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.
    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. Mufhumudzi Muthivhi & Terence L. van Zyl, 2022. "Fusion of Sentiment and Asset Price Predictions for Portfolio Optimization," Papers 2203.05673, arXiv.org.
    2. 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.
    3. 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.
    4. Priya Singh & Manoj Jha, 2024. "Portfolio Optimization Using Novel EW-MV Method in Conjunction with Asset Preselection," Computational Economics, Springer;Society for Computational Economics, vol. 64(6), pages 3683-3712, December.
    5. Jinho Lee & Raehyun Kim & Yookyung Koh & Jaewoo Kang, 2019. "Global Stock Market Prediction Based on Stock Chart Images Using Deep Q-Network," Papers 1902.10948, arXiv.org.
    6. Cassidy K. Buhler & Hande Y. Benson, 2023. "Efficient Solution of Portfolio Optimization Problems via Dimension Reduction and Sparsification," Papers 2306.12639, arXiv.org.
    7. Illia Baranochnikov & Robert Ślepaczuk, 2022. "A comparison of LSTM and GRU architectures with novel walk-forward approach to algorithmic investment strategy," Working Papers 2022-21, Faculty of Economic Sciences, University of Warsaw.
    8. Wenbin Hu & Junzi Zhou, 2025. "Building Technical Analysis Strategies Using Multivariate Longitudinal and Time-to-Event Data in Stock Markets," Computational Economics, Springer;Society for Computational Economics, vol. 66(3), pages 1911-1942, September.
    9. Deniz Can Yıldırım & Ismail Hakkı Toroslu & Ugo Fiore, 2021. "Forecasting directional movement of Forex data using LSTM with technical and macroeconomic indicators," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-36, December.
    10. Tony Guida & Guillaume Coqueret, 2019. "Ensemble Learning Applied to Quant Equity: Gradient Boosting in a Multifactor Framework," Post-Print hal-02311104, HAL.
    11. Shanka Subhra Mondal & Sharada Prasanna Mohanty & Benjamin Harlander & Mehmet Koseoglu & Lance Rane & Kirill Romanov & Wei-Kai Liu & Pranoot Hatwar & Marcel Salathe & Joe Byrum, 2019. "Investment Ranking Challenge: Identifying the best performing stocks based on their semi-annual returns," Papers 1906.08636, arXiv.org.
    12. László Vancsura & Tibor Tatay & Tibor Bareith, 2025. "Navigating AI-Driven Financial Forecasting: A Systematic Review of Current Status and Critical Research Gaps," Forecasting, MDPI, vol. 7(3), pages 1-49, July.
    13. Liyun Su & Dan Li & Dongyang Qiu, 2025. "BLS-QLSTM: a novel hybrid quantum neural network for stock index forecasting," Humanities and Social Sciences Communications, Palgrave Macmillan, vol. 12(1), pages 1-15, December.
    14. Julien Chevallier & Dominique Guégan & Stéphane Goutte, 2021. "Is It Possible to Forecast the Price of Bitcoin?," Forecasting, MDPI, vol. 3(2), pages 1-44, May.
    15. Barua, Ronil & Sharma, Anil K., 2022. "Dynamic Black Litterman portfolios with views derived via CNN-BiLSTM predictions," Finance Research Letters, Elsevier, vol. 49(C).
    16. Bartosz Bieganowski & Robert 'Slepaczuk, 2024. "Supervised Autoencoders with Fractionally Differentiated Features and Triple Barrier Labelling Enhance Predictions on Noisy Data," Papers 2411.12753, arXiv.org, revised Nov 2024.
    17. Mohammed El Amine Senoussaoui & Mostefa Brahami & Issouf Fofana, 2021. "Transformer Oil Quality Assessment Using Random Forest with Feature Engineering," Energies, MDPI, vol. 14(7), pages 1-15, March.
    18. Rad, Hossein & Low, Rand Kwong Yew & Miffre, Joëlle & Faff, Robert, 2023. "The commodity risk premium and neural networks," Journal of Empirical Finance, Elsevier, vol. 74(C).
    19. YingShuang Tan & Wanshuo Yang & Sid Suntrayuth & Xin Yu & Stavros Sindakis & Saloome Showkat, 2024. "RETRACTED ARTICLE: Optimizing Stock Portfolio Performance with a Combined RG1-TOPSIS Model: Insights from the Chinese Market," Journal of the Knowledge Economy, Springer;Portland International Center for Management of Engineering and Technology (PICMET), vol. 15(2), pages 9029-9052, June.
    20. Elior Nehemya & Yael Mathov & Asaf Shabtai & Yuval Elovici, 2020. "Taking Over the Stock Market: Adversarial Perturbations Against Algorithmic Traders," Papers 2010.09246, arXiv.org, revised Sep 2021.

    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.