skip to main content
10.1145/3695080.3695125acmotherconferencesArticle/Chapter ViewAbstractPublication PagesiccbdConference Proceedingsconference-collections
research-article

Enhancing Stock Market Forecasting: A Hybrid Machine Learning Approach Integrating LSTM and GRU Models

Published: 12 October 2024 Publication History

Abstract

In this study, we address the limitations of traditional methods for stock price prediction by introducing an innovative hybrid machine learning model that integrates Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) networks. This model strategically layers LSTM and GRU modules with dropout regularization to harness both long and short-term dependencies in the data, concluding with a dense layer network that fine-tunes the prediction before arriving at the output layer. Utilizing market data from Yahoo Finance spanning from 2014 to 2024, the model was tested on significant market players including Tesla (TSLA), Apple (AAPL), Amazon (AMZN), and the S&P 500 index. The hybrid LSTM-GRU model excels in accuracy, outstripping standalone models in stock price forecasts. Metrics for Tesla showed RMSE at 0.1762 and MAPE at 0.0178%, Apple had RMSE of 0.1657 and MAPE of 0.0171%, Amazon recorded RMSE of 0.1892 with MAPE of 0.0191%, and the S&P 500 index exhibited RMSE of 0.2440 with a MAPE of 0.0125%, confirming the model's superior predictive performance.

References

[1]
Nandi B, Jana S, Das K P. Machine learning-based approaches for financial market prediction: A comprehensive review. Journal of AppliedMath, 2023, 1(2).
[2]
Snow D. Financial event prediction using machine learning. Available at SSRN 3481555, 2019.
[3]
Grachev O Y. Application of time series models (ARIMA, GARCH, and ARMA-GARCH) for stock market forecasting. 2017.
[4]
Xu S. The Research on Stock Price Prediction Based on Machine Learning Model, Emerging Trends in Intelligent and Interactive Systems and Applications: Proceedings of the 5th International Conference on Intelligent, Interactive Systems and Applications (IISA2020). Springer International Publishing, 2021: 204-210.
[5]
Dhull M. Machine learning techniques and methodology analysis for stock market price prediction. Journal of AppliedMath, 2021, 2 (52).
[6]
Das S K, Saha S, DasGupta S. Prediction of Stock Price Using Machine Learning, Applications of Networks, Sensors and Autonomous Systems Analytics: Proceedings of ICANSAA 2020. Springer Singapore, 2022: 141-155.
[7]
Wen M, Li P, Zhang L, Stock market trend prediction using high-order information of time series. Ieee Access, 2019, 7: 28299-28308.
[8]
Hirey M, Unagar J, Prabhu K, Analysis of stock price prediction using machine learning algorithms, 2022 International Conference for Advancement in Technology. 2022: 1-4.
[9]
Raipitam S K, Kumar S, Dhanani T, Comparative Study on Stock Market Prediction using Generic CNN-LSTM and Ensemble Learning, 2023 International Conference on Network, Multimedia and Information Technology. 2023: 1-6.
[10]
Buachuen W, Kantavat P. Automated Stock Trading System using Technical Analysis and Deep Learning Models, Proceedings of the 13th International Conference on Advances in Information Technology. 2023: 1-9.
[11]
Sharma N, Juneja A. Combining of random forest estimates using LSboost for stock market index prediction, 2017 2nd International conference for convergence in technology IEEE, 2017: 1199-1202.
[12]
Guo Y, Han S, Shen C, An adaptive SVR for high-frequency stock price forecasting. IEEE Access, 2018, 6: 11397-11404.
[13]
Liu Y, Wang Z, Zheng B. Application of regularized GRU-LSTM model in stock price prediction, 2019 IEEE 5th International Conference on Computer and Communications (ICCC). IEEE, 2019: 1886-1890.
[14]
Sun J. A stock selection method based on earning yield forecast using sequence prediction models. arXiv preprint arXiv:1905.04842, 2019.

Index Terms

  1. Enhancing Stock Market Forecasting: A Hybrid Machine Learning Approach Integrating LSTM and GRU Models

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Other conferences
    ICCBD '24: Proceedings of the 2024 International Conference on Cloud Computing and Big Data
    July 2024
    647 pages
    ISBN:9798400710223
    DOI:10.1145/3695080
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 12 October 2024

    Permissions

    Request permissions for this article.

    Check for updates

    Qualifiers

    • Research-article
    • Research
    • Refereed limited

    Conference

    ICCBD 2024

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • 0
      Total Citations
    • 31
      Total Downloads
    • Downloads (Last 12 months)31
    • Downloads (Last 6 weeks)16
    Reflects downloads up to 02 Mar 2025

    Other Metrics

    Citations

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    HTML Format

    View this article in HTML Format.

    HTML Format

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media