Submitted:
08 June 2026
Posted:
09 June 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Methods
2.1. The Raman Platforms
2.2. Raman Spectral Databases for Machine Learning
2.3. Robustness Testing under Noise-Augmented Raman Conditions
2.4. Model Design, Optimization

2.5. Extraction of Spectral Attention Matrices
2.6. Explainable AI via Integrated Gradients
2.7. Prediction Variability and Bootstrap Evaluation
3. Results
3.1. Classification Performance under Noise Augmentation
3.2. Mechanistic Interpretation of Spectral Attention
3.3. Explainable AI via Integrated Gradients
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| 1D-CNN | One-dimensional convolutional neural network |
| AI | Artificial intelligence |
| AWGN | Additive white Gaussian noise |
| BHI | Brain Heart Infusion |
| CCD | Charge-coupled device |
| CNN | Convolutional neural network |
| DFM | Danish Fundamental Metrology |
| GELU | Gaussian Error Linear Unit |
| IG | Integrated Gradients |
| kNN | k-nearest neighbors |
| MCC | Matthews correlation coefficient |
| MC dropout | Monte Carlo dropout |
| ML | Machine learning |
| MRSA | Methicillin-resistant Staphylococcus aureus |
| MRSE | Methicillin-resistant Staphylococcus epidermidis |
| MSSA | Methicillin-susceptible Staphylococcus aureus |
| MSSE | Methicillin-susceptible Staphylococcus epidermidis |
| NA | Numerical aperture |
| PCA–LDA | Principal component analysis–linear discriminant analysis |
| RS | Raman spectroscopy |
| SNR | Signal-to-noise ratio |
| ST | Spectral Transformer |
| SVM | Support vector machine |
| TPE | Tree-structured Parzen Estimator |
| XAI | Explainable artificial intelligence |
Appendix A. Hyperparameter Optimization Search Space
Appendix B


