[Paper Review] TI-Capsule: Capsule Network for Stock Exchange Prediction
This paper proposes TI-Capsule, a multimodal capsule network that fuses financial text sentiment and candlestick chart images to predict EUR/USD exchange rate movements. By leveraging attention mechanisms and dynamic routing in capsule networks to preserve spatial relationships and feature hierarchies, the model achieves 91% accuracy on a custom dataset, outperforming traditional models in stock prediction tasks.
Today, the use of social networking data has attracted a lot of academic and commercial attention in predicting the stock market. In most studies in this area, the sentiment analysis of the content of user posts on social networks is used to predict market fluctuations. Predicting stock marketing is challenging because of the variables involved. In the short run, the market behaves like a voting machine, but in the long run, it acts like a weighing machine. The purpose of this study is to predict EUR/USD stock behavior using Capsule Network on finance texts and Candlestick images. One of the most important features of Capsule Network is the maintenance of features in a vector, which also takes into account the space between features. The proposed model, TI-Capsule (Text and Image information based Capsule Neural Network), is trained with both the text and image information simultaneously. Extensive experiments carried on the collected dataset have demonstrated the effectiveness of TI-Capsule in solving the stock exchange prediction problem with 91% accuracy.
Motivation & Objective
- To improve stock exchange prediction accuracy by integrating multimodal data—financial text and candlestick images—into a single deep learning framework.
- To address the limitations of traditional models in capturing hierarchical spatial relationships and dynamic feature interactions in financial time series and textual sentiment.
- To explore the effectiveness of capsule networks in financial forecasting, particularly their ability to maintain spatial relationships and attention through vector-based representations.
- To develop a unified architecture that jointly learns from textual sentiment and visual price patterns in foreign exchange markets.
Proposed method
- The TI-Capsule model employs a dual-branch encoder: one branch processes financial text using BERT-based embeddings for sentiment analysis, and another processes candlestick images via convolutional layers.
- Capsule networks are used to encode both textual and visual features into vector representations that preserve spatial relationships and attention dynamics.
- Dynamic routing is applied to route capsules across layers, allowing the network to learn hierarchical attention and feature relationships across modality-specific representations.
- A late fusion strategy combines the output vectors from the text and image branches before final classification using a margin loss function.
- The model is trained end-to-end on a custom dataset of EUR/USD market data, including social media sentiment and historical candlestick patterns.
- Attention mechanisms are integrated into the capsule routing process to emphasize salient features in both text and image modalities.
Experimental results
Research questions
- RQ1Can a capsule network effectively integrate multimodal financial data—textual sentiment and visual price patterns—for improved stock prediction?
- RQ2How does the capsule network’s ability to preserve spatial relationships and feature hierarchies enhance prediction performance compared to conventional RNNs or CNNs?
- RQ3To what extent does joint learning from text and image modalities improve accuracy in foreign exchange rate direction forecasting?
- RQ4Does the use of dynamic routing and vector-based representations in capsules lead to more robust and generalizable predictions in volatile financial markets?
Key findings
- The TI-Capsule model achieved a prediction accuracy of 91% on the EUR/USD exchange rate direction, significantly outperforming baseline models.
- The integration of both text and image modalities led to a 12% improvement in accuracy compared to models using only textual or visual inputs.
- Capsule networks demonstrated superior feature representation by maintaining spatial relationships and dynamic attention across hierarchical layers.
- The model’s dynamic routing mechanism effectively captured long-range dependencies and attention patterns in financial data, enhancing generalization.
- The ablation study confirmed that both text and image branches contributed significantly to the final prediction, with the image branch having a slightly higher impact.
- The model showed robustness to noisy inputs, maintaining high performance even under varying sentiment and price pattern conditions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.