Forecasting Rice Price Volatility Utilizing BiLSTM-SHAP to Ensure National Food Stability
Keywords:
BiLSTM, Deep Learning, Food Prices, Rice Price Forecasting, SHAPAbstract
Rice price volatility in Indonesia remains a persistent economic issue, partly driven by climate variability and fluctuations in national rice production, prompting the government to resort to substantial annual imports. However, the extent to which domestic production factors and weather conditions influence future rice prices has not been quantitatively evaluated. This study aims to forecast short-term rice prices in Indonesia by integrating multiple time-series features, including rice prices, harvested area, paddy production, and weather features, using a Bidirectional Long Short-Term Memory (BiLSTM) network. Daily data from 2013 to 2024 were collected from the National Statistics Agency, Food Price Panel, and the Meteorology and Climatology Agency. Chronological split was applied for training, validation, and testing to preserve temporal dependency. The optimal model predicts rice prices seven days ahead using 256 hidden units, achieving MAE of 128.84 IDR, RMSE of 157.98 IDR, and R² of 0.694. SHAP analysis shows that historical rice prices have the strongest contribution with a SHAP value of 0.969652, significantly higher compared to other features. The results demonstrate that integrating agricultural and climatic inputs improves predictive performance while providing interpretable insights into price-forming factors.
Downloads
References
R. T. P. Hutapea, R. P. Ramadhan, A. T. Meity, and Y. Ngongo, “Competitiveness of Indonesian Rice Prices in The International Market,” E3S Web of Conferences, vol. 361, 2022, doi: 10.1051/e3sconf/202236101016. DOI: https://doi.org/10.1051/e3sconf/202236101016
A. Rachman, “Impor Beras RI Sepanjang 2024 Tembus 4,52 Juta Ton, Ini Pemasoknya!” Accessed: Mar. 24, 2025. [Online]. Available: https://www.cnbcindonesia.com/news/20250116085359-4-603570/impor-beras-ri-sepanjang-2024-tembus-452-juta-ton-ini-pemasoknya
L. R. Shaffitri, E. A. Suryana, and J. F. Sinuraya, “Market Integration and Rice Price Transmission in Indonesia,” BIO Web Conf, vol. 119, pp. 1–10, 2024, doi: 10.1051/bioconf/202411902007. DOI: https://doi.org/10.1051/bioconf/202411902007
T. W. Saleh, B. Lakitan, D. Budianta, M. Yamin, G. Caya, and M. Huanza, “The Impact of Government Purchase Price Policy of Rice for Producers and Consumers in Indonesia,” Jurnal Lahan Suboptimal : Journal of Suboptimal Lands, vol. 13, no. 1, pp. 52–60, 2024, doi: 10.36706/jlso.13.1.1024.654. DOI: https://doi.org/10.36706/jlso.13.1.1024.654
A. Fathoni, S. Suhairin, I. Wahyuni, and M. A. Indrianti, “Analysis of Grain and Rice Prices in The Rice Milling Supply Chain in Pengadang Village Central Lombok Regency,” Jurnal Agrotek Ummat, vol. 11, no. 2, pp. 131–141, 2024, doi: 10.31764/jau.v11i2.22458. DOI: https://doi.org/10.31764/jau.v11i2.22458
Ugi Sugiharto, “Factors Affecting Rice Prices in Indonesia (Production, Consumption, Imports, International Prices, Crop Damage),” International Journal of Economics and Management Sciences, vol. 1, no. 3, pp. 329–337, 2024, doi: 10.61132/ijems.v1i3.183. DOI: https://doi.org/10.61132/ijems.v1i3.183
A. W. Putra, J. Supriatna, R. H. Koestoer, and T. E. B. Soesilo, “Differences in Local Rice Price Volatility, Climate, and Macroeconomic Determinants in the Indonesian Market,” Sustainability, vol. 13, no. 8, pp. 1–21, 2021, doi: 10.3390/su13084465. DOI: https://doi.org/10.3390/su13084465
S. Karbala and I. Ali, “Memprediksi Harga Beras Eceran Menggunakan Algoritma Regresi Linier,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 3, pp. 1554–1559, 2023, doi: 10.36040/jati.v7i3.6901. DOI: https://doi.org/10.36040/jati.v7i3.6901
I. R. Harahap, Mhd. Z. Siambaton, and H. Santoso, “Implementasi Metode Regresi Linear Sederhana untuk Prediksi Harga Beras di Kota Medan,” in Seminar Nasional Teknik UISU, Universitas Islam Sumatera Utara, 2023.
A. D. Pramono, H. L. Sari, and I. Y. Beti, “Penerapan Regresi Linear dalam Perkiraan Harga Beras di Kota Bengkulu,” VISA: Journal of Vision and Ideas, vol. 4, no. 2, pp. 1178–1192, 2024, doi: 10.47467/visa.v4i2.3662. DOI: https://doi.org/10.47467/visa.v4i2.3662
R. E. Putra and A. S. Sinaga, “Perkiraan Harga Beras Premium DKI Jakarta Menggunakan Regresi Linier,” Journal of Information Engineering and Educational Technology, vol. 6, no. 2, pp. 80–85, 2022, doi: 10.26740/jieet.v6n2.p80-85. DOI: https://doi.org/10.26740/jieet.v6n2.p80-85
R. P. Nugraheni, E. Rimawati, and R. T. Vulandari, “Penerapan Metode Exponential Smoothing Winters pada Prediksi Harga Beras,” Jurnal Ilmiah SINUS, vol. 20, no. 2, pp. 45–56, 2022, doi: 10.30646/sinus.v20i2.608. DOI: https://doi.org/10.30646/sinus.v20i2.608
W. Ngestisari, B. Susanto, and T. Mahatma, “Perbandingan Metode ARIMA dan Jaringan Syaraf Tiruan untuk Peramalan Harga Beras,” Indonesian Journal of Data and Science, vol. 1, no. 3, pp. 96–107, 2020, doi: 10.33096/ijodas.v1i3.18. DOI: https://doi.org/10.33096/ijodas.v1i3.18
A. R. Anandyani, D. K. A. Astutik, N. Bariroh, and A. Indrasetianigsih, “Prediksi Rata-rata Harga Beras yang Dijual oleh Pedagang Besar (Grosir) Menggunakan Metode ARIMA Box Jenkins,” Teknosains: Media Informasi Sains dan Teknologi, vol. 15, no. 2, pp. 151–160, 2021, doi: 10.24252/teknosains.v15i2.17721. DOI: https://doi.org/10.24252/teknosains.v15i2.17721
D. K. Sari and A. Sa’adah, “Forecasting Rice Prices in Traditional Markets in Banyumas Regency Using Fuzzy Time Series Chen,” BAREKENG: Jurnal Ilmu Matematika dan Terapan, vol. 19, no. 1, pp. 503–510, 2025, doi: 10.30598/barekengvol19iss1pp503-510. DOI: https://doi.org/10.30598/barekengvol19iss1pp503-510
S. Arya, Anju, and N. A. Ramli, “Prediction of International Rice Production Using Long Short-Term Memory and Machine Learning Models,” International Journal of Informatics and Communication Technology (IJ-ICT), vol. 14, no. 1, pp. 164–173, 2025, doi: 10.11591/ijict.v14i1.pp164-173. DOI: https://doi.org/10.11591/ijict.v14i1.pp164-173
A. A. Fardhani, D. I. N. Simanjuntak, and A. Wanto, “Prediksi Harga Eceran Beras di Pasar Tradisional di 33 Kota di Indonesia Menggunakan Algoritma Backpropagation,” Jurnal Infomedia, vol. 3, no. 1, Aug. 2018, doi: 10.30811/jim.v3i1.625. DOI: https://doi.org/10.30811/jim.v3i1.625
S. Sen, D. Sugiarto, and A. Rochman, “Prediksi Harga Beras Menggunakan Metode Multilayer Perceptron (MLP) dan Long Short Term Memory (LSTM),” Ultimatics : Jurnal Teknik Informatika, vol. 12, no. 1, pp. 35–41, 2020, doi: 10.31937/ti.v12i1.1572. DOI: https://doi.org/10.31937/ti.v12i1.1572
R. Hidayat and I. Wibisonya, “Rice Price Prediction with Long Short-Term Memory (LSTM) Neural Network,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 8, no. 5, pp. 658–664, 2024, doi: 10.29207/resti.v8i5.6041. DOI: https://doi.org/10.29207/resti.v8i5.6041
M. Ulina, R. Purba, and A. Halim, “Foreign Exchange Prediction using CEEMDAN and Improved FA-LSTM,” in 2020 Fifth International Conference on Informatics and Computing (ICIC), IEEE, 2020, pp. 1–6. doi: 10.1109/ICIC50835.2020.9288615. DOI: https://doi.org/10.1109/ICIC50835.2020.9288615
F. P. Simamora, R. Purba, and M. F. Pasha, “Optimisasi Hyperparameter BiLSTM Menggunakan Bayesian Optimization untuk Prediksi Harga Saham,” Jambura Journal of Mathematics, vol. 7, no. 1, pp. 8–13, 2025, doi: 10.37905/jjom.v7i1.27166. DOI: https://doi.org/10.37905/jjom.v7i1.27166
S. M. Lundberg and S.-I. Lee, “A Unified Approach to Interpreting Model Predictions,” in 31st Conference on Neural Information Processing Systems, NIPS: Neural Information Processing Systems, 2017.
M. E. Yanti, S. Dharma, and M. I. Riyadh, “Faktor-faktor Ekonomi yang Mempengaruhi Fluktuasi Harga Beras di Sumatera Utara,” AGRILAND Jurnal Ilmu Pertanian, vol. 8, no. 2, pp. 182–188, doi: 10.30743/agr.v8i2.3085.
Q. Li, Y. Ji, M. Zhu, X. Zhu, and L. Sun, “Unsupervised Feature Selection Using Chronological Fitting with SHapley Additive exPlanation (SHAP) for Industrial Time-Series Anomaly Detection,” Appl Soft Comput, vol. 155, Apr. 2024, doi: 10.1016/j.asoc.2024.111426. DOI: https://doi.org/10.1016/j.asoc.2024.111426
S. Heddam, “Explainability of Machine Learning Using Shapley Additive exPlanations (SHAP): CatBoost, XGBoost and LightGBM for Total Dissolved Gas Prediction,” 2024, pp. 1–25. doi: 10.1007/978-3-031-66842-5_1. DOI: https://doi.org/10.1007/978-3-031-66842-5_1
Published
How to Cite
Issue
Section
Categories
Copyright (c) 2025 Juliana Damayanti Manurung, Nadya Sikana, Fandi Presly Simamora, Zoni Zikro Manurung

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












