Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Apr 29;19(16):15457-15473.
doi: 10.1021/acsnano.4c16037. Epub 2025 Apr 15.

Machine Learning Interpretation of Optical Spectroscopy Using Peak-Sensitive Logistic Regression

Affiliations

Machine Learning Interpretation of Optical Spectroscopy Using Peak-Sensitive Logistic Regression

Ziyang Wang et al. ACS Nano. .

Abstract

Optical spectroscopy, a noninvasive molecular sensing technique, offers valuable insights into material characterization, molecule identification, and biosample analysis. Despite the informativeness of high-dimensional optical spectra, their interpretation remains a challenge. Machine learning methods have gained prominence in spectral analyses, efficiently unveiling analyte compositions. However, these methods still face challenges in interpretability, particularly in generating clear feature importance maps that highlight the spectral features specific to each class of data. These limitations arise from feature noise, model complexity, and the lack of optimization for spectroscopy. In this work, we introduce a machine learning algorithm─logistic regression with peak-sensitive elastic-net regularization (PSE-LR)─tailored for spectral analysis. PSE-LR enables classification and interpretability by producing a peak-sensitive feature importance map, achieving an F1-score of 0.93 and a feature sensitivity of 1.0. Its performance is compared with other methods, including k-nearest neighbors (KNN), elastic-net logistic regression (E-LR), support vector machine (SVM), principal component analysis followed by linear discriminant analysis (PCA-LDA), XGBoost, and neural network (NN). Applying PSE-LR to Raman and photoluminescence (PL) spectra, we detected the receptor-binding domain (RBD) of SARS-CoV-2 spike protein in ultralow concentrations, identified neuroprotective solution (NPS) in brain samples, recognized WS2 monolayer and WSe2/WS2 heterobilayer, analyzed Alzheimer's disease (AD) brains, and suggested potential disease biomarkers. Our findings demonstrate PSE-LR's utility in detecting subtle spectral features and generating interpretable feature importance maps. It is beneficial for the spectral characterization of materials, molecules, and biosamples and applicable to other spectroscopic methods. This work also facilitates the development of nanodevices such as nanosensors and miniaturized spectrometers based on nanomaterials.

Keywords: biomedical sensing; feature importance; machine learning; nanomaterials; optical spectroscopy; spectral interpretability.

PubMed Disclaimer

References

Publication types

Substances

LinkOut - more resources