Introduction

Pathogenic bacteria are classified as Gram-positive and Gram-negative based on the cell surface composition. Gram-positive bacteria are characterized by a thick layer of peptidoglycans without any outer membrane, while Gram-negative bacteria possess a thin peptidoglycan layer and an outer membrane with lipopolysaccharides. Accurate identification of bacterial strains, differentiation, and live/dead differentiation play a crucial role in both theranostics of bacterial infections and the advancement of antibiotic development. Various methods have been employed to detect bacteria, including polymerase chain reaction (PCR), Gram staining, immunological techniques, and Raman spectroscopy [1]. PCR utilizes amplified nucleic acids to identify DNA sequences, immunological techniques involve the interaction between antibodies and antigens, while Raman spectroscopy distinguishes bacteria based on light-scattering differences. However, these approaches are expensive and time-consuming, involve intricate procedures, and may yield false positive results. Fluorescence-based dyes are most widely used for bacterial labeling and they enable real-time monitoring of bacteria with high sensitivity and selectivity, and have high quantum yield [2]. Propidium iodide and propidium monoazide are widely used for lived/dead microbial assay; however, their main limitations are toxicity upon long-time exposure, poor photostability, and high cost. Photodegradation of the dyes imposes constraints on both the duration and time resolution of the experiments. In addition, poor dye penetration and monochromatic properties are unfavorable factors that prompt the search for alternative staining agents. Fluorescent nanoparticles in combination with specific recognition elements, such as aptamer, antibody, bacteriophage, and antimicrobial peptide are used for the labeling of bacteria [3,4,5].

Among various fluorescent nanomaterials, fluorescent carbon dots (CDs) have emerged as a favorable staining agent for bacterial labeling due to their superior biocompatibility and biosafety, ease of preparation, and broad excitation/emission spectral range [6]. They are less toxic when compared to other nanoparticle imaging agents, and are more compliant to in situ bacterial analysis. Their interaction with bacterial cell surfaces allows for precise identification and differentiation of various strains, which has significant implications in medical diagnostics, environmental monitoring, and food safety, where rapid and accurate detection of bacterial pathogens is crucial. The fluorescent properties of CDs are influenced by the molecular precursors used for the preparation of CDs, synthesis methods, surface state, carbon-core and molecular state, surface functionalization, quantum size effect, and conjugate effect [7]. CDs can be tuned to achieve multi-color emission, which enables multi-color labeling of bacteria [8]. In addition, fluorescent CDs have a size in the range of 1.9 to 5 nm, which is very suitable for interaction and internalization into bacterial cells. Antibiotic-modified CDs are also reported for the specific labeling of bacteria [9]. Many reviews are available for the synthesis methods of CDs, structure, origin of fluorescence properties, functional properties, photostability, and toxicity [10,11,12]. A recent review by Lin et al. discussed the application of CDs functionalized with aptamers, antibodies, DNA, and peptides for bacteria sensing [13]. A review article published in 2019 reviewed the application of CDs with a special focus on sensing and killing microorganisms including bacteria, fungi, and viruses [14]. We are of the view that an update of publications since 2019 is important, particularly to have a better understanding of how the surface charges, functional groups, and hydrophilic-hydrophobic properties of CDs influence the labeling mechanism, and to provide an overview of the latest developments, challenges, and future outlook. In this review, we have reviewed the labeling mechanism of fluorescent CDs for their use in Gram differentiation, live imaging, distinguishing live and dead bacteria, assessing bacterial viability, imaging biofilms, and the challenges inherent in the application of CDs. A combination of zeta potential and surface functional groups plays a major role in the selective interaction and labeling of bacteria by the CDs as illustrated in Fig. 1.

Fig. 1
figure 1

Illustration of the role of zeta potential and the type of surface functional groups on the selective labeling of bacterial strains, and biofilm. G+ and G– represent Gram-positive and Gram-negative bacteria, respectively

Fluorescent carbon dots

