PCA- and PLSR-Based Machine Learning Model for Prediction of Urea-N Content in Heterogeneous Soils Using Near-Infrared Spectroscopy
- PMID: 40648429
- PMCID: PMC12252165
- DOI: 10.3390/s25134176
PCA- and PLSR-Based Machine Learning Model for Prediction of Urea-N Content in Heterogeneous Soils Using Near-Infrared Spectroscopy
Abstract
Determining the soil's nitrogen supply accurately and quickly is essential for effective agricultural management. This study explores the use of near-infrared (NIR) spectroscopy combined with spectral pre-processing techniques (such as Savitzky-Golay filtering) and partial least squares regression (PLSR) to assess soil nitrogen levels. Six soil types of varying compositions, treated with different levels of Urea-N fertilizer, were examined. Nitrogen-specific NIR peaks were identified, and regression models were consequently developed. Through a comparison of the performance of the models, the most effective model for nitrogen detection was selected. In calibration, the models performed well, with high R2 (over 0.9) and low root mean square error (RMSE) values. The second derivative-based (SD) model slightly outperformed the first derivative-based (FD) model in terms of accuracy. Both models showed minimal bias, indicating reliable performance. During validation, the FD model outperformed the SD model in terms of R2, root mean square error of prediction (RMSEP), and residual prediction deviation (RPD). Thus, the FD model demonstrated good predictive ability (R2 = 0.77, RPD = 2.06), while the SD model was less effective (R2 = 0.65, RPD = 1.77). Compared to previous studies, this study uniquely combines real-time online detection capability with low computational cost, unlike most prior offline approaches, and includes model validation across various soil types. Overall, NIR spectroscopy coupled with multivariate models proves to be a promising tool for the detection of nitrogen levels in various soils.
Keywords: data models and Urea-N; partial least squares regression (PLSR); reflectance spectroscopy; sensors; various soil.
Conflict of interest statement
The authors declare no conflicts of interest.
Figures









Similar articles
-
Rapid Determination of Polysaccharides in Cistanche Tubulosa Using Near-Infrared Spectroscopy Combined with Machine Learning.J AOAC Int. 2023 Jul 17;106(4):1118-1125. doi: 10.1093/jaoacint/qsac144. J AOAC Int. 2023. PMID: 36355447
-
Dataset of near-infrared (NIR) spectral data for prediction of organic matter and total carbon in agricultural soil using homemade NIR spectrometer.Data Brief. 2025 Jun 25;61:111840. doi: 10.1016/j.dib.2025.111840. eCollection 2025 Aug. Data Brief. 2025. PMID: 40677255 Free PMC article.
-
Building a spectral soil library in a soil routine analysis laboratory to determine soil organic carbon using compact near-infrared spectrophotometers: Performance of global and local models.Spectrochim Acta A Mol Biomol Spectrosc. 2026 Jan 5;344(Pt 1):126707. doi: 10.1016/j.saa.2025.126707. Epub 2025 Jul 16. Spectrochim Acta A Mol Biomol Spectrosc. 2026. PMID: 40695064
-
Cost-effectiveness of using prognostic information to select women with breast cancer for adjuvant systemic therapy.Health Technol Assess. 2006 Sep;10(34):iii-iv, ix-xi, 1-204. doi: 10.3310/hta10340. Health Technol Assess. 2006. PMID: 16959170
-
Prediction of Soil Properties Using Vis-NIR Spectroscopy Combined with Machine Learning: A Review.Sensors (Basel). 2025 Aug 14;25(16):5045. doi: 10.3390/s25165045. Sensors (Basel). 2025. PMID: 40871925 Free PMC article. Review.
References
-
- Panagos P., Montanarella L., Barbero M., Schneegans A., Aguglia L., Jones A. Soil priorities in the European Union. Geoderma Reg. 2022;29:e00510. doi: 10.1016/j.geodrs.2022.e00510. - DOI
-
- Communication from the Commission to the European Parliament, the Council, the European Economic and Social Committee and the Committee of the Regions EU Soil Strategy for 2020 Reaping the Benefits of Healthy Soils for People, Food, Nature and Climate. [(accessed on 1 July 2025)]. Available online: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=celex:52021DC0699.
-
- Bremner J.M. Determination of nitrogen in soil by the Kjeldahl method. J. Agric. Sci. 1960;55:11–33. doi: 10.1017/S0021859600021572. - DOI
-
- Novamsky I., Van Eck R., Van Schouwenburg C., Walinga I. Total nitrogen determination in plant material by means of the indophenol-blue method. Neth. J. Agric. Sci. 1974;22:3–5. doi: 10.18174/njas.v22i1.17230. - DOI
-
- Piccone L.I., Cabrera M.L., Franzluebbers A.J. A rapid method to estimate potentially mineralizable nitrogen in soil. Soil Sci. Soc. Am. J. 2002;66:1843–1847. doi: 10.2136/sssaj2002.1843. - DOI
Grants and funding
LinkOut - more resources
Full Text Sources
Miscellaneous