Virtual Gram staining of label-free bacteria using dark-field microscopy and deep learning

Sci Adv. 2025 Jan 10;11(2):eads2757. doi: 10.1126/sciadv.ads2757. Epub 2025 Jan 8.

Abstract

Gram staining has been a frequently used staining protocol in microbiology. It is vulnerable to staining artifacts due to, e.g., operator errors and chemical variations. Here, we introduce virtual Gram staining of label-free bacteria using a trained neural network that digitally transforms dark-field images of unstained bacteria into their Gram-stained equivalents matching bright-field image contrast. After a one-time training, the virtual Gram staining model processes an axial stack of dark-field microscopy images of label-free bacteria (never seen before) to rapidly generate Gram staining, bypassing several chemical steps involved in the conventional staining process. We demonstrated the success of virtual Gram staining on label-free bacteria samples containing Escherichia coli and Listeria innocua by quantifying the staining accuracy of the model and comparing the chromatic and morphological features of the virtually stained bacteria against their chemically stained counterparts. This virtual bacterial staining framework bypasses the traditional Gram staining protocol and its challenges, including stain standardization, operator errors, and sensitivity to chemical variations.

MeSH terms

  • Bacteria
  • Deep Learning*
  • Escherichia coli
  • Gentian Violet*
  • Image Processing, Computer-Assisted / methods
  • Listeria
  • Microscopy* / methods
  • Neural Networks, Computer
  • Phenazines
  • Staining and Labeling* / methods

Substances

  • Gram's stain
  • Gentian Violet
  • Phenazines