The term “carbon dots” has a broad meaning with a variety of carbon nanomaterials coming under this category. Based on the structure, size, and functional properties, CDs are categorized into graphene quantum dots (GQDs), carbon quantum dots (CQDs), carbon nanodots (CNDs), and carbonized polymer dots (CPDs) [15, 16]. Among them, only the CDs that have fluorescence properties can be applied for bacterial imaging. Multi-color CDs can be prepared by controlling their sp3-hybridized carbon cores and sp2-hybridized domains, which enable multi-color bioimaging (Fig. 2A–C) [8]. The emission properties of the CDs can be tuned by using different combinations of precursors and controlling their ratios as illustrated in Fig. 2D [17]. The ultrasmall size and high photostability enable multi-color imaging of Staphylococcus aureus (S. aureus) and Escherichia coli (E. coli) under different excitation bands (Fig. 2E) [18]. Comprehensive reviews on the origin and mechanism of fluorescence of CDs are available [19, 20]. Depending upon the surface charge, functional groups, and pH-dependent behavior, CDs have been widely studied for specific bioimaging of cells and organelles, and our group reported a comprehensive review on this topic with future outlook and challenges [21]. Rather than the fundamental fluorescence characteristics of the CDs, their surface charge and the type of functional groups have been found to be crucial for selective interaction with bacteria for labeling and discrimination. In addition, the size of the functional groups and the quantum yield also play a role in bacteria imaging [22]. Doping of CDs with heteroatoms like boron, nitrogen, phosphorus, and sulfur changes the intrinsic electronic properties of CDs to provide new active sites [7]. Heteroatom doping of CDs enables the selective labeling of dead bacteria rather than live ones, enabling the evaluation of bacterial viability [23]. However, bacteria-derived fluorescent CDs label the dead cells and not the live bacteria [24]. The surface group of CDs may be modified to couple with specific recognition elements such as antibodies, peptides, or aptamers that can stain the bacteria for indirect monitoring [25, 26].

Fig. 2
figure 2

Multi-color emission properties of CDs. A Photographs of dispersions of different CDs, synthesized from o-phenylenediamine and citric acid by hydrothermal method, under daylight (upper) and UV light (bottom). B Emission spectra of CDs dispersion displayed in A under excitation at 365 nm and C time-resolved fluorescence spectra of selected samples. Reproduced from [8] with permission from Wiley‐VCH GmbH. D Schematic representation of synthesis and tuning of multiple color emission CDs based on the precursor ratio by solvothermal method. Reproduced from [17] with permission from Elsevier. E Fluorescence microscopic images of multi-color imaging of S. aureus and E. coli DH5α with surface passivated CDs under different excitation wavelengths: blue filter (UV-2A, 330–380 nm), green filter (B-2A, 450–490 nm), and red filter (G-2A, 510–560 nm). Reproduced from [18] with permission from the American Chemical Society

Gram differentiation of bacteria

Gram-positive bacteria labeling

The cell walls of Gram-positive and Gram-negative bacteria have different compositions and it is mainly exploited for Gram staining. The same principle is also applicable to CDs, which can selectively interact with bacteria enabling Gram differentiation. The bacterial cell walls mainly differ in the thickness of peptidoglycan layers, the presence of outer membranes, and electrical charge. Gram-positive bacteria are more negatively charged compared to Gram-negative bacteria due to the presence of teichoic acid on their thick peptidoglycan layer. Whereas Gram-negative bacteria have a thin peptidoglycan layer and an additional lipopolysaccharide layer. Therefore, positively charged CDs have more affinity toward Gram-positive bacteria than toward Gram-negative bacteria, enabling selective labeling as illustrated in Fig. 3A [27, 28]. CDs have stable fluorescence, which enables them to be used for tracking division and viability assessment of Gram-positive bacteria, for example, lactic acid bacteria [29]. Polarity-sensitive emission properties of the CDs also have been utilized for bacterial differentiation [30]. In this method, CDs having hydrophobic hydrocarbon and quaternary amine functional groups selectively interact with Gram-positive bacteria, resulting in enhanced fluorescence and bacterial differentiation. Not only positively charged CDs, but negatively charged CDs also can stain Gram-positive bacteria. For example, N-doped CDs cross-linked by genipin (N-CDs-GP) synthesized from L-tryptophan and chlorhexidine acetate with a negative zeta potential of −17.3 mV have been reported to stain only Gram-positive S. aureus; however, the interaction between the CDs and the bacteria is not through the negative charge of the CDs, but through the protonated amide functional groups and the negatively charged surface of the bacteria [31]. The study suggests that the zeta potential of the N-CDs-GP has no significant role in interaction with the bacteria. Similarly, Wang et al. reported negatively charged S-doped CDs with a zeta potential of −28 mV that could selectively label Gram-positive bacteria [32]. The mechanism of selectivity has been reported to be due to the presence of sulfate groups on the surface of the CDs. However, further investigation is needed to understand how such highly negatively charged CDs bind with negatively charged cell membranes of live Gram-positive bacteria and why they could not bind with less negatively charged Gram-negative bacteria. Some CDs have been reported to stain both Gram-positive and Gram-negative bacteria by difference in their excitation emission [33, 34]; however, the mechanism of interaction between CDs and bacteria has not been clearly explained. CDs having very mild positive charge (zeta potential = +0.32 mV) and having plenty of amine groups have been reported to distinguish drug-resistant S. aureus and normal S. aureus [35]. CDs synthesized from cyanine 7 dyes (Cy7-CH3) and passivated with 3-hydroxytyramine (CyCDs) stain only the cell wall of the methicillin-resistant S. aureus (MRSA), whereas, it stains the whole cells of normal S. aureus (Fig. 3B). The mechanism of distinction between the drug-resistant and normal strain is due to the higher thickness of the cell wall of the former, which rapidly excretes the CyCDs by the efflux pump, causing illumination only at the cell wall. The report reveals that the imaging effect is the same for drug-resistant E. coli and its normal strain.

