Please use this identifier to cite or link to this item: https://bura.brunel.ac.uk/handle/2438/33599
Title: Rapid Identification of Pathogenic Bacteria from Raman Spectra with a CNN–Transformer Hybrid Architecture
Authors: Patel, A
Meng, H
Keywords: Raman spectroscopy;bacterial identification;convolutional neural networks;transformer;data augmentation
Issue Date: 28-May-2026
Publisher: Bon View Publishi​ng
Citation: Patel, A. and Meng, H. (2026) 'Rapid identification of pathogenic bacteria from Raman spectra with a CNN–Transformer hybrid architecture', Journal of Data Science and Intelligent Systems, 0 (ahead of print). pp.1–11. doi:10.47852/bonviewjdsis62027534.
Abstract: Bacterial identification from Raman spectra offers a promising label-free and nondestructive approach, providing molecular fingerprints at the single-cell level. However, practical implementation is constrained by low signal-to-noise ratios arising from short acquisition times, severe class imbalance across bacterial species, and high inter- and intra-species spectral variability. This study presents a two-stage convolutional neural network (CNN)–Transformer pipeline evaluated on the Bacteria-ID dataset, covering 30 bacterial species across approximately 63,000 spectra. Preprocessing combined baseline subtraction, fast Fourier transform, and wavelet decomposition to improve signal quality prior to training. Class imbalance was addressed through synthetic minority oversampling technique and class-weighted loss, while mixed precision computation reduced GPU overhead. Hyperparameters were optimized via Bayesian search using Optuna. The CNN stem extracts local Raman peak features, while the Transformer encoder captures long-range spectral dependencies that convolutional layers alone cannot model efficiently. On the independent test set, the model achieved approximately 85% accuracy and weighted F1, surpassing ResNet (82.2%) and RamanNet (84.7%) evaluated under identical conditions. The lowest-performing species improved from 31% F1 in the unoptimized baseline to approximately 70% in the final configuration. External validation on spectra from alternative instruments or clinical settings has not yet been conducted and represents the most important direction for future work. Extensions toward MRSA/MSSA classification and antibiotic response prediction are planned.
URI: https://bura.brunel.ac.uk/handle/2438/33599
DOI: https://doi.org/10.47852/bonviewJDSIS62027534
Other Identifiers: ORCiD: Hongying Meng https://orcid.org/0000-0002-8836-1382
Appears in Collections:Department of Electronic and Electrical Engineering Research Papers

Files in This Item:
File Description SizeFormat 
FullText.pdfCopyright © The Author(s) 2026. Published by BON VIEW PUBLISHING PTE. LTD. This is an open access article under the CC BY License (https://creativecommons.org/ licenses/by/4.0/).1.93 MBAdobe PDFView/Open


This item is licensed under a Creative Commons License Creative Commons