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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Vis-NIR Spectroscopy and Machine Learning for Prediction of Soil Fertility Indicators and Fertilizer Recommendation in Andean Highland and Rainforest Agroecosystems

Samuel Pizarro, Deyvis Cano, Hildo Loayza, Javier Ñaupari et al.
1 citations
Remote Sensing
Soil Geostatistics and Mapping
10.97
article

Vis-NIR Spectroscopy and Machine Learning for Prediction of Soil Fertility Indicators and Fertilizer Recommendation in Andean Highland and Rainforest Agroecosystems

Samuel Pizarro, Deyvis Cano, Hildo Loayza, Javier Ñaupari, Orly Enrique Apolo-Apolo, Dennis Ccopi-Trucios, Duglas Contreras, Solanch Patricio, Kevin Ortega
article en
1 citations

Abstract

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.

Remote SensingVol. 18(9)
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)
Instituto Nacional de Investigación y Tecnología Agraria y Alimentaria
Industry, innovation and infrastructure
Openalex Percentile: Top 1%
Soil Geostatistics and Mapping
10.97
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.