Expand this Topic clickable element to expand a topic
Skip to content
Optica Publishing Group

Classification of two species of Gram-positive bacteria through hyperspectral microscopy coupled with machine learning

Open Access Open Access

Abstract

Gram stain is one of the most common techniques used to visualize bacteria under microscopy and classify bacteria into two large groups (Gram-positive and Gram-negative). However, such an inaccurate classification is unfavorable for bacterial research. For instance, soil-rhizosphere bacteria, Bacillus megaterium (B. megaterium) and Bacillus cereus (B. cereus) have different effects on plants, nonetheless, they are both Gram-positive and difficult to be differentiated. Here, we present a method to precisely classify Gram-positive bacteria via hyperspectral microscopy. The pH-value differences in the intracellular environment of various types of bacteria can lead to different ionization of the auxochrome of crystal violet (CV) molecules during the Gram stain process. Consequently, there is a subtle difference in the absorption peak of Gram-stained bacteria. Harnessing hyperspectral microscopy can capture this subtle difference and enable precise classification. Besides the spectral features, the spatial features were also used to improve the quality of bacterial identification. The results show that the classification accuracy of two species of Gram-positive bacteria, B. megaterium and B. cereus, is up to 98.06%. We believe this method can be used for other Gram-positive bacteria and Gram-negative bacteria, realizing a more elaborate classification for Gram-stained bacteria.

© 2021 Optica Publishing Group under the terms of the Optica Open Access Publishing Agreement

1. Introduction

Gram stain is a microbial staining technique that was first devised by Hans Christian Gram in 1884 [1]. This stain method utilizes the principle of electrostatic interaction between dye and microorganism to realize staining and has the advantages of a simple staining procedure and high staining efficiency [2]. Conventional Gram stain involves the following four steps [3]: primary stain, mordant, decolorization, and counterstain. This method of staining differentiates bacteria into two large groups [4]. One group of bacteria forms a strong electrostatic bond with the dye and is stained purple in the primary stain, while another group of bacteria forms a weak electrostatic bond with the dye, thereby dye-losing after decolorization, following which they are stained pink in the counterstain. Those stained purple are Gram-positive bacteria with the pH values ranging from 1.75 to 4.15, while those stained pink are Gram-negative bacteria with the pH values ranging from 2.07 to 3.65 [57]. Therefore, bacteria can be classified as Gram-positive or Gram-negative according to their colors. However, this method is relatively inaccurate and is unfavorable for the subdivision of bacterial species. For instance, both B. megaterium and B. cereus in the soil can be isolated from the roots of plants [8,9]. However, they cannot be classified via Gram stain because these two species of bacteria are Gram-positive and have a similar morphology. Because these two species of bacteria have different effects on plants [1013], we expect that they can be labeled specifically by staining. Considering that Gram stain is currently one of the most common staining techniques for making bacteria visible [14], its effectiveness will be further enhanced if bacteria can be classified more precisely through Gram stain.

The pH value of the intracellular environment of bacteria affects the electrostatic interaction, thereby affecting the effect of Gram stain [15]. In fact, the slight difference in pH values causes different ionization of the auxochrome of crystal violet (CV) molecules during the Gram stain process, leading to a slight difference in the staining effect [16]. This difference can be used to realize a more precise classification of Gram-stained bacteria. Considering that this slight staining difference is difficult to observe with naked eye or ordinary color cameras, hyperspectral microscopy has been employed in the present study. Hyperspectral microscopic imaging (HMI) is a non-destructive, non-contact, and advanced detection technology [17] that can simultaneously obtain two-dimensional morphological characteristics and one-dimensional spectral characteristics of target objects and form a three-dimensional hyperspectral data cube [18]. At present, HMI technology has been widely used in the identification and analysis in biologies, such as classification of fungi [19,20], detection of nerve fibers [21], identification of microalgae [22], and location or detection of cancerous tissues/cells [2326]. Because the optical microscope is restricted by the diffraction limit, for small-sized bacteria, the difference between them cannot be observed from the morphology. The HMI technology makes it possible to identify bacteria. In 2013, HMI was used with a k-nearest neighbor (k-NN) classifier to detect and classify non-O157 Shiga toxin–producing Escherichia coli (STEC) serogroups [27]. In 2015, HMI combined with principal component analysis (PCA) was used for the early and rapid identification of Salmonella serotypes [28]. In 2020, HMI coupled with deep learning (DL) frameworks was proposed for the rapid classification of foodborne pathogenic bacteria [29]. In particular, HMI accompanied by a support vector machine (SVM) classifier has already been used for the classification of Gram-stained bacteria [30]. However, they merely used HMI to identify bacteria as Gram-negative or Gram-positive and did not conduct in-depth research on the spectral differences of bacteria that could be either negative or positive.

