Answers are grounded in this paper and cite their sources.
Pneumonia and tuberculosis (TB) remain major global health challenges, particularly in developing countries. Chest X-ray imaging is the most commonly used initial diagnostic modality, yet visual similarity between these diseases and normal lung conditions frequently causes diagnostic ambiguity. Deep learning, particularly through transfer learning with DenseNet201, offers promising potential for automated multi-class classification; however, numerically high accuracy alone does not guarantee training stability, generalization robustness, or clinical reliability. This study investigates hyperparameter optimization of DenseNet201 transfer learning for three-class chest X-ray classification (Normal, Pneumonia, and Tuberculosis), systematically evaluating the interaction between learning rates (LR) (1 × 10⁻⁵, 5 × 10⁻⁶, 1 × 10⁻⁶), batch sizes (BS) (8, 16, 32), and fine-tuning strategies (full fine-tuning, partial freeze 10%, and partial freeze 20%). Training was conducted across two phases, namely feature extraction and fine-tuning, yielding 27 experimental scenarios. The optimal configuration, consisting of full fine-tuning, batch size 8, and learning rate 1 × 10⁻⁵, achieved a test accuracy of 98.06%, a macro F1-score of 0.981, and a macro ROC-AUC of 0.999. Despite these results, an error analysis revealed that 27 of 1,392 test images were misclassified, with 19 disease cases incorrectly predicted as Normal, highlighting that distinguishing subtle pathological patterns from Normal chest X-rays remains a key challenge. Furthermore, Grad-CAM visualization showed class-specific activation patterns, including central activation for Normal, diffuse bilateral activation for Pneumonia, and apical activation for Tuberculosis, providing visual insights into the image regions contributing to the model’s classification decisions.
No takes yet. Share an insight, caveat, or question.
Samosir et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: