IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2502.15813.html
   My bibliography  Save this paper

Stock Price Prediction Using a Hybrid LSTM-GNN Model: Integrating Time-Series and Graph-Based Analysis

Author

Listed:
  • Meet Satishbhai Sonani
  • Atta Badii
  • Armin Moin

Abstract

This paper presents a novel hybrid model that integrates long-short-term memory (LSTM) networks and Graph Neural Networks (GNNs) to significantly enhance the accuracy of stock market predictions. The LSTM component adeptly captures temporal patterns in stock price data, effectively modeling the time series dynamics of financial markets. Concurrently, the GNN component leverages Pearson correlation and association analysis to model inter-stock relational data, capturing complex nonlinear polyadic dependencies influencing stock prices. The model is trained and evaluated using an expanding window validation approach, enabling continuous learning from increasing amounts of data and adaptation to evolving market conditions. Extensive experiments conducted on historical stock data demonstrate that our hybrid LSTM-GNN model achieves a mean square error (MSE) of 0.00144, representing a substantial reduction of 10.6% compared to the MSE of the standalone LSTM model of 0.00161. Furthermore, the hybrid model outperforms traditional and advanced benchmarks, including linear regression, convolutional neural networks (CNN), and dense networks. These compelling results underscore the significant potential of combining temporal and relational data through a hybrid approach, offering a powerful tool for real-time trading and financial analysis.

