Application of BiLSTM -SA- TCN Time Series Model in Stock Forecasting
CSTR:
Author:
Affiliation:

1.School of Computer and Information Science, Chongqing Normal University;2.School of Finance and Tourism of Chongqing Institute of Engineering Technology

Clc Number:

TP183??? ????????

Fund Project:

Chongqing Natural Science Foundation (cstc2021ycjh bgzxm0088); Science and Technology Research Program of Chongqing Municipal Education Commission (KJQN201903402)

  • Article
  • | |
  • Metrics
  • |
  • Reference [20]
  • | |
  • Cited by [0]
  • | |
  • Comments
    Abstract:

    Aiming at the problems of timeliness and simplification of prediction functions in stock prediction models, this paper proposes a Bi-directional LSTM stock prediction model based on Long Short-Term Memory (LSTM) neural network, which combines self-attention mechanism and temporal convolution network (TCN). The learning unit and prediction unit in the BiLSTM-SA-TCN model can effectively learn important stock data, capture long-term dependency information, and output the predicted closing price of the next day's stock. The experimental results show that the prediction error RMSE of the BiLSTM-SA-TCN model is the smallest, the MAE is the smallest, and the fitting degree R2 is the best on multiple stock data sets. In the comparative experiments of different models, the BiLSTM-SA-TCN model has a higher generalization ability and a higher training efficiency.

    Reference
    [1] Murphy J J. Technical analysis of the financial markets: A comprehensive guide to trading methods and applications[M]. Penguin, 1999.
    [2] Smirlock M, Starks L. An empirical analysis of the stock price-volume relationship[J]. Journal of Banking Finance, 1988, 12(1): 31-41.
    [3] Heath D C, Jackson P L. Modeling the evolution of demand forecasts ITH application to safety stock analysis in production/distribution systems[J]. IIE transactions, 1994, 26(3): 17-30.
    [4] Brown S J, Goetzmann W N, Kumar A. The Dow theory: William Peter Hamilton''s track record reconsidered[J]. The Journal of finance, 1998, 53(4): 1311-1333.
    [5] Piccolo D. A distance measure for classifying ARIMA models[J]. Journal of time series analysis, 1990, 11(2): 153-164.
    [6] Karpoff J M. A theory of trading volume[J]. The journal of finance, 1986, 41(5): 1069-1087.
    [7] 张健,陈勇,夏罡,何永保.人工神经网络之股票预测[J].计算机工程,1997(02):52-55.Zhang Jian, Chen Yong, Xia Gang, He Yongbao. Stock Prediction Based on Artificial Neural Network [J]. Computer Engineering, 1997 (02): 52-55
    [8] Qiu M, Song Y, Akagi F. Application of artificial neural network for the prediction of stock market returns: The case of the Japanese stock market[J]. Chaos, Solitons Fractals, 2016, 85: 1-7
    [9] 郝知远. 基于改进的支持向量机的股票预测方法[J]. 江苏科技大学学报(自然科学版), 2017, 31(03):339-343.ao Zhiyuan.Stock prediction method based on im-proved support vector machine[J].Journal of Jiangsu University of Science and Technology(Natural Science Edition),2017,31(03):339-343.
    [10] Naik N, Mohan B R. Intraday stock prediction based on deep neural network[J]. National Academy Science Letters, 2020, 43(3): 241-246.
    [11] Selvin S, Vinayakumar R, Gopalakrishnan E A, et al. Stock price prediction using LSTM, RNN and CNN-sliding window model[C]//2017 international conference on advances in computing, communications and informatics (icacci). IEEE, 2017: 1643-1647.
    [12] Chen K, Zhou Y, Dai F. A LSTM-based method for stock returns prediction: A case study of China stock market[C]//2015 IEEE international conference on big data (big data). IEEE, 2015: 2823-2824.
    [13] Nelson D M Q, Pereira A C M, De Oliveira R A. Stock market''s price movement prediction with LSTM neural networks[C]//2017 International joint conference on neural networks (IJCNN). Ieee, 2017: 1419-1426.
    [14] Elliot A, Hsu C H. Time series prediction: Predicting stock price[J]. arXiv preprint arXiv:1710.05751, 2017.
    [15] Kim T, Kim H Y. Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data[J]. PloS one, 2019, 14(2): e0212320.
    [16] Lee M C. Research on the Feasibility of Applying GRU and Attention Mechanism Combined with Technical Indicators in Stock Trading Strategies[J]. Applied Sciences, 2022, 12(3): 1007.
    [17] Lu W, Li J, Wang J, et al. A CNN-BiLSTM-AM method for stock price prediction[J]. Neural Computing and Applications, 2021, 33(10): 4741-4753.
    [18] 邓飞燕,岑少琪,钟凤琪,潘家辉.基于LSTM神经网络的短期价格趋势预测[J].计算机系统应用,2021,30(04):187-192.DOI:10.15888/j.cnki.csa.007855.Deng Feiyan, Cen Shaoqi, Zhong Fengqi, Pan Jiahui. Short-term price trend prediction based on LSTM neural network [J]. Computer System Application, 2021, 30(04): 187-192. DOI: 10.15888/j.cnki.csa.007855 .
    [19] Lea C, Vidal R, Reiter A, et al. Temporal convolutional networks: A unified approach to action segmentation[C]//European conference on computer vision. Springer, Cham, 2016: 47-54.
    [20] 赵红蕊,薛雷.基于LSTM-CNN-CBAM模型的股票预测研究[J].计算机工程与应用,2021,57(03):203-207.hao Hongrui, Xue Lei. Research on stock prediction based on LSTM-CNN-CBAM model [J]. Computer En-gineering and Applications, 2021, 57(03): 203-207.
    Related
    Cited by
    您输入的地址无效!
    没有找到您想要的资源,您输入的路径无效!

    Comments
    Comments
    分享到微博
    Submit
Get Citation
Share
Article Metrics
  • Abstract:415
  • PDF: 0
  • HTML: 0
  • Cited by: 0
History
  • Received:October 31,2022
  • Revised:April 03,2023
  • Adopted:April 06,2023
Article QR Code

Address:No. 219, Ningliu Road, Nanjing, Jiangsu Province

Postcode:210044

Phone:025-58731025