Skip to content
Open access

Interpretable Spectral Transformer for Raman-Based Bacterial Identification Across Species and Strains

Aug 2026 · Chemosensors · Vol 14, pp. 179 · 0 citations · 36 references

TL;DR

An integrated evaluation of an optimized Spectral Transformer framework for Raman-based bacterial classification benchmarked against a systematically optimized one-dimensional convolutional neural network reveals that the ST’s improved robustness correlates with more bounded attribution patterns during misclassification, whereas the 1D-CNN’s feature attribution becomes scattered under noise perturbation.

Abstract

Raman spectroscopy combined with machine learning offers a rapid, label-free approach for bacterial identification, but robust translation remains challenged by spectral variability, biological heterogeneity, and limited model interpretability. Here, we present an integrated evaluation of an optimized Spectral Transformer (ST) framework for Raman-based bacterial classification benchmarked against a systematically optimized one-dimensional convolutional neural network (1D-CNN). The comparison was performed using a curated 36-class dataset comprising 15 Gram-negative bacterial entries, 15 Gram-positive bacterial entries, one non-bacterial microorganism, and five background/reference classes, enabling evaluation of both species-level and fine-grained bacterial classification. Under 15 dB noise-augmented evaluation, the ST achieved 80.6% ± 0.3% accuracy and a Matthews correlation coefficient (MCC) of 0.801 ± 0.003, outperforming the 1D-CNN baseline with 72.9% ± 0.3% accuracy and an MCC of 0.721 ± 0.003. Integrated Gradients analysis combined with attention map visualization enabled multi-level model interpretation, revealing that the ST’s improved robustness correlates with more bounded attribution patterns during misclassification, whereas the 1D-CNN’s feature attribution becomes scattered under noise perturbation. Importantly, this interpretability-driven analysis identified model-specific failure modes in the baseline architecture, including an over-reliance on non-specific spectral regions under noise, which can inform future data collection strategies and guide refinements to experimental protocols. These results demonstrate that attention-based spectral modeling improves Raman-based bacterial classification under noise-perturbed conditions while enabling multi-level interpretability that bridges model understanding with actionable feedback on experimental design and data quality requirements.

Read PDF

Similar papers

#machine learning Preprint Sep 2026

Hybrid Machine Learning-Assisted Raman Spectroscopy with Generative Feature Augmentation for Pharmaceutical Identification

Rapid and reliable identification of pharmaceutical residues is important for safeguarding public health, ensuring food safety, and enabling practical Raman-based screening. In this study, we propose HyMLRaman, a hybrid Raman spectroscopy framework that combines deep spectral feature extraction, generative models, and...

B. Quach, T. N. Q. Trang, T. Phan et al. · 0 citations
Sep 2026

Multimodal deep learning-driven Raman spectroscopy for rapid identification of closely related pathogenic Bacillus species.

Rapid and fine-grained identification of closely related pathogenic Bacillus species is a critical challenge in optical biosensing and biomolecular spectroscopy, hindered by their highly similar biochemical compositions and severe spectral overlap. Existing single-modality spectroscopic analysis and computational frame...

Jia-Zhen Sun, Hao Liu, Kai-Er Yang et al. · 0 citations
#graph neural networks Review Open access Sep 2026

Integrating Metagenomics and Deep Learning for Accurate Microbial Species Differentiation

Accurate identification of microbial species is important for clinical diagnosis, environmental monitoring, and evaluations in agriculture and biotechnology. Conventional culture- and alignment-based metagenomic methods have several drawbacks, including inadequate reference databases, the cost of digital compilations,...

David Odiba, Faith Chidinma Terna, Osuyi Gerard Uyi et al. · 0 citations
Open access Aug 2026

Automated microbial recognition from gram-stained micrographs via CNN and metadata decision support

Introduction Accurate and timely identification of microorganisms is critical for guiding clinical decision-making, ensuring biosafety, and supporting microbiological research. Standard morphological assessments often require significant manual effort and specialized expertise, underscoring the need for automated, high...

Azime Erarslan, Fatih Ciftci, Javad Rahebi · 0 citations
Preprint Sep 2026

Multi-Task Bacterial Colony Detection and Classification Using YOLOv8 with Edge Optimization for Resource-Constrained Deployment

Manual counting and classification of bacterial colonies are critical yet labor-intensive tasks in microbiology, prone to human error particularly on densely populated plates. This work proposes a multi-task deep learning framework trained on the Annotated Germs for Automated Recognition (AGAR) dataset (18,000 images;...

Belaguppa Manjunath Ashwin Desai, R. Rajesh, S. Murthy et al. · 0 citations
#explainable ai Oct 2026

Fusion-Based Explainable Deep Learning Framework for Species Classification of Jelly Fungi from Field Images

A novel deep learning framework combining convolutional neural networks, model fusion, and explainable AI to automate and interpret the classification of jelly fungi offers broad potential in biological applications such as spore and pollen identification, contributing to biodiversity monitoring and advancing AI-driven...

İ. Karaltı, F. Eki̇nci̇, E. Kumru et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.