Suggested Citation

  • Meet Satishbhai Sonani & Atta Badii & Armin Moin, 2025. "Stock Price Prediction Using a Hybrid LSTM-GNN Model: Integrating Time-Series and Graph-Based Analysis," Papers 2502.15813, arXiv.org.
  • Handle: RePEc:arx:papers:2502.15813
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2502.15813
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Burton G. Malkiel, 2003. "The Efficient Market Hypothesis and Its Critics," Working Papers 111, Princeton University, Department of Economics, Center for Economic Policy Studies..
    2. R. Mantegna, 1999. "Hierarchical structure in financial markets," The European Physical Journal B: Condensed Matter and Complex Systems, Springer;EDP Sciences, vol. 11(1), pages 193-197, September.
    3. Daiki Matsunaga & Toyotaro Suzumura & Toshihiro Takahashi, 2019. "Exploring Graph Neural Networks for Stock Market Predictions with Rolling Window Analysis," Papers 1909.10660, arXiv.org, revised Nov 2019.
    4. Qi Tang & Ruchen Shi & Tongmei Fan & Yidan Ma & Jingyan Huang, 2021. "Prediction of Financial Time Series Based on LSTM Using Wavelet Transform and Singular Spectrum Analysis," Mathematical Problems in Engineering, Hindawi, vol. 2021, pages 1-13, June.
    5. repec:pri:cepsud:91malkiel is not listed on IDEAS
    6. Gourishankar S Hiremath & Bandi Kamaiah, 2010. "Nonlinear Dependence in Stock Returns: Evidences from India," Journal of Quantitative Economics, The Indian Econometric Society, vol. 8(1), pages 69-85, January.
    7. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    8. Cheng Zhao & Ping Hu & Xiaohui Liu & Xuefeng Lan & Haiming Zhang, 2023. "Stock Market Analysis Using Time Series Relational Models for Stock Price Prediction," Mathematics, MDPI, vol. 11(5), pages 1-13, February.
    9. Yuqing Feng & Yaojie Zhang & Yudong Wang, 2024. "Out‐of‐sample volatility prediction: Rolling window, expanding window, or both?," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(3), pages 567-582, April.
    10. Burton G. Malkiel, 2003. "The Efficient Market Hypothesis and Its Critics," Journal of Economic Perspectives, American Economic Association, vol. 17(1), pages 59-82, Winter.
    11. Isabelle Martinez, 2003. "The impact of firm‐specific attributes on the relevance in earnings and cash‐flows : a nonlinear relationship between stock returns and accounting numbers," Review of Accounting and Finance, Emerald Group Publishing Limited, vol. 2(1), pages 16-39, January.
    12. Burton G. Malkiel, 2003. "The Efficient Market Hypothesis and Its Critics," Working Papers 111, Princeton University, Department of Economics, Center for Economic Policy Studies..
    13. L. Kullmann & J. Kertesz & K. Kaski, 2002. "Time dependent cross correlations between different stock returns: A directed network of influence," Papers cond-mat/0203256, arXiv.org, revised May 2002.
    14. 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. 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.
    2. Ignacio Escanuela Romana & Clara Escanuela Nieves, 2023. "A spectral approach to stock market performance," Papers 2305.05762, arXiv.org.
    3. Montserrat Reyna Miranda & Ricardo Massa Roldán & Vicente Gómez Salcido, 2022. "Neuro-wavelet Model for price prediction in high-frequency data in the Mexican Stock market," Remef - Revista Mexicana de Economía y Finanzas Nueva Época REMEF (The Mexican Journal of Economics and Finance), Instituto Mexicano de Ejecutivos de Finanzas, IMEF, vol. 17(1), pages 1-23, Enero - M.
    4. 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.
    5. David M. Ritzwoller & Joseph P. Romano, 2019. "Uncertainty in the Hot Hand Fallacy: Detecting Streaky Alternatives to Random Bernoulli Sequences," Papers 1908.01406, arXiv.org, revised Apr 2021.
    6. Bell, Peter N, 2013. "New Testing Procedures to Assess Market Efficiency with Trading Rules," MPRA Paper 46701, University Library of Munich, Germany.
    7. Jitka Veselá & Alžběta Zíková, 2022. "Are the Czech, Polish, German and Dutch markets taking a random walk? [Konají český, polský, německý a nizozemský trh náhodnou procházku?]," Český finanční a účetní časopis, Prague University of Economics and Business, vol. 2022(2), pages 19-38.
    8. Muchnik, Lev & Bunde, Armin & Havlin, Shlomo, 2009. "Long term memory in extreme returns of financial time series," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 388(19), pages 4145-4150.
    9. Nathan Jensen, 2007. "International institutions and market expectations: Stock price responses to the WTO ruling on the 2002 U.S. steel tariffs," The Review of International Organizations, Springer, vol. 2(3), pages 261-280, September.
    10. Cristi Spulbar & Ramona Birau & Lucian Florin Spulbar, 2021. "A Critical Survey on Efficient Market Hypothesis (EMH), Adaptive Market Hypothesis (AMH) and Fractal Markets Hypothesis (FMH) Considering Their Implication on Stock Markets Behavior," Ovidius University Annals, Economic Sciences Series, Ovidius University of Constantza, Faculty of Economic Sciences, vol. 0(2), pages 1161-1165, December.
    11. Park, Cheol-Ho & Irwin, Scott H., 2004. "The Profitability Of Technical Trading Rules In Us Futures Markets: A Data Snooping Free Test," 2004 Conference, April 19-20, 2004, St. Louis, Missouri 19011, NCR-134 Conference on Applied Commodity Price Analysis, Forecasting, and Market Risk Management.
    12. Taufiq Choudhry & Ranadeva Jayasekera, 2015. "Level of efficiency in the UK equity market: empirical study of the effects of the global financial crisis," Review of Quantitative Finance and Accounting, Springer, vol. 44(2), pages 213-242, February.
    13. Mahata, Ajit & Rai, Anish & Nurujjaman, Md. & Prakash, Om, 2021. "Modeling and analysis of the effect of COVID-19 on the stock price: V and L-shape recovery," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 574(C).
    14. Saggese, Pietro & Belmonte, Alessandro & Dimitri, Nicola & Facchini, Angelo & Böhme, Rainer, 2023. "Arbitrageurs in the Bitcoin ecosystem: Evidence from user-level trading patterns in the Mt. Gox exchange platform," Journal of Economic Behavior & Organization, Elsevier, vol. 213(C), pages 251-270.
    15. Admin Starcevic & Timothy Rodgers, 2011. "Market Efficiency within the German Stock Market: A Comparative Study of the Relative Efficiencies of the DAX, MDAX, SDAX and ASE Indices," International Econometric Review (IER), Econometric Research Association, vol. 3(1), pages 25-37, April.
    16. Saqib Farid & Rubeena Tashfeen & Tahseen Mohsan & Arsal Burhan, 2023. "Forecasting stock prices using a data mining method: Evidence from emerging market," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(2), pages 1911-1917, April.
    17. Rešovský, Marcel & Gróf, Marek & Horváth, Denis & Gazda, Vladimír, 2014. "Analysis of the Lead-Lag Relationship on South Africa capital market," MPRA Paper 57309, University Library of Munich, Germany.
    18. Diniz-Maganini, Natalia & Diniz, Eduardo H. & Rasheed, Abdul A., 2021. "Bitcoin’s price efficiency and safe haven properties during the COVID-19 pandemic: A comparison," Research in International Business and Finance, Elsevier, vol. 58(C).
    19. Ziliotto, Arianna & Serati, Massimiliano, 2015. "The semi-strong efficiency debate: In search of a new testing framework," Research in International Business and Finance, Elsevier, vol. 34(C), pages 412-438.
    20. Svitlana Galeshchuk, 2017. "Technological bias at the exchange rate market," Intelligent Systems in Accounting, Finance and Management, John Wiley & Sons, Ltd., vol. 24(2-3), pages 80-86, April.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:arx:papers:2502.15813. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.