IDEAS home Printed from https://ideas.repec.org/a/gam/jjrfmx/v18y2025i10p551-d1763024.html
   My bibliography  Save this article

Deep Learning-Based Hybrid Model with Multi-Head Attention for Multi-Horizon Stock Price Prediction

Author

Listed:
  • Rajesh Kumar Ghosh

    (Department of Computer Science & Engineering, Siksha ‘O’ Anusandhan (Deemed to Be) University, Bhubaneswar 751030, India)

  • Bhupendra Kumar Gupta

    (Department of Computer Science & Engineering, Siksha ‘O’ Anusandhan (Deemed to Be) University, Bhubaneswar 751030, India)

  • Ajit Kumar Nayak

    (Department of Computer Science & IT, Siksha ‘O’ Anusandhan (Deemed to Be) University, Bhubaneswar 751030, India)

  • Samit Kumar Ghosh

    (Department of Biomedical Engineering & Biotechnology, Khalifa University, Abu Dhabi 127788, United Arab Emirates)

Abstract

The prediction of stock prices is challenging due to their volatility, irregular patterns, and complex time-series structure. Reliably forecasting stock market data plays a crucial role in minimizing financial risk and optimizing investment strategies. However, traditional models often struggle to capture temporal dependencies and extract relevant features from noisy inputs, which limits their predictive performance. To improve this, we developed an enhanced recursive feature elimination (RFE) method that blends the importance of impurity-based features from random forest and gradient boosting models with Kendall tau correlation analysis, and we applied SHapley Additive exPlanations (SHAP) analysis to externally validate the reliability of the selected features. This approach leads to more consistent and reliable feature selection for short-term stock prediction over 1-, 3-, and 7-day intervals. The proposed deep learning (DL) architecture integrates a temporal convolutional network (TCN) for long-term pattern recognition, a gated recurrent unit (GRU) for sequence capture, and multi-head attention (MHA) for focusing on critical information, thereby achieving superior predictive performance. We evaluate the proposed approach using daily stock price data from three leading companies—HDFC Bank, Tata Consultancy Services (TCS), and Tesla—and two major stock indices: Nifty 50 and S&P 500. The performance of our model is compared against five benchmark models: temporal convolutional network (TCN), long short-term memory (LSTM), GRU, Bidirectional GRU, and a hybrid TCN–GRU model. Our method consistently shows lower error rates and higher predictive accuracy across all datasets, as measured by four commonly used performance metrics.

Suggested Citation

  • Rajesh Kumar Ghosh & Bhupendra Kumar Gupta & Ajit Kumar Nayak & Samit Kumar Ghosh, 2025. "Deep Learning-Based Hybrid Model with Multi-Head Attention for Multi-Horizon Stock Price Prediction," JRFM, MDPI, vol. 18(10), pages 1-27, October.
  • Handle: RePEc:gam:jjrfmx:v:18:y:2025:i:10:p:551-:d:1763024
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1911-8074/18/10/551/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1911-8074/18/10/551/
    Download Restriction: no
    ---><---

    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:gam:jjrfmx:v:18:y:2025:i:10:p:551-:d:1763024. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.