Hybrid DenseNet121-Transformer Architecture for Tuberculosis Detection from Merged Multi-Source Chest X-Rays

Tuberculosis (TB) causes over 1.5 million deaths annually, disproportionately affecting developing nations where trained radiologists are critically scarce. Chest X-ray screening is the most accessible diagnostic tool in such settings, yet accurate interpretation demands specialist expertise that rural populations rarely have access to. This paper proposes a hybrid deep learning architecture combining DenseNet121 — motivated by its proven radiologist-level performance in the CheXNet study on chest X-ray classification — as a convolutional feature extractor with custom Transformer encoder blocks for global context modelling. Training was performed on a balanced multi-source dataset of 2,388 chest X-rays (1,194 TB and 1,194 Normal) merged from the Shenzhen, Montgomery, and TBX11K collections. Contrast Limited Adaptive Histogram Equalisation (CLAHE) in the LAB colour space standardised contrast variation across imaging sources. Two model versions were evaluated under identical experimental conditions: V1.3 using ResNet50 and V2.0 using DenseNet121 as the CNN backbone. The final V2.0 model achieved 95.54% accuracy and 0.9914 AUC on a held-out test set of 359 images, reducing false negatives from 16 to 12 compared to the V1.3 baseline. Gradient-weighted Class Activation Mapping (Grad-CAM) confirmed that the model attends to clinically consistent anatomical regions. The system is deployed as an interpretable Flask web application with uncertainty-aware predictions for clinical demonstration in low-resource healthcare settings.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-06-13
DOI
https://doi.org/10.5281/zenodo.20675055
Primary Topic
COVID-19 diagnosis using AI
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Hybrid DenseNet121-Transformer Architecture for Tuberculosis Detection from Merged Multi-Source Chest X-Rays

Idrees Mohammad, Hussain Ahmad, Ullah Inaam, Bibi Roman
Zenodo (CERN European Organization for Nuclear Research)
COVID-19 diagnosis using AI
preprint

Hybrid DenseNet121-Transformer Architecture for Tuberculosis Detection from Merged Multi-Source Chest X-Rays

Idrees Mohammad, Hussain Ahmad, Ullah Inaam, Bibi Roman
preprint en

Abstract

Tuberculosis (TB) causes over 1.5 million deaths annually, disproportionately affecting developing nations where trained radiologists are critically scarce. Chest X-ray screening is the most accessible diagnostic tool in such settings, yet accurate interpretation demands specialist expertise that rural populations rarely have access to. This paper proposes a hybrid deep learning architecture combining DenseNet121 — motivated by its proven radiologist-level performance in the CheXNet study on chest X-ray classification — as a convolutional feature extractor with custom Transformer encoder blocks for global context modelling. Training was performed on a balanced multi-source dataset of 2,388 chest X-rays (1,194 TB and 1,194 Normal) merged from the Shenzhen, Montgomery, and TBX11K collections. Contrast Limited Adaptive Histogram Equalisation (CLAHE) in the LAB colour space standardised contrast variation across imaging sources. Two model versions were evaluated under identical experimental conditions: V1.3 using ResNet50 and V2.0 using DenseNet121 as the CNN backbone. The final V2.0 model achieved 95.54% accuracy and 0.9914 AUC on a held-out test set of 359 images, reducing false negatives from 16 to 12 compared to the V1.3 baseline. Gradient-weighted Class Activation Mapping (Grad-CAM) confirmed that the model attends to clinically consistent anatomical regions. The system is deployed as an interpretable Flask web application with uncertainty-aware predictions for clinical demonstration in low-resource healthcare settings.

Zenodo (CERN European Organization for Nuclear Research)
Saidu Teaching Hospital (PK), University of Swat (PK)
Partnerships for the goals
COVID-19 diagnosis using AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.