Fig. 3
figure 3

Gram differentiation of bacteria. A Schematic representation of interaction between positively charged CDs and the negatively charged peptidoglycans of the cell wall of Gram-positive bacteria. Reproduced from [28] with permission from Elsevier; B rapid labeling and identification drug-resistant bacteria, MRSA and normal strain, S. aureus (SA) using CyCDs. Reproduced from [35] with permission from Elsevier; C confocal fluorescence images of three Gram-positive and three Gram-negative bacteria treated with quaternized CDs showing contact-enhanced emission toward Gram-positive strains. Reproduced from [36] with permission from Elsevier

Other than preferential interaction based on charges, bacterial contact-enhanced fluorescence emission has been reported as an efficient method for the distinction of bacteria by CDs. In this mechanism, the fluorescence of the CDs is enhanced upon interaction with the Gram-positive bacteria (Fig. 3C) [36]. However, the mechanism of interaction is via both electrostatic and hydrophobic between the positively charged quaternized CDs (zeta potential = +33 mV) and the negatively charged bacteria, but the exact mechanism of the contact-enhanced fluorescence emission of the CDs has not been explained. The specificity of the CDs toward a particular bacteria can be enhanced by their surface modification with a specific molecule such as vancomycin. CDs modified with vancomycin interact with the cell walls of Gram-positive bacteria through ligand-receptor interactions, leading to detection down to 9.40 × 104 CFU mL−1 [9]. Vancomycin on the CDs forms hydrogen bonding with the terminal peptide of D-Ala-D-Ala on the cell wall enabling the detection of S. aureus with high specificity.

Some CDs with a zeta potential of −14 mV and having plenty of surface functional groups such as carboxyl, amino, and hydroxyl have been reported to exhibit antibacterial properties only under visible light irradiation (for 60 min) via reactive oxygen species generation [37]. Such CDs show selective labeling of Gram-positive bacteria such as S. aureus and L. monocytogenes, and not Gram-negative, enabling Gram differentiation and multi-color imaging.

Gram-negative bacteria labeling

Conventional Gram staining agents label only Gram-positive bacteria by exploiting differences in their cell wall composition. Conversely, CDs have been reported to stain both Gram-positive and Gram-negative bacteria, which provides an advantage for investigating both types of stains. Staining Gram-negative bacteria solely based on differences in electrostatic interaction is more challenging compared to Gram-positive bacteria. This is attributed to their thin glucan layer and strong outer membrane with higher lipid content. Therefore, selective interaction of CDs with the outer membrane of the Gram-negative bacteria is important. CDs having a high negative zeta potential of −21.6 mV and −31.2 mV have been reported to stain the Gram-negative bacteria, E. coli by simple incubation [38, 39]. The mechanism of labeling has been reported to be the interaction between the carboxylic acid groups on the CDs with the peptides, proteins, and amino acids on the bacterial surface. This mechanism is exactly the reverse of Gram-positive staining, in terms of charges and functional groups. Certain sugars such as mannose have affinity toward the pili of certain bacteria such as wild-type E. coli, opening another method of improving selectivity [40, 41]. In our previous reports, CQDs synthesized from ammonium citrate by a solid-state heating method and functionalized with mannose ligands (Man–CQDs) were found to exhibit specificity toward E. coli, enabling efficient bacteria labeling [40, 41]. These two studies revealed that mannose ligands on the Man-CQDs exhibit multivalent interaction with the FimH lectin units in wild-type pili on the surface of E. coli. Another study also reported a similar interaction for the selective sensing of E. coli, where the authors utilized single-use plastics to prepare biocompatible and highly fluorescent CDs [42]. The intensity of fluorescence from the plastic-derived CDs decreased with an increase in the concentration of bacteria. This decrease was attributed to the association of bacteria with the surface functional groups of CDs, which affected the rate of radiative recombination of photo-generated electrons and holes in the CQDs, thereby enabling the detection of bacteria. This method is primarily suitable for bacterial quantification rather than bacterial imaging.

