Vis-NIR Spectroscopy and Machine Learning for Prediction of Soil Fertility Indicators and Fertilizer Recommendation in Andean Highland and Rainforest Agroecosystems
This study evaluated the use of visible and near-infrared (Vis-NIR) spectroscopy combined with machine learning (ML) algorithms to predict soil fertility-related properties in two contrasting agroecological regions of Peru: the Highlands and the Rainforest. A total of 297 soil samples were analyzed using portable spectroradiometers covering a spectral range of 350–2500 nm, applying transformations such as Savitzky–Golay smoothing, first derivative, and band depth. Predictive models were developed using PLSR, Random Forest, Support Vector Machines, and neural networks. Results show variable predictive performance across soil properties and ecosystems. Organic matter in Highland soils and calcium in Rainforest soils achieved the strongest test-set accuracy (R2 > 0.70), while pH and texture fractions showed moderate performance (R2 = 0.42–0.67), and mobile nutrients including phosphorus, potassium, and sodium showed limited predictive accuracy due to their weak spectral expression. Spectral predictions were further integrated into a structured nutrient balance framework to assess agronomic reliability. Nitrogen fertilizer recommendations showed the strongest agreement between observed and predicted values across both ecosystems, whereas K2O and CaO recommendations in Highland soils were substantially underestimated, demonstrating that property-level statistical performance does not guarantee agronomic reliability. These findings confirm that Vis-NIR spectroscopy combined with ML represents a fast, cost-effective, and sustainable alternative to conventional soil analysis, especially in rural areas with limited laboratory infrastructure. Expanding regional calibration datasets and exploring mid-infrared FTIR spectroscopy as a complementary technology are identified as priority directions for improving predictions of agronomically critical nutrients.
Authors
- Samuel Pizarro (ORCID: https://orcid.org/0000-0001-9345-982X)
- Deyvis Cano (ORCID: https://orcid.org/0000-0002-4262-1505)
- Hildo Loayza (ORCID: https://orcid.org/0000-0002-4145-5453)
- Javier Ñaupari (ORCID: https://orcid.org/0000-0002-1554-2633)
- Orly Enrique Apolo-Apolo (ORCID: https://orcid.org/0000-0001-8311-0579)
- Dennis Ccopi-Trucios (ORCID: https://orcid.org/0000-0002-4026-4874)
- Duglas Contreras
- Solanch Patricio
- Kevin Ortega
Institutions
- Universidade Federal do Rio Grande do Sul (BR)
- National Agrarian University (NI)
- International Potato Center (PE)
- National University Toribio Rodríguez de Mendoza (PE)
- Institute of Agrifood Research and Technology (ES)
- Instituto Nacional de Investigación y Tecnología Agraria y Alimentaria (ES)
- Universidad Nacional Agraria La Molina (PE)
Publication Details
- Journal
- Remote Sensing
- Published
- 2026-04-26
- DOI
- https://doi.org/10.3390/rs18091331
- Citations
- 1
- Primary Topic
- Soil Geostatistics and Mapping
- Type
- article
- Field-Weighted Citation Impact
- 10.97
Funders
- Instituto Nacional de Investigación y Tecnología Agraria y Alimentaria