PLoS Computational BiologyBioinformaticsPeer-reviewed journal article
Label-free deep learning-based species classification of bacteria imaged by phase-contrast microscopy
Erik HallströmiD, Vinodh K. KandavalliiD, Petter RanefalliD, Johan ElfiD, Carolina WählbyiD
Abstract
Reliable detection and classification of bacteria and other pathogens in the human body, animals, food, and water is crucial for improving and safeguarding public health. For instance, identifying the species and its antibiotic susceptibility is vital for effective bacterial infection treatment. Here we show that phase contrast time-lapse microscopy combined with deep learning is sufficient to discriminate four species of bacteria relevant to human health. The classification is performed on living bacteria and does not require fixation or staining, meaning that the bacterial species can be determined as the bacteria reproduce in a microfluidic device, enabling parallel determination of susceptibility to antibiotics. We assess the performance of convolutional neural networks and vision transformers, where the best model attained a class-average accuracy exceeding 98%. Our successful proof-of-principle results suggest that the methods should be challenged with data covering more species and clinically relevant isolates for future clinical use. Author SummaryBacterial infections are a leading cause of premature death worldwide, and growing antibiotic resistance is making treatment increasingly challenging. To effectively treat a patient with a bacterial infection, it is essential to quickly detect and identify the bacterial species and determine its susceptibility to different antibiotics. Prompt and effective treatment is crucial for the patients survival. A microfluidic device functions as a miniature "lab-on-chip" for manipulating and analyzing tiny amounts of fluids, such as blood or urine samples from patients. Microfluidic chips with chambers and channels have been designed for quickly testing bacterial susceptibility to different antibiotics by analyzing bacterial growth. Identifying bacterial species has previously relied on killing the bacteria and applying species-specific fluorescent probes. We introduce deep learning models as a fast and cost-effective method for identifying bacteria species directly from phase-contrast microscopy images of living bacteria simultaneously as growth is analyzed. We envision this method being employed concurrently with antibiotic susceptibility tests in future applications, significantly enhancing bacterial infection treatments.
- Citations
- 20
- FWCI
- 2.42
- Field percentile
- top 10%
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 identification of bacterial species using adapted vision transformers
Erik Hallström, Vinodh K. Kandavalli, … Carolina Wählby·bioRxiv·Oct 10, 2026
- DeepBacs: Bacterial image analysis using open-source deep learning approaches
C. Spahn, R. F. Laine, … R. Henriques·bioRxiv·Nov 3, 2021
- Rapid label-free identification of pathogenic bacteria species from a minute quantity 1 exploiting three-dimensional quantitative phase imaging and artificial neural network
- Label-free Pathogen Identification with Microscopy Imaging and Deep Learning
X Zhang, Tongtong Zhou, … J M Wang·bioRxiv·Jun 22, 2026
- 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