While most of the CDs used for live imaging of bacteria emit in the short wavelength (<600 nm) region, they may induce photodamage to tissues [43]. Excitation of CDs at a longer wavelength (near-infrared) region reduces the phototoxicity and avoids self-fluorescence by the target tissues [44]. The report demonstrates the conversion of cyanine dye, Cy-COOH, to Cy7-CDs, which retain the optical properties of the dye while exhibiting improved water solubility and quantum yield. The introduction of abundant hydroxyl, carboxyl, and benzene-rich functional groups on the surface enables bacterial identification and quick monitoring of bacterial viability through fluorescence imaging. Specifically, Cy7-CDs do not interact quickly with Gram-positive bacteria, however get reduced upon incubation for 5 min and the fluorescence intensity was enhanced within 40 min of co-incubation, which allows for the discriminative imaging and assessment of the survival rate of bacteria.

As mentioned above, negatively charged CDs can easily stain Gram-negative bacteria, and if they possess antibacterial effects, they may also stain Gram-positive bacteria after a longer incubation period. For example, N and F co-doped CDs with zeta potential −27.7 mV stain Gram-negative E. coli within 20 min, whereas they stain Gram-positive S. aureus in 60 min [45]. However, despite being negatively charged, they exhibit bactericidal effects via the downregulation of gene expressions related to energy uptake and metabolism. Therefore, the incubation time is an important factor for Gram differentiation.

Since CDs do not have species-specific affinity toward different bacterial species, they can be modified with different receptors, which will enable them to bind with all species with different affinity, allowing for quantification of different species by linear discrimination analysis. For example, Zheng et al. fabricated a multiplex assay with fluorescent CDs modified with different receptors, boronic acid, polymyxin, or vancomycin, separately [46]. These three differently functionalized CDs on the sensor array will interact with all bacteria with different affinities. The difference in the affinity toward different species is then evaluated by linear discrimination analysis. Recently, Li et al. reported a similar assay using linear discrimination analysis to distinguish six different bacteria species employing multi-color-emissive CDs at different pH [47]. The authors reported that the assay is rapid and 100% accurate. Amphiphilic CDs having hydrocarbon chain functional groups have been reported to label and distinguish different bacteria species based on the shift in the emission wavelength upon interaction with bacteria [48]. The report suggests that the amphiphilic CDs have different affinity with different species of bacteria, and the interactions lead to species-specific shifts in the excitation-dependent emission wavelengths, visualizing different species under different emission wavelengths. Since the CDs are biocompatible, they enable live imaging to monitor bacterial cell division.

Change in the fluorescence lifetime (FLT) of the CDs upon interaction with Gram-negative bacteria has been reported as a revolutionary mechanism for their selective detection of E. coli [49]. The work reports that when colistin-passivated CDs interact with E. coli, the average FLT (τavg) significantly decreases from 3.91 to 1.59 ns, and the bacterial concentration can be quantified by fluorescence lifetime imaging microscopy and automated confocal laser scanning microscopy with a limit of detection of 3.68–4.89 × 104 CFU mL−1. The selectivity mechanism is the interaction of the colistin having plenty of cationic sites, which replace Ca2+ and Mg2+ ions and integrate with the lipopolysaccharides of the outer membrane of the Gram-negative bacteria. Another mechanism for the identification of bacteria is by targeting the sugar-metabolism-triggered change in the fluorescence of pH-sensitive CDs. Different bacteria have different capabilities for sugar metabolism and their acidic by-products induce different pH to the solution. Thus, the fluorescence of the pH-dependent CDs differs in different bacteria solutions containing sugar such as glucose or lactose; for example, E. coli and S. aureus, enabling their identification and detection as low as 21 and 33 CFU mL−1, respectively [50].

