主管:中国科学院
主办:中国优选法统筹法与经济数学研究会
   中国科学院科技战略咨询研究院

Chinese Journal of Management Science ›› 2024, Vol. 32 ›› Issue (8): 25-35.doi: 10.16381/j.cnki.issn1003-207x.2021.0084

Previous Articles     Next Articles

Stock Index Prediction Based on LSTM Network and Text Sentiment Analysis

Xiaojian Yu1,2,Guopeng Liu1,Jianlin Liu1,Weilin Xiao3()   

  1. 1.School of Economics and Finance, South China University of Technology, Guangzhou 510006, China
    2.Research Center of Financial Engineering, South China University of Technology, Guangzhou 510006, China
    3.School of Management, Zhejiang University, Hangzhou 310058, China
  • Received:2021-01-12 Revised:2023-01-08 Online:2024-08-25 Published:2024-08-29
  • Contact: Weilin Xiao E-mail:wlxiao@zju.edu.cn

Abstract:

Investment decision-making can be a complex process, influenced by various factors, including investor behavior preferences. Therefore, it's important to understand and capture investor sentiment for predicting future changes in the stock market trend. In this regard, machine learning algorithms can be helpful in analyzing investor sentiment in the financial market. It aims to construct a predictive model for stock indices using an LSTM network and text sentiment analysis in this paper.To begin with, a web crawler program is used to collect text comments on individual stocks in the East Money Stock Bar. The text data are analyzed using the SVM sentiment classification algorithm to construct a market sentiment index that reflects investor sentiment. Additionally, the LSTM deep learning network is used to extract the features of the market sentiment index and make short-term predictions on the SSE 50 index.Various traditional time series analysis models and machine learning models are compared. The results show that the LSTM neural network has higher accuracy and precision in financial time series prediction. After incorporating market sentiment features, the accuracy and precision of the LSTM network prediction results can be improved. This indicates that investor market sentiment is highly effective and applicable for market index prediction. It is also found that error correction of the LSTM network prediction results can effectively optimize the prediction results.Overall, a new method is provided for understanding investor sentiment and predicting future changes in the stock market trend. It is hoped that our research results can provide useful reference and guidance for financial investors and analysts.

Key words: LSTM neural network, SVM classifier, financial text, market sentiment index, stock index prediction

CLC Number: