Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Filter by Categories
Case Report
Case Series
Editorial
Educational Forum
Erratum
Letter to the Editor
Messages
Narrative Review
Original Article
Perspective
Review Article
Short Communications
Special Invited Article
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Filter by Categories
Case Report
Case Series
Editorial
Educational Forum
Erratum
Letter to the Editor
Messages
Narrative Review
Original Article
Perspective
Review Article
Short Communications
Special Invited Article
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Filter by Categories
Case Report
Case Series
Editorial
Educational Forum
Erratum
Letter to the Editor
Messages
Narrative Review
Original Article
Perspective
Review Article
Short Communications
Special Invited Article
View/Download PDF

Translate this page into:

Review Article
ARTICLE IN PRESS
doi:
10.25259/AUJMSR_64_2025

Acid-fastness in microbiology: The versatility of Ziehl–Neelsen staining technique, its modifications, and integration of artificial intelligence – A brief review

Centre for Interdisciplinary and Biomedical Research, Adesh University, Bathinda, Punjab, India.
Department of Microbiology, Adesh Institute of Medical Sciences & Research, Bathinda, Punjab, India.
Author image
Corresponding author: Ansar Ahmad Paray, Centre for Interdisciplinary and Biomedical Research, Adesh University, Bathinda, Punjab, India. mltansarparay@gmail.com
Licence
This is an open-access article distributed under the terms of the Creative Commons Attribution-Non Commercial-Share Alike 4.0 License, which allows others to remix, transform, and build upon the work non-commercially, as long as the author is credited and the new creations are licensed under the identical terms.

How to cite this article: Paray AA, Chandra M, Kaur A, Singh M. Acid-fastness in microbiology: The versatility of Ziehl–Neelsen staining technique, its modifications, and integration of artificial intelligence – A brief review. Adesh Univ J Med Sci Res. doi: 10.25259/AUJMSR_64_2025

Abstract

The Ziehl–Neelsen (ZN) staining technique, first developed in the late 19th century, remains a cornerstone in microbiological identification of acid–fast bacilli (AFB). This review explores the historical development, principle, and procedure of the ZN staining method and also highlights its role in diagnosing tuberculosis (TB) and related infections. In addition to standard (hot) ZN staining, numerous modifications have been introduced to accommodate diverse clinical specimens and organisms. The review also discusses alternative techniques such as auramine fluorochrome staining and their comparative advantages. A significant recent advancement is the integration of artificial intelligence (AI) into AFB detection workflows, offering improved accuracy, reduced workload, and faster diagnostics through automated image analysis. Studies demonstrate high sensitivity and specificity of AI-based tools in identifying AFB in ZN-stained slides, suggesting strong potential for implementation in resource-limited settings. As global health efforts intensify against TB and related diseases, the ZN staining method, accompanied by digital innovation, continues to evolve as a pivotal diagnostic tool.

Keywords

Acid–fast staining
Artificial intelligence
Tuberculosis
Ziehl–Neelsen staining

INTRODUCTION

In the year 1882, Mycobacterium tuberculosis, an etiological agent of tuberculosis (TB), was described and isolated first time by Robert Koch, and after that, Paul Ehrlich demonstrated the acid–fast (AF) nature of bacilli using aniline dyes. Franz Ziehl in 1890s used phenol a carbolic acid and Friedrich Neelsen used basic fuchsin (carbol fuchsin) as a primary stain, and thus, they modified the method used by Paul Ehrlich and the technique is now known as the Ziehl–Neelsen (ZN) method.[1] ZN staining method is also known as AF staining, known to identify AF structures, especially Mycobacterium as well as Actinomyces spp. Acid fastness is a physical property that gives a bacterium the ability to resist decolorization by acids during staining procedures.[2] As heating of the stain is required in this method, it is also known as the hot method.

