Abstract

Stock price prediction is a complex problem because financial time series data are volatile and complicated. The model should learn the temporal relationship and complex spatial patterns in data for precise stock price prediction. Conventional methods used for stock price forecasting have many limitations regarding handling nonlinear, complex, and dynamic data. This study assesses a hybrid deep learning model integrated with a triple attention mechanism to predict stock prices. It is experimental that the proposed MTA-HDCRNN model performs well on intricate data. The deep CNN works well on finding the local patterns in the data, whereas the simple RNN supports to learn sequential data. The triple attention mechanism emphasizes which features to focus on and where to focus. The dataset used for analysis is the BSE and Nifty 50. Web scraping is done to get the news data. Feature extraction includes statistical features, entropy features, PCA features, and technical indicators. Overall, the complete architecture of the proposed model is vigorous. It is observed that there is a 2% to 6% decrease in error values when the model is compared with existing state-of-the-art models. Experimentation shows that the proposed model enhances the stock price prediction, making it useful for investors and financial analysts for decision-making.

Keywords

Financial Time Series, Stock Market, Deep Learning, Attention Mechanism,

Downloads

Download data is not yet available.

References

  1. K. Huang, X. Li, F. Liu, X. Yang, W. Yu, ML-GAT: A Multilevel Graph Attention Model for Stock Prediction. IEEE Access, 10, (2022) 86408–86422. https://doi.org/10.1109/ACCESS.2022.3199008
  2. S. Wang, A Stock Price Prediction Method Based on BiLSTM and Improved Transformer. IEEE Access, IEEE, 11, (2023) 104211–104223. https://doi.org/10.1109/ACCESS.2023.3296308
  3. S.A. Neild, P.D. McFadden, M.S. Williams, A Review of Time-Frequency Methods for Structural Vibration Analysis. Engineering Structures, 25, (2003) 713–728. https://doi.org/10.1016/S0141-0296(02)00194-3
  4. H. Mohammadi, L. Su, International evidence on crude oil price dynamics: Applications of ARIMA-GARCH models. Energy Economics, 32(5), (2010) 1001–1008. https://doi.org/10.1016/j.eneco.2010.04.009
  5. D. Wang, X. Liu, M. Wang, (2023) A DT-SVM strategy for stock futures prediction with big data. In 2013 IEEE 16th International Conference on Computational Science and Engineering, IEEE, Sydney, NSW, Australia. https://doi.org/10.1109/CSE.2013.147
  6. Y. Chen, Y. Hao, A feature weighted support vector machine and K-nearest neighbor algorithm for stock market indices prediction. Expert Systems with Applications, 80, (2017) 340–355.
  7. https://doi.org/10.1016/j.eswa.2017.02.044
  8. P. Wang, Y. Lou, L. Lei, (2017) Research on stock price prediction based on BP wavelet neural network with Mexico hat wavelet basis, In 2017 International Conference on Education, Economics and Management Research (ICEEMR 2017), Atlantis Press, Singapore. https://doi.org/10.2991/iceemr-17.2017.25
  9. P. Kasture, K. Shirsath, (2023) Recent Studies on Deep Learning Techniques for Stock Market Forecasting. International Conference on Sustainable Computing and Smart System, (ICSCSS), IEEE, Coimbatore, India. https://doi.org/10.1109/ICSCSS57650.2023.10169585
  10. H. Ouyang, X. Wei, Q. Wu, Discovery and Prediction of Stock Index Pattern via Three-Stage Architecture of TICC, TPA-LSTM and Multivariate LSTM-FCNs. IEEE Access, 8, (2020) 123683–123700. https://doi.org/10.1109/ACCESS.2020.3005994
  11. X. Huang, P. You, X. Gao, D. Cheng, (2023) Stock Price Prediction Based on ARIMA-GARCH and LSTM. In Proceedings of International Academic Conference on Blockchain, Information Technology and Smart Finance, Springer Nature. https://doi.org/10.2991/978-94-6463-198-2_45
  12. P. Yu, X. Yan, Stock price prediction based on deep neural networks. Neural Computer Applications, 32(6), (2020) 1609–1628. https://doi.org/10.1007/s00521-019-04212-x
  13. G. Mu, N. Gao, Y. Wang, L. Dai, A stock price prediction model based on investor sentiment and optimized deep learning. IEEE Access, (2023) 51353 – 51367. https://doi.org/10.1109/ACCESS.2023.3278790
  14. K. Huang, X. Li, F. Liu, X. Yang, W. Yu, ML-GAT: A multilevel graph attention model for stock prediction. IEEE Access, 10, (2022) 86408-22. https://doi.org/10.1109/ACCESS.2022.3199008
  15. M. Ali, D.M. Khan, H.M. Alshanbari, A.A. El-Bagoury, Prediction of complex stock market data using an improved hybrid EMD-LSTM model. Applied Sciences, 13(3) (2023) 1429. https://doi.org/10.3390/app13031429
  16. S. Mukherjee, B. Sadhukhan, N. Sarkar, D. Roy, S. De, Stock market prediction using deep learning algorithms. CAAI Transactions on Intelligence Technology, 8(1), (2023) 82-94. https://doi.org/10.1049/cit2.12059
  17. X. Zhang, X. Liang, A. Zhiyuli, S. Zhang, R. Xu, B. Wu, AT-LSTM: An Attention-based LSTM Model for Financial Time Series Prediction. IOP Conference Series: Materials Science and Engineering, 569(5), (2023) 052037.https://doi.org/10.1088/1757-899X/569/5/052037
  18. Y. Chen, W. Lin, J.Z. Wang, A Dual-Attention-Based Stock Price Trend Prediction Model with Dual Features. IEEE Access, IEEE, 7, (2019) 148047–148058. https://doi.org/10.1109/ACCESS.2019.2946223
  19. S. Zhang, H. Zhang, (2020) Prediction of Stock Closing Prices Based on Attention Mechanism. Proceedings - 2020 16th Dahe Fortune China Forum and Chinese High-Educational Management Annual Academic Conference, IEEE, Zhengzhou, China. https://doi.org/10.1109/DFHMC52214.2020.00053
  20. M.C. Lee, J.W. Chang, S.C. Yeh, T.L. Chia, J.S. Liao, X.M. Chen, Applying attention-based BiLSTM and technical indicators in the design and performance analysis of stock trading strategies. Neural Computing and Applications, 34(16), (2021)13267–13279. https://doi.org/10.1007/s00521-021-06828-4
  21. H. Abbasimehr, R. Paki, Improving time series forecasting using LSTM and attention models. Journal of Ambient Intelligence and Humanized Computing, 13(1), (2022) 673–691. https://doi.org/10.1007/s12652-020-02761-x
  22. C.T. Lin, Y.K. Wang, P.L. Huang, Y. Shi, Y.C. Chang, Spatial-temporal attention-based convolutional network with text and numerical information for stock price prediction. Neural Computing and Applications, 34(17), (2022)14387–14395. https://doi.org/10.1007/s00521-022-07234-0
  23. J. Zhang, L. Ye, Y. Lai, Stock Price Prediction Using CNN-BiLSTM-Attention Model, Mathematics, 11(9), (2023) 1985. https://doi.org/10.3390/math11091985
  24. Y. Zhao, H. Du, Y. Liu, S. Wei, X. Chen, F. Zhuang, Q. Li, G. Kou, Stock Movement Prediction Based on Bi-Typed Hybrid-Relational Market Knowledge Graph via Dual Attention Networks. IEEE Transactions on Knowledge and Data Engineering, IEEE, 35(8), (2023) 8559–8571. https://doi.org/10.1109/TKDE.2022.3220520
  25. BSE Dataset, (2024) https://finance.yahoo.com/quote/%5EBSESN/history/
  26. Nifty 50 Dataset, (2024) https://finance.yahoo.com/quote/%5ENSEI/history/?guccounter=1
  27. P. Kasture, K. Shirsath, Enhancing Stock Market Prediction: A Hybrid RNN-LSTM Framework with Sentiment Analysis. Indian Journal of Science and Technology, 17(18), (2024) 1880–1888. https://doi.org/10.17485/IJST/v17i18.466
  28. V. Rao Maddumala, R. Arunkumar, Big Data-Driven Feature Extraction and Clustering Based on Statistical Methods. Traitement du Signal, 37(3), (2020) 387-394. https://doi.org/10.18280/ts.370305
  29. W. Du, D. Côté, Y. Liu, SAITS: Self-attention-based imputation for time series. Expert Systems with Applications, 219, (2023) 119619. https://doi.org/10.1016/j.eswa.2023.119619
  30. W.K. Mutlag, S.K. Ali, Z.M. Aydam, B.H. Taher, Feature Extraction Methods: A Review, Journal of Physics: Conference Series, 1591(1), (2020) 012028. https://doi.org/10.1088/1742-6596/1591/1/012028
  31. Y. Yin, P. Shang, Weighted multiscale permutation entropy of financial time series. Nonlinear Dynamics, 78(4), (2014) 2921–2939. https://doi.org/10.1007/s11071-014-1636-2
  32. J. Olbrys, E. Majewska, Approximate entropy and sample entropy algorithms in financial time series analyses. Procedia Computer Science, 207, (2022) 255–264. https://doi.org/10.1016/j.procs.2022.09.058
  33. R. Gu, Multiscale Shannon entropy and its application in the stock market. Physica A: Statistical Mechanics and Its Applications, 484, (2017) 215–224. https://doi.org/10.1016/j.physa.2017.04.164
  34. J. Li, P. Shang, X. Zhang, Financial time series analysis based on fractional and multiscale permutation entropy. Communications in Nonlinear Science and Numerical Simulation, 78, (2019) 104880. https://doi.org/10.1016/j.cnsns.2019.104880
  35. M. Waqar, H. Dawood, M.B. Shahnawaz, M.A. Ghazanfar, P. Guo, (2017) Prediction of Stock Market by Principal Component Analysis. Proceedings - 13th International Conference on Computational Intelligence and Security (CIS), IEEE, Hong Kong, China. https://doi.org/10.1109/CIS.2017.00139
  36. C. McHugh, S. Coleman, D. Kerr, Technical indicators for energy market trading. Machine Learning with Applications, 6, (2021)100182. https://doi.org/10.1016/j.mlwa.2021.100182