An AI-Enhanced Forecasting Framework: Integrating LSTM and Transformer-Based Sentiment for Stock Price Prediction
Diego Vallarino
Additional contact information
Diego Vallarino: Independent Researcher, Atlanta, GA, US
Journal of Economic Analysis, 2025, vol. 4, issue 3, 1-15
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.
Keywords: Stock Price Prediction; RNN; LSTM; Transformers; Sentiment Analysis; Financial Forecasting (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:
Downloads: (external link)
https://www.anserpress.org/journal/jea/4/3/109/pdf (application/pdf)
https://www.anserpress.org/journal/jea/4/3/109 (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:bba:j00001:v:4:y:2025:i:3:p:1-15:d:428
Access Statistics for this article
Journal of Economic Analysis is currently edited by Ramona Wang
More articles in Journal of Economic Analysis from Anser Press
Bibliographic data for series maintained by Ramona Wang ().