Exploring the impact of investor’s sentiment tendency in varying input window length for stock price prediction

被引:0
|
作者
Zhongtian Ji
Peng Wu
Chen Ling
Peng Zhu
机构
[1] Nanjing University of Science &Technology,School of Economics and Management
[2] Nanjing University of Science &Technology,School of Intelligent Manufacturing
来源
关键词
Social media; Sentiment analysis; Fine-tuned BERT; Stock price prediction; Attention-based LSTM;
D O I
暂无
中图分类号
学科分类号
摘要
Stock price prediction is one of the most important aspects of business investment plans, and has been an attractive research topic for both researchers and financial analysts. Many previous studies indicated the effectiveness of social media sentiment in stock price predictions through time series modelling. However, the time series information hidden in consecutive trading days has not been fully explored. In this paper, we build a stock price prediction model based on attention-based Long Short Term Memory (ALSTM) network using price data, technical indicators and sentiment information from social media. We employed a novel method to feed the deep network with long time series data to learn the deep sequential information of stock price movement. A fine-tuned BERT sentiment classification model and a sentiment lexicon are proposed to extract deep sentiment tendency of social media posts. We conducted experiments on 28 stocks within three years’ transaction period, and the results show that: (1) evaluated by the indicators of the Mean Absolute Error (MAE), the Root Mean Square Error (RMSE) and the accuracy, our proposed method outperforms the baseline models in both validation and test data sets; (2) models incorporating stock prices, technical indicators and sentiment features perform better than models that only use partial data source; (3) the fine-tuned BERT model performs better in sentiment classification task, and the exploitation of the sentiment features computed with the use of BERT model also led to higher predicting accuracy compared with the features calculated using sentiment lexicon; and (4) setting the input window length to 5-day achieves the best performance in average prediction accuracy.
引用
收藏
页码:27415 / 27449
页数:34
相关论文
共 22 条
  • [1] Exploring the impact of investor's sentiment tendency in varying input window length for stock price prediction
    Ji, Zhongtian
    Wu, Peng
    Ling, Chen
    Zhu, Peng
    [J]. MULTIMEDIA TOOLS AND APPLICATIONS, 2023, 82 (18) : 27415 - 27449
  • [2] Exploring the impact of investor sentiment on stock returns of petroleum companies
    Zhang, Yue-Jun
    Pei, Jia-Min
    [J]. INNOVATIVE SOLUTIONS FOR ENERGY TRANSITIONS, 2019, 158 : 4079 - 4085
  • [3] Stock Price Prediction Integrating Investor Sentiment Based on S_AM_BiLSTM Model
    Yuan, Jing
    Pan, Su
    Xie, Hao
    Xu, Wenpeng
    [J]. Computer Engineering and Applications, 2024, 60 (07) : 274 - 281
  • [4] A Stock Price Prediction Model Based on Investor Sentiment and Optimized Deep Learning
    Mu, Guangyu
    Gao, Nan
    Wang, Yuhan
    Dai, Li
    [J]. IEEE ACCESS, 2023, 11 : 51353 - 51367
  • [5] Forecasting price movements using technical indicators: Investigating the impact of varying input window length
    Shynkevich, Yauheniya
    McGinnity, T. M.
    Coleman, Sonya A.
    Belatreche, Ammar
    Li, Yuhua
    [J]. NEUROCOMPUTING, 2017, 264 : 71 - 88
  • [6] Beyond Sentiment in Stock Price Prediction: Integrating News Sentiment and Investor Attention with Temporal Fusion Transformer
    Hajek, Petr
    Novotny, Josef
    [J]. ARTIFICIAL INTELLIGENCE APPLICATIONS AND INNOVATIONS, PT III, AIAI 2024, 2024, 713 : 30 - 43
  • [7] A hybrid model integrating deep learning with investor sentiment analysis for stock price prediction
    Jing, Nan
    Wu, Zhao
    Wang, Hefei
    [J]. EXPERT SYSTEMS WITH APPLICATIONS, 2021, 178
  • [8] Stock price movement prediction based on Stocktwits investor sentiment using FinBERT and ensemble SVM
    Liu, Jin-Xian
    Leu, Jenq-Shiou
    Holst, Stefan
    [J]. PEERJ COMPUTER SCIENCE, 2023, 9
  • [9] The industrial asymmetry of the stock price prediction with investor sentiment: Based on the comparison of predictive effects with SVR
    Jin, Zhenni
    Guo, Kun
    Sun, Yi
    Lai, Lin
    Liao, Zhewen
    [J]. JOURNAL OF FORECASTING, 2020, 39 (07) : 1166 - 1178
  • [10] A Novel Approach of Stock Price Direction and Price Prediction Based on Investor’s Sentiments
    Singh H.
    Malhotra M.
    [J]. SN Computer Science, 4 (6)