In this study, we propose a precise classification method for Gram-stained bacteria that can be employed to classify two species of Gram-positive bacteria (B. megaterium and B. cereus). The results show that the transmission spectra of these two species of Gram-stained bacteria are different. By combining the linear discriminant analysis (LDA) algorithm, an accurate classification of these two species of bacteria can be achieved (accuracy 98.06%).

2. System and samples

2.1. Experiment equipment and image acquisition

The HMI system used in this experiment is illustrated in Fig. 1. The core components include a halogen lamp with a temperature-color-balancing daylight filter for 3200 K, an infinity-corrected microscope objective (Nikon, Plan Fluor, 150×, N.A. = 0.90), a liquid-crystal tunable filter (LCTF, CRI Inc., VariSpec VIS, Connecticut City, United States) used for narrow-band filtering with a spectral range of 420–720 nm, a 16-bit complementary metal-oxide-semiconductor (CMOS, ORCA-Flash 4.0 LT C11440-42U, Hamamatsu City, Japan) camera with a pixel size of 6.5µm × 6.5µm, and a color charge-coupled device (CCD, Mshot, MC20-C) camera. When the broadband light from the halogen lamp reaches the bacterial sample, one part of it is absorbed, while the other part that passes through the sample is filtered by the LCTF and is subsequently imaged by the CMOS camera. By scanning the slide samples, a series of single-band 512×512 grayscale images that constitute a hyperspectral data cube are obtained. The inset illustrates the three-dimensional information of the sample.

 figure: Fig. 1.

Fig. 1. Hyperspectral microscopic imaging system and hyperspectral data cube. Inset illustrates the acquisition of spatial and spectral information.

Download Full Size | PDF

2.2 Experimental samples

The bacterial suspension was provided by the Beijing Beina Chuanglian Biotechnology Institute. The sample preparation steps are as follows. A liquid tube containing 5–10 mL of liquid medium (nutrient broth) was prepared, and 0.5 mL of liquid medium was poured into a lyophilized tube containing bacteria. After approximately 1 min, the liquid medium was completely mixed with the lyophilized powder, and subsequently they were added into the liquid tube and mixed evenly. The bacteria were thereafter cultivated for 3 days in a water-bath thermostatic oscillator at 37 °C (140r/min). Finally, the bacteria were inactivated for 15 min in a high-temperature pressure cooker at 121 °C and 0.25 MPa.

After inactivation, the samples were sent to BersinBio Technology Co., Ltd for Gram staining. First, for the pure sample, the bacteria were directly heat-fixed on slides, while for the mixed samples, two species of pure bacteria were dissolved in 1 mL of phosphate buffer saline (PBS) solution individually; thereafter, 0.5 mL of each were mixed and the mixed bacteria were eventually heat-fixed on slides. Second, we visually selected slides with a low density of bacteria to avoid the influence of the bacterial overlap. For example, the density of bacteria (more than 1000 bacteria in the field of view) on the slide shown in Fig. 2(a) is extremely high for our study, while the density of bacteria (less than 1000 bacteria in the field of view) on the slides shown in Fig. 2(b) and Fig. 2(c) is moderate and appropriate for our study. Finally, all the selected slides were stained by the classical Gram stain method: primary stain with CV solution for 1 min, mordant with iodine-potassium iodide solution for 1 min, decoloring with 95% alcohol for 25 s, counterstain with safranin solution for 1 min, and finally sealing the piece with neutral gum. In this experiment, we prepared 10 slides of B. megaterium, 10 slides of B. cereus, and 10 slides of the bacterial mixture. Because the samples were all Gram-positive bacteria, they were stained purple.

 figure: Fig. 2.

