# Dataset of near-infrared (NIR) spectral data for prediction of organic matter and total carbon in agricultural soil using homemade NIR spectrometer

**Authors:** Natchanon Santasup, Parichat Theanjumpol, Choochad Santasup, Sila Kittiwachana, Nipon Mawan, Nuttapon Khongdee

PMC · DOI: 10.1016/j.dib.2025.111840 · Data in Brief · 2025-06-25

## TL;DR

This paper provides a dataset of near-infrared spectral data from agricultural soils in northern Thailand, used to predict organic matter and total carbon with a homemade spectrometer.

## Contribution

The study introduces a homemade NIR spectrometer and a dataset for predicting soil properties with preprocessing techniques and PLS regression.

## Key findings

- Savitzky-Golay smoothing with PLSR achieved the best results for predicting soil organic matter and total carbon.
- The dataset covers a wavelength range of 900-1,700 nm, suitable for portable NIR spectrometers.
- Validation showed R2 values of 0.79 and 0.78 for soil organic matter and total carbon, respectively.

## Abstract

The paper presents the spectroscopic data obtained from a homemade NIR spectrometer developed for agricultural quality analysis, along with the calibration and validation of a model database for predicting agricultural soil properties. We collected NIR spectral data from 190 soil samples taken at a depth of 0-20 cm from agricultural areas in northern Thailand, including vegetable farms, orchards, and field crops. The acquisition process started by air-drying the soil and sieving it through 2.0 mm and 0.5 mm mesh. Six preprocessing techniques, including Savitzky-Golay smoothing, multiplicative scatter correction (MSC), standard normal variate (SNV), first derivative, second derivative, and mean centering, were used with partial least squares (PLS) regression to create the prediction model for soil organic matter and total carbon. Seventy percent of the sample was divided into calibration and the remaining thirty percent was validation. The most suitable model for assessing soil organic matter (SOM) and total carbon is Savitzky-Golay smoothing through the PLSR model, with a coefficient of determination (R2) of 0.79 and 0.78, a root mean square error (RMSE) of 0.701% and 0.382% for validation samples, respectively. Thus, the NIR dataset spanning 900-1,700 nm proved to be an ideal wavelength range for developing a portable/handheld NIR spectrometer, with potential for further accuracy improvements through model refinement.

## Full-text entities

- **Chemicals:** carbon (MESH:D002244), organic matter (-)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12269513/full.md

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12269513/full.md

## References

17 references — full list in the complete paper: https://tomesphere.com/paper/PMC12269513/full.md

---
Source: https://tomesphere.com/paper/PMC12269513