AF bacteria have huge amounts of mycolic acid present in their cell wall, because of which they are resistant to stains such as Gram stain. In ZN stain, carbol fuchsin gives each cell a red color, which is then removed by strong acid such as acid alcohol or sulfuric acid (20%). Resistance to decolorization by acid–alcohol (i.e., “acidfastness”) is associated with the mycolic acid–arabinogalactan moieties that constitute the bulk of cell wall materials external to the peptidoglycan layer. The soluble lipids also contribute but do not determine the AF properties of AF cells this indicating that the total lipid content (mainly mycolic acid) of the cell wall is responsible for the AF staining property. The non-AF structures/cells do not have a thick lipid layer or mycolic acid that can retain carbol fuchsin when decolorized . Therefore, when exposed to methylene blue (counterstain), they take it up and appear blue under the microscope, while AF structures retain carbol fuchsin and appear red. AF structures retain carbol fuchsin and look red. [3,4]

MATERIALS AND METHODS

A search was conducted on PubMed and Google Scholar to identify the published scientific literature related to the topic. Titles, abstracts, and keywords were searched using a combination of terms, such as ZN staining, AF staining, and artificial intelligence (AI). The databases were searched from inception to 10 May 2025. The research papers, review articles, and papers related to topic were identified and chosen for this review.

STAINING PROCEDURE

Smear preparation

It is the first step before staining and microscopy and good smears are pivotal for accurate and valid testing. A good quality of smear is usually 3 cm by 2 cm in size; however, its size may also vary based on individual laboratory guidelines. Sputum must be distributed uniformly on the slide by pressing gently, ensuring that the smear is of uniform thickness and is concentrated at the center of the slide. The smeared slides should also be properly heat-fixed before proceeding on to the staining process by passing over flame.[5]

Reagents and/or chemicals required

  1. Carbol fuchsin: It is a mixture of phenol and basic fuchsin (HiMedia). It is used as a primary stain in ZN staining method. Composition of carbol fuchsin is given in Table 1

  2. Sulfuric acid (H2SO4): It is a decolorizing agent used at a concentration of 25%

  3. Methylene blue stain: It is used as counterstain.

Table 1: Composition of reagents and/or chemicals of Ziehl– Neelsen staining (hot method).
Composition Quantity
Carbolfuchsin
  Basic fuchsin 0.3 g
  Ethanol (90-95% v/v) 10 mL
  Phenol (molten) 5 mL
  DW 95 mL
Methylene blue
  Methylene blue chloride 0.3 g
  DW 100 mL

DW: Distilled water

STEPS OF STAINING

  1. Smear is flooded with carbol fuchsin (primary stain) and gently heated until steam rises (do not boil as it may alter the results), for 5–10 min. Allow stain to penetrate. This heating enhances the penetration of the dye inside the bacterial cell (i.e., the ZN method). In this step, make the entire smear take red color. Incorporation of detergent into the dye (i.e., the Kinyoun method) also enhances the penetration of the dye inside AF cells but this method is obsolete now days[3,5,6]

  2. The second step after stain fixation is the washing of smear under gently tap water to remove excess stain

  3. The step third in this procedure is decolorization of the smear with strong acid such as 25% H2SO4. The decolorization is applied on the smear for 2–3 min, or until smear turns light pink. The decolorizer decolorizes all non-AF structures completely, thus leaving only AF structures of red color behind[7]

  4. The smear is again washed in a stream of water

  5. Methylene blue (counterstain) is then applied on the smear for 1 min; this creates visual contrast during microscopy[3,5]

  6. Again, the smear is washed and air dried after which observation is made at 100× oil immersion lens.

Result interpretation

The slide is observed for bright red/pink bacilli or AF structures on a blue background at 100 × oil immersion lens as shown in Figure 1 and the result interpretation is done as per the National Tuberculosis Elimination Program guidelines as shown in Table 2.[7]