Fig. 2. The microscopic images of unstained and Gram-stained bacteria. (a) and (d) are B. megaterium, while (b) and (e) are B. cereus. (c) and (f) are the mixtures of B. megaterium and B. cereus. (d)–(f) are taken by the color CCD camera.

Download Full Size | PDF

3. Method and results

3.1. Transmission spectra acquisition and analysis

To investigate the staining differences between these two species of bacteria, we obtained the transmission spectra of these samples via hyperspectral microscopy. The scanning spectral range, scanning step size, and exposure time were set at 420–720 nm, 2 nm, and 60 ms, respectively. Figure 3(a) shows the intensity information of the spectra, and the inset is a grayscale image illustrating the target points (bacteria) and background point. The transmittance of a target point in the field of view (FOV) at a certain wavelength is defined by Eq. (1).

$$T(\lambda )= \frac{{I{{(\lambda )}_{bacteria}}}}{{I{{(\lambda )}_{background}}}}$$
where T(λ) represents the transmittance of a target point, and λ represents a certain wavelength. The intensities of the target and background points are represented by I(λ)bacteria and I(λ)background, respectively. The transmission spectrum for the target point was obtained by calculating the transmittance for each wavelength. For example, we acquired the transmission spectra of two target points (P1 and P2 in Fig. 3(a)), as shown in Fig. 3(b).

 figure: Fig. 3.

Fig. 3. Acquisition and processing of spectra. (a) is the intensity spectrum of samples. Inset is a grayscale image showing the target points (for example, P1 and P2) and background point (for example, Background). (b) is the transmission spectrum of the target points.

Download Full Size | PDF

The average transmission spectra of these two species of bacteria based on 680 groups of spectral data (340 groups from each species) are shown in Fig. 4. One can see that there is a slight difference in the absorption peaks between B. megaterium and B. cereus. Specifically, the absorption peak of B. megaterium is 592 nm and that of B. cereus is 638 nm.

 figure: Fig. 4.

Fig. 4. Average spectra of B. megaterium and B. cereus. The error bars on the spectra represent the transmittance difference between the different target points at the same wavelength. The inset is a schematic illustrating the chemical structure of CV.

Download Full Size | PDF

Because they are Gram-positive bacteria, their staining color is dependent on the primary stain. In this step, the samples were stained with C25H30ClN3 (CV) solution. The CV solution was an alkaline stain. The inset in Fig. 4 shows a schematic of the chemical structure of CV. Triphenylmethane is a chromophore in CV, with an absorption peak at approximately 584 nm [31], based on the principle of complementary color light, triphenylmethane is purple, resulting in the purple staining of bacteria. -N(CH3)2 is an auxochrome in the CV that ionizes in water, generating a positive charge and can electrostatically combine with negatively charged substances (peptidoglycans) in the cell wall. This electrostatic binding between the dye and sample is affected by the pH of the intracellular environment. When the pH value is different, the strength of electrostatic binding is also different, therefore the staining effect of the sample is also different. According to the literature, the pH values of B. megaterium and B. cereus are 1.80 and 3.0, respectively [7]. Consequently, the difference in pH values between them leads to different ionization of the auxochromes that combine with bacteria. The pH of B. megaterium is relatively low, leading to the ionization effect of auxochromes obviously, and it has a stronger electrostatic interaction between B. megaterium and CV. This makes B. megaterium retain more CV after decolorization, and consequently, the red shift of the spectral absorption peak is more obvious. As a result, there was a slight difference in the color of the two species of bacteria after the process of primary stain.

Moreover, we investigated the staining of each spot in a bacterium. Figure 5 shows the spectra of all pixels in a bacterium. It is observed that the spectrum of each spot in a certain bacterium maintains a consistent trend and the position of the absorption peak is stable. The high stability of the spectra enables the improvement of the identification accuracy of bacteria. Moreover, it reflects that the pH values of the bacteria are relatively uniform and stable.

 figure: Fig. 5.

