Document Type : Research Paper
Soil organic carbon (SOC) is a key indicator of soil quality and a major component of the global carbon cycle. Accurate spatial prediction of SOC supports sustainable land management, enhances soil conservation planning, and contributes to climate-change mitigation by identifying areas with high carbon sequestration potential. However, SOC typically exhibits strong spatial heterogeneity, driven by interacting environmental factors such as topography, moisture regime, vegetation cover, and land use. Conventional soil mapping approaches are often labor-intensive, time-consuming, and expensive. This has motivated the rapid development of Digital Soil Mapping (DSM) as a cost-effective and scalable alternative.
The Karun 3 Dam watershed (eastern Khuzestan Province, Iran) provides a challenging environment for SOC mapping due to its complex terrain and diverse land uses, which can create non-linear and multi-factor controls on SOC distribution. In such landscapes, advanced predictive models are often required to capture the complex relationships between SOC and environmental covariates. Therefore, the main objective of this study was to evaluate and compare the predictive performance of three distinct modeling approaches—Random Forest (RF), Regression Kriging (RK), and Extreme Gradient Boosting (XGBoost)—for spatial prediction of SOC in the Karun 3 watershed. We hypothesized that the gradient boosting framework, particularly XGBoost, would outperform the other approaches by more effectively learning non-linear relationships and interactions between SOC and environmental covariates under heterogeneous environmental conditions.
The study was conducted in the Karun 3 Dam watershed located in eastern Khuzestan Province, Iran. The watershed is characterized by rugged topography and heterogeneous land-use patterns, which together contribute to high spatial variability in soil properties, including SOC. To ensure the sample set accurately represented the multivariate distribution of key environmental variables, including topography, geology, soil types, and vegetation cover, a Conditioned Latin Hypercube Sampling (cLHS) strategy was implemented. This was done using the TEUI 460 add-in widget in ArCGIS 10.8.2. For designing the proposed sampling points with this plugin, all input layers were converted to raster format with identical pixel sizes. Subsequently, a total of 158 composite surface soil samples were collected from a depth of 0–5 cm.
Soil samples were air-dried, passed through a 2 mm sieve, and prepared for the measurement of physical and chemical properties. These properties included soil organic carbon (SOC) determined by hot digestion oxidation; soil pH measured in a saturated soil paste using a pH meter; electrical conductivity (EC) measured in the saturated paste extract with an EC meter; soil texture determined by the hydrometer method; bulk density (ρb) measured using a cylinder; and calcium carbonate equivalents (CCE) of the samples determined by back-titration. The land use type and geographical location of the sampling sites were recorded using a Global Positioning System (GPS).
A suite of 55 environmental covariates was derived from Landsat 9 imagery and a 10 m digital elevation model (DEM) using ENVI 4.7, ArcGIS 10.8.2, and SAGA GIS 6.4.0 softwares. These covariates included topographic, spectral, climatic, and soil features, all commonly linked to SOC variability. To enhance model stability and eliminate redundant variables, we assessed multicollinearity by considering correlation coefficients among variables (r ≥ 0.8) and the variance inflation factor (VIF > 10), after first removing variables with near-zero variance.
We then followed a predictive modeling framework and compared three approaches: Random Forest (RF), an ensemble learning method based on recursive partitioning; Extreme Gradient Boosting (XGBoost), a gradient-boosted tree framework designed for high predictive accuracy and efficient learning of complex non-linear patterns; and Regression Kriging (RK), a hybrid approach combining a multiple linear regression (MLR) component with ordinary kriging of regression residuals to incorporate spatial autocorrelation not captured by covariates.
Model performance analysis was evaluated using an independent validation strategy, where 70% of samples (n = 111) were used for model training and 30% (n = 47) for independent validation. Splitting data into training and testing subsets was performed employing a cLHS approach to ensure a more balanced and spatial coverage of both the train and test sample. Predictive accuracy assessment was caried out using the coefficient of determination (R2), root mean square error (RMSE), mean absolute error (MAE), and ratio of performance to interquartile range (RPIQ) metrics. To further examine model robustness, bootstrap resampling was performed within the caret package in R.
To prepare a map of the spatial distribution of SOC using RF and XGBoost models, the final and optimized model for each method was applied to every pixel of the region using the full set of environmental variables to produce the SOC prediction map. For developing the SOC distribution map using the RK approach, the final SOC distribution map consisted of two separate steps. In the first step, a multiple linear regression model was fitted to the sampling points and applied to all raster layers of the region to generate the predicted SOC trend map. In the second step, using the optimum variogram fitted to the residuals of the regression model and ordinary kriging, the residual values were estimated and interpolated, then applied to all pixels in the study area. Finally, the final SOC distribution map was produced by the sum of the trend map and the kriged residuals.
To quantify the uncertainty of predictions using RF and XGBoost models, we employed the 90% prediction interval (PI) width To compute this index for tree-based methods, we first calculated, for each pixel, the distribution of predictions obtained from different trees (in the RF model) or from bootstrapped models (in the XGBoost model). The distance between the 5th and 95th percentiles of this distribution was then computed and used as the uncertainty measure. However, uncertainty in the RK method was derived from two separate sources. First, the variance of the trend estimate, attributable to uncertainty in the regression model coefficients, was computed. This value was then added to the variance derived from residual kriging.
Model comparison revealed a clear ranking in predictive performance. XGBoost provided the most accurate SOC predictions, achieving R2=0.628, RMSE = 0.473, MAE = 0.316, and RPIQ = 1.980. Random Forest showed moderate performance with R2=0.545, RMSE = 0.509, and RPIQ = 1.841. Regression Kriging exhibited the lowest predictive accuracy (R2=0.434, RMSE = 0.534), indicating limited added value from residual spatial interpolation under the conditions of this study. The superior performance of XGBoost suggests that gradient boosting is well-suited for SOC prediction in heterogeneous watersheds where complex, non-linear relationships and interactions between environmental covariates and SOC are expected. The weaker performance of RK may reflect limited spatial autocorrelation remaining in the residuals after accounting for covariates, or potential challenges in fitting a stable variogram structure under strong environmental heterogeneity.
Variable-importance analysis highlighted BD, CCE, Carbonate Index (Carb.Ind), Normalized Difference Moisture Index (NDMI), and Lthe ength Slope Factor (Ls-Factor) as the most influential predictors contributing to the spatial districution of SOC in this study. The importance of BD, CCE, NDMI and LS-Factor underscores the role of soil physical condition and moisture status in regulating SOC patterns within the watershed.
The resulting SOC maps indicated higher SOC concentrations in the northern and northwestern parts of the watershed. In contrast, the central areas showed the lowest prediction uncertainty, suggesting stronger model confidence in this zone. Spatial uncertainty patterns further emphasize the need for careful sampling design and potentially additional covariates or sampling intensification in areas where model uncertainty remains high.
This study demonstrates XGBoost as the most effective approach for regional SOC mapping within the complex Karun 3 watershed, outperforming Random Forest (RF) and Regression Kriging (RK). The practical value of XGBoost lies in its ability to accurately capture the non-linear, multi-factor environmental controls on SOC, thereby improving the reliability of digital soil mapping outputs. The generated SOC prediction and uncertainty maps can assist land managers and decision-makers in identifying high-potential carbon sinks and prioritizing soil conservation efforts. Future research should integrate additional high-resolution covariates and explore deep learning models to further enhance spatial prediction accuracy and reduce uncertainty in complex watersheds.
The authors would like to thank the Deputy of Research Technology and Social Relationships at Shahid Chamran University of Ahvaz (SCU.AS1402.365) for their financial support of this research.
First Author: Formal analysis, methodology, software, writing — original draft,
Second Author: Conceptualization, data curation, funding acquisition, writing — review and editing, methodology, validation.
Third Author: Conceptualization, methodology, software, writing-review and editing.
During the preparation of this work the author(s) used editGPT for grammatical and typographical errors.
Data available on request from the authors.
The authors would like to thank anonymous referees for their constructive comments.
The authors would like to thank anonymous reviewers for their valuable suggestions in manuscript revision.
The authors avoided data fabrication, falsification, and plagiarism, and any form of misconduct.
The authors declare no conflict of interest.