Optimasi Hyperparameter Pada Model Hybrid Bidirectional LSTM-GRU Untuk Prediksi Harga Saham Bank
DOI:
https://doi.org/10.47065/bulletincsr.v6i1.903Keywords:
Stock Price Prediction; Bi-LSTM; Bidirectional GRU; Hyperparameter Optimization; Hyperband AlgorithmAbstract
Stock price prediction in the Indonesian capital market is highly complex due to the significant influence of market volatility and the non-linear nature of time-series data. Errors in predicting price trends can significantly increase investment risks. This study aims to enhance the accuracy of stock price prediction for blue-chip banking companies (a case study on one of the largest state-owned banks) by addressing the limitations of single models. The proposed method is a Hybrid Deep Learning architecture combining Bidirectional Long Short-Term Memory (Bi-LSTM) to capture long-term dependencies and Bidirectional Gated Recurrent Unit (Bi-GRU) for computational efficiency. To ensure maximal model performance, automatic hyperparameter optimization was performed using the Hyperband algorithm, which utilizes an adaptive resource allocation strategy. The data employed consists of 10 years of historical daily trading data (2014–2024), which underwent Min-Max normalization and a 60-day window size formation. Experimental results demonstrate that the Hyperband algorithm successfully identified the optimal configuration of 128 Bi-LSTM units and 32 Bi-GRU units with the tanh activation function. Model evaluation on the test data indicated a high level of accuracy, with a Root Mean Squared Error (RMSE) of IDR 171.41 and a Mean Absolute Error (MAE) of IDR 142.53. These results confirm that the systematically optimized hybrid approach is capable of minimizing prediction errors significantly better and is reliable for modeling fluctuating stock price dynamics.
Downloads
References
P. K. Dewi Lubis, H. H. Br Silalahi, A. Fitria Sinaga, P. Nidia Sapma, and V. Sitio, “Pasar Modal Dan Pengaruhnya Terhadap Perekonomian Di Indonesia,” JAKA (Jurnal Akuntansi, Keuangan, dan Audit., vol. 5, no. 1, pp. 196–214, 2024, doi: 10.56696/jaka.v5i1.10755.
A. Farhadi, A. Zamanifar, A. Alipour, A. Taheri, and M. Asadolahi, “A Hybrid LSTM-GRU Model for Stock Price Prediction,” IEEE Access, vol. 13, no. May, pp. 117594–117618, 2025, doi: 10.1109/ACCESS.2025.3586558.
I. Sukartaatmadja, S. Khim, and M. N. Lestari, “Faktor-faktor Yang Mempengaruhi Harga Saham Perusahaan,” J. Ilm. Manaj. Kesatuan, vol. 11, no. 1, pp. 21–40, 2023, doi: 10.37641/jimkes.v11i1.1627.
D. Satria, “Predicting Banking Stock Prices Using Rnn, Lstm, and Gru Approach,” Appl. Comput. Sci., vol. 19, no. 1, pp. 82–94, 2023, doi: 10.35784/acs-2023-06.
B. Y. Dwiandiyanta, R. Hartanto, and R. Ferdiana, “Optimization of Stock Predictions on Indonesia Stock Exchange: A New Hybrid Deep Learning Method,” Eng. Technol. Appl. Sci. Res., vol. 15, no. 1, pp. 19370–19379, 2025, doi: 10.48084/etasr.9363.
G. Prasad, S. K. Sahoo, and H. Kaur, “A Comparative Study on Conventional Methods and Machine Learning Approaches on Stock Market Prediction,” SSRN Electron. J., 2024, doi: 10.2139/ssrn.4824929.
W. Hastomo, A. S. B. Karno, N. Kalbuana, E. Nisfiani, and L. ETP, “Optimasi Deep Learning untuk Prediksi Saham di Masa Pandemi Covid-19, JEPIN (Jurnal Edukasi dan Penelitian Informatika), vol. 7, no. 2, pp. 133–140, 2021, doi: 10.26418/jp.v7i2.47411.
K. Liu, J. Cheng, and J. Yi, “Copper price forecasted by hybrid neural network with Bayesian Optimization and wavelet transform,” Resour. Policy, vol. 75, no. December 2021, p. 102520, 2022, doi: 10.1016/j.resourpol.2021.102520.
M. Majid, J. Altaie, M. H. Tuama, R. O. Dirchal, and W. M. Mashloosh, “An Enhanced LSTM-Based Model for Stock Price Forecasting Using Feature Engineering and Advanced Hyperparameter Optimization,” Int. J. Hum. Comput. Stud., vol. 7, no. December, pp. 156–161, 2025, doi: 10.31149/ijhcs.v7i3.5555.
Handhika Yanuar Pratama, “Dataset Saham Bank Indonesia 2014 - 2024,” kaggle. [Online]. Available: https://www.kaggle.com/datasets/cmglonly/dataset-saham-bank-indonesia-2014-2024
Y. Zhang and G. M. Tumibay, “Stock Price Prediction Based on the Bi-GRU-Attention Model,” J. Comput. Commun., vol. 12, pp. 72–85, 2024, doi: 10.4236/jcc.2024.124007.
Y. Song and M. Chiangpradit, “Hyperband-Optimized CNN-BiLSTM with Attention Mechanism for Corporate Financial Distress Prediction,” Appl. Sci., vol. 5, pp. 1–27, 2025, doi: 10.3390/app15115934.
F. H. Sezgin, Ö. Algorabi, G. Sart, and M. Güler, “Hyperparameter-Optimized RNN , LSTM , and GRU Models for Airline Stock Price Prediction?: A Comparative Study on THYAO and PGSUS,” Symmetry (Basel)., vol. 17, no. 11, pp. 1–19, 2025, doi: 10.3390/sym17111905.
A. Ritonga, A. Ma, and I. Suwarno, “Stock Price Forecasting with Multivariate Time Series Long Short-Term Memory?: A Deep Learning Approach,” J. Robot. Control, vol. 5, no. 5, pp. 1322–1335, 2024, doi: 10.18196/jrc.v5i5.22460.
I. Winarni and N. Pratiwi, “Prediksi Harga Saham Menggunakan Metode Long Short Term Memory Studi Kasus?: Saham Intel Corporation,” J. Pendidik. Teknol. Inf., vol. 5, no. 2, pp. 380–390, 2025, doi: 10.51454/decode.v5i2.1192.
O. Harris and M. Andrews, “Effects and Results of Dropout Layer in Reducing Overfitting with Convolutional Neural Networks (CNN),” World Journal of Advanced Engineering Technology and Sciences, vol. 13, no. 2, pp. 836–853, 2024, doi: 10.30574/wjaets.2024.13.2.0584.
E. Sayed, M. El Kenawy, A. Ali, and A. Nima, "Predicting Potato Crop Yield with Machine Learning and Deep Learning for Sustainable Agriculture", Potato Research vol. 68, no. 1, pp. 759-792, 2025. doi: 10.1007/s11540-024-09753-w.
T. O. Hodson, “Root-mean-square error ( RMSE ) or mean absolute error ( MAE ): when to use them or not,” Geosci. Model Dev., vol. 7, no. 2, pp. 5481–5487, 2022, doi: 10.5194/gmd-15-5481-2022.
D. Setiawan, T. W. E. Suryawijaya , M. I. Anugrah, J. Pearl, and A. N. Chasanah, “Optimizing Banking Stock Price Prediction: Deep Learning Based Approach,” Int. J. Accounting, Manag. Econ. Res., vol. 2, no. 1, pp. 111–125, 2024, doi: 10.56696/ijamer.v2i1.30.
M. Saberironaghi, J. Ren, and A. Saberironaghi, “Stock Market Prediction Using Machine Learning and Deep Learning Techniques?: A Review,” AppliedMath, vol. 5, no. 76, 2025, doi: 10.3390/appliedmath5030076.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Optimasi Hyperparameter Pada Model Hybrid Bidirectional LSTM-GRU Untuk Prediksi Harga Saham Bank
ARTICLE HISTORY
How to Cite
Issue
Section
Copyright (c) 2025 Adam Maulidin Duha, Anggyi Trisnawan Putra

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













