Skip to main navigation menu Skip to main content Skip to site footer

Articles

Vol. 56 No. 3 (2022)

A Novel Model for Stock Closing Price Prediction Using CNN-Attention-GRU-Attention

Submitted
October 24, 2026

Abstract

Predicting stock price to avoid risk is the focus of stock research. A reliable predicting model could offer in sights in stock price fluctuations and ultimately could provide the opportunity of gaining significant profits. In this paper, a new composite forecasting model is proposed to forecast the stock closing price of the next trading day. This model consists of three parts. Convolutional Neural Network (CNN) is used to collect: the factors that affect the stock price. attention mechanism (Attention) is used to compute the impact of stock data at different times on stock price. Gate Recu rrent Unit (GRU) is used to forecast the stock price. It can make good time series prediction. Through comparison with CNN-Attention-LSTM-Attention, CNN-Atte ntion-GRU, CNN-GRU-Attention and other traditional models. The experimental results indicate that the performance of this model is better to other models, and it has the best performance in evaluation metrics like MAE, RMSE and R2. It is more appropriate for stock price prediction.

References

  1. [1] Adriano, G., Sugimoto, D.N., Tasinaffo, P.M., et al. (2019), A New
  2. Approach to River Flow Forecasting: LSTM and GRU Multivariate Models.
  3. IEEE Latin America Transactions, 17 (12), 1978-1986;
  4. [2] Bhardwaj, G., Swanson, N.R. (2006), An Empirical Investigation of the
  5. Usefulness of ARFIMA Models for Predicting Macroeconomic and Financial
  6. Time Series. Journal of Econometrics, 131 (1-2), 539-578;
  7. [3] Chung, H., Shin, K. (2020), Genetic Algorithm-Optimized Multi-Channel
  8. Convolutional Neural Networks for Stock Market Prediction. Neural Computing
  9. & Applications, 32, 7897–7914;
  10. [4] Cho, K., Van, B., Gulcehre, C., et al. (2014), Learning Phrase
  11. Representations using RNN Encoder-Decoder for Statistical Machine
  12. Translation. Computer Science, 1724-1734;
  13. [5] Ergen, T., Kozat, S.S. (2020), Unsupervised Anomaly Detection with LSTM
  14. Neural networks. IEEE Transactions on Neural networks and Learning Systems,
  15. 31 (8), 3127-3141;
  16. [6] Guo, Y., Han, S. & Shen, C., et al. (2018), An Adaptive SVR for High-
  17. Frequency Stock Price Forecasting. IEEE Access, 6, 11397-11404.
  18. [7] Gu, L., Wu, Y., Pang, J. (2020). An Attention-based GRU Model for Stock
  19. Predicting. Systems Engineering, 30 (1), 134-140,
  20. [8] Hao, Y., Gao, Q. (2020), Predicting the Trend of Stock Market Index Using
  21. the Hybrid Neural networks Based on Multiple Time Scale Feature Learning.
  22. Applied Sciences, 10 (11), 3961-3974;
  23. Wenjie Lu, Jiazheng Li, Jingyang Wang,
  24. Shaowen Wu
  25. ____________________________________________________________
  26. 264
  27. [9] Lecun, Y., Botou, L., Bengio, Y., Haffner, P. (1998), Gradient-based
  28. Learning Applied to Document Recognition. Proceedings of the IEEE, 86 (11),
  29. 2278-2324;
  30. [10] Livieris, I., Pintelas, E., Pintelas, A. (2020), A CNN–LSTM Model for Gold
  31. Price Time-series Forecasting. Neural Computing & Applications, 32, 17351–
  32. 17360;
  33. [11] Nayak, S., Misra, B., Behera, H. (2017), Artificial Chemical Reaction
  34. Optimization of Neural Networks for Efficient Prediction of Stock Market
  35. Indices. Ain Shams Engineering Journal, 8 (3), 371-390;
  36. [12] Nabipour, M., Nayyeri, P., Jabani, H. et al. (2020), Predicting Stock
  37. Market Trends Using Machine Learning and Deep Learning Algorithms via
  38. Continuous and Binary Data; A Comparative Analysis. IEEE Access, 8, 150199-
  39. 150212;
  40. [13] Oh, L.H.S. (2005), Technological Forecasting at the Korean Stock Market:
  41. A Dynamic Competition Analysis Using Lotka–Volterra Model. Technological
  42. Forecasting and Social Change, 72 (8), 1044-1057;
  43. [14] Ren, R., Wu, D.D. & Liu, T. (2019), Forecasting Stock Market Movement
  44. Direction Using Sentiment Analysis and Support Vector Machine. IEEE Systems
  45. Journal, 13 (1), 760-770;
  46. [15] Sezer, O. B., Ozbayoglu, A.M. (2020), Financial Trading Model with Stock
  47. Bar Chart Image Time Series with Deep Convolutional Neural Networks.
  48. Intelligent Automation & Soft Computing, 26 (2), 323–334;
  49. [16] Ta, V., Liu, C., Tadesse, D. (2020), Portfolio Optimization-Based Stock
  50. Prediction Using Long-Short Term Memory Network in Quantitative Trading.
  51. Applied Sciences, 10 (2), 437-456;
  52. [17] Treisman, A., Gelade, G. (1980), A Feature-integration Theory of
  53. Attention. Cognitive psychology, 12 (1), 97-146;
  54. [18] Wang, L. (2015), Dynamical Models of Stock Prices Based on Technical
  55. Trading Rules—Part III: Application to Hong Kong Stocks. IEEE Transactions
  56. on Fuzzy Systems, 23 (5), 1680-1697;
  57. [19] White, H. (1998), Economic Prediction Using Neural Networks: The Case
  58. of IBM Daily Stock Returns. Earth Surface Processes & Landforms, 8 (5), 409-
  59. 422;
  60. [20] Yu, P., Yan, X. (2020), Stock Price Prediction Based on Deep Neural
  61. Networks. Neural Computing & Applications, 32, 1609–1628;
  62. [21] Zhang, G. (2003), Time Series Forecasting Using a Hybrid ARIMA and
  63. Neural Networks Model. Neurocomputing, 50, 159-175.

Similar Articles

21-30 of 547

You may also start an advanced similarity search for this article.