Biofilm imaging

Selective labeling of biofilm is also as important as bacteria labeling and plays a major role in the fundamental understanding of bacterial activities and interactions. Bacterial biofilms are complex communities of bacteria in a self-produced matrix of exopolysaccharide (EPS) composed of proteins, polysaccharides, and extracellular DNA. Biofilms are protective barriers against environmental stress and about 80% of bacterial infections are associated with biofilm formation, leading to life-threatening conditions. Imaging of biofilm and associated areas is often challenging due to the heterogenicity and complexity of biofilm structure [51]. The dense and amphiphilic nature of the EPS matrix restricts the penetration of the imaging agents. Fluorescence microscopy, coupled with functionalized probes, enables the monitoring of biofilms to provide fundamental information about their structure and behavior. Current approaches for analyzing and visualizing EPS in bacterial biofilms commonly involve the use of fluorescent dyes covalently linked to carbohydrate recognition elements, especially lectins, typically carried out through confocal laser scanning microscopy. However, protected by a resilient and sticky EPS matrix, microorganisms embedded in biofilms pose challenges to the penetration of fluorescence dyes for staining. Biofilms not only impose stringent restrictions on dye penetration but also encompass areas with widely varying environmental conditions that can impact the function of dyes [52]. In addition, the dyes are often associated with limitations, such as susceptibility to biofilm damage, short shelf lives, high costs, demanding storage requirements (e.g., low temperature and protection from light), and photobleaching, making them less favorable options. Alternative techniques employ surface-modified semiconductor quantum dots, utilizing biological or synthetic complex substances that are toxic to bacterial cells, thereby hindering in situ analysis and potentially disrupting assembled biofilms. Other methodologies used for biofilm analysis, such as atomic force microscopy (AFM), scanning electron microscopy (SEM), magnetic resonance imaging (MRI), and Raman spectroscopy, are not universally applicable in situ, and therefore, necessitate sample modulation, and may provide only partial structural details in many cases [53].

Cationic fluorescent CDs with a high positive charge surface (+33.1 mV) and ultrasmall size (3.3 nm) facilitate the penetration of the CDs in the bacterial biofilms allowing for fluorescent imaging [51]. Highly positively charged CDs at low concentrations allow for the imaging of biofilm, at medium concentrations they inhibit the biofilm, and when the concentration of CDs is very high the biofilm is eradicated. Furthermore, the excitation-dependent emission properties of fluorescent CDs can enable multi-color fluorescence imaging of the biofilms. CDs as fluorescent probes have the potential to be used for selectively imaging Gram-positive and Gram-negative bacterial biofilms [54].

The bacterial biofilm imaging provides information on the life-cycle of biofilm such as growth, reproduction, and formation of mature biofilm [52, 55]. CDs synthesized from L. plantarum have been reported for the imaging of biofilm-encased E. coli at different stages of biofilm (24–120 h) [52] thereby enabling the understanding of the morphology and physiological state of bacteria in a biofilm. Conversely, amphiphilic CDs bind to the hydrophobic regions in the EPS matrix allowing for the imaging of biofilm [6]. In addition to imaging of biofilm, amphiphilic CDs are also employed for monitoring the effect of external factors such as temperature on the kinetics of EPS growth. Due to the difficulty in staining biofilms, CDs are not well researched for biofilm imaging, and therefore, further investigation is needed for improving the biofilm penetration properties and developing new types of CDs, with less toxicity. A high positive charge on the CDs is highly toxic against bacteria, and is mostly applied for antibacterial and antibiofilm activities, rather than biofilm imaging.

Live bacteria imaging

