Abstract
Time series forecasting models are essential decision support tools in real-world domains. Stock market is a remarkably complex domain, due to its quickly evolving temporal nature, as well as the multiple factors having an impact on stock prices. To date, a number of machine learning-based approaches have been proposed in the literature to tackle stock trend prediction. However, they typically tend to analyze a single data source or modality, or consider multiple modalities in isolation and rely on simple combination strategies, with a potential reduction in their modeling power. In this paper, we propose a multimodal deep fusion model to predict stock trends, leveraging daily stock prices, technical indicators, and sentiment in daily news headlines published by media outlets. The proposed architecture leverages a BERT-based model branch fine-tuned on financial news and a long short-term memory (LSTM) branch that captures relevant temporal patterns in multivariate data, including stock prices and technical indicators. Our experiments on 12 different stock datasets with prices and news headlines demonstrate that our proposed model is more effective than popular baseline approaches, both in terms of accuracy and trading performance in a portfolio analysis simulation, highlighting the positive impact of multimodal deep learning for stock trend prediction.
Introduction
Predicting stock market trends is notoriously difficult because it is influenced by two very different types of information: quantitative data (historical price trends and technical indicators) and qualitative data (news headlines and macroeconomic events). Most existing AI models suffer from "tunnel vision," focusing purely on numbers or purely on text. Even when models attempt to combine both, they often use "shallow fusion," simply averaging the results of separate models. This paper introduces a Multimodal Deep Fusion Model that integrates numerical trends and textual sentiment into a single joint feature space to capture complex, nonlinear relationships.
Methodology
The proposed architecture consists of two specialized branches that merge before making a final prediction:
- Textual Branch (FinBERT): The model utilizes FinBERT, a version of Google’s BERT language model specifically fine-tuned on financial text. This allows the model to understand the nuances of "financial-speak," where words like "volatile" or "crushing" have domain-specific meanings. It processes daily news headlines to generate sentiment scores.
- Numerical Branch (LSTM): To handle time series data, the authors use a Long Short-Term Memory (LSTM) network. LSTMs are designed to remember long-term dependencies, making them ideal for spotting trends in stock prices and technical indicators such as MACD or Bollinger Bands.
- Fusion Layer: High-level features from both branches are concatenated and passed through additional dense neural layers. This "deep fusion" allows the model to learn how news sentiment impacts a stock relative to its current price trend.
Experimental Setup
The model was evaluated on 12 real-world stocks across diverse sectors (e.g., AAPL, NVDA, JNJ, SBUX). The researchers tested the model across two distinct market regimes: an uptrend period (June to December 2021) and a downtrend period (January to September 2022). Data was sourced via Yahoo Finance and EODHD APIs.
Hyperparameter tuning was conducted for each branch of the model to optimize performance. The ranges for these hyperparameters are detailed in the tables below.
Key Results
The fusion model was compared against several baselines, including ARIMA, Gradient Boosted Trees (GBTs), and single-modality LSTMs.
- Higher Accuracy: The fusion model consistently achieved higher F1-scores across almost all 12 stocks compared to models using only one data source.
- Superior Trading Performance: In a simulated portfolio analysis starting with $10,000, the fusion model outperformed the "Buy and Hold" strategy and other AI baselines.
- Capital Preservation: During the 2022 market downturn, the model was notably better at avoiding buys during downtrends, resulting in significantly lower losses compared to traditional models.
Conclusion and Future Work
The study demonstrates that domain-specific language models like FinBERT and contextual deep fusion are crucial for accurate stock trend prediction. However, the model currently relies on a single news source and treats stocks in isolation. Future work will explore integrating social media data and using Graph Convolutional Networks (GCNs) to model inter-stock relationships and industry-wide ripples.
Summary updated