Ensemble machine learning for digital mapping of soil pH and electrical conductivity in the Andean agroecosystem of Peru
Carlos Carbajal-Llosa, Antony Barja, Samuel Pizarro
National Agrarian University · National University of San Marcos
Key points
From the paper's conclusion- This study aimed to develop an ensemble learning method to predict soil pH and EC in Andean agroecosystems using environmental predictors.
Abstract
In agricultural systems, soil pH and electrical conductivity (EC) are crucial chemical properties that directly affect nutrient availability and microbial activity, but the challenging environment of the Peruvian Andes has limited research on their estimation. This study aimed to develop an ensemble learning method to predict soil pH and EC in Andean agroecosystems using environmental predictors. By using simple and weighted averaging, we developed a heterogeneous ensemble learning approach that integrates machine learning (ML) algorithms, including Support Vector Machine (SVM), Artificial Neural Network (ANN), Random Forest (RF), and Extreme Gradient Boosting (XGBoost). The weighted ensemble assigns weights to models based on their predictive accuracy, measured by R² from spatial cross-validation. Spatial patterns are noticeable, and pH displays greater spatial clustering than EC. Elevation was the most important predictor in ML models for both parameters. Ensemble models significantly outperformed individual models, with the weighted ensemble achieving R² >0.93 and reducing RMSE by approximately 72%. Among standalone models, RF and XGBoost performed best for pH, while SVM performed the best for EC. ANN models were the least effective. Uncertainty analysis indicated high confidence in pH predictions but moderate to high uncertainty in EC predictions, suggesting that EC is more challenging to predict. Ensemble models with optimized weighting provide robust and accurate mapping of spatially autocorrelated soil properties. The high-confidence pH maps are reliable for soil management decisions, while EC predictions, though more uncertain, effectively identify priority areas for future sampling and investigation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Integrating Tacit Knowledge and AI for Digital Soil Mapping in Eastern Amazonia: Ensemble Learning, Model Performance, and Uncertainty IncorporationSoil Systems · 2026
- Ensemble Machine Learning for Operational Water Quality Monitoring Using Weighted Model Fusion for pH ForecastingSustainability · 2026
- Spatial modeling of soil salinity in hyperarid agroecosystems of northern Peru using a hybrid machine learning ensembleRevista de teledetección: Revista de la Asociación Española de Teledetección · 2026
- Edaphic homologous zones and digital tools as a basis for sustainable soil management in potato growing areas in ColombiaScientific Reports · 2025
- Estimation of Soil Organic Carbon Using Artificial Neural Networks and Regression ModelsKastamonu University Journal of Forestry Faculty · 2026
- Towards predictive ecological biogeography: Predicting vegetation type using fine-scale measurements of the abiotic environmentbioRxiv · 2026