Comparative Study of LSTM and GRU Accuracy in Predicting BBRI Stock Closing Price

Authors

  • Rifqy Willy Akbari Universitas Amikom Purwokerto
  • Adam Prayogo Universitas Amikom Purwokerto
  • Abdul Jahir Univerisitas Amikom Purwokerto

DOI:

https://doi.org/10.30871/jaic.v10i1.11938

Keywords:

BBRI, Deep Learning, Gated recurrent unit, Long short-term memory, Stock price forecasting

Abstract

Stock price forecasting plays an important role in supporting investment decision-making in volatile financial markets. This study compares the performance of Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) models in predicting the closing price of PT Bank Rakyat Indonesia (BBRI.JK) stock using daily closing price data from Yahoo Finance for the period November 2, 2020, to October 30, 2025. The research methodology includes data collection, preprocessing, model development, and evaluation. The results show that the GRU model outperforms LSTM in prediction accuracy, achieving an RMSE of 90.14, MAPE of 1.86%, and MAE of 68.89, while LSTM records an RMSE of 111.00, MAPE of 2.37%, and MAE of 87.55. In terms of computational efficiency, LSTM requires less training time (343.57 seconds) compared to GRU (471.98 seconds). The Diebold–Mariano test yields a DM statistic of 1.9949 with a p-value of 0.0461, indicating a statistically significant difference in predictive accuracy, where GRU produces lower prediction errors. This study provides empirical insights into the trade-off between accuracy and computational efficiency of deep learning models for stock price forecasting.

Downloads

Download data is not yet available.

References

[1] E. Nurmutia, “KSEI: Investor Pasar Modal Indonesia Didominasi Milenial dan Gen Z,” 2022. https://www.liputan6.com/saham/read/5167129/ksei-investor-pasar-modal-indonesia-didominasi-milenial-dan-gen-z (accessed Sep. 20, 2025).

[2] A. Yunita et al., “Performance analysis of neural network architectures for time series forecasting: A comparative study of RNN, LSTM, GRU, and hybrid models,” MethodsX, vol. 15, p. 103462, Dec. 2025, doi: 10.1016/J.MEX.2025.103462.

[3] S. Wu, “Predicting Stock Prices in the Electric Vehicle and Technology Sectors Using Long Short-Term Memory Models,” Adv. Econ. Manag. Polit. Sci., vol. 94, no. 1, pp. 148–156, Sep. 2024, doi: 10.54254/2754-1169/94/2024OX0183.

[4] K. Kwanda, D. E. Herwindiati, M. D. Lauro, and K. K. C. Id, “Perbandingan LSTM dan Bidirectional LSTM pada Sistem Prediksi Harga Saham Berbasis Website,” Ranah Res. J. Multidiscip. Res. Dev., vol. 7, no. 1, pp. 26–35, Nov. 2024, doi: 10.38035/RRJ.V7I1.1255.

[5] Y. Perdana, N. Raisa Hanum, A. Rabiula, and Y. Anzari, “Analisis Perbandingan Model Gru Dan Lstm Untuk Prediksi Harga Saham Bank Rakyat Indonesia,” J. Akad., vol. 17, no. 2, pp. 54–60, Jun. 2025, doi: 10.53564/AKADEMIKA.V17I2.1692.

[6] K. Prayogi, W. Gata, and D. P. Kussanti, “Prediksi Harga Saham Bank Central Asia Menggunakan Algoritma Deep Learning GRU,” Jutisi J. Ilm. Tek. Inform. dan Sist. Inf., vol. 13, no. 1, pp. 647–658, May 2024, doi: 10.35889/JUTISI.V13I1.1910.

[7] C. Li and G. Qian, “Stock Price Prediction Using a Frequency Decomposition Based GRU Transformer Neural Network,” Appl. Sci. 2023, Vol. 13, Page 222, vol. 13, no. 1, p. 222, Dec. 2022, doi: 10.3390/APP13010222.

[8] A. Nilsen, “Perbandingan Model RNN, Model LSTM, dan Model GRU dalam Memprediksi Harga Saham-Saham LQ45,” J. Stat. dan Apl., vol. 6, no. 1, pp. 137–147, 2022, doi: 10.21009/jsa.06113.

