Optimasi bayesian pada model long short-term memory untuk prediksi harga saham perbankan Indonesia

Authors

  • Wresti Andriani Universitas Bima Sakapenta, Tegal, Jawa Tengah https://orcid.org/0009-0003-9348-6133
  • Gunawan Universitas Pancasakti Tegal, Jawa Tengah, Indonesia
  • Naella Nabila Putri Wahyuning Naja Universitas Negeri Semarang, Jawa Tengah, Indonesia

DOI:

https://doi.org/10.24246/itexplore.v5i2.2026.pp217-231

Keywords:

Bayesian Optimization, LSTM, Stock prediction, Banking Stock

Abstract

Bank stock price prediction is an important topic in the application of information technology because stock price movements are dynamic, sequential, and influenced by historical market patterns. This study aims to predict Indonesian banking stock prices using the Long Short-Term Memory method and evaluate the effect of Bayesian Optimization on model performance. The data used in this study consists of daily historical stock data of BBCA, BBNI, BBRI, BBTN, and BMRI from May 4, 2020, to May 4, 2026, obtained from Yahoo Finance. The input features include opening price, highest price, lowest price, closing price, and trading volume, while the prediction target is the stock closing price. The results show that the baseline model produced MAPE values ranging from 1.892% to 3.147%. The best baseline performance was obtained on BBCA with an R² value of 0.933, followed by BBTN with an R² value of 0.902. After optimization, performance improvement occurred on BBTN, with MAPE decreasing from 3.147% to 2.482% and R² increasing from 0.902 to 0.935. For BMRI, MAPE decreased from 2.385% to 2.206%, and R² increased from 0.687 to 0.743. This study concludes that Long Short-Term Memory can be used to predict Indonesian banking stock prices, while Bayesian Optimization can selectively improve model performance depending on the characteristics of each stock dataset.

Downloads

Download data is not yet available.

References

W. Andriani, Gunawan, dan N. N. P. W. Naja, “Analisis perbandingan machine learning untuk prediksi kelayakan kredit perbankan pada Bank BRI Tegal,” IT-Explore J. Penerapan Teknol. Inf. dan Komun., vol. 4, no. 1 SE-Articles, hal. 82–92, Feb 2025, doi: 10.24246/itexplore.v4i1.2025.pp82-92.

M. D. U. and I. Kharisudin, “Bayesian Optimization for Stock Price Prediction Using LSTM, GRU, Hybrid LSTM-GRU, and Hybrid GRU-LSTM,” vol. 13, no. 2, hal. 9–19, 2025, doi: https://doi.org/10.15294/ujm.v13i2.11253.

A. Rahman, A. Aziz, dan P. T. Prasetyaningrum, “Analisis Perbandingan Model ARIMA dan Exponential Smoothing dalam Meramalkan Harga Penutupan Saham,” vol. 7, no. 1, hal. 93–103, 2025, doi: 10.47065/bits.v7i1.7246.

M. Rizki, A. E. Danneswara, Y. D. Aprilia, M. Fatir, dan R. Al, “Prediksi Harga Saham Bank BRI dan Bank BCA dengan Menggunakan Model LSTM,” vol. 4, no. 2, hal. 4554–4560, 2025, doi: https://doi.org/10.31004/riggs.v4i2.1264.

R. A. Yaqin, M. I. Anshori, R. Angel, I. Wiseto, dan P. Agung, “Stock Price Forecasting Using LSTM with Cross-Validation,” vol. 3, no. 1, hal. 64–79, 2026, doi: 10.26740/vubeta.v3i1.45130.

E. Etu et al., “Intelligence-Based Medicine Forecasting pediatric emergency department arrivals : Evaluating the role of exogenous variables using deep learning models,” Intell. Med., vol. 12, no. August, hal. 100313, 2025, doi: 10.1016/j.ibmed.2025.100313.

