A Stock Price Prediction Model Based on Investor Sentiment and Optimized Deep Learning

被引:25
作者
Mu, Guangyu [1 ,2 ]
Gao, Nan [1 ]
Wang, Yuhan [1 ]
Dai, Li [1 ]
机构
[1] Jilin Univ Finance & Econ, Sch Management Sci & Informat Engn, Changchun 130000, Peoples R China
[2] Key Lab Financial Technol Jilin Prov, Changchun 130000, Peoples R China
关键词
Deep learning; LSTM model; stock price prediction; sentiment analysis; sentiment dictionary; sparrow search algorithm; NEURAL-NETWORK; GARCH;
D O I
10.1109/ACCESS.2023.3278790
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Accurate prediction of stock prices can reduce investment risks and increase returns. This paper combines the multi-source data affecting stock prices and applies sentiment analysis, swarm intelligence algorithm, and deep learning to build the MS-SSA-LSTM model. Firstly, we crawl the East Money forum posts information to establish the unique sentiment dictionary and calculate the sentiment index. Then, the Sparrow Search Algorithm (SSA) optimizes the Long and Short-Term Memory network (LSTM) hyperparameters. Finally, the sentiment index and fundamental trading data are integrated, and LSTM is used to forecast stock prices in the future. Experiments demonstrate that the MS-SSA-LSTM model outperforms the others and has high universal applicability. Compared with standard LSTM, the R-2 of MS-SSA-LSTM is improved by 10.74% on average. We found that: 1) Adding the sentiment index can enhance the model's predictive performance. 2) The LSTM's hyperparameters are optimized using SSA, which objectively explains the model parameter settings and improves the prediction effect. 3) The high volatility of China's financial market is more suitable for short-term prediction.
引用
收藏
页码:51353 / 51367
页数:15
相关论文
共 45 条
[1]   How to Handle Data Imbalance and Feature Selection Problems in CNN-Based Stock Price Forecasting [J].
Aksehir, Zinnet Duygu ;
Kilic, Erdal .
IEEE ACCESS, 2022, 10 :31297-31305
[2]  
Banjade D., 2020, FORECASTING BITCOIN, DOI [10.2139/ssrn.3515702, DOI 10.2139/SSRN.3515702]
[3]  
Borade J., 2018, INT J RES ENG TECHNO, V7, P52, DOI [10.15623/ijret.2018.0704009, DOI 10.15623/IJRET.2018.0704009]
[4]   A Hybrid Least Square Support Vector Machine Model with Parameters Optimization for Stock Forecasting [J].
Chai, Jian ;
Du, Jiangze ;
Lai, Kin Keung ;
Lee, Yan Pui .
MATHEMATICAL PROBLEMS IN ENGINEERING, 2015, 2015
[5]   Heavy metal content prediction based on Random Forest and Sparrow Search Algorithm [J].
Chen, Ying ;
Liu, Zhengying ;
Xu, Chongxuan ;
Zhao, Xueliang ;
Pang, Lili ;
Li, Kang ;
Shi, Yanxin .
JOURNAL OF CHEMOMETRICS, 2022, 36 (10)
[6]   Does investor sentiment affect stock price crash risk? [J].
Cui, Huijie ;
Zhang, Yanan .
APPLIED ECONOMICS LETTERS, 2020, 27 (07) :564-568
[7]   NOISE TRADER RISK IN FINANCIAL-MARKETS [J].
DELONG, JB ;
SHLEIFER, A ;
SUMMERS, LH ;
WALDMANN, RJ .
JOURNAL OF POLITICAL ECONOMY, 1990, 98 (04) :703-738
[8]   Study on the prediction of stock price based on the associated network model of LSTM [J].
Ding, Guangyu ;
Qin, Liangxi .
INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2020, 11 (06) :1307-1317
[9]  
Fan P., 2021, MATH PRACT THEORY, V51, P305
[10]   Optimal energy management of micro-grid using sparrow search algorithm [J].
Fathy, Ahmed ;
Alanazi, Turki M. ;
Rezk, Hegazy ;
Yousri, Dalia .
ENERGY REPORTS, 2022, 8 :758-773