Article (Scientific journals)
Prediction of Soil Total Nitrogen Through Vis–NIR Spectroscopy and Machine Learning: From Model Comparison to Explainability
Huai, Shengchang; Zhang, Qingyue; Jin, Yuwen et al.
2026 • In Soil Systems, 10 (5), p. 59
Peer Reviewed verified by ORBi
 

Files


Full Text
huai et al_2026.pdf
Publisher postprint (2.26 MB) Creative Commons License - Attribution
Download

All documents in ORBi are protected by a user license.

Send to



Details



Keywords :
particle size; SHAP interpretability; soil total nitrogen; Vis–NIR; XGBoost; Soil Science; Earth-Surface Processes
Abstract :
[en] Rapid and cost-effective estimation of soil total nitrogen (TN) is essential for soil fertility assessment and nutrient management. However, the performance of laboratory visible–near-infrared (Vis–NIR) models is shaped not only by preprocessing and modeling strategy but also by sample preparation and the soil’s compositional background. In this study, TN prediction was evaluated using 376 topsoil samples from two contrasting datasets: Mollisols from the black-soil region of Northeast China and Ultisols from Qiyang County, Hunan Province, southern China. Spectra acquired over 350–2500 nm for three particle-size fractions were preprocessed using Savitzky–Golay smoothing combined with standard normal variate (SNV), first-derivative, or second-derivative transformations, and modeled using partial least squares regression (PLSR), support vector regression (SVR), and extreme gradient boosting (XGBoost). Model development used a 5 × 5 nested cross-validation followed by evaluation on a sample-grouped held-out test set. Among all combinations, XGBoost with first-derivative preprocessing on the 0.25 mm fraction produced the best performance, with test R2 values of 0.91 for Mollisol and 0.78 for Ultisol. Shapley additive explanations (SHAP) and principal component analysis (PCA) consistently identified informative spectral regions at 430–480 and 1330–1450 nm for Mollisol and at 585–635, 820–900, and 2180–2240 nm for Ultisol. Prediction errors were larger in the sampled Ultisol dataset and increased with DCB-extractable Fe and mineral backgrounds. A second-stage log-domain residual correction incorporating ancillary soil properties further reduced the Ultisol RMSE from 0.30 to 0.27 g kg−1. These findings support the 0.25 mm, first-derivative, XGBoost workflow as a robust laboratory Vis–NIR approach for TN prediction and indicate that composition-aware residual correction can improve prediction in oxide- and mineral-rich soils.
Disciplines :
Agriculture & agronomy
Author, co-author :
Huai, Shengchang ;  Université de Liège - ULiège > TERRA Research Centre > Echanges Eau - Sol - Plantes ; Institute of Agricultural Resources and Regional Planning, Chinese Academy of Agricultural Sciences, Beijing, China ; State Key Laboratory of Nutrient Use and Management, Key Laboratory of Wastes Matrix Utilization, Ministry of Agriculture and Rural Affairs, Institute of Agricultural Resources and Environment, Shandong Academy of Agricultural Sciences, Jinan, China
Zhang, Qingyue;  Institute of Agricultural Resources and Regional Planning, Chinese Academy of Agricultural Sciences, Beijing, China
Jin, Yuwen;  Institute of Agricultural Resources and Regional Planning, Chinese Academy of Agricultural Sciences, Beijing, China
Tian, Shenzhong ;  State Key Laboratory of Nutrient Use and Management, Key Laboratory of Wastes Matrix Utilization, Ministry of Agriculture and Rural Affairs, Institute of Agricultural Resources and Environment, Shandong Academy of Agricultural Sciences, Jinan, China
Chen, Yueming;  State Key Laboratory of Nutrient Use and Management, Key Laboratory of Wastes Matrix Utilization, Ministry of Agriculture and Rural Affairs, Institute of Agricultural Resources and Environment, Shandong Academy of Agricultural Sciences, Jinan, China
Guan, Xilin ;  State Key Laboratory of Nutrient Use and Management, Key Laboratory of Wastes Matrix Utilization, Ministry of Agriculture and Rural Affairs, Institute of Agricultural Resources and Environment, Shandong Academy of Agricultural Sciences, Jinan, China
Sun, Tao ;  State Key Laboratory of Nutrient Use and Management, Key Laboratory of Wastes Matrix Utilization, Ministry of Agriculture and Rural Affairs, Institute of Agricultural Resources and Environment, Shandong Academy of Agricultural Sciences, Jinan, China
Lv, Shenqiang;  State Key Laboratory of Nutrient Use and Management, Key Laboratory of Wastes Matrix Utilization, Ministry of Agriculture and Rural Affairs, Institute of Agricultural Resources and Environment, Shandong Academy of Agricultural Sciences, Jinan, China
Zhao, Zichao;  State Key Laboratory of Nutrient Use and Management, Key Laboratory of Wastes Matrix Utilization, Ministry of Agriculture and Rural Affairs, Institute of Agricultural Resources and Environment, Shandong Academy of Agricultural Sciences, Jinan, China
Yu, Weijia ;  Institute of Crop Germplasm Resources, Shandong Academy of Agricultural Sciences, Jinan, China
Li, Ran;  Beijing Engineering Research Centre for Ecological Restoration and Carbon Fixation of Saline–Alkaline and Desert Land, Department of Energy and Power Engineering, Tsinghua University, Beijing, China
Colinet, Gilles  ;  Université de Liège - ULiège > TERRA Research Centre > Echanges Eau - Sol - Plantes
Lu, Changai ;  Institute of Agricultural Resources and Regional Planning, Chinese Academy of Agricultural Sciences, Beijing, China
Gao, Xinhao;  State Key Laboratory of Nutrient Use and Management, Key Laboratory of Wastes Matrix Utilization, Ministry of Agriculture and Rural Affairs, Institute of Agricultural Resources and Environment, Shandong Academy of Agricultural Sciences, Jinan, China
More authors (4 more) Less
Language :
English
Title :
Prediction of Soil Total Nitrogen Through Vis–NIR Spectroscopy and Machine Learning: From Model Comparison to Explainability
Publication date :
May 2026
Journal title :
Soil Systems
eISSN :
2571-8789
Publisher :
Multidisciplinary Digital Publishing Institute (MDPI)
Volume :
10
Issue :
5
Pages :
59
Peer reviewed :
Peer Reviewed verified by ORBi
Funders :
Ministry of Science and Technology of the People's Republic of China. National Key Research and Development Program
Funding text :
This research was funded by the Mechanism of Soil Spectral Response in Complex Environments and Field Validation (CAAS-CSAL-202402), the National Key Research and Development Program of China (2022YFD1500100), and the Key R&D Program of Shandong Province, China (2024SFGC0405).
Available on ORBi :
since 24 July 2026

Statistics


Number of views
57 (0 by ULiège)
Number of downloads
48 (0 by ULiège)

Scopus citations®
 
1
Scopus citations®
without self-citations
1
OpenAlex citations
 
1

Bibliography


Similar publications



Contact ORBi