TB ‐ BasilNet : Weakly Supervised Segmentation of Tuberculosis Bacilli in Ziehl–Neelsen Sputum Smear Microscopy
Cuneyt Ozdemir, Özlem Genç, Serpil Genç, Mehmet Ali Gedik
Key points
From the paper's conclusion- We present TB‐BasilNet , a U‐Net‐based encoder–decoder that adds three lightweight, rod‐specific components—an oriented‐line stem, orientation‐aware convolutions in the high‐resolution encoder stages, and a full‐resolution branch—at a cost of only 1.3% additional parameters, and trained from expert bounding‐box annotations converted into pseudo‐masks by stain‐aware region‐of‐interest extraction.
Abstract
Automated segmentation of Mycobacterium tuberculosis bacilli in Ziehl–Neelsen (ZN)‐stained sputum smear images remains challenging because bacilli are extremely small, sparse, and easily confused with staining artefacts. While prior studies report competitive classification and detection results, fewer provide a segmentation‐focused analysis under realistic weak supervision, and fewer still evaluate on slides that were never seen during training. We present TB‐BasilNet , a U‐Net‐based encoder–decoder that adds three lightweight, rod‐specific components—an oriented‐line stem, orientation‐aware convolutions in the high‐resolution encoder stages, and a full‐resolution branch—at a cost of only 1.3% additional parameters, and trained from expert bounding‐box annotations converted into pseudo‐masks by stain‐aware region‐of‐interest extraction. Models were evaluated on a single‐centre dataset of 1512 images from 28 smears under a slide‐level five‐fold cross‐validation protocol with three training seeds, native‐resolution patch training and sliding‐window inference, so that every reported score reflects performance on unseen slides. TB‐BasilNet achieved the highest mean Dice among the compared architectures (0.704 versus 0.696 for U‐Net) and exceeded U‐Net in every fold, with the highest pixel‐level recall (0.736) and bacillus‐level detection recall (0.833), and with a decision threshold that degrades more gracefully than the baselines. A component study shows that global‐context and attention modules, which are common in elaborate segmentation designs, reduce performance for thin sparse targets, whereas the proposed additions improve it. Inter‐slide variation (per‐slide Dice 0.40–0.87), stain precipitate and the box‐derived super‐vision are identified as the principal remaining constraints, indicating that slide‐level validation, annotation fidelity and morphology preservation matter more than architectural complexity in ZN bacillus segmentation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A novel Ziehl-Neelsen sputum smear image database and deep learning strategy for automated detection of tuberculosis bacilli.Computers in biology and medicine · 2026
- Efficient and accurate tuberculosis diagnosis: Attention Residual U-Net and vision transformer based detection framework.Journal of microbiological methods · 2026
- Validation of an AI-Driven Sputum Analysis Platform for Accurate and Reliable Tuberculosis Detection in South-Western Uganda.Medical devices (Auckland, N.Z.) · 2026
- BactSegNet: A Growth-Stage-Aware, Searched Instance-Segmentation Model for Salmonella and Escherichia coli Microcolonies in Pure-Culture Bright-Field Microscopy with a Food-Matrix Surrogate.Journal of imaging · 2026
- Deep learning-based spatial immunoprofiling of multiplex immunofluorescence images distinguishes tuberculosis disease states in diversity outbred mice.PloS one · 2026
- MaxViT-Backbone Mask R-CNN for Bacterial Cell Detection and Instance Segmentation: Toward Antimicrobial Resistance AnalysisElectronics · 2026