Stock Price Prediction Using CNN-BiLSTM-Attention Model

被引:30
|
作者
Zhang, Jilin [1 ]
Ye, Lishi [1 ]
Lai, Yongzeng [2 ]
机构
[1] Fujian Univ Technol, Sch Comp Sci & Math, Fuzhou 350108, Peoples R China
[2] Wilfrid Laurier Univ, Dept Math, Waterloo, ON N2L 3C5, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
stock price prediction; deep learning; CNN; BiLSTM; attention mechanism; VOLATILITY;
D O I
10.3390/math11091985
中图分类号
O1 [数学];
学科分类号
0701 ; 070101 ;
摘要
Accurate stock price prediction has an important role in stock investment. Because stock price data are characterized by high frequency, nonlinearity, and long memory, predicting stock prices precisely is challenging. Various forecasting methods have been proposed, from classical time series methods to machine-learning-based methods, such as random forest (RF), recurrent neural network (RNN), convolutional neural network (CNN), Long Short-Term Memory (LSTM) neural networks and their variants, etc. Each method can reach a certain level of accuracy but also has its limitations. In this paper, a CNN-BiLSTM-Attention-based model is proposed to boost the accuracy of predicting stock prices and indices. First, the temporal features of sequence data are extracted using a convolutional neural network (CNN) and bi-directional long and short-term memory (BiLSTM) network. Then, an attention mechanism is introduced to fit weight assignments to the information features automatically; and finally, the final prediction results are output through the dense layer. The proposed method was first used to predict the price of the Chinese stock index-the CSI300 index and was found to be more accurate than any of the other three methods-LSTM, CNN-LSTM, CNN-LSTM-Attention. In order to investigate whether the proposed model is robustly effective in predicting stock indices, three other stock indices in China and eight international stock indices were selected to test, and the robust effectiveness of the CNN-BiLSTM-Attention model in predicting stock prices was confirmed. Comparing this method with the LSTM, CNN-LSTM, and CNN-LSTM-Attention models, it is found that the accuracy of stock price prediction is highest using the CNN-BiLSTM-Attention model in almost all cases.
引用
收藏
页数:18
相关论文
共 50 条
  • [1] Horizontal in situ stresses prediction using a CNN-BiLSTM-attention hybrid neural network
    Tianshou Ma
    Guofu Xiang
    Yufan Shi
    Yang Liu
    Geomechanics and Geophysics for Geo-Energy and Geo-Resources, 2022, 8
  • [2] Horizontal in situ stresses prediction using a CNN-BiLSTM-attention hybrid neural network
    Ma, Tianshou
    Xiang, Guofu
    Shi, Yufan
    Liu, Yang
    GEOMECHANICS AND GEOPHYSICS FOR GEO-ENERGY AND GEO-RESOURCES, 2022, 8 (05)
  • [3] Network Intrusion Detection Method Based on CNN-BiLSTM-Attention Model
    Dai, Wei
    Li, Xinhui
    Ji, Wenxin
    He, Sicheng
    IEEE ACCESS, 2024, 12 : 53099 - 53111
  • [4] A Method for Sound Speed Profile Prediction Based on CNN-BiLSTM-Attention Network
    Wei, Zhang
    Jin, Shaohua
    Gang, Bian
    Yang, Cui
    Peng, Chengyang
    Xia, Haixing
    JOURNAL OF MARINE SCIENCE AND ENGINEERING, 2024, 12 (03)
  • [5] COSMIC-2 RFI Prediction Model Based on CNN-BiLSTM-Attention for Interference Detection and Location
    Song, Cheng-Long
    Jin, Rui-Min
    Han, Chao
    Wang, Dan-Dan
    Guo, Ya-Ping
    Cui, Xiang
    Wang, Xiao-Ni
    Bai, Pei-Rui
    Zhen, Wei-Min
    SENSORS, 2024, 24 (23)
  • [6] A NOVEL MODEL FOR STOCK CLOSING PRICE PREDICTION USING CNN-ATTENTION-GRU-ATTENTION
    Lu, Wenjie
    Li, Jiazheng
    Wang, Jingyang
    Wu, Shaowen
    ECONOMIC COMPUTATION AND ECONOMIC CYBERNETICS STUDIES AND RESEARCH, 2022, 56 (03): : 251 - 264
  • [7] Prediction of protein N-terminal acetylation modification sites based on CNN-BiLSTM-attention model
    Ke J.
    Zhao J.
    Li H.
    Yuan L.
    Dong G.
    Wang G.
    Computers in Biology and Medicine, 2024, 174
  • [8] A CNN-BiLSTM-AM method for stock price prediction
    Wenjie Lu
    Jiazheng Li
    Jingyang Wang
    Lele Qin
    Neural Computing and Applications, 2021, 33 : 4741 - 4753
  • [9] A CNN-BiLSTM-AM method for stock price prediction
    Lu, Wenjie
    Li, Jiazheng
    Wang, Jingyang
    Qin, Lele
    NEURAL COMPUTING & APPLICATIONS, 2021, 33 (10): : 4741 - 4753
  • [10] Dynamic prediction model of landslide displacement based on (SSA-VMD)-(CNN-BiLSTM-attention): a case study
    Wang, Rubin
    Lei, Yipeng
    Yang, Yue
    Xu, Weiya
    Wang, Yunzi
    FRONTIERS IN PHYSICS, 2024, 12