Rice Price Prediction In East Java Based on Weather Using Long Short-Term Memory (LSTM)
DOI:
https://doi.org/10.30871/jaic.v10i2.12515Keywords:
Rice, Price Prediction, Weather, Long Short-Term MemoryAbstract
Rice is the primary staple food commodity in Indonesia, crucial for food security and economic stability, with price fluctuations significantly affecting public purchasing power. Data from Statistics Indonesia (BPS) in May 2025 indicated a 0.15% decline in medium-quality rice prices in East Java; however, price disparities between regions remain high, necessitating accurate prediction models. East Java, as one of the major production hubs contributing 20% to the national paddy production, is vulnerable to climate change phenomena such as El Niño and La Niña, which impact harvests and prices. Rice price fluctuations are influenced by various complex factors, including non-linear weather conditions such as rainfall, temperature, and humidity. This study focuses on forecasting the price of medium-quality rice, the most widely consumed variety in Indonesia. The multivariate Long Short-Term Memory (LSTM) model is proposed due to its capability in handling long-term dependencies and non-linear patterns within time-series data. This study analyzes the performance of LSTM using historical rice price data and integrates weather factors to enhance prediction accuracy. Daily data from January 1, 2020, to December 31, 2025, was utilized, sourced from the National Strategic Food Price Information Center (PIHPS) and BMKG East Java, covering variables such as medium rice price, rainfall, wind speed, humidity, sunshine duration, and temperature. The results indicate that the LSTM model with a configuration of 45 timesteps, a dropout rate of 0.3, a batch size of 16, 150 neurons, and 150 epochs yielded the most optimal performance, achieving a Train MAPE of 0.73% and a Test MAPE of 1.40%. These findings empirically demonstrate that a historical memory of approximately 1.5 months plays a crucial role in prediction accuracy, perfectly aligning with the short-to-medium-term supply chain dynamics. Based on the out-of-sample forecasting results for January to March 2026, the model predicts a sharp price correction in early January, followed by a gradual increase that stabilizes in the range of Rp14,380–Rp14,400 per kilogram. This projection visualizes a new equilibrium, confirming that historical climate damage establishes a permanent baseline price shift, while the high forecast accuracy (MAPE 0.25%) provides a highly reliable basis for government policy formulation.
Downloads
References
[1] N. Nafi’iyah and P. A. Wulandari, “Prediksi Harga Beras Berdasarkan Kualitas Beras dengan Metode Long Short Term Memory,” Jurnal Inovtek Polbeng-Seri Informatika, vol. 7, no. 2, pp. 278–288, 2022.
[2] Y. R. Mahariani and E. R. Arifianti, “Prediksi Harga Beras di Jawa Timur Menggunakan Metode Triple Eksponensial Smoothing,” MULTIPLE: Journal of Global and Multidisciplinary, vol. 3, no. 1, pp. 2988–7828, 2025, [Online]. Available: https://journal.institercom-edu.org/index.php/multiple
[3] S. Sari Busnita, R. Oktaviani, and T. Novianti, “How far climate change affects the Indonesian paddy production and rice price volatility?,” 2017.
[4] I. Gede et al., “Predictive Time-Series Modelling of Rice Price Fluctuations in East Nusa Tenggara Using ARIMAX: A Data Driven Case Study Regional Agricultural Market Dynamics,” 2024. [Online]. Available: https://powertechjournal.com
[5] Y. Kong et al., “Unlocking the Power of LSTM for Long Term Time Series Forecasting,” 2024.
[6] R. A. Falah and M. Rachmaniah, “Model prediksi harga komoditas cabai merah besar dan keriting dengan metode Long Short Term Memory,” Institut Pertanian Bogor, Bogor, 2022.
[7] Y. Novialdi and L. S. Hasibuan, “Prediksi harga minyak goreng curah dan kemasan menggunakan algoritme Long Short Term Memory (LSTM),” Institut Pertanian Bogor, Bogor, 2023.
[8] R. Hidayat and I. Wibisonya, “Rice Price Prediction with Long Short-Term Memory (LSTM) Neural Network,” Jurnal RESTI, vol. 8, no. 5, pp. 658–664, Oct. 2024, doi: 10.29207/resti.v8i5.6041.
[9] Y. Ashari and A. Suhendar, “Implementasi Algoritma Long Short-Term Memory (LSTM) Untuk Memprediksi Harga Beras Di Jawa Tengah Berdasarkan Cuaca,” Jurnal Teknologi Informasi, vol. 5, no. 3, 2024, doi: 10.46576/djtechno.
[10] Y. H. Gu, D. Jin, H. Yin, R. Zheng, X. Piao, and S. J. Yoo, “Forecasting Agricultural Commodity Prices Using Dual Input Attention LSTM,” Agriculture (Switzerland), vol. 12, no. 2, Feb. 2022, doi: 10.3390/agriculture12020256.
[11] N. Awalloedin, W. Gata, and H. Setiawan, “Prediksi Harga Beras Super dan Medium Menggunakan LSTM dan BILSTM (Moving Average Smoothing),” Jurnal Ilmu Komputer, vol. 16, no. 1, pp. 32–43, 2023, [Online]. Available: https://hargapangan.id/
[12] H. M. Firdausi, S. B. Utomo, G. A. Rahardi, and D. H. T. Prasetiyo, “A Multivariate LSTM Approach for Monthly Rice Production Forecasting in East Java”, JSC, vol. 8, no. 3, pp. 364 - 374, Dec. 2025.
[13] V. P. Musdani, D. Lestari, and G. Ardaneswari, “Forecasting the National Rice Price Using Long Short-Term Memory”, ajmesc, vol. 5, no. 02, pp. 155-172, Mar. 2025.
[14] P. D. M. Bintang, N. L. W. S. R. Ginantra, I. B. A. I. Iswara and N. M. M. R. Desmayani, "Performance Evaluation of Ensemble Learning Stacking in Rice Price Prediction," 2024 Ninth International Conference on Informatics and Computing (ICIC), Medan, Indonesia, 2024, pp. 1-6, doi: 10.1109/ICIC64337.2024.10957374.
[15] A. T. Damaliana, S. W. Tyas, A. Muhaimin, Trimono, S. S. M. Wara and M. Idhom, "Deep Stacking Ensemble with Stacked LSTM and SVR for Analysis and Forecasting: A Case Study of Rice Price in East Java," 2025 IEEE 11th Information Technology International Seminar (ITIS), Mataram, Indonesia, 2025, pp. 356-361, doi: 10.1109/ITIS67966.2025.11309025.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Davina Mufidah, Noviyanti Santoso, Moch. Abdillah Nafis

This work is licensed under a Creative Commons Attribution-ShareAlike 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 a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement 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 acknowledgement 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 (See The Effect of Open Access).








