GWO-Enhanced Hybrid Deep Learning with SHAP for Explainable TLKM.JK Stock Forecasting

Authors

  • Hilmi Aziz Bukhori Department of Mathematics, Faculty of Mathematics and Natural Sciences, Brawijaya University, Indonesia
  • Saiful Bukhori Department of Information Technology, Faculty of Computer Science, University of Jember, Indonesia
  • Syaiful Anam Department of Mathematics, Faculty of Mathematics and Natural Sciences, Brawijaya University, Indonesia
  • Feby Indriana Yusuf Department of Mathematics, Faculty of Mathematics and Natural Sciences, Brawijaya University, Indonesia
  • Meylita Sari Department of Mathematics, Faculty of Mathematics and Natural Sciences, Brawijaya University, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2025.6.4.5205

Keywords:

Grey Wolf Optimization, Hybrid Deep Learning, SHAP, Stock Price Forecasting, TLKM.JK

Abstract

This study presents an innovative Grey Wolf Optimization (GWO)-enhanced hybrid deep learning model integrating Convolutional Neural Networks (CNN), Bidirectional Long Short-Term Memory (BiLSTM), and Transformer, combined with SHAP for interpretable stock price forecasting of TLKM.JK from July 29, 2024, to July 29, 2025. Addressing non-linear market dynamics, the model evaluates seven experimental cases, with the GWO-optimized configuration (Case 2) achieving superior performance, with a Root Mean Squared Error (RMSE) of 75.23, Mean Absolute Error (MAE) of 58.14, and Directional Accuracy (DA) of 76.2%, surpassing the baseline by 17.4% in RMSE and 8.1% in DA. Notably, Case 2 excels during the April 2025 surge (11.8% increase, MAE 53, DA 82%) and the high-volume day of May 28, 2025 (531,309,500 shares, MAE 48), leveraging Volume (SHAP 0.45) and RSI (0.28) as key predictors. With a 4-hour convergence time on an NVIDIA RTX 3060 GPU, the model ensures computational efficiency and interpretability, making it a robust tool for traders. Despite limitations in single-stock focus and GPU dependency, this framework advances AI-driven financial forecasting by offering transparent, high-accuracy predictions, paving the way for multi-stock applications and real-time SHAP updates.

Downloads

Download data is not yet available.

References

Simplilearn, "Stock Market Prediction using Machine Learning in 2025," Simplilearn, 2025 [Online]. Available: https://www.simplilearn.com

P. H. Vuong et al., "A bibliometric literature review of stock price forecasting: From statistical model to deep learning approach," Science Progress, vol. 107, no. 1, pp. 368504241236557, 2024, doi: 10.1177/00368504241236557.

T. H. Nguyen et al., "Applying machine learning algorithms to predict the stock price trend in the stock market – The case of Vietnam," Humanities and Social Sciences Communications, vol. 11, pp. 2807, 2024, doi: 10.1057/s41599-024-02807-0.

W. Jiang, "Applications of deep learning in stock market prediction: Recent progress," Expert Systems with Applications, vol. 213, pp. 118856, 2023, doi: 10.1016/j.eswa.2022.118856.

Saberironaghi M, Ren J, Saberironaghi A. Stock Market Prediction Using Machine Learning and Deep Learning Techniques: A Review. AppliedMath. 2025; 5(3):76. https://doi.org/10.3390/appliedmath5030076

H. Liu and S. Wang, "Stock price forecasting using Transformer-based models: A comprehensive review," Financial Innovation, vol. 10, no. 1, pp. 1-20, 2024, doi: 10.1186/s40854-023-00533-6.

Y. Chen and Y. Hao, "A survey of deep learning for financial applications," IEEE Access, vol. 9, pp. 79857-79878, 2021, doi: 10.1109/ACCESS.2021.3083897.

J. Wang and J. Wang, "Deep learning in finance: A literature review," Journal of Financial Data Science, vol. 4, no. 1, pp. 1-18, 2022, doi: 10.3905/jfds.2022.1.001.

L. Zhang and J. Zhang, "A hybrid deep learning model for stock price prediction using CNN and BiLSTM," Expert Systems with Applications, vol. 213, pp. 118856, 2023, doi: 10.1016/j.eswa.2022.118856.

P. Weber et al., "A comprehensive review on financial explainable AI," Artificial Intelligence Review, vol. 57, pp. 11077, 2024, doi: 10.1007/s10462-023-11077-0.

J. Černevičienė and A. Kabašinskas, "Explainable machine learning to predict the cost of capital," Frontiers in Artificial Intelligence, vol. 8, pp. 1578190, 2024, doi: 10.3389/frai.2024.1578190.