Biocompatibility of the CDs is crucial for the bioimaging of live bacteria. Although positively charged CDs are easily adsorbed on bacterial membranes, a high positive charge on the CDs could damage the negatively charged bacterial cell membrane by disrupting its structural integrity via strong electrostatic interaction [56]. Yan et al. demonstrated negatively charged peptidoglycan-targeting CDs have low toxicity and are suitable for live bacteria bioimaging as long as 24 h with one-step staining [57]. In their report, triple excitation wavelengths and single-color emission carbon quantum dots (T-SCQDs) synthesized from glucose, glycine, and L-tryptophan possess a net negative charge with a zeta potential of −12.37 mV and plenty of amino functional groups. Although the T-SCQDs carry a net negative charge, the authors conducted a competitive binding assay to prove that the cationic amino groups on them easily bind to the comparatively more negatively charged peptidoglycans (zeta potential = −7.70 mV) of the Gram-positive bacteria, than that with less negative lipopolysaccharides (zeta potential = −3.84 mV) in Gram-negative bacteria, enabling a clear differentiation (Fig. 4A, B). Peptidoglycans also have hydrophobic regions due to the presence of N-acetylglucosamine and N-acetylmuramic acid, allowing for hydrophobic interactions with benzopyrrole regions of the T-SCDs. In addition, the report proves that the T-SCDs can specifically stain S. aureus colonies in a mixture of S. aureus and E. coli colonies. The efficiency of the live bacteria imaging by CDs is such high that they can be used to track division and also viability assessment in bacteria (Fig. 4C) [29].

Fig. 4
figure 4

A Graphical illustration of the synthesis of T-SCQDs from glucose, L-tryptophan, and glycine, and three wavelength excitation and single emission of the T-SCQDs and B principle of selective live imaging of Gram-positive bacteria by T-SCQDs. Reproduced from [57] with permission from the American Chemical Society. C Tracking of cell division in Lactobacillus plantarum using phosphorus and nitrogen-doped CDs at different excitation and emission wavelengths. Reproduced from [29] with permission from Elsevier

Nanosized (1–3 nm), N-doped oxygenated fluorescent CDs with crystalline characteristics prepared from a colloidal system with deep eutectic solvent were reported for labeling both Gram-positive and Gram-negative bacteria [58]. The colloidal CDs were reported to have electrostatic interaction with the bacteria and readily internalized into the cells exhibiting good fluorescence and displaying diverse light emission ranging from bluish to red, depending on the excitation wavelength, accompanied by an exceptionally high quantum yield of approximately 82%. A detailed investigation is needed to understand the interaction of the colloidal CDs with both Gram strains of bacteria.

Live/dead bacteria differentiation

Live/dead bacteria differentiation with fluorescent CDs is achieved due to the difference in the cell membrane transportation of live and dead bacteria caused by the high negative charge of the CDs. Reports demonstrated that only highly negatively charged CDs can selectively label dead bacteria [59] irrespective of their Gram strain, and the differentiation efficiency is lost if the zeta potential of the CDs is decreased [23, 24, 60, 61]. Specific labeling of dead bacteria has been reported by Song et al. with nitrogen, phosphorus, and sulfur co-doped CDs (NPSCDs) [23] to specifically stain dead bacteria (Bacillus aryabhattai) and they do not stain the live bacteria due to their high negative zeta potential (−41.9 mV) and the electrostatic repulsion of the negative charged bacterial cell wall. The report suggests that the NPSCDs enter dead bacteria cells because the cell loses control of the action of carrier proteins, enabling bacterial viability evaluation. Functionalizing CDs with specific molecules such as ampicillin and having moderate negative charge (zeta potential = −12.5 mV) also can target the membrane of dead bacteria only, enabling live/dead differentiation [62]. The selectivity toward dead bacteria or yeast staining is due to the electrostatic repulsion of the live microbes (E. coli, S. aureus, and C. podzolicus) having high negative surface charge (zeta potential = −43.63, −30.5, and −36.4 mV, respectively). A similar phenomenon was observed for bacteria-derived CDs (zeta potential = −23.30 mV) with excitation-dependent emission characteristics [63]. The entry of small molecular substances into the cells necessitates ion channels or transmembrane proteins and hence these CDs face limitations in labeling live microbial cells. In the case of dead cells, the destruction of cell walls or membranes results in reduced selective permeability. This weakening of electrostatic interactions between bacteria and the CDs enables the successful labeling of dead cells. Ultrasmall-sized CDs (1.91 nm, zeta potential = −15 mV) with carboxyl moieties on the surface penetrate the dead cells, avoiding the live ones of both Gram-positive and Gram-negative bacteria as illustrated in Fig. 5A [64]. Ultrasmall sulfur-doped CDs synthesized from rose bengal and 1,4-dimercaptobenzene by hydrothermal method have been reported to distinguish dead cells from live cells [65]. The selective staining mechanism has been determined to be the difference in the uptake pathway of the dead and live cells, in which the dead cells permit the uptake of the ultrasmall CDs (1.6 nm) by passive diffusion followed by interaction with DNA and RNA. Whereas the CDs could not penetrate into the live cells. Other than the live/dead differentiation mechanism based on strong electrostatic repulsion, difference in the affinity of the CDs with the cell wall of live bacteria and entry into the cell of dead bacteria can also be employed. For example, P- and N-co-doped CDs (PN-CDs) with a positive zeta potential of +2.34 mV have been reported for live/dead differentiation, in which they stain both live and dead bacteria with a difference [29]. In this method the PN-CDs label only the cell wall of live bacteria within 1 min, enabling monitoring bacterial viability and also tracking division. Whereas they light up the whole cell of the dead bacteria, by entering the cell, enabling live/dead differentiation. Reports suggest that CDs label dead bacteria irrespective of their method of killing, such as heating, ethanol, formaldehyde, and microwave, and irrespective of Gram strain (Fig. 5B, C) [29, 61], and hence this method can be employed in a wide range of antibacterial studies. A recent work by Liu et al., demonstrated that the nature of the functional groups, their size, and quantum yield influence the imaging of bacteria [22]. CDs prepared from spermine could stain the dead bacteria, and showed a quantum yield of 66.46% along with high fluorescent bleaching resistance (even 3 h irradiation could maintain 70% fluorescence). Modifying the CDs with ethylenediamine imparted primary amine groups on the surface of CDs, which enabled the staining of both dead and live bacteria. The authors reported that the primary amine group played a significant role in interacting with the bacteria. Enriching the surface of CDs with abundant functional groups enables the shift in excitation wavelength to a longer wavelength region (640 nm), which minimizes the fluorescence interference and simultaneously distinguishes live-dead bacteria in the same channel (680–760 nm) [44].

