Robust Soil Total Carbon Prediction Using LIBS: Integrating Expert Knowledge with Machine Learning and External Dataset Evaluation
Accurate quantification of total soil carbon (C) is challenging because of the complex composition of soil samples, which include varying levels of organic matter, oxides of Al and Fe, and diverse soil textures.These factors introduce variability and spectral interference, which hinder the measurement accuracy.In laser-induced breakdown spectroscopy (LIBS), the key C emission lines often overlap with those of Al and Fe, complicating the development of reliable calibration models.This study presents a comprehensive machine learning approach for total C quantification using LIBS data.It integrates emission lines identified through the SHapley Additive exPlanations (SHAP) algorithm and literature insights with spectral preprocessing techniques such as baseline correction, peak fitting, and peak area calculations.Although the SHAP algorithm effectively identified crucial emission lines, expert knowledge was vital in refining variable selection and excluding irrelevant data.Two datasets were utilized: one containing 1019 Brazilian soil samples representing various soil types and textures, and another containing 387 samples collected later that served as an external test set.The first dataset was divided into 713 samples for model training and 306 samples for validation.The external test set was used to evaluate the reproducibility and stability of the model.The integration of expert knowledge and machine learning produced a highly efficient model that reduced the number of variables without compromising accuracy.Among the tested algorithms, the Extra Trees regression model excelled, achieving R values of 0.74, 0.74, and 0.72 for the training, validation, and external test sets, respectively, with root mean square error values of 5.1, 5.1, and 5.0 g kg of total C.This approach outperformed previous machine learning models in terms of accuracy and adaptability, demonstrating its potential applicability beyond soil analysis.This study highlights a pathway for creating robust predictive models across various domains by combining machine learning, spectral processing, and expert insights.
Authors
- Wesley Nascimento Guedes (ORCID: https://orcid.org/0000-0002-8224-6789)
- Ribeiro Villas-Boas
Publication Details
- Journal
- Atomic Spectroscopy
- Published
- 2025-04-03
- DOI
- https://doi.org/10.46770/as.2025.018
- Citations
- 3
- Primary Topic
- Soil Geostatistics and Mapping
- Type
- article
- Field-Weighted Citation Impact
- 2.40
Funders
- Bayer Corporation
- Fundação de Amparo à Pesquisa do Estado de São Paulo
- Conselho Nacional de Desenvolvimento Científico e Tecnológico
- Fundação Arthur Bernardes