Temporally Validated Rice Productivity Prediction in West Sumatra: Linear Regression Versus Random Forest
DOI:
https://doi.org/10.57152/malcom.v6i4.2914Keywords:
Linear Regression, Prediction, Rice Productivity, Random Forest, Temporal ValidationAbstract
Rice productivity is an important indicator of food security in West Sumatra Province, shaped by climate and harvested area, so an accurate prediction model is needed. This study compares Linear Regression and Random Forest for predicting rice productivity using Area Sampling Frame (KSA) data, rainfall, and air temperature from 2020–2024, totaling 156 valid observations. Following CRISP-DM, inferential analysis used Multiple Linear Regression with assumption tests, while predictive evaluation used a temporal holdout split and pipeline preprocessing to prevent leakage. Features included lag-1 climate and productivity, region, and month; performance used R², RMSE, MAE, and MAPE against mean and seasonal-naive baselines. Inferential results show only air temperature significantly affects rice productivity (p=0.001), yet the model explains just 9.7% of variance (R²=0.097) and violates classical assumptions. An exploratory diagnostic identified an abrupt regime shift in 2024, which was excluded so models were trained and validated on the stable 2020–2023 period. Both models forecast future months well, with Linear Regression the best and most stable (holdout R²=0.70; rolling-origin R²=0.71±0.11) and Random Forest close behind (holdout R²=0.67). Lag-1 productivity dominated feature importance, indicating largely autoregressive accuracy, while climate and area add modest signal. Future work should add agronomic, remote-sensing variables and autocorrelation-aware models
Downloads
References
A. Massagony, T. Tam Ho, and K. Shimada, “Climate change impact and adaptation policy effectiveness on rice production in Indonesia,” International Journal of Environmental Studies, vol. 80, no. 5, pp. 1373–1390, Sep. 2023, doi: 10.1080/00207233.2022.2099110.
R. Venuprasad, H. R. Lafitte, and G. N. Atlin, “Response to Direct Selection for Grain Yield under Drought Stress in Rice,” Crop Sci., vol. 47, no. 1, pp. 285–293, 2007, doi: https://doi.org/10.2135/cropsci2006.03.0181.
S. Peng et al., “Rice yields decline with higher night temperature from global warming,” Proceedings of the National Academy of Sciences, vol. 101, no. 27, pp. 9971–9975, 2004, doi: 10.1073/pnas.0403720101.
A. Morales and F. J. Villalobos, “Using machine learning for crop yield prediction in the past or the future,” Front. Plant Sci., vol. 14, 2023, doi: 10.3389/fpls.2023.1128388.
J. H. Jeong et al., “Random Forests for Global and Regional Crop Yield Predictions,” PLoS One, vol. 11, no. 6, pp. e0156571-, 2016, [Online]. Available: https://doi.org/10.1371/journal.pone.0156571
Erlin, A. Yunianta, L. A. Wulandhari, Y. Desnelita, N. Nasution, and Junadhi, “Enhancing Rice Production Prediction in Indonesia Using Advanced Machine Learning Models,” IEEE Access, vol. 12, pp. 151161–151177, 2024, doi: 10.1109/ACCESS.2024.3478738.
E. Yoshino, F. I. Kurniadi, and B. Juarto, “Forecasting Rice Production in Indonesia using Regression Techniques: A Comparative Analysis of Support Vector Machine, Linear Regression, and XGBoost Regression,” in 2023 10th International Conference on ICT for Smart Society (ICISS), 2023, pp. 1–5. doi: 10.1109/ICISS59129.2023.10291271.
A. Rizal, A. Aziz, . Komariah, M. Rizky Romadhon, and M. Mustangin, “Machine learning-based prediction of rice yield from rain feeding in monsoonal tropical area of Java, Indonesia,” Scientific Horizons, pp. 165–178, Aug. 2025, doi: 10.48077/scihor8.2025.165.
D. De Clercq and A. Mahdi, “Modern computational approaches for rice yield prediction: A systematic review of statistical and machine learning-based methods,” Comput. Electron. Agric., vol. 231, p. 109852, 2025, doi: https://doi.org/10.1016/j.compag.2024.109852.
R. Wirth and J. Hipp, “CRISP-DM: Towards a Standard Process Model for Data Mining,” in Proceedings of the 4th International Conference on the Practical Applications of Knowledge Discovery and Data Mining, Manchester, 2000, pp. 29–40.
L. Breiman, “Random Forests,” Mach. Learn., vol. 45, no. 1, pp. 5–32, 2001, doi: 10.1023/A:1010933404324.
D. De Clercq and A. Mahdi, “Modern computational approaches for rice yield prediction: A systematic review of statistical and machine learning-based methods,” Comput. Electron. Agric., vol. 231, p. 109852, 2025, doi: https://doi.org/10.1016/j.compag.2024.109852.
A. Chandra, P. Mitra, S. K. Dubey, and S. S. Ray, “Machine Learning Approach For Kharif Rice Yield Prediction Integrating Multi-Temporal Vegetation Indices And Weather And Non-Weather Variables,” The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, vol. XLII-3/W6, pp. 187–194, 2019, doi: 10.5194/isprs-archives-XLII-3-W6-187-2019.
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Delsi Kariman, Dhea Nesvira Rahmadhani, Ainil Mardiyah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright © by Author; Published by Institut Riset dan Publikasi Indonesia (IRPI)
This Indonesian Journal of Machine Learning and Computer Science is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.