Fig. 5. Spectral information of several bacteria. (a1) shows the spectra of all pixels in a B. megaterium corresponding to the bacterium in the red box in (a2). (b1)–(d1) are also the spectra of the other three samples of B. megaterium corresponding to the bacteria in the red box in (b2), (c2) and (d2) respectively. (e1) shows the spectra of all pixels in a B. cereus corresponding to the bacterium in the red box in (e2). (f1)–(h1) are also the spectra of the other three B. cereus corresponding to the bacteria in the red box in (f2), (g2) and (h2) respectively.

Download Full Size | PDF

3.2. Training and testing of the classification prediction model

Machine learning (ML) has been widely used to identify bacteria alongside HMI technology. Therefore, we also utilized ML to identify B. megaterium and B. cereus in our study and further compared and optimized several classification models of ML, such as the decision tree (DT), linear discriminant analysis (LDA), quadratic discriminant analysis (QDA), support vector machine (SVM), naive Bayes (NB), and k-nearest neighbor (k-NN). We obtained two hyperspectral cubes from each pure sample slide, and they were used to extract the original data for training and testing. 35 groups of spectra were extracted from each cube. Therefore, a total of 700 groups of spectra for each kind of bacteria were extracted from 20 pure sample slides. The training set was composed of 340 groups of standard spectra of B. megaterium and 340 groups of standard spectra of B. cereus, and we also used this dataset as a validation set to evaluate different machine learning models. The classification accuracy (ACC), sensitivity (SEN) and specificity (SPEC) of the ML models were calculated in this experiment. ACC is an overall evaluation. SEN is a measure of the proportion of positives identified correctly in all positives, and SPEC is a measure of the proportion of negatives identified correctly in all negatives. In this study, the B. megaterium is the positive samples. These parameters are defined by the formula (2)-(4).

$$Accuracy({ACC} )= \frac{{Nture}}{{Ntotal}}\textrm{x}100 {\%}$$
$$Sensitivity {\; }({SEN} )= \frac{{TP}}{{TP + FN}}$$
$$Specificity {\; }({SPEC} )= \frac{{TN}}{{TN + FP}}$$
where Nture represents the number of samples identified to be correct and Ntotal represents the total number of samples. TP and TN present the number of true positives and the number of true negatives, while FN and FP present the number of false negatives and the number of false positives, respectively. Corresponding calculation results of each model are shown in Table 1.

Tables Icon

Table 1. Classification accuracy of the ML models

According to Table 1, the ACC, SEN and SPEC of the LDA model reach 100%. Therefore, we selected the LDA model for the classification. The test set was composed of 360 groups of standard spectra of B. megaterium and 360 groups of standard spectra of B. cereus. Moreover, there was no overlap between the test set and the training set. Based on the LDA model, we obtained the classification results for this set of data, as shown in Table 2.

Tables Icon

Table 2. Classification results obtained using the LDA model based on transmission spectra

Table 2 shows the confusion matrix after cross-testing. Based on the confusion matrix, the sensitivity of B. megaterium and the specificity of B. cereus were calculated to be 99.17%, 96.94%, respectively. Besides, it can be observed that the number of samples identified to be correct is 706, while the number of samples identified to be incorrect is 14, and the total number of both samples is 720. The identification accuracy is up to 98.06%. First, this demonstrates that the spectral characteristics and the difference between the two spectra are stable, owing to the stability of the intracellular pH values of the two species of bacteria. Second, this proves the effectiveness of this method.

3.3 Automatic classification of bacteria

In the identification of the entire image, only the pixels associated with bacteria are needed to be identified. Therefore, we used a binary algorithm to separate target pixels from the background for saving computation and reducing errors. To achieve effective binarization, it was necessary to select an image with a high contrast between the target points and the background. Because the contrast of the spectral image at a wavelength of 628 nm was the highest in all spectral images, it was chosen to be binarized. It was also required to enhance the contrast of the chosen image before binarization. In this study, we selected a minimum gray threshold (Low_In) and a maximum gray threshold (High_In) in the image at 628 nm (Fig. 6(a)). The values between Low_In and High_In were mapped to values between 0 and 1. Values below Low_In and above High_In were clipped. That is, the values below Low_In were mapped to 0 and those above High_In were mapped to 1. Through this method, a contrast-enhanced image was obtained, as shown in Fig. 6(b).

 figure: Fig. 6.