G. P. Priyadarshini, M. S. Madhuri, T. V. Priya, S. Moheeja, dan U. L. Prasanna, “Enhanced Stock Price Prediction Using Optimized Deep LSTM Model,” vol. 5, hal. 443–448, 2026, doi: 10.5220/0013931100004919.

I. Navila, N. Q. Nada, dan R. Renaldy, “Banking Stock Price Prediction Dashboard Using Long Short-Term Memory,” vol. 7, no. 2, hal. 2008–2022, 2026, doi: 10.52436/1.jutif.2026.7.2.5802.

R. M. Salsabila, A. Fahmi, dan F. Al Zami, “Optimized LSTM with TSCV for Forecasting Indonesian Bank Stocks,” vol. 9, no. 6, 2025, doi: 10.30871/jaic.v9i6.11314.

S. Alya, S. Purwandhani, A. Agigia, N. Sajiatmoko, C. S. Kusuma, dan U. M. Malang, “Optimizing Indonesian Banking Stock Predictions with DBSCAN and LSTM,” vol. 6, no. 3, hal. 1173–1188, 2025, doi: 10.52436/1.jutif.2025.6.3.4439.

R. Andika, “Optimasi Hyperparameter Model LSTM dan variannya,” vol. 10, no. 3, hal. 2627–2639, 2025, doi: https://doi.org/10.29100/jipi.v10i3.7567.

A. Shakya, M. Biswas, dan M. Pal, “Classification of Radar data using Bayesian optimized two-dimensional Convolutional Neural Network,” in Earth Observation, P. K. Srivastava, D. K. Gupta, T. Islam, D. Han, dan R. B. T.-R. R. S. Prasad, Ed., Elsevier, 2022, hal. 175–186. doi: https://doi.org/10.1016/B978-0-12-823457-0.00008-2.

I. S. Kervanci, M. F. Akay, dan E. Ozceylan, “Bitcoin Price Prediction using LSTM, GRU and Hybrid LSTM-GRU with Bayesian Optimization, Random Search, And GRID SEARCH for the Next Days,” hal. 1–19, doi: 10.3934/jimo.2023091.

F. P. Simamora, R. Purba, F. Pasha, F. P. Simamora, R. Purba, dan F. Pasha, “Optimisasi Hyperparameter BiLSTM Menggunakan Bayesian Optimization untuk Prediksi Harga Saham,” vol. 7, no. 1, hal. 8–13, 2025, doi: , https://doi.org/10.37905/jjom.v7i1.27166.

I. M. A. Agastya, “Peramalan Multivariat Saham Bank Indonesia dengan Model ARIMA dan LSTM,” vol. 7, no. 1, hal. 308–319, 2025, doi: 10.47065/bits.v7i1.7352.

N. Made dan A. Erawati, “The Effect of Trading Volume Activity , Profitability and Solvability on Stock Returns ( Study on Banking Companies Listed on the Indonesia Stock Exchange for the Period 2019-2022 ),” no. 1, 2025, doi: doi: 10.62951/ijecm.v1i4.349.

R. Arkas, V. Tay, K. Xin, L. Ming, F. Rudy, dan B. Ansar, “The Effect of Profitability , Capital Adequacy , and Liquidity on Stock Prices in the Banking Industry,” vol. 13, no. 1, hal. 340–357, 2026, doi: https://doi.org/10.33096/jmb.v13i1.1624.

H. Ayari, P. Ramzi, dan P. N. Kraïem, “Machine learning powered financial credit scoring : a systematic literature review,” 2026, doi: https://doi.org/10.1007/s10462-025-11416-2.

S. Hochreiter dan J. Schmidhuber, “Long Short-Term Memory,” Neural Comput., vol. 9, hal. 1735–1780, Nov 1997, doi: 10.1162/neco.1997.9.8.1735.

“Predicting Banking Stock Princes USING RNN, LSTM, and GRU Approach.” doi: doi: 10.35784/acs-2023-06.

