Skip to main navigation Skip to search Skip to main content

Prediction of Soil Nutrients from Different Soil Textures using Portable Spectrometer and Machine Learning

  • Harki Himawan
  • , Rut Juniar Nainggolan
  • , Handono Rakhmadi
  • , Gunomo Djoyowasito
  • , Ubaidillah
  • , Lenny Sri Nopriani
  • , Dimas Firmanda Al Riza*
  • *Corresponding author for this work

Research output: Contribution to journal › Article › peer-review

Abstract

Soil nutrients, such as nitrogen, phosphorus, and potassium, are essential for plant growth and agricultural productivity. Conventional laboratory methods for measuring these nutrients are accurate, but often time-consuming, expensive, and harmful to the environment. This study explores the potential of portable visible-near infrared (Vis-NIR) spectrometers combined with machine learning algorithms as a fast, cost-effective, and environmentally friendly alternative for soil nutrient analysis. The soil samples used consisted of clay, sandy clay, and loamy clay. The machine learning model used was artificial neural network (ANN). The ANN model was developed using the H2O library with the AutoML feature as a hyperparameter tuner to improve accuracy and cross-validation to reduce overfitting. A total of 81 reflectance spectrum data from each soil type were obtained using the AS7265x sensor and processed to develop a predictive model of nutrient content. The ANN model demonstrated high accuracy, with R² values exceeding 0.8 for each soil texture type. This study highlights the potential of integrating portable Vis-NIR spectrometers and machine learning to revolutionize soil nutrient analysis, offering significant improvements in agricultural efficiency and sustainability.

Original languageEnglish
Article number0260103
JournalAdvance Sustainable Science, Engineering and Technology
Volume8
Issue number1
DOIs
Publication statusPublished - Jan 2026

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 2 - Zero Hunger
    SDG 2 Zero Hunger
  2. SDG 8 - Decent Work and Economic Growth
    SDG 8 Decent Work and Economic Growth

Keywords

  • artificial neural network
  • machine learning
  • portable vis-nir spectrometer
  • soil nutrient prediction
  • spectral analysis

Fingerprint

Dive into the research topics of 'Prediction of Soil Nutrients from Different Soil Textures using Portable Spectrometer and Machine Learning'. Together they form a unique fingerprint.

Cite this