bioRxivMicrobiologyPreprint
Label-free identification of bacterial species using adapted vision transformers
Erik HallströmiD, Vinodh K. KandavalliiD, M. Henar Marino MiguéleziD, Johan ElfiD, Carolina WählbyiD
Abstract
Antibiotic resistance is an increasingly serious problem worldwide. Identifying the bacterial species can help guide antibiotic selection and improve patient outcomes. In sepsis, where every minute counts, rapid identification is particularly important, and new approaches are needed. In this study, deep learning models were trained to identify bacterial species from phase-contrast time-lapse images of cells growing in microfluidic traps, without fluorescent labels. We demonstrated this approach in two previous studies using laboratory strains. Here, the previous work is extended to clinical bacterial isolates, evaluating performance on isolates not seen during training. Furthermore, it was tested whether autofluorescence could aid species identification. Two validation sets were acquired in separate experiments from the training data, the first containing clinical-isolate traps with five species (Escherichia coli, Enterococcus faecalis, Klebsiella pneumoniae, Staphylococcus aureus and Enterobacter cloacae), imaged every two minutes, and the second containing clinical isolates of two species (E. coli and K. pneumoniae) recovered from spiked donor blood, imaged every minute. Training with the best previous CNN method achieved unsatisfactory results. Therefore, vision transformers were explored, and a self-supervised adaptation procedure was developed for pretrained DINOv3 using a frozen teacher, followed by supervised classification using time-lapse montages. Mean macro-F1 was 93.6 {+/-} 1.3% for isolates precultured in Mueller-Hinton medium using 60 frames (118 minutes) and 87.2 {+/-} 2.7% for isolates precultured in blood using 55 frames (54 minutes) (mean {+/-} sample standard deviation across training seeds). Performance was evaluated over time by increasing the number of frames available to the model during testing, and Fourier-domain filtering approximated reduced numerical aperture. The results are promising and suggest that the aperture can be decreased while retaining good results. However, further evaluation on independent isolates, experiments and patient samples is needed to establish generalization. Together with previous findings, these results bring us closer to rapid image-based diagnostics that could transform the initial treatment of acute bacterial infections by enabling better-informed antibiotic selection.
- organism: bacteria (other)
- assay: imaging
- assay: fluorescence / live-cell microscopy
- research focus: cell type annotation
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Rapid label-free identification of seven bacterial species using microfluidics, single-cell time-lapse phase-contrast microscopy, and deep learning-based image and video classification
Erik Hallström, Vinodh K. Kandavalli, … Anders Hast·PLoS ONEPeer-reviewed·Sep 8, 2025
- Label-free deep learning-based species classification of bacteria imaged by phase-contrast microscopy
Erik Hallström, Vinodh K. Kandavalli, … Carolina Wählby·PLoS Computational BiologyPeer-reviewed·Nov 13, 2023
- Label-free Pathogen Identification with Microscopy Imaging and Deep Learning
X Zhang, Tongtong Zhou, … J M Wang·bioRxiv·Jun 22, 2026
- Rapid label-free identification of pathogenic bacteria species from a minute quantity 1 exploiting three-dimensional quantitative phase imaging and artificial neural network
- Automatic Culture-free Detection of Bacteria from Blood for Rapid Sepsis Diagnostics
M. Henar Marino Miguélez, Mohammad Osaid, … Wouter van der Wijngaart·npj Digital MedicinePeer-reviewed·Aug 25, 2025
- Non-destructive label-free automated identification of bacterial colonies at the species level directly on agar media using digital holography and convolutional neural network algorithms
Prisca Perlemoine, Jordan Belissard, … Yvan Caspar·Microbiology SpectrumPeer-reviewed·Jul 13, 2026