Fig. 5
figure 5

A Principle of live/dead bacteria imaging with CDs: strong electrostatic repulsion between the highly negatively charged CDs and negatively charged bacterial cell walls. Reproduced from [64] with permission from Elsevier; B confocal fluorescence microscopic images of Lactobacillus plantarum killed by different methods and stained by CDs Reproduced from [29] with permission from Elsevier; C fluorescence images of live/dead bacteria differentiation by CDs irrespective of Gram stain. Reproduced from [61] with permission from Elsevier

Viability assessment

Bacterial viability assessment is performed as a part of laboratory research and also in bacterial monitoring in the fields of clinical, environmental, food, and drug development. Fluorescence staining followed by microscopy or flow cytometry analysis is widely used for viability assessment. The limitations of the fluorescent dyes mentioned earlier are also applicable here and hence, CDs could be a viable alternative. However, the biocompatibility of the CDs is essential for viability assessment. CDs with no antibacterial properties and can specifically stain either live or dead bacteria in a mixture of live and dead bacteria can be used for bacterial viability assessment. Therefore, many of the CDs discussed in the above sections for Gram-positive, Gram-negative, live imaging, and live/dead imaging are efficient in bacterial viability assessment [23, 29, 44]. Some CDs have been reported to label live bacterial cell walls quickly, allowing for viability assessment within 1 min [29]. A higher incubation time will cause the CDs to enter the cells of dead bacteria and light up the whole cell, thus differentiating live and dead bacteria.

Before the application of CDs for viability assessment, their antibacterial activity assessment is important. For example, exopolysaccharide-derived CDs with a zeta potential of −24 mV, with no toxicity toward microbes even at concentrations of 3 mg mL−1, enable multi-color imaging capabilities for microbial viability assessment including Gram-negative bacteria, Gram-positive bacteria, and fungus [66]. Some reports on CDs for bacterial viability assessment performed cytotoxicity assessment in the HeLa cell line [67]; however, additionally, assessing the antibacterial capability of the CDs would be more accurate in predicting their appropriateness. Concentration- and time-dependent toxicity against bacteria must be determined before applying CDs for viability assessment and tracking division.

Challenges, guidelines, and future prospects