Fig. 6. Process of contrast enhancement of image. (a) is an original image at 628 nm and (b) is a contrast-enhanced image.

Download Full Size | PDF

After enhancing the image contrast, the image segmentation method was employed for binarization. The entire image (Fig. 7(a)) was divided into 8 × 8 tiny squares, and Fig. 7(b) shows four of them. The adaptive threshold of each small square was obtained from the gray histogram, as shown in the middle row of Fig. 7(c). This threshold was applied to the binarization of the corresponding small square. If the gray values of the points were lower than this threshold, they were labeled as 1 (targets). If the gray values of the points were higher than this threshold, they were labeled as 0 (background). A binary image is presented in Fig. 7(d). In the classification process, the points labeled as 0 were directly defined as the background, therefore it was not necessary to identify them employing the LDA model.

 figure: Fig. 7.

Fig. 7. The process of module binarization. (a) is a contrast-enhanced image for image segmentation. (b) are the 4 small images divided from (a). (c) shows each small image and the corresponding gray histogram, and the threshold is obtained from the gray histogram to binarize the image. (d) is a binary image after image segmentation.

Download Full Size | PDF

Further, we introduced the connected-domain algorithm to mark each bacterium as a connected domain. The LDA model was employed to identify all pixels in each connected domain; if more than half of all target pixels in a certain connected domain was identified as a certain species, then this connected domain (corresponding cell) was identified as this species of bacteria. Figure 8 shows the identification process of the mixed samples of the two bacterial species. The classification results based on the transmission spectra are shown in Fig. 8(d), where B. megaterium and B. cereus are labeled in red and green, respectively.

 figure: Fig. 8.

Fig. 8. The process of automatic identification of mixed bacteria in FOV. (a) is an original image at 628 nm. (b) is an image of contrast-enhanced. (c) is a binary image. (d) is a pseudo-color image after classification. B. megaterium and B. cereus are labeled in red and green, respectively.

Download Full Size | PDF

Figure 9(a)–(d) shows the entire image identification effect of the mixed sample in other FOVs. Since both of them are Gram-positive bacteria, it is difficult to distinguish these two kinds of bacteria by conventional microscope and the naked eye. However, the pseudo-color image based on the identification of spectra of them can help us to distinguish these two kinds of bacteria intuitively in the field of view. In addition, to observe the identification effect of the image more intuitively, the slides with only pure species of bacteria were identified, as shown in Fig. 9(e)–(i). One can see that the identification results can be displayed intuitively on the pseudo-color images; the distribution of bacteria in the images can be observed, and the identification result of pure bacteria is highly accurate. Therefore, the proposed method can accurately identify these two Gram-stained positive bacteria, irrespective of it being pure bacteria or a mixture of bacteria. As long as there is a difference in the pH of the two species of bacteria, even if the difference is subtle, an appropriate identification result can be obtained using the HMI system.

 figure: Fig. 9.

Fig. 9. Automatic identification of pure and mixed bacteria in other FOVs which are independent of training and test set. (a)–(d) are mixed bacteria. B. megaterium is labeled in red, while B. cereus is labeled in green. (e)–(h) are B. megaterium and (i)–(l) are B. cereus.

Download Full Size | PDF

4. Conclusion

In this study, HMI technology is first used to classify Gram-stained B. megaterium and B. cereus. Although they are both Gram-positive and morphologically similar, a slight difference in the transmission spectrum between them can still be observed. This is because of the difference in acidity and alkalinity of these two species of bacteria that results in a different structure of CV after ionization, causing a color (transmission spectra) difference between them. Based on this, an HMI system that can simultaneously obtain spectral information and spatial information of a sample can be used to identify the two species of bacteria. Combined with the LDA algorithm, the identification accuracy is as high as 98.06%. Moreover, the spatial features were also used to enhance the quality of the identification of the entire image and enable the visualization of the identification results in the field of views. We believe that this method can classify various kinds of Gram-stained bacteria precisely, especially using hyperspectral images with a wide spectral range from visible to near-infrared. It expands the function of Gram-stain and provides a novel approach for the species-identification or subspecies-identification of bacteria.