Red colour arrows indicating rod-shaped bacilli (red arrows) against a blue background in sputum smear stained using the ZN method. Scale bar = 10 µm; magnification = 4000×. ZN: Ziehl–Neelsen staining (Source: Wikimedia Commons).
Figure 1:
Red colour arrows indicating rod-shaped bacilli (red arrows) against a blue background in sputum smear stained using the ZN method. Scale bar = 10 µm; magnification = 4000×. ZN: Ziehl–Neelsen staining (Source: Wikimedia Commons).
Table 2: Ziehl–Neelsen stain grading system as per the National Tuberculosis Elimination Program, India, used for reporting AFB in sputum smear microscopy
Number of AFB/100 OIF Grading Result
No AFB in 100 OIF NIL Negative
1-9 AFB/100 OIF Scanty Positive, report actual number (e.g., AFB seen: 4/100 fields)
10-99 AFB/100 OIF 1+ Positive
1-10 AFB/field in at least 50 OIF 2+ Positive
>10 AFB/field in at least 20 OIF 3+ Positive

AFB: Acid–fast bacilli, OIF: Oil immersion fields

VARIOUS AF STRUCTURES

Bacteria

  • Genus Mycobacterium: Mycobacterium leprae, Mycobacterium tuberculosis, Mycobacterium smegmatis, Mycobacterium avium complex, Mycobacterium kansasii

  • Genus Nocardia: Nocardia brasiliensis, Nocardia cyriacigeorgica, Nocardia farcinica, and Nocardia nova[5]

  • Other AF structures: Sperm head, endospores of bacteria, Cryptosporidium parvum, Isospora belli, Cyclospora cayetanensis, eggs of Taenia saginata, hydatid cysts, sarcocystis, nuclear inclusion bodies in lead poisoning.[5]

MODIFICATIONS OF ZN STAINING

Standard ZN stain (hot method) is the gold standard method and is used for the observation of highly AF bacteria such as M. tuberculosis, and in this staining method, 1% carbol fuchsin with heating is used as a primary stain, followed by decolorization with 25% H2SO4 or 3% acid-alcohol, and finally counterstained by methylene blue. To view the less AF structures/cells, this standard ZN staining had been modified. The various modified methods are as follows:[3,8,9]

Cold ZN method (Kinyoun method)

The method does not require heating. It is useful in settings where the use of an open flame or heat source is not feasible or safe. The method uses a higher concentration (3%) of carbol fuchsin (basic fuchsin + phenol) to facilitate dye penetration without heating instead of 1% carbol fuchsin used in the standard ZN stain. The composition of Kinyoun’s carbol fuchsin solution is given in Table 3.[6]

Table 3: Kinyoun’s carbol fuchsin solution.
Solution Ingredient Quantity Description
Solution A Basic fuchsin 4 g Mixed solution A and B together and allow to stand for a few days
Ethyl alcohol 20 mL
Solution B Melted phenol 8 g
Distilled water 100

Modified ZN stain for M. leprae

This method is used to detect M. leprae, the causative agent of leprosy, in skin smears or tissue sections.

Unlike M. tuberculosis, M. leprae is often present in lower numbers and is more fragile, requiring gentler staining and decolorization methods. In this method, instead of using 25% H2SO4, it is decolorized with 5% H2SO4 for 1–2 min.[10]

Modified ZN for Nocardia

This method is used to detect partially AF bacteria/cells like Nocardia spp., which possess intermediate-length mycolic acids in their cell walls. These do not retain stain with the standard ZN stain method, so milder decolorization is used. In this method, 1% H2SO4 is used as a decolorizer as compared to the standard method where 25% H2SO4 is used.

Modified ZN stain for stool samples

This method is used to observe coccidian parasites in fecal smears. Cysts of Cryptosporidium, Cyclospara, and Isospora are observed as they have an AF nature. In this, 1% H2SO4 is used as a decolorize as compared to standard method where 25% H2SO4 is used.

ZN staining for bacterial endospores

Bacterial endospores (e.g., Bacillus,Clostridium species) are highly resistant, dormant structures that do not stain well with simple stains or AF stains due to their tough keratin-like spore coat. For endospores, 0.25–0.5% H2SO4 is used as a decolorizing agent.

