Validation of an AI-Driven Sputum Analysis Platform for Accurate and Reliable Tuberculosis Detection in South-Western Uganda.

IF 1.5 Q4 ENGINEERING, BIOMEDICAL
Medical Devices-Evidence and Research Pub Date : 2026-10-15 eCollection Date: 2026-01-01 DOI:10.2147/MDER.S639007
Habert Tumwesigye, Daniel Atwine, Raymond Atwine, Abraham Birungi, Caroline Birungi, Esther Munguciada, Phionah Nabimanya, Joseph Akandwanaho, Benard Ochama, Yekosani Mitala
{"title":"Validation of an AI-Driven Sputum Analysis Platform for Accurate and Reliable Tuberculosis Detection in South-Western Uganda.","authors":"Habert Tumwesigye, Daniel Atwine, Raymond Atwine, Abraham Birungi, Caroline Birungi, Esther Munguciada, Phionah Nabimanya, Joseph Akandwanaho, Benard Ochama, Yekosani Mitala","doi":"10.2147/MDER.S639007","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>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.</p><p><strong>Objective: </strong>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.</p><p><strong>Methods: </strong>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.</p><p><strong>Results: </strong>On the internal test set, Swin Transformer-Tiny achieved 97.40% accuracy, 97.37% sensitivity, 97.44% specificity, 97.37% PPV, 97.44% NPV, 97.37% F1-score, and ROC-AUC 0.9939. DenseNet-121 achieved 88.31% accuracy, 84.21% sensitivity, 92.31% specificity, and ROC-AUC 0.9730. ResNet-50 V2 achieved 85.71% accuracy, 81.58% sensitivity, 89.74% specificity, and ROC-AUC 0.9555. Wilson 95% confidence intervals were calculated for the threshold-based metrics.</p><p><strong>Conclusion: </strong>The models demonstrated promising internal performance for classification of microscopy-defined AFB status. Swin Transformer-Tiny had the highest observed performance, but the small, balanced, single-centre internal test set and use of routine microscopy labels rather than an independent microbiological reference standard limit clinical interpretation. The platform should therefore be considered an AI-assisted microscopy reading aid rather than an autonomous tuberculosis diagnostic system. Prospective, multicentre evaluation using patient/specimen-level separation, independent microbiological reference standards, and multiple blinded readers is required before clinical deployment.</p>","PeriodicalId":47140,"journal":{"name":"Medical Devices-Evidence and Research","volume":"19 ","pages":"639007"},"PeriodicalIF":1.5000,"publicationDate":"2026-10-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13679598/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Medical Devices-Evidence and Research","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.2147/MDER.S639007","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/1/1 0:00:00","PubModel":"eCollection","JCR":"Q4","JCRName":"ENGINEERING, BIOMEDICAL","Score":null,"Total":0}
引用次数: 0

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.

Results: On the internal test set, Swin Transformer-Tiny achieved 97.40% accuracy, 97.37% sensitivity, 97.44% specificity, 97.37% PPV, 97.44% NPV, 97.37% F1-score, and ROC-AUC 0.9939. DenseNet-121 achieved 88.31% accuracy, 84.21% sensitivity, 92.31% specificity, and ROC-AUC 0.9730. ResNet-50 V2 achieved 85.71% accuracy, 81.58% sensitivity, 89.74% specificity, and ROC-AUC 0.9555. Wilson 95% confidence intervals were calculated for the threshold-based metrics.

Conclusion: The models demonstrated promising internal performance for classification of microscopy-defined AFB status. Swin Transformer-Tiny had the highest observed performance, but the small, balanced, single-centre internal test set and use of routine microscopy labels rather than an independent microbiological reference standard limit clinical interpretation. The platform should therefore be considered an AI-assisted microscopy reading aid rather than an autonomous tuberculosis diagnostic system. Prospective, multicentre evaluation using patient/specimen-level separation, independent microbiological reference standards, and multiple blinded readers is required before clinical deployment.

在乌干达西南部验证用于准确可靠检测结核病的人工智能驱动的痰液分析平台。
背景:Ziehl-Neelsen (ZN)痰涂片镜检仍然是检测抗酸杆菌(AFB)的一种可行方法,但其解释取决于标本质量和训练有素的显微镜人员。人工智能(AI)可以提供显微镜阅读辅助,支持对afb阳性和afb阴性涂片图像的一致识别。目的:评估转移学习深度学习模型对乌干达地区转诊实验室生成的afb阳性和afb阴性数字化锌染色痰涂片图像进行分类。方法:对Mbarara地区转诊医院512张存档的数字化锌染色痰涂片图像进行回顾性实验室横断面研究。数据集包含256张afb阳性和256张afb阴性图像,并通过分层抽样分为训练集(n=358)、验证集(n=77)和内部保留测试集(n=77)。在PyTorch中使用imagenet预训练的权值来训练ResNet-50 V2、DenseNet-121和Swin Transformer-Tiny模型。使用敏感性、特异性、准确性、阳性预测值(PPV)、阴性预测值(NPV)、f1评分和ROC-AUC来评估疗效。结果:在内部测试集上,Swin Transformer-Tiny的准确度为97.40%,灵敏度为97.37%,特异性为97.44%,PPV为97.37%,NPV为97.44%,f1评分为97.37%,ROC-AUC为0.9939。DenseNet-121准确率为88.31%,灵敏度为84.21%,特异性为92.31%,ROC-AUC为0.9730。ResNet-50 V2准确度85.71%,灵敏度81.58%,特异性89.74%,ROC-AUC 0.9555。为基于阈值的指标计算Wilson 95%置信区间。结论:该模型在显微镜下定义的AFB状态分类方面表现出良好的内部性能。Swin Transformer-Tiny具有最高的观察性能,但小型,平衡,单中心内部测试集和使用常规显微镜标签而不是独立的微生物参考标准限制了临床解释。因此,该平台应被视为人工智能辅助显微镜阅读辅助工具,而不是自主结核病诊断系统。在临床部署之前,需要使用患者/标本水平分离、独立微生物参考标准和多个盲法阅读器进行前瞻性、多中心评估。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Medical Devices-Evidence and Research
Medical Devices-Evidence and Research ENGINEERING, BIOMEDICAL-
CiteScore
2.80
自引率
0.00%
发文量
41
审稿时长
16 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书