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

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.

Authors

Publication Details

Journal
Journal of Economic Analysis
Published
2025-05-09
DOI
https://doi.org/10.58567/jea04030001
Citations
3
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
6.32
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Diego Vallarino
3 citations
Journal of Economic Analysis
Stock Market Forecasting Methods
6.32
article

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

Diego Vallarino
article en
3 citations

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.

Journal of Economic AnalysisVol. 4(3)
Openalex Percentile: Top 4%
Stock Market Forecasting Methods
6.32
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.