Contribution Analysis of Climate and Soil Feature Groups in Dominant Crop Classification Using Random Forest Algorithm
Keywords:
Feature Attribution, Spatial Autocorrelation, Crop Classification, Random Forest, Spatial Cross-ValidationAbstract
Crop recommendation systems commonly treat soil nutrients as the principal determinant of land suitability. This study tests that assumption and also asks how far the attribution methods used to support such claims can be trusted. The data cover 50,000 grid cells at 0.05 degree resolution, described by 16 features grouped into soil, climate, and topography, and labelled with the dominant crop across ten balanced classes. Group ablation, grouped permutation, and individual permutation were applied under four validation schemes spanning test-to-train distances of 5.6 to 209.9 km, repeated across three seeds, giving 270 Random Forest fits. Climate outweighed soil by a mean ratio of 3.72, range 3.40 to 4.23, and this held under every scheme. Conclusions about soil did not hold: its unique contribution was 0.0002 under random validation but 0.0293 under 5 degree spatial blocks (Wilcoxon p = 1.2 × 10⁻⁴; Friedman p = 1.8 × 10⁻⁴). Gini importance moved by only 0.0057 and missed the pattern.
References
F. H. M. Tang, T. H. Nguyen, G. Conchedda, L. Casse, F. N. Tubiello, and F. Maggi, “CROPGRIDS: A global geo-referenced dataset of 173 crops,” Sci. Data, vol. 11, no. 1, art. 413, 2024.
L. Poggio, L. M. de Sousa, N. H. Batjes, G. B. M. Heuvelink, B. Kempen, E. Ribeiro, and D. Rossiter, “SoilGrids 2.0: Producing soil information for the globe with quantified spatial uncertainty,” SOIL, vol. 7, no. 1, pp. 217–240, 2021.
R. W. McDowell, A. Noble, P. Pletnyakov, and P. M. Haygarth, “A global database of soil plant available phosphorus,” Sci. Data, vol. 10, no. 1, 2023.
S. E. Fick and R. J. Hijmans, “WorldClim 2: New 1-km spatial resolution climate surfaces for global land areas,” Int. J. Climatol., vol. 37, no. 12, pp. 4302–4315, 2017.
L. Breiman, “Random forests,” Mach. Learn., vol. 45, no. 1, pp. 5–32, 2001.
I. Colkesen and M. Y. Ozturk, “A comparative evaluation of state-of-the-art ensemble learning algorithms for land cover classification using WorldView-2, Sentinel-2 and ROSIS imagery,” Arab. J. Geosci., vol. 15, no. 10, art. 942, 2022.
C. Strobl, A.-L. Boulesteix, T. Kneib, T. Augustin, and A. Zeileis, “Conditional variable importance for random forests,” BMC Bioinformatics, vol. 9, art. 307, 2008.
K. K. Nicodemus, J. D. Malley, C. Strobl, and A. Ziegler, “The behaviour of random forest permutation-based variable importance measures under predictor correlation,” BMC Bioinformatics, vol. 11, art. 110, 2010.
W. R. Tobler, “A computer movie simulating urban growth in the Detroit region,” Econ. Geogr., vol. 46, pp. 234–240, 1970.
P. Ploton et al., “Spatial validation reveals poor predictive performance of large-scale ecological mapping models,” Nat. Commun., vol. 11, no. 1, 2020.
T. Kattenborn, F. Schiefer, J. Frey, H. Feilhauer, M. D. Mahecha, and C. F. Dormann, “Spatially autocorrelated training and validation samples inflate performance assessment of convolutional neural networks,” ISPRS Open J. Photogramm. Remote Sens., vol. 5, art. 100018, 2022.
H. Meyer and E. Pebesma, “Machine learning-based global maps of ecological variables and the challenge of assessing them,” Nat. Commun., vol. 13, art. 2208, 2022.
A. M. J.-C. Wadoux, G. B. M. Heuvelink, S. de Bruin, and D. J. Brus, “Spatial cross-validation is not the right way to evaluate map accuracy,” Ecol. Modell., vol. 457, art. 109692, 2021.
C. Milà, J. Mateu, E. Pebesma, and H. Meyer, “Nearest neighbour distance matching leave-one-out cross-validation for map validation,” Methods Ecol. Evol., vol. 13, no. 6, pp. 1304–1316, 2022.
J. Linnenbrink, C. Milà, M. Ludwig, and H. Meyer, “kNNDM CV: k-fold nearest-neighbour distance matching cross-validation for map accuracy estimation,” Geosci. Model Dev., vol. 17, no. 15, pp. 5897–5912, 2024.
H. Meyer and E. Pebesma, “Predicting into unknown space? Estimating the area of applicability of spatial prediction models,” Methods Ecol. Evol., vol. 12, no. 9, pp. 1620–1633, 2021.
M. Ludwig, A. Moreno-Martínez, N. Hölzel, E. Pebesma, and H. Meyer, “Assessing and improving the transferability of current global spatial prediction models,” Glob. Ecol. Biogeogr., vol. 32, no. 3, pp. 356–368, 2023.
J. Nowosad et al., “Navigating challenges in spatial machine learning: Validation, uncertainty, algorithms, and reproducibility,” Erdkunde, 2026.
H. Meyer, C. Reudenbach, S. Wöllauer, and T. Nauss, “Importance of spatial predictor variable selection in machine learning applications: Moving from data reproduction to spatial prediction,” Ecol. Modell., vol. 411, art. 108815, 2019.
S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems, vol. 30, 2017.
S. Georganos et al., “Geographical random forests: A spatial extension of the random forest algorithm to address spatial heterogeneity in remote sensing and population modelling,” Geocarto Int., vol. 36, no. 2, pp. 121–136, 2021.
S. Georganos and S. Kalogirou, “A forest of forests: A spatially weighted and computationally efficient formulation of geographical random forests,” ISPRS Int. J. Geo-Inf., vol. 11, no. 9, art. 471, 2022.
H. Meyer, C. Milà, M. Ludwig, J. Linnenbrink, and F. Schumacher, “Estimation of local training data point densities to support the assessment of spatial prediction uncertainty,” Geosci. Model Dev., vol. 18, art. 10185, 2025.
“Analisis perbandingan model machine learning tree-based dan non-tree-based untuk tugas klasifikasi,” J. Teknol. Inf. dan Ilmu Komput., vol. 12, no. 4, pp. 875–884, 2025.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Fadhlan Ihsan Lubis; Muhammad Iqbal

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




