PSO-OPTIMIZED DEEP LEARNING MODELS FOR STOCK PRICE FORECASTING: EVIDENCE FROM VCB STOCK
PDF (Vietnamese)

Keywords

Stock price forecasting Dự báo giá cổ phiếu
LSTM
GRU
Bi-LSTM
Tối ưu hoá siêu tham số

Abstract

Accurate stock price forecasting plays a crucial role in investment analysis and financial risk management. This study aims to improve the forecasting accuracy of the daily closing price of VCB stock listed on the Ho Chi Minh City Stock Exchange (HOSE) using deep learning models. Three architectures, namely LSTM, GRU, and BiLSTM, were developed and compared within a unified experimental framework. The forecasting task was formulated as a univariate time-series problem using only the closing price series, with a 10-to-1 sliding window approach in which the prices of the previous 10 trading sessions were used to predict the closing price of the following session. To reduce reliance on manual trial-and-error procedures, Particle Swarm Optimization (PSO) was employed to optimize key hyperparameters, including the number of hidden units, dropout rate, learning rate, and batch size. Experimental results show that PSO significantly improved the forecasting performance of all three models, with the optimized GRU achieving the best results on the test set, with an RMSE of 0.6851 and an R² of 0.9693. These findings provide empirical evidence for the effectiveness of integrating deep learning with hyperparameter optimization in stock price forecasting for the Vietnamese stock market.

https://doi.org/10.26459/hueunijed.v135i5A.8144
PDF (Vietnamese)

References

  1. J. S. Bhullar (2024), Developing a Time Series Financial Market Forecasting Model Based on Machine Learning Tools and Techniques, IJTBM, vol. 14, no. 1, pp. 78–87, doi: 10.37648/ijtbm.v14i01.010.
  2. S. Syaharuddin (2024), Time-Series Analysis in Financial Prediction: A Literature Review, Sainstek: Jurnal Sains dan Teknologi, doi: http://dx.doi.org/10.31958/js.v16i2.13117.
  3. G. J. Ross (2013), Modeling Financial Volatility in the Presence of Abrupt Changes, Physica A: Statistical Mechanics and its Applications, vol. 392, no. 2, pp. 350–360, doi: 10.1016/j.physa.2012.08.015.
  4. T.-N. Nguyen, M.-N. Tran, D. Gunawan, and R. Kohn (2022), A Statistical Recurrent Stochastic Volatility Model for Stock Markets, arXiv: arXiv:1906.02884. doi: 10.48550/arXiv.1906.02884.
  5. M. Wiese, R. Knobloch, R. Korn, and P. Kretschmer (2020), Quant GANs: Deep Generation of Financial Time Series,” Quantitative Finance, vol. 20, no. 9, pp. 1419–1440, doi: 10.1080/14697688.2020.1730426.
  6. Y. Gao, R. Wang, and E. Zhou (2021), Stock Prediction Based on Optimized LSTM and GRU Models,” Scientific Programming, vol. 2021, pp. 1–8, doi: 10.1155/2021/4055281.
  7. Y. L. Sukestiyarno, D. T. Wiyanti, L. Azizah, and W. Widada (2024), Algorithm Optimizer in GA-LSTM for Stock Price Forecasting,” Contemp. Math., doi: 10.37256/cm.5120243367.
  8. G. Kumar, U. P. Singh, and S. Jain (2022), An adaptive particle swarm optimization-based hybrid long short-term memory model for stock price time series forecasting, Soft Computing, vol. 26, no. 22, pp. 12115–12135, doi: 10.1007/s00500-022-07451-8.
  9. N. T. Co, H. H. Son, N. T. Hoang, T. T. P. Lien, and T. M. Ngoc (2020), Comparison Between ARIMA and LSTM-RNN for VN-Index Prediction, doi: 10.1007/978-3-030-39512-4_168.
  10. S. Pasak and R. Jayadi (2023), Investment Decision on Cryptocurrency: Comparing Prediction Performance Using ARIMA and LSTM, Journal of Information Systems and Informatics, vol. 5, pp. 407–427, doi: 10.51519/journalisi.v5i2.473.
  11. N. T. Hương and B. Q. Trung (2015), Ứng dụng mô hình kết hợp ARIMA-GARCH để dự báo chỉ số VN-Index, Tạp chí Khoa học và Công nghệ - Đại học Đà Nẵng, pp. 118–122.
  12. B. Aditya Pai, L. Devareddy, S. Hegde, and B. S. Ramya (2022), A Time Series Cryptocurrency Price Prediction Using LSTM, in Emerging Research in Computing, Information, Communication and Applications, N. R. Shetty, L. M. Patnaik, H. C. Nagaraj, P. N. Hamsavath, and N. Nalini, Eds., Singapore: Springer, pp. 653–662, doi: 10.1007/978-981-16-1342-5_50.
  13. Y. Khodke and S. Deshpande (2023), Stock Price Prediction Using LSTM and GRU, IJRASET, vol. 11, no. 6, pp. 1163–1167, doi: 10.22214/ijraset.2023.53826.
  14. M. J. Hamayel and A. Y. Owda (2021), A Novel Cryptocurrency Price Prediction Model Using GRU, LSTM and bi-LSTM Machine Learning Algorithms, AI, vol. 2, no. 4, pp. 477–496, doi: 10.3390/ai2040030.
  15. F. Barez, P. Bilokon, A. Gervais, and N. Lisitsyn (2023), Exploring the Advantages of Transformers for High-Frequency Trading, arXiv: arXiv:2302.13850. doi: 10.48550/arXiv.2302.13850.
  16. X. Zhang (2022), Financial Time Series Forecasting Based on LSTM Neural Network optimized by Wavelet Denoising and Whale Optimization Algorithm, AJCIS, vol. 5, no. 7, doi: 10.25236/ajcis.2022.050701.
  17. N. A. Hitam, A. R. Ismail, and F. Saeed (2019), An Optimized Support Vector Machine (SVM) based on Particle Swarm Optimization (PSO) for Cryptocurrency Forecasting, Procedia Computer Science, vol. 163, pp. 427–433, doi: 10.1016/j.procs.2019.12.125.
  18. P. Deka, M. Cordeiro-Costas, R. Pérez-Orozco, M. Chabiński, and A. Szlęk (2025), Novel NSGA-II optimized LSTM and GRU models for short-term forecasting of residential heating load, Energy and Buildings, vol. 344, p. 115999, doi: 10.1016/j.enbuild.2025.115999.
  19. W. Zhai (2023), Stock Price Prediction Based on Optimized LSTM Model, in Proceedings of the 2nd International Conference on Financial Innovation, FinTech and Information Technology, Chongqing, China, EAI, 2023. doi: 10.4108/eai.7-7-2023.2338038.
  20. S. Hochreiter and J. Schmidhuber (1997), Long Short-Term Memory, Neural Computation, vol. 9, no. 8, pp. 1735–1780, doi: 10.1162/neco.1997.9.8.1735.
Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Copyright (c) 2025 Array