Funding

National Natural Science Foundation of China (61935010, 61975069); Guangzhou Science and Technology Project (201903010042, 201904010294); Guangdong Project of Science and Technology Grants (2018B030323017); Key-Area Research and Development Program of Guangdong Province (2020B090922006).

Disclosures

The authors declare no conflicts of interest.

Data availability

Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.

References

1. H. C. Gram, “Über die isolierte Färbung der Schizomyceten in Schnitt-und Trockenpräparaten,” Fortschr. Med. 2, 185–189 (1884).

2. A. C. Smith and M. A. Hussey, “Gram stain protocols,” As. Med. 1, 14 (2005).

3. J. W. Bartholomew and T. Mittwer, “The Gram stain,” Bacteriol. Rev. 16(1), 1–29 (1952). [CrossRef]  

4. M. J. Wilhelm, J. B. Sheffield, M. Sharifian Gh, Y. Wu, C. Spahr, G. Gonella, B. Xu, and H. L. Dai, “Gram’s stain does not cross the bacterial cytoplasmic membrane,” ACS Chem. Biol. 10(7), 1711–1717 (2015). [CrossRef]  

5. T. J. Beveridge, “Use of the Gram stain in microbiology,” Biotech. Histochem. 76(3), 111–118 (2001). [CrossRef]  

6. R. B. Moyes, J. Reynolds, and D. P. Breakwell, “Differential staining of bacteria: Gram stain,” Curr. Protoc. Microbiol. 15(1), 8 (2009). [CrossRef]  

7. V. P. Harden and J. O. Harris, “The isoelectric point of bacterial cells,” J. Bacteriol. 65(2), 198–202 (1953). [CrossRef]  

8. S. Kulpreecha, A. Boonruangthavorn, B. Meksiriporn, and N. Thongchul, “Inexpensive fed-batch cultivation for high poly (3-hydroxybutyrate) production by a new isolate of Bacillus megaterium,” J. Biosci. Bioeng. 107(3), 240–245 (2009). [CrossRef]  

9. L. B. Jensen, S. Baloda, M. Boye, and F. M. Aarestrup, “Antimicrobial resistance among Pseudomonas spp and the Bacillus cereus group isolated from Danish agricultural soil,” Environ. Int. 26(7-8), 581–587 (2001). [CrossRef]  

10. L. Martín, M. A. Prieto, E. Cortés, and J. L. García, “Cloning and sequencing of the pac gene encoding the penicillin G acylase of Bacillus megaterium ATCC 14945,” FEMS Microbiol. Lett. 125(2-3), 287–292 (1995). [CrossRef]  

11. R. Ortíz-Castro, E. Valencia-Cantero, and J. López-Bucio, “Plant growth promotion by Bacillus megaterium involves cytokinin signaling,” Plant Signaling Behav. 3(4), 263–265 (2008). [CrossRef]  

12. M. H. Guinebretière, V. Broussolle, and C. Nguyen-The, “Enterotoxigenic profiles of food-poisoning and food-borne Bacillus cereus strains,” J. Clin. Microbiol. 40(8), 3053–3056 (2002). [CrossRef]  

13. J. L. Schoeni and A. C. Wong, “Bacillus cereus food poisoning and its toxins,” J. Food Prot. 68(3), 636–648 (2005). [CrossRef]  

14. R. Coico, “Gram staining,” Curr. Protoc. Microbiol.1, A. 3C. 1–A. 3C. 2 (2005).

15. E. Adams, “The antibacterial action of crystal violet,” J. Pharm. Pharmacol. 19(12), 821–826 (2011). [CrossRef]  

16. A. Saeed, M. Sharif, and M. Iqbal, “Application potential of grapefruit peel as dye sorbent: kinetics, equilibrium and mechanism of crystal violet adsorption,” J. Hazard. Mater. 179(1-3), 564–572 (2010). [CrossRef]  