Improvements are needed for bacterial labeling with CDs, especially in balancing the mechanism of selectivity and antibacterial effect. The zeta potential and types of functional groups on the CDs are important for Gram and live/dead differentiation of bacteria. For example, positive zeta potential is suitable for selective labeling of Gram-positive bacteria due to electrostatic interaction. However, a high positive charge could lead to an antibacterial effect by disrupting membrane function and will be problematic for live imaging or tracking division. Conversely, a very low zeta potential close to zero could result in poor interaction with bacteria. In addition to charge, the amount of amino functional groups on the CDs facilitates attachment with the peptidoglycans of bacteria. Therefore, CDs having mild positive charges below the toxicity threshold and having sufficient amino groups would be suitable for Gram staining. Even CDs with net negative charge and plenty of amino groups can stain Gram-positive bacteria, due to the interaction between amino groups and teichoic acid. Therefore, it can be concluded that the presence of amino groups on the CDs is important for Gram staining and live imaging, and the zeta potential is less significant [31]. Future research on the bacteria labeling with CDs having a net negative charge and containing amino functional groups must include quantification of the amino groups. For a better understanding of the influence of zeta potential, functional groups, types of CDs, and carbon source for CD synthesis on the bacterial labeling mechanism, summarized information is provided in Table 1.

Table 1 Types of precursors used for the synthesis of CDs, zeta potential of the CDs, surface functional groups, Gram identification, live/dead differentiation, and mechanism of labeling

Some negatively charged CDs (N- and F-co-doped CDs) can be used for Gram differentiation due to their difference in duration for staining [45]. They do not exert antibacterial activity via electrostatic interaction; however, they downregulate certain important genes involved in cell division and survival, causing antibacterial effects. Hence, all CDs used for bacterial labeling in future research must be investigated for various antibacterial mechanisms, even though they possess a net negative charge. CDs with negative zeta potential and plenty of carboxyl groups have been reported as suitable staining agents for Gram-negative bacteria. CDs with a high negative zeta potential in the order of > −40 mV will experience a repulsion from the negative charge from the live bacteria, and can stain only dead bacteria, which is utilized as a differentiation mechanism for live/dead assay.

Although charge is important for bacterial labeling, future research should also focus on quantifying cationic and hydrophobic functional groups present on the CDs to better predict bioimaging efficiency and mechanisms. CDs for biofilm imaging have been rarely reported, although there are some reports on cationic and hydrophilic CDs. Highly penetrating CDs may disrupt the biofilm in a concentration-dependent manner; therefore, maintaining a low concentration of CDs is essential in biofilm imaging. More in-depth studies are needed in this regard to develop CDs for biofilm imaging. Some reports indicate that CDs can stain both Gram-positive and Gram-negative bacteria; however, the underlying mechanism remains unestablished [68]. It is advisable to conduct a thorough investigation in all research related to bacterial labeling with CDs to understand the exact mechanism by which such CDs can stain both strains.

Conclusions

Fluorescent CDs have promising potential for bacterial labeling, including quantification by fluorescence measurement or by microscopy analysis. Bacterial labeling with CDs still needs further advancement compared to the bioimaging of cells, organelles, and tissues with fluorescent CDs. Owing to their multi-color emission properties, CDs have a high potential for the biolabeling of bacteria. The main limitation of CDs for bacterial labeling is that the selectivity mechanism is by tuning surface charge and functional groups, which often gives contradictory results due to the imbalance in the charge and functional groups. CDs with mild positive charge or a net negative charge and having cationic amino groups have been reported to be suitable for bioimaging of live Gram-positive bacteria. In addition to charge, the presence of functional groups, such as amino, benzopyrrole, hydrocarbon chain, and hydroxyl, is important to specifically bind to the corresponding sites in the bacterial cell membrane. Therefore, quantification of functional groups on the CDs is essential for all future studies. CDs with antibacterial properties have been observed to label bacteria easily, due to strong interaction and internalization. However, such antibacterial CDs cannot be used for live bacteria imaging and bacterial viability assessment, as they kill the bacteria and label the dead bacteria. CDs having the capacity to label either live or dead bacteria selectively can be employed for bacterial viability assessment. Some reports do not provide the zeta potential values of CDs or the mechanism of interaction between CDs and bacteria, which leaves the reader with incomplete information. Therefore, precursor for CD synthesis, type of CDs, their zeta potential values, surface functional groups and quantity, size, toxicity toward bacteria, and a thorough investigation of the mechanism of labeling must be included in all future work.