Machine learning optimized LIBS spectral feature extraction for indoor carbon concentration dynamics and forecasting

Abstract

Domestic energy use and indoor human activities generate substantial carbon emissions, making accurate monitoring of indoor carbon concentrations essential for identifying emission sources and assessing associated exposure risks. Laser-induced breakdown spectroscopy (LIBS) enables rapid, multi-element, and in situ detection of aerosols, exhibiting excellent sensitivity to carbon-related spectral characteristics. Combining LIBS with machine learning allows accurate prediction of carbon content by leveraging complex spectral patterns, with systematic hyperparameter optimization using the Sparrow Search Algorithm (SSA) and interpretable insights from SHapley Additive exPlanations (SHAP) analysis. Regression models, including Random Forest (RF), support vector regression (SVR), and least squares support vector machine (LSSVM), were applied to quantify spectral contributions and reveal the relationships between spectral features and carbon concentration. The models achieved high predictive accuracy, with R2 values of 0.976 (RF), 0.979 (SVR), and 0.980 (LSSVM) for candles, and 0.943 (RF), 0.952 (SVR), and 0.980 (LSSVM) for fruit charcoal, demonstrating their overall effectiveness in carbon content analysis, with LSSVM showing slightly superior performance. To capture temporal spectral dynamics, a dynamic time-series prediction model was constructed by coupling an attention mechanism with a bidirectional long short-term memory (Bi-LSTM) network. This model successfully forecasts carbon concentration trends by learning long-range dependencies and salient temporal features, achieving R2 values of 0.929 for candles and 0.882 for fruit charcoal. Overall, the integrated LIBS–machine learning approach enables fast, accurate, and interpretable carbon detection, substantially enhancing the precision of carbon source attribution and providing a scientific basis for indoor air quality monitoring and emission source management.

Graphical abstract: Machine learning optimized LIBS spectral feature extraction for indoor carbon concentration dynamics and forecasting

Supplementary files

Article information

Article type
Paper
Submitted
01 Dec 2025
Accepted
21 Jan 2026
First published
22 Jan 2026

J. Anal. At. Spectrom., 2026, Advance Article

Machine learning optimized LIBS spectral feature extraction for indoor carbon concentration dynamics and forecasting

N. Aizezi, Y. Ye, A. Iroshan and Y. Liu, J. Anal. At. Spectrom., 2026, Advance Article , DOI: 10.1039/D5JA00477B

To request permission to reproduce material from this article, please go to the Copyright Clearance Center request page.

If you are an author contributing to an RSC publication, you do not need to request permission provided correct acknowledgement is given.

If you are the author of this article, you do not need to request permission to reproduce figures and diagrams provided correct acknowledgement is given. If you want to reproduce the whole article in a third-party publication (excluding your thesis/dissertation for which permission is not required) please go to the Copyright Clearance Center request page.

Read more about how to correctly acknowledge RSC content.

Social activity

Spotlight

Advertisements