17. L. C. Cancio, A. I. Batchinsky, J. R. Mansfield, S. Panasyuk, K. Hetz, D. Martini, B. S. Jordan, B. Tracey, and J. E. Freeman, “Hyperspectral imaging: a new approach to the diagnosis of hemorrhagic shock,” J. Trauma 60(5), 1087–1095 (2006). [CrossRef]  

18. G. Lu and B. Fei, “Medical hyperspectral imaging: a review,” J. Biomed. Opt. 19(1), 010901 (2014). [CrossRef]  

19. Y. Lu, W. Wang, M. Huang, X. Ni, X. Chu, and C. Li, “Evaluation and classification of five cereal fungi on culture medium using Visible/Near-Infrared (Vis/NIR) hyperspectral imaging,” Infrared Phys. Technol. 105, 103206 (2020). [CrossRef]  

20. H. Yao, Z. Hruska, R. Kincaid, R. L. Brown, D. Bhatnagar, and T. E. Cleveland, “Detecting maize inoculated with toxigenic and atoxigenic fungal strains with fluorescence hyperspectral imagery,” Biosyst. Eng. 115(2), 125–135 (2013). [CrossRef]  

21. Q. Li, Y. Wang, H. Liu, and Z. Chen, “Nerve fibers identification based on molecular hyperspectral imaging technology,” IEEE Int. Conf. Comp. Sci. Auto. Eng. (CSAE)3, 15–17 (2012).

22. Y. N. Shao, J. Pan, L. L. Jiang, and Y. He, “Microalgae species identification study with Raman microspectroscopy technology,” Spectrosc. Spectral Anal. 35(7), 1908–1911 (2015).

23. S. Ortega, M. Halicek, H. Fabelo, R. Guerra, C. Lopez, M. Lejeune, F. Godtliebsen, G. M. Callico, and B. Fei, “Hyperspectral imaging and deep learning for the detection of breast cancer cells in digitized histological images,” Medical Imaging 2020: Digital Pathology. International Society for Optics and Photonics 11320, 30 (2020). [CrossRef]  

24. A. M. Siddiqi, H. Li, F. Faruque, W. Williams, K. Lai, M. Hughson, S. Bigler, J. Beach, and W. Johnson, “Use of hyperspectral imaging to distinguish normal, precancerous, and cancerous cells,” Cancer 114(1), 13–21 (2008). [CrossRef]  

25. S. Kiyotoki, J. Nishikawa, T. Okamoto, K. Hamabe, M. Saito, A. Goto, Y. Fujita, Y. Hamamoto, Y. Takeuchi, S. Satori, and I. Sakaida, “New method for detection of gastric cancer by hyperspectral imaging: a pilot study,” J. Biomed. Opt. 18(2), 026010 (2013). [CrossRef]  

26. J. W. Uhr, M. L. Huebschman, E. P. Frenkel, N. L. Lane, R. Ashfaq, H. Liu, D. R. Rana, L. Cheng, A. T. Lin, G. A. Hughes, X. J. Zhang, and H. R. Garner, “Molecular profiling of individual tumor cells by hyperspectral microscopic imaging,” Transl. Res. 159(5), 366–375 (2012). [CrossRef]  

27. W. R. Windham, S. C. Yoon, S. R. Ladely, J. A. Haley, J. W. Heitschmidt, K. C. Lawrence, B. Park, N. Narrang, and W. C. Cray, “Detection by hyperspectral imaging of Shiga toxin–producing Escherichia coli serogroups O26, O45, O103, O111, O121, and O145 on Rainbow agar,” J. Food Prot. 76(7), 1129–1136 (2013). [CrossRef]  

28. M. Eady, B. Park, and S. Choi, “Rapid and early detection of Salmonella serotypes with hyperspectral microscopy and multivariate data analysis,” J. Food Prot. 78(4), 668–674 (2015). [CrossRef]  

29. R. Kang, B. Park, M. Eady, Q. Ouyang, and K. Chen, “Single-cell classification of foodborne pathogens using hyperspectral microscope imaging coupled with deep learning frameworks,” Sens. Actuators, B 309, 127789 (2020). [CrossRef]  

