LSTM-based sentiment analysis for stock price forecast

被引:29
|
作者
Ko, Ching-Ru [1 ]
Chang, Hsien-Tsung [1 ,2 ,3 ,4 ]
机构
[1] Chang Gung Univ, Dept Comp Sci & Informat Engn, Taoyuan, Taiwan
[2] Chang Gung Univ, Bachelor Program Artificial Intelligence, Taoyuan, Taiwan
[3] Chang Gung Mem Hosp, Dept Phys Med & Rehabil, Taoyuan, Taiwan
[4] Chang Gung Univ, Artificial Intelligence Res Ctr, Taoyuan, Taiwan
关键词
BERT; LSTM neural network; Stock price forecast; Text sentiment analysis;
D O I
10.7717/peerj-cs.408
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Investing in stocks is an important tool for modern people's financial management, and how to forecast stock prices has become an important issue. In recent years, deep learning methods have successfully solved many forecast problems. In this paper, we utilized multiple factors for the stock price forecast. The news articles and PTT forum discussions are taken as the fundamental analysis, and the stock historical transaction information is treated as technical analysis. The state-of-the-art natural language processing tool BERT are used to recognize the sentiments of text, and the long short term memory neural network (LSTM), which is good at analyzing time series data, is applied to forecast the stock price with stock historical transaction information and text sentiments. According to experimental results using our proposed models, the average root mean square error (RMSE) has 12.05 accuracy improvement.
引用
收藏
页码:1 / 23
页数:23
相关论文
共 50 条
  • [1] Stock closing price prediction based on sentiment analysis and LSTM
    Zhigang Jin
    Yang Yang
    Yuhong Liu
    [J]. Neural Computing and Applications, 2020, 32 : 9713 - 9729
  • [2] Stock closing price prediction based on sentiment analysis and LSTM
    Jin, Zhigang
    Yang, Yang
    Liu, Yuhong
    [J]. NEURAL COMPUTING & APPLICATIONS, 2020, 32 (13): : 9713 - 9729
  • [3] An LSTM-Based Approach to Predict Stock Price Movement for IT Sector Companies
    Rammurthy, Shruthi Komarla
    Patil, Sagar B.
    [J]. INTERNATIONAL JOURNAL OF COGNITIVE INFORMATICS AND NATURAL INTELLIGENCE, 2021, 15 (04)
  • [4] A-stock price fluctuation forecast model based on LSTM
    Zeng, Yawen
    Liu, Xing
    [J]. 2018 14TH INTERNATIONAL CONFERENCE ON SEMANTICS, KNOWLEDGE AND GRIDS (SKG), 2018, : 261 - 264
  • [5] Dynamic Sliding Window and Neighborhood LSTM-Based Model for Stock Price Prediction
    Giang Thi Thu H.
    Nguyen Thanh T.
    Le Quy T.
    [J]. SN Computer Science, 2022, 3 (3)
  • [6] Forecast of LSTM-XGBoost in Stock Price Based on Bayesian Optimization
    Liwei, Tian
    Li, Feng
    Yu, Sun
    Yuankai, Guo
    [J]. INTELLIGENT AUTOMATION AND SOFT COMPUTING, 2021, 29 (03): : 855 - 868
  • [7] Research on Stock Price Forecast Based on News Sentiment Analysis-A Case Study of Alibaba
    Zhang, Lingling
    Fu, Saiji
    Li, Bochen
    [J]. COMPUTATIONAL SCIENCE - ICCS 2018, PT II, 2018, 10861 : 429 - 442
  • [8] Exploring the attention mechanism in LSTM-based Hong Kong stock price movement prediction
    Chen, Shun
    Ge, Lei
    [J]. QUANTITATIVE FINANCE, 2019, 19 (09) : 1507 - 1515
  • [9] S_I_LSTM: stock price prediction based on multiple data sources and sentiment analysis
    Wu, Shengting
    Liu, Yuling
    Zou, Ziran
    Weng, Tien-Hsiung
    [J]. CONNECTION SCIENCE, 2022, 34 (01) : 44 - 62
  • [10] An optimal deep learning-based LSTM for stock price prediction using twitter sentiment analysis
    Swathi, T.
    Kasiviswanath, N.
    Rao, A. Ananda
    [J]. APPLIED INTELLIGENCE, 2022, 52 (12) : 13675 - 13688