Perbandingan Algoritma LSTM dan GRU dalam Prediksi Hasil Panen Padi Pulau Sumatera
DOI:
https://doi.org/10.37859/jf.v16i2.11765
Abstract
Rice production is a strategic commodity that plays a vital role in maintaining food security in Indonesia. Rice production data, being time-series in nature, is influenced by trends, seasonal patterns, and weather and climate factors; therefore, a prediction model capable of accurately capturing temporal patterns is required. This study aims to compare the performance of Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) models in predicting rice production on the island of Sumatra. The study utilizes secondary data obtained from Statistics Indonesia (BPS), the Meteorology, Climatology, and Geophysics Agency (BMKG), and Kaggle. Preprocessing stages include handling missing data, data normalization, and transformation into a time-series format. The data is then split into training and testing sets using an 80:20 ratio. Model performance is evaluated using Mean Absolute Error (MAE), Mean Squared Error (MSE), and Root Mean Squared Error (RMSE). The results indicate that the GRU model outperforms the LSTM model, yielding an MAE of 0.0505, MSE of 0.0075, and RMSE of 0.0868, whereas the LSTM model produces an MAE of 0.0522, MSE of 0.0082, and RMSE of 0.0917. Thus, the GRU model is more effective at capturing the temporal patterns of rice production data and generating more accurate predictions compared to the LSTM model. These findings are expected to serve as a reference for selecting rice production prediction models to support data-driven decision-making in the agricultural sector.
Downloads
References
Badan Pusat Statistik. (2023). Statistik Indonesia 2023. Jakarta: Badan Pusat Statistik
Cho, K., Van Merriënboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., & Bengio, Y. (2014). Learning phrase representations using RNN encoder–decoder for statistical machine translation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), 1724–1734.
Khaki, S., Wang, L., & Archontoulis, S. V. (2020). A CNN-RNN framework for crop yield prediction. Frontiers in Plant Science, 10, 1750.
Shastry, S., Hegde, S., & Shenoy, P. D. (2020). Time series forecasting for crop yield prediction using LSTM neural networks. International Journal of Advanced Science and Technology, 29(5), 1332–1340.
Kamilaris, A., & Prenafeta-Boldú, F. X. (2018). Deep learning in agriculture: A survey. Computers and Electronics in Agriculture, 147, 70–90.
Chung, J., Gulcehre, C., Cho, K., & Bengio, Y. (2014). Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555
Géron, A. (2019). Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow (2nd ed.). California: O’Reilly Media.
D. DN, Cahyo., A. Sunyoto. 2025. Analisis Perbandingan Klasifikasi dalam Data Mining pada Prediksi Hujan dengan menggunakan Algoritma LSTM dan GRU. Jurnal Sains dan Informatika. Vol 11:1 (40-49). Informatika, Fakultas Sains dan Komunikasi Visual, Universitas Cendekia Mitra Indonesia, Yogyakarta, Indonesia.
Food and Agriculture Organization. (2022). Rice Market Monitor. Rome: FAO Official Website
Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. Cambridge: MIT Press.
Hawali, M. L., & Walid. (2025). Pemilihan Neuron LSTM dan LSTM Bayesian Optimization Untuk Prediksi Curah Hujan Bulanan Berbasis Iklim. Jurnal FASILKOM, 15(2), 376–382
Hochreiter, S., & Schmidhuber, J. (1997). Long-Short-Term-Memory. Neural Computation, 9(8), 1735–1780.
Hyndman, R. J., & Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed.). Melbourne: Monash University.
Jeong, J. H., Resop, J. P., Mueller, N. D., Fleisher, D. H., Yun, K., Butler, E. E., Timlin, D. J., Shim, K. M., Gerber, J. S., & Reddy, V. R. (2016). Random forests for global and regional crop yield predictions. PLoS ONE, 11(6), e0156571.
M. A. Sholeh., & R. Hidayat. 2022. Perbandingan Model Lstm Dan Gru Untuk meramalkan Harga Minyak Goreng Di Indonesia. Edusaintek: Jurnal Pendidikan, Sains dan Teknologi. Volume 9 Issue 3. Pages 800 – 811
Yulianto, F. C., & Latifah, N. (2024). Peramalan Penjualan Laptop Menggunakan Metode Long Short-Term Memory (LSTM). Jurnal FASILKOM, 14(2). https://doi.org/10.37859/jf.v14i2.7337
Zhang, G. P. (2003). Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing, 50, 159–175.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Sapto Hadi Riono, Risalatul Fathimah Ahmad, Ridho Af Fathir

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright Notice
An author who publishes in the Jurnal FASILKOM (teknologi inFormASi dan ILmu KOMputer) agrees to the following terms:
- Author retains the copyright and grants the journal the right of first publication of the work simultaneously licensed under the Creative Commons Attribution-ShareAlike 4.0 License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal
- Author is 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 the acknowledgement of its initial publication in this journal.
- Author is permitted and encouraged to post his/her 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 the published work (See The Effect of Open Access).
Read more about the Creative Commons Attribution-ShareAlike 4.0 Licence here: https://creativecommons.org/licenses/by-sa/4.0/.


