Comparative Analysis of Raw and Preprocessed Vis–NIR and MIR Spectra for Soil Property Estimation †
Abstract
1. Introduction
2. Materials and Methods
2.1. KSSL Dataset
2.2. Spectral Preprocessing
2.3. Machine Learning Algorithms
3. Results
3.1. Soil Property Distributions
3.2. Spectral Variations
3.3. Model Performance
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| Vis–NIR | Visible–near-infrared |
| MIR | Mid-infrared |
| KSSL dataset | A subset of the United States Department of Agriculture–Natural Resources Conservation Service–National Soil Survey Center–Kellogg Soil Survey Laboratory soil spectral library |
| Ridge | Ridge regression |
| ANN | Artificial neural network |
| CatBoost | Categorical boosting |
| KNN | k-Nearest neighbors |
| LASSO | Least absolute shrinkage and selection operator |
| ElasticNet | Elastic net regression |
| RF | Random forest |
| PLSR | Partial least squares regression |
References
- Shepherd, K.D.; Walsh, M.G. Development of Reflectance Spectral Libraries for Characterization of Soil Properties. Soil Sci. Soc. Am. J. 2002, 66, 988–998. [Google Scholar] [CrossRef]
- Shepherd, K.D.; Walsh, M.G. Infrared Spectroscopy—Enabling an Evidence-Based Diagnostic Surveillance Approach to Agricultural and Environmental Management in Developing Countries. J. Infrared Spectrosc. 2007, 15, 1–19. [Google Scholar] [CrossRef] [Scilit]
- Ahmadi, A.; Emami, M.; Daccache, A.; He, L. Soil Properties Prediction for Precision Agriculture Using Visible and Near-Infrared Spectroscopy: A Systematic Review and Meta-Analysis. Agronomy 2021, 11, 433. [Google Scholar] [CrossRef] [Scilit]
- Madari, B.E.; Reeves, J.B.; Machado, P.L.O.A.; Guimarães, C.M.; Torres, E.; McCarty, G.W. Mid- and near-Infrared Spectroscopic Assessment of Soil Compositional Parameters and Structural Indices in Two Ferralsols. Geoderma 2006, 136, 245–259. [Google Scholar] [CrossRef] [Scilit]
- Pirie, A.; Singh, B.; Islam, K. Ultra-Violet, Visible, near-Infrared, and Mid-Infrared Diffuse Reflectance Spectroscopic Techniques to Predict Several Soil Properties. Soil Res. 2005, 43, 713–721. [Google Scholar] [CrossRef] [Scilit]
- Dotto, A.C.; Dalmolin, R.S.D.; Ten Caten, A.; Grunwald, S. A Systematic Study on the Application of Scatter-Corrective and Spectral-Derivative Preprocessing for Multivariate Prediction of Soil Organic Carbon by Vis-NIR Spectra. Geoderma 2018, 314, 262–274. [Google Scholar] [CrossRef] [Scilit]
- Gholizadeh, A.; Borůvka, L.; Saberioon, M.M.; Kozák, J.; Vašát, R.; Němeček, K. Comparing Different Data Preprocessing Methods for Monitoring Soil Heavy Metals Based on Soil Spectral Features. Soil Water Res. 2015, 10, 218–227. [Google Scholar] [CrossRef] [Scilit]
- Seybold, C.A.; Ferguson, R.; Wysocki, D.; Bailey, S.; Anderson, J.; Nester, B.; Schoeneberger, P.; Wills, S.; Libohova, Z.; Hoover, D.; et al. Application of Mid-Infrared Spectroscopy in Soil Survey. Soil Sci. Soc. Am. J. 2019, 83, 1746–1759. [Google Scholar] [CrossRef] [Scilit]
- Kramer, K.E.; Morris, R.E.; Rose-Pehrsson, S.L. Comparison of Two Multiplicative Signal Correction Strategies for Calibration Transfer without Standards. Chemom. Intell. Lab. Syst. 2008, 92, 33–43. [Google Scholar] [CrossRef] [Scilit]
- Gamagedara, Y.; Feng, G.; Waiser, T.; Tagert, M.L.; Martins, V.S.; Wijewardane, N.K. Application of Calibration Transfer Techniques between Different Mid-infrared Spectrometers/Modules to Improve Accuracy in Estimating Soil Properties. Soil Sci. Soc. Am. J. 2025, 89, e70147. [Google Scholar] [CrossRef] [Scilit]
- Wijewardane, N.K.; Ge, Y.; Morgan, C.L.S. Prediction of Soil Organic and Inorganic Carbon at Different Moisture Contents with Dry Ground VNIR: A Comparative Study of Different Approaches. Eur. J. Soil Sci. 2016, 67, 605–615. [Google Scholar] [CrossRef] [Scilit]
- Dangal, S.R.S.; Sanderman, J.; Wills, S.; Ramirez-Lopez, L. Accurate and Precise Prediction of Soil Properties from a Large Mid-Infrared Spectral Library. Soil Syst. 2019, 3, 11. [Google Scholar] [CrossRef] [Scilit]
- Soil Survey Staff. Kellogg Soil Survey Laboratory Methods Manual; Soil Survey Investigations Report No. 42, Version 6.0.; Part1: Current Methods; U.S. Department of Agriculture, Natural Resources Conservation Service: Washington, DC, USA, 2022. [Google Scholar]
- Wijewardane, N.K.; Ge, Y.; Wills, S.; Loecke, T. Prediction of Soil Carbon in the Conterminous United States: Visible and Near Infrared Reflectance Spectroscopy Analysis of the Rapid Carbon Assessment Project. Soil Sci. Soc. Am. J. 2016, 80, 973–982. [Google Scholar] [CrossRef] [Scilit]
- Wills, S.; Loecke, T.; Sequeira, C.; Teachman, G.; Grunwald, S.; West, L.T. Overview of the U.S. Rapid Carbon Assessment Project: Sampling Design, Initial Summary and Uncertainty Estimates. In Soil Carbon; Hartemink, A.E., McSweeney, K., Eds.; Springer International Publishing: Cham, Switzerland, 2014; pp. 95–104. ISBN 978-3-319-04083-7. [Google Scholar]
- Gamagedara, Y.; Wijewardane, N.K.; Feng, G.; Seybold, C.; Williams, M.; Tagert, M.L.; Martins, V.S. Can We Use a Mid-Infrared Fine-Ground Soil Spectral Library to Predict Non-Fine-Ground Spectra? Geoderma 2024, 443, 116799. [Google Scholar] [CrossRef] [Scilit]
- Shepherd, K.D.; Ferguson, R.; Hoover, D.; Van Egmond, F.; Sanderman, J.; Ge, Y. A Global Soil Spectral Calibration Library and Estimation Service. Soil Secur. 2022, 7, 100061. [Google Scholar] [CrossRef] [Scilit]
- Eilers, P.; Boelens, H. Baseline Correction with Asymmetric Least Squares Smoothing. Leiden Univ. Med. Cent. Rep. 2005, 1, 5. [Google Scholar]
- Barnes, R.J.; Dhanoa, M.S.; Lister, S.J. Standard Normal Variate Transformation and De-Trending of Near-Infrared Diffuse Reflectance Spectra. Appl. Spectrosc. 1989, 43, 772–777. [Google Scholar] [CrossRef] [Scilit]
- Python Software Foundation. Python Language Reference, version 3.13.9; Python Software Foundation: Wilmington, DE, USA, 2025. Available online: https://www.python.org (accessed on 18 January 2026).
- Tipping, E.; Somerville, C.J.; Luster, J. The C:N:P:S Stoichiometry of Soil Organic Matter. Biogeochemistry 2016, 130, 117–131. [Google Scholar] [CrossRef] [Scilit]
- Räty, M.; Keskinen, R.; Yli-Halla, M.; Hyvönen, J.; Soinne, H. Estimating Cation Exchange Capacity and Clay Content from Agricultural Soil Testing Data. Agric. Food Sci. 2021, 30, 131–145. [Google Scholar] [CrossRef] [Scilit]
- Rossel, R.A.V.; Behrens, T. Using Data Mining to Model and Interpret Soil Diffuse Reflectance Spectra. Geoderma 2010, 158, 46–54. [Google Scholar] [CrossRef] [Scilit]
- Stenberg, B.; Viscarra Rossel, R.A.; Mouazen, A.M.; Wetterlind, J. Visible and Near Infrared Spectroscopy in Soil Science. In Advances in Agronomy; Elsevier: Amsterdam, The Netherlands, 2010; Volume 107, pp. 163–215. ISBN 978-0-12-381033-5. [Google Scholar]
- Rinnan, Å.; Berg, F.V.D.; Engelsen, S.B. Review of the Most Common Pre-Processing Techniques for near-Infrared Spectra. TrAC Trends Anal. Chem. 2009, 28, 1201–1222. [Google Scholar] [CrossRef] [Scilit]
- Ng, W.; Minasny, B.; Jeon, S.H.; McBratney, A. Mid-Infrared Spectroscopy for Accurate Measurement of an Extensive Set of Soil Properties for Assessing Soil Functions. Soil Secur. 2022, 6, 100043. [Google Scholar] [CrossRef] [Scilit]
- Bellon-Maurel, V.; McBratney, A. Near-Infrared (NIR) and Mid-Infrared (MIR) Spectroscopic Techniques for Assessing the Amount of Carbon Stock in Soils—Critical Review and Research Perspectives. Soil Biol. Biochem. 2011, 43, 1398–1410. [Google Scholar] [CrossRef] [Scilit]
- Soriano-Disla, J.M.; Janik, L.J.; Viscarra Rossel, R.A.; Macdonald, L.M.; McLaughlin, M.J. The Performance of Visible, Near-, and Mid-Infrared Reflectance Spectroscopy for Prediction of Soil Physical, Chemical, and Biological Properties. Appl. Spectrosc. Rev. 2014, 49, 139–186. [Google Scholar] [CrossRef] [Scilit]
- Guo, Y.; He, J.; Chen, Z.; Zhang, Y.; Wei, P.; Ye, S.; Shi, Z.; Zhang, H.; Zeng, K.; Wang, L. Exploration of the Primary Controlling Factors of Soil Organic Carbon in Agricultural Land Based on the CatBoost Model and Multisource Data. In Proceedings of the International Conference on Remote Sensing, Mapping, and Image Processing (RSMIP 2025), Sanya, China, 17–19 January 2025; Tosti, F., Alvarez, R., Eds.; SPIE: Bellingham, WA, USA, 2025; p. 6. [Google Scholar]
- Tiwari, S.K.; Saha, S.K.; Kumar, S. Prediction Modeling and Mapping of Soil Carbon Content Using Artificial Neural Network, Hyperspectral Satellite Data and Field Spectroscopy. Adv. Remote Sens. 2015, 4, 63–72. [Google Scholar] [CrossRef]
- Kuang, B.; Tekin, Y.; Mouazen, A.M. Comparison between Artificial Neural Network and Partial Least Squares for On-Line Visible and near Infrared Spectroscopy Measurement of Soil Organic Carbon, pH and Clay Content. Soil Tillage Res. 2015, 146, 243–252. [Google Scholar] [CrossRef] [Scilit]
- Chen, W.; Wan, X.; Ding, J.; Wang, T. Enhancing Clay Content Estimation through Hybrid CatBoost-GP with Model Class Selection. Transp. Geotech. 2024, 45, 101232. [Google Scholar] [CrossRef] [Scilit]




Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Gamagedara, Y.; Wijewardane, N.K. Comparative Analysis of Raw and Preprocessed Vis–NIR and MIR Spectra for Soil Property Estimation. Biol. Life Sci. Forum 2025, 54, 21. https://doi.org/10.3390/blsf2025054021
Gamagedara Y, Wijewardane NK. Comparative Analysis of Raw and Preprocessed Vis–NIR and MIR Spectra for Soil Property Estimation. Biology and Life Sciences Forum. 2025; 54(1):21. https://doi.org/10.3390/blsf2025054021
Chicago/Turabian StyleGamagedara, Yasas, and Nuwan K. Wijewardane. 2025. "Comparative Analysis of Raw and Preprocessed Vis–NIR and MIR Spectra for Soil Property Estimation" Biology and Life Sciences Forum 54, no. 1: 21. https://doi.org/10.3390/blsf2025054021
APA StyleGamagedara, Y., & Wijewardane, N. K. (2025). Comparative Analysis of Raw and Preprocessed Vis–NIR and MIR Spectra for Soil Property Estimation. Biology and Life Sciences Forum, 54(1), 21. https://doi.org/10.3390/blsf2025054021

