Comparative Study of NIR-Based Machine Learning for Predicting Soil Nutrients in Indonesian Farmlands
Abstract This study evaluates the efficacy of machine learning models for predicting soil nitrogen (N), phosphorus (P), and potassium (K) concentrations from near-infrared (NIR) spectral data (750–2499 nm). A comparative analysis was conducted on models from three distinct categories: linear-based, non-linear kernel-based, and neural network-based, using data from 145 soil samples collected across four Indonesian provinces. Regularised linear modelling performed best: Ridge Regression achieved R ²/MAE of 0.999/0.00005% for N-Total, 0.868/0.01408% for P-Total, and 0.763/0.01239% for K-Total. The non-linear SVR delivered moderate fit ( R ² = 0.821 for N-Total) but produced the lowest MAE for K (0.00829%) at lower explained variance ( R ² = 0.419). Neural network-based models underperformed the linear baselines. This study demonstrates that, for this dataset, a simpler regularised linear model outperformed more complex architectures, underscoring the critical role of rigorous model selection in developing accurate spectroscopic tools for precision agriculture. Future research could explore hybrid or ensemble methods to combine the strengths of different model types, potentially improving prediction accuracy and robustness.
Authors
- Taufik Iqbal Ramdhani (ORCID: https://orcid.org/0000-0001-7436-4884)
- Ninon Nurul Faiza (ORCID: https://orcid.org/0000-0002-5825-3743)
- T Rochmadi
- Abdul Aziz (ORCID: https://orcid.org/0000-0002-9737-0010)
- Amrullah Kamaruddin
- Yaya Suryana
- Adnan Adnan
Institutions
- National Security Agency (US)
- University of Indonesia (ID)
- National Research, Development and Innovation Office (HU)
- National Nuclear Energy Agency of Indonesia (ID)
Publication Details
- Journal
- Acta Technologica Agriculturae
- Published
- 2026-02-09
- DOI
- https://doi.org/10.2478/ata-2026-0004
- Primary Topic
- Soil Geostatistics and Mapping
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Badan Riset dan Inovasi Nasional
- Lembaga Pengelola Dana Pendidikan