Spectroscopy and Spectral Analysis, Volume. 45, Issue 7, 1940(2025)
Pathogenic Bacteria Raman Spectrum Classification Method Based on Diffusion Kernel Attention
Current methods for identifying pathogenic bacteria are time-consuming, leading to delays in optimal treatment and promoting antibiotic resistance. Therefore, developing a rapid, accurate, culture-free technique for this scenario has high clinical value. Raman spectroscopy can serve as a molecular fingerprint for rapid bacterial species identification, and computer-assisted classification is the current research hot spot. However, the classification methods based on machine learning and CNN in related works have poor generalization and insufficient feature mining ability, which leads to low classification accuracy. This study innovatively proposes a deep learning network named Raman Transformer (RaTR). RaTR can improve feature miningcapability and classification accuracy using kernel attention computation based on radial basis kernel function, and its model generalization is enhanced by introducing the diffusion process. Moreover, the discrete wavelet transform is proposed to address the excessive parameters and few-shot issues. Experimental validation on the Bacteria_ID and ATCC datasets shows that RaTR achieves classification accuracies of 85.83% and 84.73% respectively, demonstrating its accuracy and strong generalization. Visualizing key spectral features further confirms the effectiveness of feature extraction by the model. Finally, visualizing the spectral key features further confirms the effectiveness of RaTR feature extraction.
Get Citation
Copy Citation Text
WU Shu-lei, ZHANG Jia-tian, WANG Jia-jun, DANG Shi-jie, ZHAO Ling-xiao, CHEN Yi-bo. Pathogenic Bacteria Raman Spectrum Classification Method Based on Diffusion Kernel Attention[J]. Spectroscopy and Spectral Analysis, 2025, 45(7): 1940
Received: Oct. 24, 2024
Accepted: Jul. 24, 2025
Published Online: Jul. 24, 2025
The Author Email: CHEN Yi-bo (chenyb@sibet.ac.cn)