Hyperparameter Tuning Metode Long Short-Term Memory (LSTM) untuk Prediksi Harga Bawang Merah di Pasar Tradisional Jawa Timur
DOI:
https://doi.org/10.35746/jtim.v8i2.976Keywords:
Red Onion Price Prediction, Time Series Data, Long Short-Term Memory (LSTM), MAPE, Jawa TimurAbstract
Shallots are one of the essential food commodities in East Java, the price of which frequently fluctuates due to seasonal influences and distribution factors. This price uncertainty often weakens the community's purchasing power and makes it difficult for farmers and sellers to make decisions. Therefore, this study proposes a daily shallot price prediction model for nine regions in East Java using the Long Short-Term Memory (LSTM) method with hyperparameter tuning to obtain the best-performing model. This study utilizes daily price data from PIHPS (Pusat Informasi Harga Pangan Strategis / Strategic Food Price Information Center) over four years, from January 1, 2021, to December 31, 2024. The research stages begin with data preprocessing, which includes imputing missing values to ensure continuity of the time sequence, data normalization, and arrangement of data based on temporal order (time series). To obtain the optimal model, the data was split into 80% for training and 20% for testing. Based on the experimental results, the optimal model configuration was found using a Window Size of 7 (the last seven days of data), 114 Epochs, and a Batch Size of 64. Furthermore, the reliability of the model was measured using MAPE, where the average across all regions fell below 10%, which is classified as "Very Good" based on MAPE interpretation standards. Additional testing using 2025 data as an independent dataset further confirmed that the model remains consistent and stable, as evidenced by an average MAPE of 3.10% across the nine regions.
Downloads
References
Y. Ashari and A. Suhendar, “Implementasi Algoritma Long Short-Term Memory (Lstm) Untuk Memprediksi Harga Beras Di Jawa Tengah Berdasarkan Cuaca,” Djtechno: Jurnal Teknologi Informasi, vol. 5, no. 3, pp. 624–636, 2024, https://doi.org/10.46576/djtechno.v5i3.5136.
Pusat Informasi Harga Pangan Strategis Nasional, “Tabel Harga Berdasarkan Komoditas Bawang Merah,” https://www.bi.go.id/hargapangan/TabelHarga/PasarTradisionalKomoditas.
A. E. Radho, P. Sugiartawan, and G. A. Santiago, “Prediksi Jumlah Kasus COVID-19 Menggunakan Teknik Slid-ing Wondows dengan Metode BPNN,” Jurnal Sistem Informasi dan Komputer Terapan Indonesia (JSIKTI), vol. 4, no. 1, pp. 12–23, 2021, https://doi.org/10.33173/jsikti.123
N. M. Sunariadi, P. K. Intan, D. C. R. Novitasari, and Y. Hariningsih, “Prediksi Produksi Bawang Merah Di Ka-bupaten Nganjuk Dengan Metode Seasonal Arima (Sarima),” Transformasi : Jurnal Pendidikan Matematika dan Matematika, vol. 6, no. 1, pp. 49–60, 2022, https://doi.org/10.36526/tr.v6i1.1672.
S. Al Farisi, G. A. Buntoro, and A. Prasetyo, “Prediksi Harga Bawang Merah dengan Regresi Linear Berbasis Website di Ponorogo,” JATISI (Jurnal Teknik Informatika dan Sistem Informasi), vol. 12, no. 3, 2025, https://doi.org/10.35957/jatisi.v12i3.13234.
S. S. Dzikrina, M. Dihin, and K. Widya, “Perbandingan Metode Support Vector Ma-chine dan Long Short Term Memory Dalam Prediksi Pendapatan Usaha Laundry,” Prosiding TAU SNARS-TEK Seminar Nasional Rekayasa dan Teknologi, 2024. https://doi.org/10.47970/snarstek.v2i1.709
A. Triyadi, A. Suwondo, D. Asmarajati, N. Hasanah, and M. F. Asnawi, “Prediksi Harga Bawang Merah Kering Di Wonosobo Menggunakan Metode Long Short Term Memory,” STORAGE: Jurnal Ilmiah Teknik dan Ilmu Komputer, vol. 3, no. 2, pp. 133–138, 2024, https://doi.org/10.55123/storage.v3i2.3601.
M. Jahidul, I. Razin, M. A. Karim, M. F. Mridha, S. M. Rafiuddin, and T. Alam, “A Long Short-Term Memory (LSTM) Model for Business Sentiment Analysis Based on Recurrent Neural Network,” Sep. 2025, Accessed: Feb. 20, 2026. https://arxiv.org/pdf/2509.03060v1
J. P. L. Caña, J. G. Herrero, and J. M. M. López, “Forecasting Nonlinear Systems with LSTM: Analysis and Com-parison with EKF,” Sensors (Basel), vol. 21, no. 5, p. 1805, Mar. 2021, https://doi.org/10.3390/s21051805.
F. Kamalov and H. Sulieman, “Time series signal recovery methods: Comparative study,” 2021 International Symposium on Networks, Computers and Communications, ISNCC 2021, 2021, https://doi.org/10.1109/ISNCC52172.2021.9615669.
P. P. Allorerung, A. Erna, M. Bagussahrir, and S. Alam, “Analisis Performa Normalisasi Data untuk Klasifikasi K-Nearest Neighbor pada Dataset Penyakit,” JISKA (Jurnal Informatika Sunan Kalijaga), vol. 9, no. 3, pp. 178–191, 2024, https://doi.org/10.14421/jiska.2024.9.3.178-191.
M. Atharsyah, M. A. Romli, J. R. Utara, K. Sleman, and I. Yogyakarta, “Implementasi Model Lstm, Gru, Bilstm, Dan Bigru Dalam Prediksi Harga Nikel,” JURNAL RISET KOMPUTER (JURIKOM), vol. 12, no. 2, pp. 46-56, 2024. https://ejurnal.stmik-budidarma.ac.id/index.php/jurikom/article/view/8495
I. R. Nashrullah, E. R. Widasari, and B. H. Prasetio, “Implementasi Metode Sliding Window Untuk Peningkatan Perekaman Real-Time Pada Sistem Deteksi Kesadaran Berbasis Sensor Electroencephalography Satu Kanal,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 10, no. 3, pp. 1-11, 2026. https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/16150
R. Abdul, P. Ade Irma, and A. Irfan, “Penerapan Metode Long Short Term Memory (LSTM) Dalam Memprediksi Harga Saham Pt Bank Central Asia,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 8, no. 1, pp. 501-506, Feb. 2024. https://doi.org/10.36040/jati.v8i1.8440
T. Lattifia, P. Wira Buana, N. Kadek, and D. Rusjayanthi, “Model Prediksi Cuaca Menggunakan Metode LSTM,” JITTER- Jurnal Ilmiah Teknologi dan Komputer, vol. 3, no. 1, 2022. http://ojs.unud.ac.id/index.php/jitter/article/view/85000
W. M. Rahmat, N. Hidayat, and A. A. Soebroto, “Prediksi Penjualan Ponsel Pintar menggunakan Metode Jaringan Syaraf Tiruan Backpropagation Kombinasi Particle Swarm Optimization,” Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer, vo. 7, no. 1, 2023. http://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/12213
H. H. Nuha, “Mean Absolute Percentage Error (MAPE) dan Pengertiannya”.
I. Nabillah and I. Ranggadara, “Mean Absolute Percentage Error untuk Evaluasi Hasil Prediksi Komoditas Laut,” JOINS (Journal of Information System), vol. 5, no. 2, pp. 250–255, 2020, https://doi.org/10.33633/joins.v5i2.3900.
R. Muhammad, and I. Nurhaida, “Penerapan LSTM Dalam Deep Learning Untuk Prediksi Harga Kopi Jangka Pendek Dan Jangka Panjang,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 10, no. 1, pp. 554–564, Jan. 2025, https://doi.org/10.29100/jipi.v10i1.5904.
A. S. Adhwaningrum, A. Ghufron, and Moch. F. Choirudin, “Implementasi Arima Dalam Peramalan Harga Bawang Merah Di Kabupaten Brebes,” Jurnal Statistika Industri dan Komputasi, vol. 10, no. 02, pp. 34–42, Jul. 2025, https://doi.org/10.34151/STATISTIKA.V10I02.5313.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 M. Latifur Rahman, Mamluatul Hani'ah, Muhammad Afif Hendrawan

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




