Random forest algorithm applied to model soil textural classification in a river basin
- 26 February 2025
- journal article
- research article
- Published by Springer Nature in Environmental Monitoring and Assessment
- Vol. 197 (3) , 1-17
Abstract
The proportion of sand, silt, and clay defines soil texture, significantly influencing agricultural and ecological practices. However, conventional classification methods are costly and limit evaluation frequency and scope. In contrast, machine learning algorithms, such as random forest, provide a more efficient solution for accurate soil texture predictions. This study aims to address this knowledge gap by integrating geoprocessing, precision agriculture, and machine learning to classify soil texture in the Sorocabuçu River Basin (SRB), predominantly agricultural. Twenty-seven sampling points were selected based on topography and land use, ensuring the representativeness of area variations and the reliability of classification. Granulometric analysis was performed using the pipette method to separate sand, silt, and clay. The data were spatially interpolated using geographic information system (GIS) techniques. Soil texture was classified using the random forest algorithm, trained on 70% of the data and tested on 30%, evaluating overall accuracy, kappa index, sensitivity, and specificity. Fifty trees (ntree) and four features per split (ntry) were used, considering the variability of parameters to ensure satisfactory results. The varied spatial distribution of clay, along with high levels of sand and silt, suggests greater vulnerability to erosion without conservation management practices. The random forest model achieved an out-of-bag (OOB) error of 2.78%, a kappa index of 0.88, and an overall accuracy of 0.92, demonstrating excellent predictive capacity. The variability of sand was essential, but the Sandy Clay Loam (SCL) class posed challenges due to its intermediate characteristics between sand and clay, resulting in classification overlaps. This integrated methodology enhances understanding of soil structure in the SRB and provides a foundation for future research and practical applications, supporting food security and environmental sustainability. The model can be applied in other locations and agricultural contexts. In homogeneous soils, the method can be improved through the application of machine learning algorithms to enhance accuracy.Keywords
This publication has 35 references indexed in Scilit:
- Speeding up UAV-based crop variability assessment through a data fusion approach using spatial interpolation for site-specific managementSmart Agricultural Technology, 2024
- Developing a two-decadal time-record of rice field maps using Landsat-derived multi-index image collections with a random forest classifier: A Google Earth Engine based approachInformation Processing in Agriculture, 2024
- Determination of suitable agricultural areas and current land use in Isparta Province, Türkiye, through a linear combination technique and geographic information systemsEnvironment, Development and Sustainability, 2024
- Machine learning in agriculture: a review of crop management applicationsMultimedia Tools and Applications, 2023
- Assessment of soil erosion risk using an integrated approach of GIS and Analytic Hierarchy Process (AHP) in Erzurum, TurkiyeEcological Informatics, 2022
- Digital mapping of soil erodibility factors based on decision tree using geostatistical approaches in terrestrial ecosystemCATENA, 2021
- Crop Classification for Precision Farming Using Machine Learning Algorithms and Sentinel-2 Data2021
- Computational intelligence applied to soil quality index using GIS and geostatistical approaches in semiarid ecosystemArabian Journal of Geosciences, 2020
- Threshold effects of vegetation coverage on soil erosion control in small watersheds of the red soil hilly region in ChinaEcological Engineering, 2019
- Using the 500 m MODIS land cover product to derive a consistent continental scale 30 m Landsat land cover classificationRemote Sensing of Environment, 2017