Portable NIR for Soil Property Prediction and Fertility Assessment in Coffee and Cocoa Systems

The study evaluated the potential of portable near-infrared (NIR) spectroscopy to predict soil physicochemical properties in coffee and cocoa production systems in Amazonas, Peru. A total of 126 topsoil samples were initially collected using a stratified sampling design. One coffee sample was excluded from the spectral dataset because no corresponding NIR spectral record was available, resulting in a final dataset of 125 samples (69 coffee and 56 cocoa) used for predictive modeling. Soil properties were determined using standard laboratory reference methods, and spectral data were acquired using a portable NeoSpectra spectrometer operating in the 1350–2550 nm range. Predictive models were developed using Random Forest (RF), Support Vector Machine (SVM), Neural Networks (NN), and Partial Least Squares Regression (PLSR), and their performance was evaluated using nested five-fold cross-validation. The predictive performance of portable near-infrared (NIR) spectroscopy varied according to the soil property, production system, preprocessing technique, and machine learning algorithm. Coffee soils showed higher predictive performance than cocoa soils. The best results were obtained for clay (R²CV = 0.775; RPDCV = 2.276) using Random Forest with first-derivative preprocessing, followed by phosphorus (R²CV = 0.772; RPDCV = 2.037) using Partial Least Squares Regression with band-depth preprocessing. Soil pH and silt also showed satisfactory predictive performance in coffee soils. In cocoa soils, potassium exhibited the highest predictive capability (R²CV = 0.454; RPDCV = 1.378) using Support Vector Machine with second-derivative preprocessing, although the overall model performance was lower than that observed for coffee soils. Portable NIR spectroscopy provided potentially useful estimates for selected soil properties, particularly clay, phosphorus, pH, and silt in coffee soils. However, its predictive performance was strongly dependent on the soil property, preprocessing strategy, machine learning algorithm, and production system.

Authors

Institutions

Publication Details

Journal
Soil Security
Published
2026-09-01
DOI
https://doi.org/10.1016/j.soisec.2026.100250
Primary Topic
Soil Geostatistics and Mapping
Type
article
Field-Weighted Citation Impact
0.00

Funders

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

Portable NIR for Soil Property Prediction and Fertility Assessment in Coffee and Cocoa Systems

Samuel Pizarro, A R Eduardo Peña, Jhon A. Zabaleta-Santisteban, Angel J. Medina-Medina et al.
Soil Security
Soil Geostatistics and Mapping
article

Portable NIR for Soil Property Prediction and Fertility Assessment in Coffee and Cocoa Systems

Samuel Pizarro, A R Eduardo Peña, Jhon A. Zabaleta-Santisteban, Angel J. Medina-Medina, Katerin M. Tuesta-Trauco, Abner S. Rivera-Fernandez, Teodoro B. Silva-Melendez, Marlen A. Grandez-Alberca, Julio Puscan-Rojas, Mirella N. Coronel-Alcalde, Lily del Pilar Juarez-Contreras, Elgar Barboza
article en

Abstract

The study evaluated the potential of portable near-infrared (NIR) spectroscopy to predict soil physicochemical properties in coffee and cocoa production systems in Amazonas, Peru. A total of 126 topsoil samples were initially collected using a stratified sampling design. One coffee sample was excluded from the spectral dataset because no corresponding NIR spectral record was available, resulting in a final dataset of 125 samples (69 coffee and 56 cocoa) used for predictive modeling. Soil properties were determined using standard laboratory reference methods, and spectral data were acquired using a portable NeoSpectra spectrometer operating in the 1350–2550 nm range. Predictive models were developed using Random Forest (RF), Support Vector Machine (SVM), Neural Networks (NN), and Partial Least Squares Regression (PLSR), and their performance was evaluated using nested five-fold cross-validation. The predictive performance of portable near-infrared (NIR) spectroscopy varied according to the soil property, production system, preprocessing technique, and machine learning algorithm. Coffee soils showed higher predictive performance than cocoa soils. The best results were obtained for clay (R²CV = 0.775; RPDCV = 2.276) using Random Forest with first-derivative preprocessing, followed by phosphorus (R²CV = 0.772; RPDCV = 2.037) using Partial Least Squares Regression with band-depth preprocessing. Soil pH and silt also showed satisfactory predictive performance in coffee soils. In cocoa soils, potassium exhibited the highest predictive capability (R²CV = 0.454; RPDCV = 1.378) using Support Vector Machine with second-derivative preprocessing, although the overall model performance was lower than that observed for coffee soils. Portable NIR spectroscopy provided potentially useful estimates for selected soil properties, particularly clay, phosphorus, pH, and silt in coffee soils. However, its predictive performance was strongly dependent on the soil property, preprocessing strategy, machine learning algorithm, and production system.

Soil Security
National Agrarian University (NI), National University Toribio Rodríguez de Mendoza (PE)
Universidad Nacional Toribio Rodríguez de Mendoza de Amazonas, Consejo Nacional de Ciencia, Tecnología e Innovación Tecnológica
Zero hunger
Openalex Percentile: Top 18%
Soil Geostatistics and Mapping
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.