IDEAS home Printed from https://ideas.repec.org/a/bba/j00001/v4y2025i3p1-15d428.html
   My bibliography  Save this article

An AI-Enhanced Forecasting Framework: Integrating LSTM and Transformer-Based Sentiment for Stock Price Prediction

Author

Listed:
  • Diego Vallarino

    (Independent Researcher, Atlanta, GA, US)

Abstract

Forecasting stock prices remains a fundamental yet complex challenge in financial economics due to the nonlinearity, volatility, and exogenous shocks characterizing market behavior. This paper proposes a hybrid deep learning framework that integrates Long Short-Term Memory (LSTM) networks for time-series modeling with Transformer-based architectures for textual sentiment extraction from financial news. The goal is to enhance predictive accuracy by combining structured historical data with unstructured semantic signals. Using three years of daily data from Apple Inc. (AAPL), the model captures endogenous price dynamics via LSTM and incorporates contemporaneous market sentiment through FinBERT, a Transformer model pretrained on financial text. Empirical results show that the hybrid model outperforms price-only baselines across multiple evaluation metrics, including mean squared error (MSE) and directional accuracy. The incorporation of sentiment features proves particularly valuable around earnings announcements and event-driven volatility regimes. This study contributes to the literature on machine learning in finance by demonstrating the complementary strengths of multimodal learning, offering a more interpretable and robust framework for stock price prediction. The findings also open avenues for future research in real-time forecasting, reinforcement learning integration, and the application of hybrid models across diverse asset classes.

Suggested Citation

  • Diego Vallarino, 2025. "An AI-Enhanced Forecasting Framework: Integrating LSTM and Transformer-Based Sentiment for Stock Price Prediction," Journal of Economic Analysis, Anser Press, vol. 4(3), pages 1-15, September.
  • Handle: RePEc:bba:j00001:v:4:y:2025:i:3:p:1-15:d:428
    as

    Download full text from publisher

    File URL: https://www.anserpress.org/journal/jea/4/3/109/pdf
    Download Restriction: no

    File URL: https://www.anserpress.org/journal/jea/4/3/109
    Download Restriction: no
    ---><---

    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:bba:j00001:v:4:y:2025:i:3:p:1-15:d:428. 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: Ramona Wang (email available below). General contact details of provider: https://www.anserpress.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.