S. S. Bagalkot, H. A. Dinesha, and N. Naik, "Novel grey wolf optimizer based parameters selection for GARCH and ARIMA models for stock price prediction," PeerJ Computer Science, vol. 10, pp. e1735, 2024, doi: 10.7717/peerj-cs.1735.

A. K. Sahoo and M. N. Mohanty, "Prediction of stock market using grey wolf optimization with hybrid convolutional neural network and bi-directional long-short term memory model," Journal of Intelligent and Fuzzy Systems, vol. 45, no. 3, pp. 233716, 2023, doi: 10.3233/JIFS-233716.

P. M. Kitonyi and D. R. Segera, "A stock selection algorithm hybridizing grey wolf optimizer and support vector regression," Expert Systems with Applications, vol. 179, pp. 115094, 2021, doi: 10.1016/j.eswa.2021.115094.

M. Das, B. R. Mohan, R. M. R. Guddeti, and N. Prasad, "Hybrid bio-optimized algorithms for hyperparameter tuning in machine learning models: A software defect prediction case study," Mathematics, vol. 12, no. 16, pp. 2521, 2024, doi: 10.3390/math12162521.

S. M. Lundberg et al., "From local explanations to global understanding with explainable AI for trees," Nature Machine Intelligence, vol. 2, no. 1, pp. 56-67, 2020, doi: 10.1038/s42256-019-0138-9.

A. Bitetto et al., "Explainable AI in corporate finance: A review," Journal of Financial Data Science, vol. 5, no. 2, pp. 45-67, 2023, doi: 10.3905/jfds.2023.1.045.

A. Shalit, "Significance of predictors: Revisiting stock return predictions using explainable AI," Annals of Operations Research, vol. 67, pp. 6717, 2025, doi: 10.1007/s10479-024-06717-0.

A. B. Arrieta et al., "Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI," Information Fusion, vol. 58, pp. 82-115, 2020, doi: 10.1016/j.inffus.2019.12.012.

A. Adadi and M. Berrada, "Peeking inside the black-box: A survey on explainable artificial intelligence (XAI)," IEEE Access, vol. 9, pp. 52138-52160, 2021, doi: 10.1109/ACCESS.2021.3070057.

Simplilearn, "Stock Market Prediction Using Machine Learning (2025)," Analytics Vidhya, 2025 [Online]. Available: https://www.analyticsvidhya.com

Nature, "Stock market trend prediction using deep neural network via chart analysis: A practical method or a myth?" Humanities and Social Sciences Communications, vol. 12, pp. 4761, 2025, doi: 10.1057/s41599-025-04761-0.

H. Liu and S. Wang, "Stock market prediction using artificial intelligence: A systematic review of systematic reviews," Intelligent Systems with Applications, vol. 21, pp. 200615, 2024, doi: 10.1016/j.iswa.2024.200615.

S. Rana, "Emerging trends in AI-based stock market prediction," World Electric Vehicle Journal, vol. 14, no. 11, pp. 254, 2023, doi: 10.3390/wevj14110254.

A. K. Sahoo and M. N. Mohanty, "A hybrid evolutionary model for stock price prediction using grey wolf optimizer," IEEE Transactions on Emerging Topics in Computational Intelligence, vol. 9, no. 1, pp. 10053698, 2025, doi: 10.1109/TETCI.2024.10053698.

J. Patel and D. Shah, "Optimization techniques in deep learning for financial time series forecasting," Journal of Computational Finance, vol. 15, no. 3, pp. 45-67, 2022, doi: 10.21314/JCF.2022.003.

A. Gupta and R. Kumar, "Metaheuristic optimization for neural networks in stock prediction," Applied Soft Computing, vol. 120, pp. 108654, 2022, doi: 10.1016/j.asoc.2022.108654.

S. Mishra and P. Singh, "Explainable AI in financial modeling: A new era," International Journal of Information Management Data Insights, vol. 3, no. 2, pp. 100167, 2023, doi: 10.1016/j.jjimei.2023.100167.

R. Smith, "Advanced AI techniques for stock market analysis," in Proc. Int. Conf. Artificial Intelligence and Data Science, New York, NY, USA, Jun. 2023, pp. 123-130, doi: 10.1109/ICAIDS.2023.123456.

L. Kumar, "Deep learning applications in finance," Ph.D. dissertation, Dept. Comput. Sci., Univ. California, Berkeley, CA, USA, 2022.

Additional Files

Published

2025-09-02

How to Cite

[1]
H. A. Bukhori, S. Bukhori, S. Anam, F. I. Yusuf, and M. Sari, “GWO-Enhanced Hybrid Deep Learning with SHAP for Explainable TLKM.JK Stock Forecasting”, J. Tek. Inform. (JUTIF), vol. 6, no. 4, pp. 2566–2585, Sep. 2025.