Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.10.09.757828

Label-free identification of bacterial species using adapted vision transformers

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Hallström, E., Kandavalli, V., Marino Miguelez, M. H., Elf, J., Wählby, C.. 2026-10-10. Label-free identification of bacterial species using adapted vision transformers. https://doi.org/10.64898/2026.10.09.757828

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

A droplet-to-data workflow for antimicrobial screening of complex matrices

Screening plant extracts and other complex natural matrices for antibacterial activity is complicated by optical interference and population averaging in conventional bulk assays. Droplet-based assays mitigate interference while enabling high-throughput assessment of bacterial subpopulations. However, analyzing the resulting image data involves difficult image processing, classification, and interpretation. Here, we present a democratized workflow for antimicrobial screening in complex matrices that combines a polydisperse droplet-based assay with EasyFlow 2.0 (EF2), our updated droplet image analysis platform. EF2 offers stable containerized deployment, expanded polydisperse droplet support, automated thresholding and MIC estimation, LLM-assisted data exploration, and import of other software outputs such as CellProfiler (CP) measurements and CellProfiler Analyst (CPA) classification models. As proof of concept, we applied this workflow to assess the antibacterial and aggregation-modulating effects of chemically distinct extracts of Taraxacum officinale, Rhodiola rosea, and Lonicera caerulea against Escherichia coli. Extracts were chemically characterized by HPLC-MS and evaluated using both standard 96-well plate microdilution and droplet-based assays. In total, 27,059 droplets were segmented in CP, classified into four growth phenotypes using a CPA random forest model, and analyzed in EF2. The droplet-based assay reached minimal inhibitory concentration (MIC) at lower extract concentrations than 96-well plate microdilution and revealed extract-specific aggregation effects: L. caerulea reduced E. coli aggregation, whereas T. officinale did not. R. rosea reduced growth in the 96-well plate microdilution assay, but high concentrations caused droplet gelation that prevented droplet-based analysis, showing that sample components must be checked for compatibility with droplet formation. These results illustrate that the EF2-centered workflow supports rapid, automated MIC estimation through unsupervised thresholding when labels are unavailable, and four-class aggregation phenotyping when a CPA model is supplied. This workflow offers flexible, scalable screening, potentially extendable beyond plant extracts to other complex sample matrices.

microbiology↗

The influence of drug dosing regimen on extinction and adaptation during experimental evolution in Candida albicans

The antifungal azole drug fluconazole (FLC) is frequently prescribed for treating Candida albicans infections. Azole drugs are typically fungistatic; they inhibit cell growth rather than kill susceptible cells within a population. Therefore, fungal populations can adapt to fluconazole through increased drug resistance or increased drug tolerance (the ability of a subpopulation of susceptible cells to grow slowly at inhibitory drug concentrations). To our knowledge, no prior experiments have examined how different factors influence extinction propensity, although previous in vitro studies show that both drug concentration and strain background can influence adaptation. To determine how the drug dosing regimen, namely fluconazole concentration and transfer duration (i.e., the amount of time between transfer into fresh medium), influenced extinction and adaptation in Candida albicans, we conducted a fully factorial series of short in vitro evolution experiments. Dosing regimen significantly influenced extinction: all replicates evolved at all drug concentrations survived the 48 h and 72 h transfer experiments, yet the extinction rate increased sharply from low to high drug concentration with 24 h transfers. Increases in drug tolerance were frequent regardless of the dosing regimen. In contrast, drug resistance and growth rate both tended to decrease following evolution at higher drug concentrations. Fluconazole-evolved replicates exhibited frequent increases in cross-tolerance and decreases in cross-resistance in a panel of other azole drugs. Genome size changes were common in some strain backgrounds evolved to higher fluconazole concentrations, regardless of transfer times. Combined, our results indicate that many experimental factors can influence the trajectory of adaptation, and show that extinction in a fungistatic drug occurs readily at high drug concentrations with rapid transfers.

microbiology↗

Abundance-weighted analysis and deep functional metagenomic selection reveals unrecognized diversity of soil-derived streptothricin acetyltransferases

Streptothricins (STCs) are broad-spectrum antibiotics under investigation for their therapeutic potential against antibiotic-resistant Gram-negative pathogens. However, the extent and diversity of genes that confer resistance to STCs, or their environmental resistome, remains largely unknown and is essentially limited to a handful of STC acetyltransferases. Here, we used a deep functional metagenomic approach to uncover previously unrecognized STC resistance determinants. A functional metagenomic library containing ca. 700 Gigabases of soil metagenomic DNA was selected for resistance to nourseothricin (NTC), a mixture of STC congeners, resulting in collection and sequencing of nearly 30,000 resistant clones. An abundance-weighted sequence analysis identified 265 acetyltransferase-like candidates spanning broad phylogenetic, taxonomic, and genomic diversity. Re-cloning and experimental testing of 18 candidates chosen to cover acetyltransferase sequence space confirmed that 10 conferred significant NTC resistance in Escherichia coli. Phylogenetic analyses identified three previously uncharacterized STC acetyltransferase lineages, designated as SatC, SatD, and SatE. Despite substantial sequence divergence from characterized streptothricin acetyltransferases (maximum amino acid identities of approximately 31% for SatC and SatD and up to 47.5% for SatE), these enzymes largely retained key residues associated with streptothricin binding and catalysis. In addition to strongly increasing NTC resistance, expression of the SatC construct in E. coli also significantly decreased susceptibility to the aminoglycoside antibiotics amikacin and kanamycin. Together, these findings reveal a substantially broader than previously known environmental repertoire of STC acetyltransferases and demonstrate how deep functional metagenomic selections, combined with abundance-weighted hit calling, phylogenetic analysis, and structural prediction, can uncover novel resistance functions.

microbiology↗