Gabbet’s staining

The principle of Gabbet’s staining is the same as ZN staining. In this method, carbolfuchsin is used as a primary stain and Gabbet’s methylene blue is used as both decolorizer and a counterstain. Compared with ZN stain, Gabbet’s stain is less time-consuming and simple to use and does not require the heating and decolorizing step; hence, it is also called as “cold staining.”[8,11]

Auramine fluorochrome staining

This method is also used for the detection of AFB such as M. tuberculosis. The staining procedure and staining solutions are given in Table 4.[3]

Table 4: Auramine fluorochrome staining procedure for acid–fast bacilli.
Ingredients Quantity Description and procedure
Phenolic auramine
Solution A Ao auramine O 0.1 g Step 1: Cover a heat-fixed, dried smear with carbol auramine and allow to stain for 15 min. Do not heat or cover with filter paper.
Step 2: After 15 min rinse using water and drain.
95% ethanol 10 mL
Solution B Phenol 3 g
DW 87 mL
Mix solutions A and B and store the stain in a brown bottle
Acid–alcohol
Concentrated HCl 0.5 Step 3: Decolorize with acid–alcohol (2 min) and again rinse using water and drain.
79% alcohol 100 mL
KMnO4
KMnO4 0.5 g Step 4: Flood smear with KMnO4 for at least 2–4 min and then rinse with tap water.
DW 100 mL

Interpretation: Observe the slide using a 25× objective lens with a mercury vapor lamp and a BG-12 filter or a strong blue light source. Mycobacteria will appear as yellow-orange structures contrasted against a dark background. KMnO4: Potassium permanganate, DW: Distilled water

AI IN ZN STAIN

ZN staining remains a cornerstone in the diagnosis of AFB, especially M. tuberculosis and other AF infections. The stain reveals red bacilli against a blue background. Fluorescent methods like auramine staining, which show golden bacilli on a dark background, offer higher sensitivity but are costlier and more complex to use. A major challenge is the microscopic detection of these very small bacilli (2–4 μm long, 0.2–0.5 μm wide), especially in large tissue sections. Exhaustive examination is time-consuming and can lead to fatigue and reduced diagnostic accuracy. Therefore, microbiologists and pathologists usually focus on high-yield areas, such as necrotic zones and granulomas. To reduce the time of examination and chances of error, attempts at automatic detection of mycobacteria represent the logical answer to this problem.[12]

Computer vision and machine learning (i.e., AI) have improved how we detect diseases like TB using microscope slides. These methods can automatically capture and process images, find bacteria, and use models like neural networks to identify them. Deep learning, a type of machine learning, works like the human brain and has helped make big progress since 2010, especially in reading medical images. Old glass slides are now scanned and viewed on computers at very high magnification, making it easier and faster to examine the samples. This digital method improves accuracy and helps microbiologists and pathologists work together better. Traditional ways of checking slides by hand can miss up to half of TB cases and take a long time up to hours per slide. In comparison, machines can scan more slides quickly and detect TB more reliably, reducing mistakes and saving time.[13]

The first method for AI detection of AFB was developed on smears stained with auramine by Veropoulos et al. in 1999.[14] Various studies have been done to evaluate the use of AI in ZN smear. Witarto et al.[15] evaluated an AI-based algorithm for automated detection of M. tuberculosis in ZN-stained sputum smears as a potential screening tool for active TB. Developed for tissue analysis, the algorithm demonstrated high accuracy (98.33%), specificity (100%), and sensitivity (95.65%) in tissue samples. When tested on 1,059 sputum smears, it maintained 100% sensitivity and over 95% accuracy for high-confidence patches (>80%). However, specificity was modest (86.84%) due to smear variability and artifacts (e.g., dust, uneven staining). The absence of false negatives suggests that the algorithm is reliable for TB screening. Further training on sputum samples is planned to enhance specificity.[15] Zurac et al. [12] also conducted a study to develop and validate a novel AI-based system for detecting M. tuberculosis in ZN-stained tissue slides. They created a training dataset of over 260,000 positive and 700 million negative image patches from 510 whole slide images. The model utilized custom computer vision architectures and image augmentation for robust learning. It generated heat maps highlighting areas likely to contain bacilli, aiding the microbiologists and pathologists in diagnosis. Internal validation and clinical testing on 60 slides demonstrated high performance: 98.33% accuracy, 95.65% sensitivity, and 100% specificity. This AI-assisted method outperformed previous approaches and reduced diagnostic workload without compromising accuracy.[12]

