Random Forest Model for Food Security Index Prediction Using Climate and Socioeconomic Panel Data in North Sumatra

Authors

  • Wira Apriani STMIK Pelita Nusantara
  • Rizki Fadila Nasution STMIK Pelita Nusantara
  • Rangga Pohan STMIK Pelita Nusantara
  • Tyo Rizki Ramadhan STMIK Pelita Nusantara

DOI:

https://doi.org/10.30865/ijics.v10i2.9998

Keywords:

Food Security Index, Random Forest Regression, Panel Data, Feature Importance, Machine Learning

Abstract

This study develops and evaluates a Random Forest Regression model for predicting the Food Security Index (IKP) using climate and socioeconomic panel data from 33 regencies/cities in North Sumatra, with Deli Serdang Regency as the principal case discussed. The predictors comprise poverty rate, gross regional domestic product (GRDP) per capita, annual rainfall, and annual rainy days. The common modeling period was 2020–2021. Of 66 potential regency-year observations, eight lacked IKP values in 2021, leaving 58 complete observations. To account for the panel structure, model performance was evaluated using nested group-aware cross-validation, with regency/city as the grouping variable. Across five outer folds, Random Forest achieved RMSE 8.450 ± 2.703, MAE 6.289 ± 2.018, and R² −0.501 ± 1.500. Linear regression obtained RMSE 8.282 ± 2.431, MAE 6.401 ± 2.262, and R² −0.363 ± 1.192, while a single decision tree obtained RMSE 9.821 ± 3.482, MAE 8.030 ± 2.849, and R² −0.972 ± 1.871. Thus, no model demonstrated strong or stable out-of-group generalization. Repeated group-aware permutation analysis identified poverty rate as the most consistent predictor. The results are predictive and associational, not causal, and the present model should be regarded as an exploratory proof of concept requiring larger, spatially resolved data for robust regional forecasting.

References

[1] D. Audina and H. Biari, “Hubungan perubahan iklim dengan ketahanan pangan di Indonesia,” vol. 3, pp. 335–342, 2025.

[2] L. Rio et al., “Dampak Perubahan Iklim Terhadap Produksi Tanaman Pangan Di Indonesia,” vol. 23, no. 1.

[3] H. Siregar, A. Asmara, I. H. Ardiansyah, and W. Java, “The production of food commodities in Indonesia: Climate change and other determinants,” vol. 21, no. 2, pp. 317–330, doi: 10.31186/jagrisep.21.2.317-330.

[4] R. Harini and D. Ariani, “Mapping using GIS and multi-criteria analysis of climate change impact on food availability in Nanga Pinoh West, Kalimantan,” vol. 5, no. 3, 2023, doi: 10.22146/ijg.54800.

[5] S. Ajith, S. Vijayakumar, and N. Elakkiya, “Yield prediction, pest and disease diagnosis, soil fertility mapping, precision irrigation scheduling, and food quality assessment using machine learning and deep learning algorithms,” Discover Food, vol. 5, no. 1, 2025, doi: 10.1007/s44187-025-00338-1.

[6] G. Gupta and S. Kumar Pal, “Applications of AI in precision agriculture,” Discover Agriculture, vol. 3, no. 1, 2025, doi: 10.1007/s44279-025-00220-9.

[7] J. H. Jeong, J. P. Resop, N. D. Mueller, D. H. Fleisher, K. Yun, E. E. Butler, D. J. Timlin, K.-M. Shim, J. S. Gerber, V. R. Reddy, and S.-H. Kim, “Random forests for global and regional crop yield predictions,” PLoS ONE, vol. 11, no. 6, Art. e0156571, 2016, doi: 10.1371/journal.pone.0156571.

[8] N. Jean, M. Burke, M. Xie, W. M. Davis, D. B. Lobell, and S. Ermon, “Combining satellite imagery and machine learning to predict poverty,” Science, vol. 353, no. 6301, pp. 790–794, 2016, doi: 10.1126/science.aaf7894.

[9] X. Zhao, B. Yu, Y. Liu, Z. Chen, Q. Li, C. Wang, and J. Wu, “Estimation of poverty using random forest regression with multi-source data: A case study in Bangladesh,” Remote Sensing, vol. 11, no. 4, Art. 375, 2019, doi: 10.3390/rs11040375.

[10] D. P. Sari, Risman, F. Maulana, L. Efrizoni, and Rahmadenni, “Prediction model for the impact of climate change on food security using the support vector machine and K-nearest neighbors algorithms,” vol. 5, pp. 851–861, 2025.

[11] M. R. Fahlevvi et al., “Prediksi Krisis Pangan Daerah Berbasis Big Data: Strategi Pemerintah Provinsi dalam Menjamin Ketahanan Pangan,” vol. 5, 2025.

[12] A. Allee, L. R. Lynd, and V. Vaze, “Cross-national analysis of food security drivers: comparing results based on the Food Insecurity Experience Scale and Global Food Security Index,” Food Security, vol. 13, no. 5, pp. 1245–1261, 2021, doi: 10.1007/s12571-021-01156-w.

[13] P. Atukunda, W. B. Eide, K. R. Kardel, P. O. Iversen, and A. C. Westerberg, “Unlocking the potential for achievement of the UN Sustainable Development Goal 2 – ‘zero hunger’ – in Africa: Targets, strategies, synergies and challenges,” Food & Nutrition Research, vol. 65, Art. 7686, 2021, doi: 10.29219/fnr.v65.7686.

[14] J. Herteux, C. Räth, A. Baha, G. Martini, and D. Piovani, “Forecasting trends in food security with real time data,” Communications Earth & Environment, vol. 5, no. 1, Art. 611, 2024, doi: 10.1038/s43247-024-01698-9.

[15] L. Breiman, “Random forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, 2001, doi: 10.1023/A:1010933404324.

Downloads

Published

2026-07-29

How to Cite

Apriani, W., Rizki Fadila Nasution, Rangga Pohan, & Tyo Rizki Ramadhan. (2026). Random Forest Model for Food Security Index Prediction Using Climate and Socioeconomic Panel Data in North Sumatra. The IJICS (International Journal of Informatics and Computer Science), 10(2), 191–196. https://doi.org/10.30865/ijics.v10i2.9998

Issue

Section

Articles