S. Li, Optimizing Long Short Term Memory Model Hyperparameters for Enhanced Stock Price Forecasting and Portfolio Allocation, no. Icdeba 2024. Atlantis Press International BV, 2025. doi: 10.2991/978-94-6463-652-9.

J. Snoek, H. Larochelle, dan R. Adams, “Practical Bayesian Optimization of Machine Learning Algorithms,” in Advances in Neural Information Processing Systems, F. Pereira, C. J. Burges, L. Bottou, dan K. Weinberger, Ed., Curran Associates, Inc., 2012. doi: 10.5555/2999325.2999464.

and N. de F. B. Shahriari, K. Swersky, Z. Wang, R. P. Adams, “Taking the human out of the loop_ A review of Bayesian optimization.” doi: 10.1109/JPROC.2015.2494218.

M. Saberironaghi, J. Ren, dan A. Saberironaghi, “Stock Market Prediction Using Machine Learning and Deep Learning Techniques: A Review,” 2025. doi: 10.3390/appliedmath5030076.

I. N. Switrayana, R. Hammad, P. Irfan, T. T. Sujaka, dan M. H. Nasri, “Comparative Analysis of Stock Price Prediction Using Deep Learning with Data Scaling Method,” vol. 7, no. 1, hal. 78–90, 2025, doi: https://doi.org/10.35746/jtim.v7i1.650.

M. Ratchagit dan L. Hiryanto, “Forecasting Indonesian Banking Stock Prices Using Prophet , XGBoost , and Ridge Regression : A Comparative Analysis,” vol. 6, no. 4, hal. 2890–2901, 2025, doi: 10.52436/1.jutif.2025.6.4.4973.

M. Diqi dan I. W. Ordiyasa, “Enhancing Stock Price Prediction Using Stacked Long Short-Term Memory,” vol. 8, no. 1, hal. 164–174, 2024, doi: 10.25299/itjrd.2024.13486.

W. Huang, “Enhancing Stock Market Prediction Through LSTM Modeling and Analysis,” 2023, doi: 10.4108/eai.2-6-2023.2334692.

M. L. Hawali, “Pemilihan Neuron LSTM dan LSTM Bayesian Optimization Untuk Prediksi Curah Hujan Bulanan Berbasis Iklim,” vol. 15, no. 2, hal. 376–382, 2025, doi: https://doi.org/10.37859/jf.v15i2.9251.

S. Kania, N. Alya, I. Jumiatin, dan I. Sulistia, “Implementation of Hyperparameter Tuning for Classification Models in Heart Disease Risk Prediction Penerapan Hyperparameter Tuning pada Model Klasifikasi untuk Prediksi Risiko Penyakit Jantung,” vol. 5, no. October, hal. 1181–1189, 2025, doi: https://doi.org/10.57152/malcom.v5i4.2138.

K. Kunci, “Prediksi Harga Saham PT TELKOM menggunakan Metode CNN-LSTM,” vol. 7, no. 1, 2025, doi: https://doi.org/10.24076/joism.2025v7i1.2087.

M. Ormanda dan I. Ardiansah, “Komparasi Model ARIMA, Regresi Linear, Random Forest, dan LSTM untuk Peramalan Harga Beras Jawa BaratComparison of ARIMA, Linear Regression, Random Forest, and LSTM Models for Rice Price Forecasting in West Java,” J. Inform. Terpadu, vol. 12, hal. 70–76, Apr 2026, doi: 10.54914/jit.v12i1.2789.

Downloads

Published

2026-06-14

How to Cite

Andriani, W., Gunawan, & Naja, N. N. P. W. (2026). Optimasi bayesian pada model long short-term memory untuk prediksi harga saham perbankan Indonesia. IT-Explore: Jurnal Penerapan Teknologi Informasi Dan Komunikasi, 5(2), 217–231. https://doi.org/10.24246/itexplore.v5i2.2026.pp217-231