Medical devices
Validation of an AI-Driven Sputum Analysis Platform for Accurate and Reliable Tuberculosis Detection in South-Western Uganda
By Tumwesigye H, Atwine D, Atwine R and 7 others.
Abstract
Background
Ziehl-Neelsen (ZN) sputum smear microscopy remains an accessible method for detecting acid-fast bacilli (AFB), but its interpretation is dependent on specimen quality and trained microscopy personnel. Artificial intelligence (AI) may provide a microscopy reading aid that supports consistent identification of AFB-positive and AFB-negative smear images.
Objective
To evaluate transfer-learning deep learning models for classification of AFB-positive and AFB-negative digitized ZN-stained sputum smear images generated in a Ugandan regional referral laboratory.
Methods
A retrospective laboratory-based cross-sectional study used 512 archived digitized ZN-stained sputum smear images from Mbarara Regional Referral Hospital. The dataset contained 256 AFB-positive and 256 AFB-negative images and was partitioned by stratified sampling into training (n=358), validation (n=77), and an internal hold-out test set (n=77). ResNet-50 V2, DenseNet-121, and Swin Transformer-Tiny models were trained using ImageNet-pretrained weights in PyTorch. Performance was assessed using sensitivity, specificity, accuracy, positive predictive value (PPV), negative predictive value (NPV), F1-score, and ROC-AUC.



