Back

A Deployable Explainable Deep Learning System for Tuberculosis Detection from Chest X-Rays in Resource-Constrained High-Burden Settings

Agumba, J.; Erick, S.; Pembere, A.; Nyongesa, J.

2026-04-01 radiology and imaging
10.64898/2026.03.31.26349662 medRxiv
Show abstract

Abstract Objectives: To develop and evaluate a deployable deep learning system with Gradient-weighted Class Activation Mapping (Grad-CAM) for tuberculosis screening from chest radiographs and to assess its classification performance and explainability across desktop and mobile deployment platforms. Materials and methods: This study used publicly available chest X-ray datasets containing Normal and Tuberculosis images. A DenseNet121-based transfer learning model was trained using stratified training, validation, and test splits with data augmentation and class weighting. Model performance was evaluated using accuracy, precision, recall, F1 score, receiver operating characteristic (ROC) curve, and area under the ROC curve (AUC). Grad-CAM was used to visualize regions influencing model predictions. The trained model was converted to TensorFlow Lite and deployed in both a Windows desktop application and a Flutter-based mobile application for offline inference and visualization. Results: The model demonstrated strong classification performance on the independent test dataset, with high accuracy and AUC values indicating effective discrimination between Normal and Tuberculosis cases. Grad-CAM visualizations showed that the model focused primarily on anatomically relevant lung regions, particularly the upper and mid-lung fields in Tuberculosis cases. Deployment testing confirmed consistent prediction outputs and Grad-CAM visualizations across both Windows and mobile platforms. Conclusion: The proposed deployable deep learning system with Grad-CAM provides accurate and interpretable tuberculosis screening from chest radiographs and demonstrates feasibility for offline mobile and desktop deployment. This approach has potential as an artificial intelligence-assisted screening and decision support tool in radiology, particularly in resource-limited and remote healthcare settings.

Matching journals

The top 6 journals account for 50% of the predicted probability mass.

1
Scientific Reports
3102 papers in training set
Top 2%
15.0%
2
PLOS Digital Health
91 papers in training set
Top 0.1%
15.0%
3
European Radiology
14 papers in training set
Top 0.1%
6.4%
4
Diagnostics
48 papers in training set
Top 0.3%
4.9%
5
Medical Physics
14 papers in training set
Top 0.1%
4.9%
6
PLOS ONE
4510 papers in training set
Top 33%
4.4%
50% of probability mass above
7
Computers in Biology and Medicine
120 papers in training set
Top 0.8%
3.6%
8
Sensors
39 papers in training set
Top 0.5%
3.3%
9
GigaScience
172 papers in training set
Top 0.8%
2.6%
10
Patterns
70 papers in training set
Top 0.5%
2.1%
11
Journal of Medical Imaging
11 papers in training set
Top 0.1%
1.7%
12
JMIRx Med
31 papers in training set
Top 0.7%
1.7%
13
Nature Communications
4913 papers in training set
Top 51%
1.7%
14
npj Digital Medicine
97 papers in training set
Top 2%
1.7%
15
JCO Clinical Cancer Informatics
18 papers in training set
Top 0.5%
1.5%
16
Frontiers in Artificial Intelligence
18 papers in training set
Top 0.3%
1.5%
17
Expert Systems with Applications
11 papers in training set
Top 0.2%
1.4%
18
PLOS Computational Biology
1633 papers in training set
Top 18%
1.4%
19
Neurocomputing
13 papers in training set
Top 0.3%
1.4%
20
Computer Methods and Programs in Biomedicine
27 papers in training set
Top 0.5%
1.4%
21
Biomedical Optics Express
84 papers in training set
Top 0.8%
1.4%
22
IEEE Access
31 papers in training set
Top 0.5%
1.2%
23
Informatics in Medicine Unlocked
21 papers in training set
Top 0.8%
1.0%
24
Frontiers in Neuroinformatics
38 papers in training set
Top 0.6%
1.0%
25
Nature Machine Intelligence
61 papers in training set
Top 3%
1.0%
26
Journal of Magnetic Resonance Imaging
14 papers in training set
Top 0.5%
0.8%
27
Physics in Medicine & Biology
17 papers in training set
Top 0.5%
0.8%
28
Frontiers in Physiology
93 papers in training set
Top 6%
0.8%
29
BMC Medical Informatics and Decision Making
39 papers in training set
Top 3%
0.7%
30
The Lancet Digital Health
25 papers in training set
Top 1%
0.7%