A Novel Stock Index Prediction Method Based on Financial Text Sentiment Analysis
Abstract
With the rapid growth of artificial intelligence and machine learning, predicting stock market trends has become an increasingly important and complex task. In this paper, we propose a novel stock index prediction model, SA-BERT-LSTM, based on financial text sentiment analysis. This model integrates the BERT (Bidirectional Encoder Representations from Transformers) sentiment analysis method with the Long Short-Term Memory (LSTM) network, combining the extracted sentiment features from financial news with stock trading data. We apply this model to predict the rise and fall of the CSI 300 Index. The results demonstrate that sentiment features significantly enhance prediction accuracy. Compared to three benchmark models—BP neural network, Support Vector Machines (SVM), and XGBoost—the SA-BERT-LSTM model outperforms them in terms of prediction precision. Furthermore, the model is adaptable for predicting individual stock prices. This research contributes to the application of sentiment analysis in financial market prediction, broadening the scope of AI and machine learning in economics, and provides valuable insights for the implementation of national AI strategies.
References
- Akita R, Yoshihara A, Matsubara T, et al. Deep learning for stock prediction using numerical and textual information[C]//2016 IEEE/ACIS 15th International Conference on Computer and Information Science (ICIS). IEEE, 2016: 1-6.
- Antweiler W, Frank M Z. Is all that talk just noise? The information content of internet stock message boards[J]. The Journal of finance, 2004, 59(3): 1259-1294.
- Atiya A, Ji C. How initial conditions affect generalization performance in large networks[J]. IEEE transactions on neural networks, 1997, 8(2): 448-451.
- BollenJ M H N. ZengXJ[J]. TwitterMoodPredictstheStockMarket, 2011, 2(1): 1-8.
- Chiu C C, Sainath T N, Wu Y, et al. State-of-the-art speech recognition with sequence-to-sequence models[C] 2018 IEEE international conference on acoustics, speech and signal processing (ICASSP). IEEE, 2018: 4774-4778.
- Girshick R, Donahue J, Darrell T, et al. Rich feature hierarchies for accurate object detection and semantic segmentation[C] Proceedings of the IEEE conference on computer vision and pattern recognition. 2014: 580-587.