30. B. Park, Y. Seo, S. C. Yoon Jr, A. Hinton, W. R. Windham, and K. C. Lawrence, “Hyperspectral microscope imaging methods to classify gram-positive and gram-negative foodborne pathogenic bacteria,” Trans. ASABE 58(1), 5–16 (2015). [CrossRef]  

31. R. Ahmad, “Studies on adsorption of crystal violet dye from aqueous solution onto coniferous pinus bark powder (CPBP),” J. Hazard. Mater. 171(1-3), 767–773 (2009). [CrossRef]  

Data availability

Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.

Cited By

Optica participates in Crossref's Cited-By Linking service. Citing articles from Optica Publishing Group journals and other participating publishers are listed here.

Alert me when this article is cited.


Figures (9)

Fig. 1.
Fig. 1. Hyperspectral microscopic imaging system and hyperspectral data cube. Inset illustrates the acquisition of spatial and spectral information.
Fig. 2.
Fig. 2. The microscopic images of unstained and Gram-stained bacteria. (a) and (d) are B. megaterium, while (b) and (e) are B. cereus. (c) and (f) are the mixtures of B. megaterium and B. cereus. (d)–(f) are taken by the color CCD camera.
Fig. 3.
Fig. 3. Acquisition and processing of spectra. (a) is the intensity spectrum of samples. Inset is a grayscale image showing the target points (for example, P1 and P2) and background point (for example, Background). (b) is the transmission spectrum of the target points.
Fig. 4.
Fig. 4. Average spectra of B. megaterium and B. cereus. The error bars on the spectra represent the transmittance difference between the different target points at the same wavelength. The inset is a schematic illustrating the chemical structure of CV.
Fig. 5.
Fig. 5. Spectral information of several bacteria. (a1) shows the spectra of all pixels in a B. megaterium corresponding to the bacterium in the red box in (a2). (b1)–(d1) are also the spectra of the other three samples of B. megaterium corresponding to the bacteria in the red box in (b2), (c2) and (d2) respectively. (e1) shows the spectra of all pixels in a B. cereus corresponding to the bacterium in the red box in (e2). (f1)–(h1) are also the spectra of the other three B. cereus corresponding to the bacteria in the red box in (f2), (g2) and (h2) respectively.
Fig. 6.
Fig. 6. Process of contrast enhancement of image. (a) is an original image at 628 nm and (b) is a contrast-enhanced image.
Fig. 7.
Fig. 7. The process of module binarization. (a) is a contrast-enhanced image for image segmentation. (b) are the 4 small images divided from (a). (c) shows each small image and the corresponding gray histogram, and the threshold is obtained from the gray histogram to binarize the image. (d) is a binary image after image segmentation.
Fig. 8.
Fig. 8. The process of automatic identification of mixed bacteria in FOV. (a) is an original image at 628 nm. (b) is an image of contrast-enhanced. (c) is a binary image. (d) is a pseudo-color image after classification. B. megaterium and B. cereus are labeled in red and green, respectively.
Fig. 9.
Fig. 9. Automatic identification of pure and mixed bacteria in other FOVs which are independent of training and test set. (a)–(d) are mixed bacteria. B. megaterium is labeled in red, while B. cereus is labeled in green. (e)–(h) are B. megaterium and (i)–(l) are B. cereus.

Tables (2)

Tables Icon

Table 1. Classification accuracy of the ML models

Tables Icon

Table 2. Classification results obtained using the LDA model based on transmission spectra

Equations (4)

Equations on this page are rendered with MathJax. Learn more.

T ( λ ) = I ( λ ) b a c t e r i a I ( λ ) b a c k g r o u n d
A c c u r a c y ( A C C ) = N t u r e N t o t a l x 100 %
S e n s i t i v i t y ( S E N ) = T P T P + F N
S p e c i f i c i t y ( S P E C ) = T N T N + F P
Select as filters


Select Topics Cancel
© Copyright 2024 | Optica Publishing Group. All rights reserved, including rights for text and data mining and training of artificial technologies or similar technologies.