Stock Price Prediction Using CNN-BiLSTM-Attention Model

被引:31
|
作者
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 条
  • [31] 基于CNN-BILSTM-Attention模型的光伏发电预测研究
    许远东
    现代工业经济和信息化, 2024, 14 (11) : 171 - 172
  • [32] Correction to: A CNN-BiLSTM model with attention mechanism for earthquake prediction
    Parisa Kavianpour
    Mohammadreza Kavianpour
    Ehsan Jahani
    Amin Ramezani
    The Journal of Supercomputing, 2024, 80 : 2913 - 2913
  • [33] Crested Porcupine Optimizer-Optimized CNN-BiLSTM-Attention Model for Predicting Main Girder Temperature in Bridges
    Gao, Yan
    Wang, Jianxun
    Yu, Wenhao
    Yi, Lu
    Guo, Fengqi
    APPLIED SCIENCES-BASEL, 2024, 14 (16):
  • [34] 基于CNN-BiLSTM-Attention的励磁涌流识别方法
    杨建峥
    王建
    赵洪峰
    高超杰
    国外电子测量技术, 2025, 44 (01) : 10 - 16
  • [35] Partial Discharge Recognition of Transformers Based on Data Augmentation and CNN-BiLSTM-Attention Mechanism
    Fu, Zhongjun
    Wang, Yuhui
    Zhou, Lei
    Li, Keyang
    Rao, Hang
    ELECTRONICS, 2025, 14 (01):
  • [36] Research on Stock Index Prediction Based on the Spatiotemporal Attention BiLSTM Model
    Mu, Shengdong
    Liu, Boyu
    Gu, Jijian
    Lien, Chaolung
    Nadia, Nedjah
    MATHEMATICS, 2024, 12 (18)
  • [37] Short-Term Power Load Forecasting Based on Secondary Cleaning and CNN-BILSTM-Attention
    Wang, Di
    Li, Sha
    Fu, Xiaojin
    ENERGIES, 2024, 17 (16)
  • [38] Online soft measurement method for chemical oxygen demand based on CNN-BiLSTM-Attention algorithm
    Liu, Libo
    Tian, Xueyong
    Ma, Yongguang
    Lu, Wenxia
    Luo, Yuanqing
    PLOS ONE, 2024, 19 (06):
  • [39] 基于CNN-BiLSTM-Attention的直流微电网故障诊断研究
    孟宏宇
    张建良
    蔡兆龙
    李超勇
    中国电机工程学报, 2025, 45 (04) : 1369 - 1381
  • [40] Causal Attention Transformer Model for Stock Price Prediction
    Ren, Jiayi
    Wang, Aiyin
    Computer Engineering and Applications, 2023, 59 (13): : 325 - 334