References
- Shipp, D.W.; Sinjab, F.; Notingher, I. Raman spectroscopy: techniques and applications in the life sciences. Adv. Opt. Photonics 2017, 9, 315–428. [Google Scholar] [CrossRef]
- Kerdoncuff, H.; Lassen, M.; Petersen, J.C. Continuous-wave coherent Raman spectroscopy for improving the accuracy of Raman shifts. Opt. Lett. 2019, 44, 5057–5060. [Google Scholar] [CrossRef] [PubMed]
- Ilchenko, O.; Pilhun, Y.; Kutsyk, A.; Slobodianiuk, D.; Goksel, Y.; Dumont, E.; Vaut, L.; Mazzoni, C.; Morelli, L.; Boisen, S.; et al. Optics miniaturization strategy for demanding Raman spectroscopy applications. Nat. Commun. 2024, 15, 3049. [Google Scholar] [CrossRef]
- Salbreiter, M.; Wagenhaus, A.; Rösch, P.; Popp, J. Raman spectroscopy as a comprehensive tool for profiling endospore-forming bacteria. Analyst 2025, 150, 1652–1661. [Google Scholar] [CrossRef] [PubMed]
- Ilchenko, O.; Pilgun, Y.; Kutsyk, A.; Bachmann, F.; Slipets, R.; Todeschini, M.; Okeyo, P.O.; Poulsen, H.F.; Boisen, A. Fast and quantitative 2D and 3D orientation mapping using Raman microscopy. Nat. Commun. 2019, 10, 5555. [Google Scholar] [CrossRef] [PubMed]
- Orlando, A.; Franceschini, F.; Muscas, C.; Pidkova, S.; Bartoli, M.; Rovere, M.; Tagliaferro, A. A comprehensive review on Raman spectroscopy applications. Chemosensors 2021, 9, 262. [Google Scholar] [CrossRef]
- Lee, K.S.; Landry, Z.; Pereira, F.C.; Wagner, M.; Berry, D.; Huang, W.E.; Taylor, G.T.; Kneipp, J.; Popp, J.; Zhang, M.; et al. Raman microspectroscopy for microbiology. Nat. Rev. Methods Prim. 2021, 1, 80. [Google Scholar] [CrossRef]
- Cui, D.; Kong, L.; Wang, Y.; Zhu, Y.; Zhang, C. In situ identification of environmental microorganisms with Raman spectroscopy. Environ. Sci. Ecotechnology 2022, 11, 100187. [Google Scholar] [CrossRef]
- Khristoforova, Y.; Bratchenko, L.; Bratchenko, I. Raman-based techniques in medical applications for diagnostic tasks: a review. Int. J. Mol. Sci. 2023, 24, 15605. [Google Scholar] [CrossRef]
- Akatev, D.; Meng, Y.; Brewer, J.; Chekhova, M.; Andersen, U.L.; Lassen, M. Broadly tunable quantum-enhanced Raman microscopy for advancing bioimaging. Opt. Quantum 2026, 4, 108–113. [Google Scholar] [CrossRef]
- Liu, J.; Osadchy, M.; Ashton, L.; Foster, M.; Solomon, C.J.; Gibson, S.J. Deep convolutional neural networks for Raman spectrum recognition: a unified solution. Analyst 2017, 142, 4067–4074. [Google Scholar] [CrossRef]
- Ho, C.; Jean, N.; Hogan, C.e.a. Rapid identification of pathogenic bacteria using Raman spectroscopy and deep learning. Nat. Commun. 2019, 10, 4927. [Google Scholar] [CrossRef]
- Thomsen, B.L.; Christensen, J.B.; Rodenko, O.; Usenov, I.; Grønnemose, R.B.; Andersen, T.E.; Lassen, M. Accurate and fast identification of minimally prepared bacteria phenotypes using Raman spectroscopy assisted by machine learning. Sci. Rep. 2022, 12, 16436. [Google Scholar] [CrossRef]
- Qi, Y.; Hu, D.; Jiang, Y.; Wu, Z.; Zheng, M.; Chen, Y.P. Recent Progresses in Machine Learning Assisted Raman Spectroscopy. Adv. Opt. Mater. 2023, 11. [Google Scholar] [CrossRef]
- Koyun, O.C.; et al. RamanFormer: A Transformer-Based Quantification Approach for Raman Spectroscopy. ACS Omega 2024. [Google Scholar] [CrossRef] [PubMed]
- Georgiev, D.; Pedersen, S.V.; Xie, R.; Fernández-Galiana, Á.; Stevens, M.M.; Barahona, M. RamanSPy: An open-source Python package for integrative Raman spectroscopy data analysis. Anal. Chem. 2024, 96, 8492–8500. [Google Scholar] [CrossRef] [PubMed]
- Ogunlade, B.; Tadesse, L.F.; Li, H.; Vu, N.; Banaei, N.; Barczak, A.K.; Saleh, A.A.; Prakash, M.; Dionne, J.A. Rapid, antibiotic incubation-free determination of tuberculosis drug resistance using machine learning and Raman spectroscopy. Proc. Natl. Acad. Sci. 2024, 121, e2315670121. [Google Scholar] [CrossRef] [PubMed]
- Liu, Y.; Wu, Y.; Wang, J.; Qi, J.; Zhou, C.; Xue, Y. Recent Advances in Raman Spectral Classification with Machine Learning. Sensors 2026, 26, 341. [Google Scholar] [CrossRef]
- Guo, S.; Frempong, S.B.; Salbreiter, M.; Wagenhaus, A.; Rösch, P.; Popp, J.; Bocklitz, T. Graph Neural Network in Raman Spectroscopy to Leverage the Performance and Interpretability of the Classification. Chemistry-Methods 2026, 6, e70119. [Google Scholar] [CrossRef]
- Barzan, G.; Sacco, A.; Mandrile, L.; Giovannozzi, A.M.; Portesi, C.; Rossi, A.M. Hyperspectral Chemical Imaging of Single Bacterial Cell Structure by Raman Spectroscopy and Machine Learning. Appl. Sci. 2021, 11. [Google Scholar] [CrossRef]
- Yan, S.; Wang, S.; Qiu, J.; Li, M.; Li, D.; Xu, D.; Li, D.; Liu, Q. Raman spectroscopy combined with machine learning for rapid detection of food-borne pathogens at the single-cell level. Talanta 2021, 226, 122195. [Google Scholar] [CrossRef]
- Tang, J.W.; Li, J.Q.; Yin, X.C.; Xu, W.W.; Pan, Y.C.; Liu, Q.H.; Gu, B.; Zhang, X.; Wang, L. Rapid discrimination of clinically important pathogens through machine learning analysis of surface enhanced Raman spectra. Front. Microbiol. 2022, 13, 843417. [Google Scholar] [CrossRef]
- Hu, H.; Wang, J.; Yi, X.; Lin, K.; Meng, S.; Zhang, X.; Jiang, C.; Tang, Y.; Wang, M.; He, J.; et al. Stain-free Gram staining classification of pathogens via single-cell Raman spectroscopy combined with machine learning. Anal. Methods 2022, 14, 4014–4020. [Google Scholar] [CrossRef]
- Zhang, W.; Giang, C.M.; Cai, Q.; Badie, B.; Sheng, J.; Li, C. Using random forest for brain tissue identification by Raman spectroscopy. Mach. Learn. Sci. Technol. 2023, 4, 045053. [Google Scholar] [CrossRef]
- Ralbovsky, N.M.; Lednev, I.K. Towards development of a novel universal medical diagnostic method: Raman spectroscopy and machine learning. Chem. Soc. Rev. 2020, 49, 7428–7453. [Google Scholar] [CrossRef] [PubMed]
- Junjuri, R.; Saghi, A.; Lensu, L.; Vartiainen, E.M. Evaluating different deep learning models for efficient extraction of Raman signals from CARS spectra. Phys. Chem. Chem. Phys. 2023, 25, 16340–16353. [Google Scholar] [CrossRef]
- Han, M.; Dang, Y.; Han, J. Denoising and baseline correction methods for Raman spectroscopy based on convolutional autoencoder: a unified solution. Sensors 2024, 24, 3161. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30. [Google Scholar]
- Sakib, M.; Sayem, F.R.; Hassan, M.; Yang, Y.; Chowdhury, M.E.H.; Zughaier, S.M.; Bensaali, F.; Zhao, Y. Deep learning-based cross-device standardization of surface-enhanced Raman spectroscopy for enhanced bacterial recognition. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2026, 347, 126931. [Google Scholar] [CrossRef]
- Lee, K.S.; Landry, Z.; Athar, A.; Alcolombri, U.; Pramoj Na Ayutthaya, P.; Berry, D.; de Bettignies, P.; Cheng, J.X.; Csucs, G.; Cui, L.; et al. MicrobioRaman: an open-access web repository for microbiological Raman spectroscopy data. Nat. Microbiol. 2024, 9, 1152–1156. [Google Scholar] [CrossRef]
- Yadav, A.; Birkby, A.; Armstrong, N.; Arnob, A.; Chou, M.H.; Fernandez, A.; Verhoef, A.J.; Yi, Z.; Gulati, S.; Kotnis, S.; et al. Evaluating Limits of Machine Learning-Assisted Raman Spectroscopy in Classification of Biological Samples. bioRxiv 2026. [Google Scholar]
- Terán, M.; Ruiz, J.J.; Loza-Álvarez, P.; Masip, D.; Merino, D. Open Raman spectral library for biomolecule identification. Chemom. Intell. Lab. Syst. 2025, 105476. [Google Scholar] [CrossRef]
- Hanzelik, P.P.; Gergely, S.; Abonyi, J.; Kummer, A. Data fusion of spectroscopic data for enhancing machine learning model performance. Digit. Chem. Eng. 2025, 100271. [Google Scholar] [CrossRef]
- Gal, Y.; Ghahramani, Z. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In Proceedings of the international conference on machine learning. PMLR, 2016, pp. 1050–1059. 2016.
- Sundararajan, M.; Taly, A.; Yan, Q. Axiomatic attribution for deep networks. In Proceedings of the International conference on machine learning. PMLR, 2017, pp. 3319–3328. 2017.
- Sun, Z.; Wang, Z.; Jiang, M. RamanCluster: A deep clustering-based framework for unsupervised Raman spectral identification of pathogenic bacteria. Talanta 2024, 275, 126076. [Google Scholar] [CrossRef]
- De Gelder, J.; De Gussem, K.; Vandenabeele, P.; Moens, L. Reference database of Raman spectra of biological molecules. Journal of Raman Spectroscopy: An International Journal for Original Work in all Aspects of Raman Spectroscopy, Including Higher Order Processes, and also Brillouin and Rayleigh Scattering 2007, 38, 1133–1147. [Google Scholar] [CrossRef]
- Akiba, T.; Sano, S.; Yanase, T.; Ohta, T.; Koyama, M. Optuna: A next-generation hyperparameter optimization framework. In Proceedings of the Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, 2019, pp. 2623–2631. 2019.
- Contreras, J.; Bocklitz, T. Explainable artificial intelligence for spectroscopy data: a review. Pflügers Arch.-Eur. J. Physiol. 2025, 477, 603–615. [Google Scholar] [CrossRef] [PubMed]
- Tompson, J.; Goroshin, R.; Jain, A.; LeCun, Y.; Bregler, C. Efficient object localization using convolutional networks. In Proceedings of the Proceedings of the IEEE conference on computer vision and pattern recognition, 2015; pp. 648–656. [Google Scholar]
- Hurley, N.; Rickard, S. Comparing measures of sparsity. IEEE Trans. Inf. Theory 2009, 55, 4723–4741. [Google Scholar] [CrossRef]
- Hastie, T. The elements of statistical learning: data mining, inference, and prediction, 2009.






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 (http://creativecommons.org/licenses/by/4.0/).