[9] A. T. Haryono, R. Sarno, and K. R. Sungkono, “Stock price forecasting in Indonesia stock exchange using deep learning: a comparative study,” Int. J. Electr. Comput. Eng., vol. 14, no. 1, pp. 861–869, Feb. 2024, doi: 10.11591/ijece.v14i1.pp861-869.

[10] M. Fahmi Julianto et al., “Perbandingan Penerapan Algoritma Deep Learning Dalam Prediksi Harga Emas,” INTI Nusa Mandiri, vol. 19, no. 1, pp. 71–76, Aug. 2024, doi: 10.33480/INTI.V19I1.5559.

[11] Y. Prastya, L. Pratama, and S. Zahara, “Prediksi Saham BBNI dan BBRI Menggunakan LSTM (Long Short Term Memory),” SUBMIT J. Ilm. Teknol. Infomasi dan Sains, vol. 4, no. 2, pp. 1–4, Dec. 2024, doi: 10.36815/SUBMIT.V4I2.3332.

[12] F. A. El Hakim, A. Fariza, and S. Setiawardhana, “Pengembangan Analisis Teknikal Untuk Trading Bursa Saham dengan Long Short Term Memory,” J. MEDIA Inform. BUDIDARMA, vol. 7, no. 3, p. 985, Jul. 2023, doi: 10.30865/MIB.V7I3.6410.

[13] A. Laras, “Intip Kinerja Terbaru Bank-Bank Jumbo Penguasa Pasar RI,” 2024. https://finansial.bisnis.com/read/20241202/90/1820705/intip-kinerja-terbaru-bank-bank-jumbo-penguasa-pasar-ri? Yahoo Finance. 2024. Bank Rakyat Indonesia (BBRI.JK) Stock Historical Data. From https://finance.yahoo.com/ , diakses 16 September 2025. (accessed Sep. 20, 2025).

[14] M. D. A. Carnegie and C. Chairani, “Perbandingan Long Short Term Memory (LSTM) dan Gated Recurrent Unit (GRU) Untuk Memprediksi Curah Hujan,” J. MEDIA Inform. BUDIDARMA, vol. 7, no. 3, p. 1022, Jul. 2023, doi: 10.30865/MIB.V7I3.6213.

[15] F. N. Iman and D. Wulandari, “Prediksi Harga Saham Menggunakan Metode Long Short Term Memory,” Log. J. Ilmu Komput. dan Pendidik., vol. 1, no. 3, pp. 601–616, Apr. 2023, Accessed: Dec. 05, 2025. [Online]. Available: https://journal.mediapublikasi.id/index.php/logic/article/view/1855

[16] D. Rathor and V. Rajpoot, “Stock Price Prediction Using LSTM and GRU,” www.irjmets.com @International Res. J. Mod. Eng., vol. 3839, doi: 10.56726/IRJMETS76910.

[17] A. D. Huynh, T. K. Nguyen, A. D. Huynh, and T. K. Nguyen, “The Comparison of GRU and LSTM in Solar Power Generation Forecasting Application,” Int. J. Sci. Res. Arch., vol. 13, no. 1, pp. 1360–1370, Sep. 2024, doi: 10.30574/IJSRA.2024.13.1.1831.

[18] C. S. Kudarihal, M. Gupta, and S. K. Gupta, “Time series analysis of AMI data and comparative energy demand forecasting using deep learning models in a smart grid scenario,” Eng. Res. Express, vol. 7, no. 1, p. 015387, Mar. 2025, doi: 10.1088/2631-8695/adc350.

[19] F. X. Diebold and R. S. Mariano, “Comparing predictive accuracy,” J. Bus. Econ. Stat., vol. 13, no. 3, pp. 253–263, 1995, doi: 10.1080/07350015.1995.10524599.

Downloads

Published

2026-02-09

How to Cite

[1]
R. W. Akbari, A. Prayogo, and A. Jahir, “Comparative Study of LSTM and GRU Accuracy in Predicting BBRI Stock Closing Price”, JAIC, vol. 10, no. 1, pp. 837–846, Feb. 2026.

Similar Articles

1 2 3 4 5 > >> 

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