Gupta et al. [16] conducted a prospective, multicentric clinical trial to assess the efficacy of an AI-based microscopy system in detecting AFB in ZN-stained sputum smears. The study was performed across three North Indian hospitals, with 400 samples of sputum from patients suspected of pulmonary TB. Each slide was evaluated both by expert microscopists and the AI system. The AI-based method demonstrated a sensitivity of 89.25%, specificity of 92.15%, positive predictive value of 75.45%, negative predictive value of 96.94%, and overall diagnostic accuracy of 91.53%. These findings support the utility of AI as a reliable screening tool, particularly in settings where trained microscopists are unavailable, offering a practical solution for early TB diagnosis in resource-limited regions [Table 5].[16,17]

Table 5: Performance comparison of AI-based tuberculosis detection methods across studies.
Study Sensitivity
(%)
Specificity
(%)
Accuracy
(%)
Witarto et al. (2024)[15] 100 95.65 98.33
Gupta et al. (2023)[16] 89.25 92.15 91.53
Zurac et al. (2022)[12] 95.65 100 98.33
Xiong et al. (2018)[17] 97.94 83.65 NA

DISCUSSION

The ZN staining technique remains a cornerstone in microbiological diagnostics, especially for detecting M. tuberclosisand other AF structures. Over the years, various modifications of the standard ZN method have been developed to enhance its applicability across a wide range of clinical samples. Alternative techniques such as auramine fluorochrome staining provide increased sensitivity, though often at a higher cost and complexity. As diagnostic microbiology continues to evolve, the staining technique is poised for further innovation, especially at the intersection of digital pathology and automation. Future developments are likely to focus on enhancing the standardization and scalability of ZN staining through automated slide preparation and imaging systems, minimizing operator-dependent variability, and improving throughput in high-volume laboratories. The integration of AI into AFB detection represents a transformative step forward. AI-based tools now offer high accuracy, sensitivity, and specificity in screening ZN-stained smears, reducing diagnostic time and error. These AI and machine learning algorithms into routine diagnostics will continue to expand, potentially enabling real-time, cloud-based analysis of ZN-stained smears. With advances in mobile microscopy and telepathology, point-of-care AFB detection may soon become a practical reality, bridging the diagnostic gap in areas lacking skilled personnel or infrastructure. The future of ZN staining, therefore, lies not only in technical refinement but also in strategic integration with digital health platforms and national TB control programs, ensuring that even century-old methods can thrive in the era of precision diagnostics.

CONCLUSION

The Ziehl–Neelsen staining method continues to be a fundamental tool for detecting acid-fast organisms. Ongoing refinements and the integration of digital microscopy and AI are enhancing its accuracy, consistency, and applicability, ensuring its relevance in modern microbiological diagnostics. The AI algorithm demonstrated performance that was equal to or better than that of pathologists and microbiologists with varying expertise, reducing human error from fatigue and improving efficiency by cutting examination time by at least one-third. Future work will involve annotating additional positive whole side imaging for retraining, expanding clinical testing across multiple hospitals, and further refining the model to enhance robustness against diverse ZN staining techniques. Continued research and building larger datasets will help strengthen its diagnostic accuracy and clinical applicability in future.

Ethical approval:

Institutional Review Board approval is not required.

Declaration of patient consent:

Patient’s consent is not required as there are no patients in this study.

Conflicts of interest:

There are no conflicts of interest.

