A Stock Prediction Method Based on Deep Reinforcement Learning and Sentiment Analysis

被引:2
作者
Du, Sha [1 ]
Shen, Hailong [1 ]
机构
[1] Northeastern Univ, Coll Sci, Shenyang 110819, Peoples R China
来源
APPLIED SCIENCES-BASEL | 2024年 / 14卷 / 19期
关键词
stock prediction; deep reinforcement learning; sentiment analysis; convolutional neural network; DQN; GO;
D O I
10.3390/app14198747
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
Featured Application The model proposed in this paper can help stock investors to get high returns on newly listed stocks.Abstract Most previous stock investing methods were unable to predict newly listed stocks because they did not have historical data on newly listed stocks. In this paper, we use the Q-learning algorithm based on a convolutional neural network and add sentiment analysis to establish a prediction method for Chinese stock investment tasks. There are 118 companies that are ranked in the Chinese top 150 list for two consecutive years in both 2022 and 2023. We collected all comments under the stock bar of these 118 stocks for each day from 1 January 2022 to 1 July 2024, totaling nearly 10 million comments. There are 90 stocks left after the preprocessing of 118 stocks. We use these 90 stocks as the dataset. The stock's closing price, volume, and comment text data are fed together to the agent, and the trained agent outputs investment behaviors that maximize future returns. We apply the trained model to two test sets that are completely different from the training set and compare it to several other methods. Our proposed method called SADQN-S obtains results of 1.1229 and 1.1054 on the two test sets. SADQN-S obtained higher final total assets than the other methods on both test sets. This shows that our model can help stock investors earn high returns on newly listed stocks.
引用
收藏
页数:23
相关论文
共 54 条
[1]   Forecasting a Stock Trend Using Genetic Algorithm and Random Forest [J].
Abraham, Rebecca ;
El Samad, Mahmoud ;
Bakhach, Amer M. ;
El-Chaarani, Hani ;
Sardouk, Ahmad ;
El Nemar, Sam ;
Jaber, Dalia .
JOURNAL OF RISK AND FINANCIAL MANAGEMENT, 2022, 15 (05)
[2]   Comparison of ARIMA and Artificial Neural Networks Models for Stock Price Prediction [J].
Adebiyi, Ayodele Ariyo ;
Adewumi, Aderemi Oluyinka ;
Ayo, Charles Korede .
JOURNAL OF APPLIED MATHEMATICS, 2014,
[3]   Modeling Multistep Ahead Dissolved Oxygen Concentration Using Improved Support Vector Machines by a Hybrid Metaheuristic Algorithm [J].
Adnan, Rana Muhammad ;
Dai, Hong-Liang ;
Mostafa, Reham R. ;
Parmar, Kulwinder Singh ;
Heddam, Salim ;
Kisi, Ozgur .
SUSTAINABILITY, 2022, 14 (06)
[4]  
Afeef M., 2018, NUML Int. J. Bus. Manag, V13, P130
[5]  
[Anonymous], 2004, P 20 INT C COMP LING
[6]   Investor sentiment and the cross-section of stock returns [J].
Baker, Malcolm ;
Wurgler, Jeffrey .
JOURNAL OF FINANCE, 2006, 61 (04) :1645-1680
[7]   Active Object Localization with Deep Reinforcement Learning [J].
Caicedo, Juan C. ;
Lazebnik, Svetlana .
2015 IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV), 2015, :2488-2496
[8]   A multi-layer and multi-ensemble stock trader using deep learning and deep reinforcement learning [J].
Carta, Salvatore ;
Corriga, Andrea ;
Ferreira, Anselmo ;
Podda, Alessandro Sebastian ;
Recupero, Diego Reforgiato .
APPLIED INTELLIGENCE, 2021, 51 (02) :889-905
[9]   Computational Intelligence and Financial Markets: A Survey and Future Directions [J].
Cavalcante, Rodolfo C. ;
Brasileiro, Rodrigo C. ;
Souza, Victor L. P. ;
Nobrega, Jarley P. ;
Oliveira, Adriano L. I. .
EXPERT SYSTEMS WITH APPLICATIONS, 2016, 55 :194-211
[10]  
Chen L, 2019, INT CONF SOFTW ENG, P29, DOI [10.1109/icsess47205.2019.9040728, 10.1109/ICSESS47205.2019.9040728]