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

被引:0
|
作者
Du, Sha [1 ]
Shen, Hailong [1 ]
机构
[1] College of Science, Northeastern University, Shenyang,110819, China
来源
Applied Sciences (Switzerland) | 2024年 / 14卷 / 19期
关键词
Convolutional neural network - DQN - Historical data - Prediction methods - Q-learning algorithms - Re-turn-on - Reinforcement learnings - Sentiment analysis - Stock predictions - Test sets;
D O I
10.3390/app14198747
中图分类号
学科分类号
摘要
Featured Application: The model proposed in this paper can help stock investors to get high returns on newly listed stocks. 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. © 2024 by the authors.
引用
收藏
相关论文
共 50 条
  • [1] Stock movement prediction with sentiment analysis based on deep learning networks
    Shi, Yong
    Zheng, Yuanchun
    Guo, Kun
    Ren, Xinyue
    [J]. CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2021, 33 (06):
  • [2] Stock Prediction using Deep Learning and Sentiment Analysis
    Xu, Yichuan
    Keselj, Vlado
    [J]. 2019 IEEE INTERNATIONAL CONFERENCE ON BIG DATA (BIG DATA), 2019, : 5573 - 5580
  • [3] Deep Reinforcement Learning for Stock Prediction
    Zhang, Junhao
    Lei, Yifei
    [J]. SCIENTIFIC PROGRAMMING, 2022, 2022
  • [4] Sentiment-Aware Stock Market Prediction: A Deep Learning Method
    Li, Jiahong
    Bu, Hui
    Wu, Junjie
    [J]. 2017 14TH INTERNATIONAL CONFERENCE ON SERVICES SYSTEMS AND SERVICES MANAGEMENT (ICSSSM), 2017,
  • [5] MODELING STOCK PRICE MOVEMENTS PREDICTION BASED ON NEWS SENTIMENT ANALYSIS AND DEEP LEARNING
    Tajmazinani, Maedeh
    Hassani, Hossein
    Raei, Reza
    Rouhani, Saeed
    [J]. ANNALS OF FINANCIAL ECONOMICS, 2022, 17 (01)
  • [6] Deep Learning for Stock Market Prediction Using Sentiment and Technical Analysis
    Chatziloizos G.-M.
    Gunopulos D.
    Konstantinou K.
    [J]. SN Computer Science, 5 (5)
  • [7] A Deep Learning-Based LSTM for Stock Price Prediction Using Twitter Sentiment Analysis
    Ouf, Shimaa
    Hawary, Mona El
    Aboutabl, Amal
    Adel, Sherif
    [J]. International Journal of Advanced Computer Science and Applications, 2024, 15 (12) : 207 - 218
  • [8] 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
  • [9] A cooperative deep learning model for stock market prediction using deep autoencoder and sentiment analysis
    Rekha, K. S.
    Sabu, M. K.
    [J]. PEERJ COMPUTER SCIENCE, 2022, 8
  • [10] A cooperative deep learning model for stock market prediction using deep autoencoder and sentiment analysis
    Rekha K.S.
    Sabu M.K.
    [J]. PeerJ Computer Science, 2022, 8