Use of artificial intelligence (AI)-assisted technology for manuscript preparation:

The authors confirm that there was no use of artificial intelligence (AI)-assisted technology for assisting in the writing or editing of the manuscript and no images were manipulated using AI.

Financial support and sponsorship: Nil.

References

  1. , , . Acid-fast staining revisited, a dated but versatile means of diagnosis. Open Microbiol J. 2022;16:1-5.
    [CrossRef] [Google Scholar]
  2. , , . Differential staining of bacteria: Acid fast stain. Curr Protoc Microbiol. 2009;Appendix 3:Appendix 3H.
    [CrossRef] [PubMed] [Google Scholar]
  3. , , , , . Ziehl-Neelsen staining. In: Koneman's color atlas and textbook of diagnostic microbiology (7th ed). Philadelphia, PA: Wolters Kluwer; . p. :541-2912.
    [Google Scholar]
  4. , , . Challenge of ZiehlNeelsen stain for basidiobolomycosis diagnosis in Indonesia: A unique case report. Ann Med Surg (Lond). 2022;74:103278.
    [CrossRef] [PubMed] [Google Scholar]
  5. , , . Acid fast bacteria In: StatPearls. Treasure Island, FL: StatPearls Publishing; . Available from: https://www.ncbi.nlm.nih.gov/books/nbk537121 [Last accessed on 2023 Aug 07]
    [Google Scholar]
  6. , . Acid-fast stain protocols. . American Society for Microbiology. Available from: https://www.asm.org/protocols/acid-fast-stain-protocol [Last accessed on 2025 Jun 13]
    [Google Scholar]
  7. , . Essentials of medical microbiology (2nd ed). New Delhi: Jaypee Brothers Medical Publishers; . p. :16.
    [Google Scholar]
  8. . Ananthanarayan and paniker's textbook of microbiology (12th ed). Hyderabad: University Press; . p. :24-25.
    [Google Scholar]
  9. , . Essentials of medical microbiology (2nd ed). New Delhi: Jaypee Brothers Medical Publishers; . p. :16.
    [Google Scholar]
  10. , , , , , , et al. Modified Ziehl-Neelsen staining for Mycobacterium leprae. J Skin Sex Transm Dis. 2022;5:120-2.
    [CrossRef] [Google Scholar]
  11. , . Comparison of Gabbet's staining, Ziehl-Neelsen staining with fluorescent microscopy for diagnosis of pulmonary tuberculosis: A cross-sectional study. J Clin Sci Res. 2021;10:136-9.
    [CrossRef] [Google Scholar]
  12. , , , , , , et al. A new artificial intelligence-based method for identifying Mycobacterium tuberculosis in Ziehl-Neelsen stain on tissue. Diagnostics (Basel). 2022;12:1484.
    [CrossRef] [PubMed] [Google Scholar]
  13. , , , , , . Machine-learning methods for detecting tuberculosis in Ziehl-Neelsen stained slides: A systematic literature review. Intell Syst Appl. 2024;22:200365.
    [CrossRef] [Google Scholar]
  14. , , , , . Automated identification of tubercle bacilli in sputum. A preliminary investigation. Anal Quant Cytol Histol. 1999;21:277-82.
    [Google Scholar]
  15. , , , , , , et al. AI-based analysis of Ziehl-Neelsen-stained sputum smears for Mycobacterium tuberculosis as a screening method for active tuberculosis. Life (Basel). 2024;14:1418.
    [CrossRef] [PubMed] [Google Scholar]
  16. , , , , , , et al. A prospective observational multicentric clinical trial to evaluate microscopic examination of acid-fast bacilli in sputum by artificial intelligence-based microscopy system. J Investig Med. 2023;71:716-21.
    [CrossRef] [PubMed] [Google Scholar]
  17. , , , , , . Automatic detection of Mycobacterium tuberculosis using artificial intelligence. J Thorac Dis. 2018;10:1936-40.
    [CrossRef] [PubMed] [Google Scholar]
Show Sections