Introduction
Deep learning has significantly advanced medical imaging, particularly in chest X-ray (CXR) interpretation. However, a substantial gap remains between high-performance research models and clinical deployment. State-of-the-art architectures like DenseNet or Vision Transformers (ViT) are computationally intensive, requiring significant memory and processing power (FLOPs), which limits their use on mobile platforms or compact medical devices. Furthermore, the "black box" nature of these models often hinders clinical trust. This paper addresses these challenges by proposing a framework that combines model compression via Knowledge Distillation (KD) with interpretability through Explainable AI (XAI).
Methodology
The core of the proposed approach is a Teacher-Student Knowledge Distillation framework designed to transfer diagnostic expertise from a large, complex model to a lightweight one.
Framework Components
- Teacher Selection: The authors evaluated several high-capacity models, including CNNs (DenseNet161, Once-for-All/OFA-595) and Transformers (Visformer-S, AutoFormerV2-T).
- Student Model: A compact CNN, EEEA-Net-C2, was utilized as the student due to its high efficiency and low parameter count.
- Hybrid Loss Function: Training employed a combination of Focal Binary-Cross Entropy (FBCE) to address class imbalance and Mean Squared Error (MSE) to align the student's "soft" probability outputs with those of the teacher.
- Explainability (XAI): Grad-CAM (Gradient-weighted Class Activation Mapping) was integrated to generate visual heatmaps, ensuring the student model focuses on clinically relevant anatomical regions.
Experimental Setup and Datasets
The framework was validated across three benchmark CXR datasets: ChestX-ray14 (112,120 images), CheXpert (224,316 images), and PadChest (158,626 images). For XAI verification, a subset of images with radiologist-provided ground-truth bounding boxes was used to assess the localization accuracy of the generated heatmaps.
Key Results and Discussion
Performance and Efficiency
The distilled EEEA-Net-C2 student achieved competitive AUC scores: 83.7% on ChestX-ray14, 87.1% on CheXpert, and 88.7% on PadChest. Remarkably, this performance was achieved with only 4.7 million parameters and 0.3 billion FLOPS, compared to DenseNet161's 26.5 million parameters. On-device testing on a Qualcomm Snapdragon 845 demonstrated that the student model is approximately 6 times faster than its teacher.
Visual Knowledge Transfer
A critical finding was that KD improves more than just numerical accuracy; it enhances the student's ability to localize pathologies. As shown in the visual comparisons, the student's heatmaps shifted to align more closely with the teacher's focus and the actual clinical ground truth.
Teacher Effectiveness
While Transformers are often favored in recent literature, this study found that DenseNet161 consistently served as the most effective teacher for the compact CNN student across multiple datasets, suggesting that architectural similarity between teacher and student may facilitate better knowledge transfer.
Conclusion
This research demonstrates that it is possible to create highly efficient, mobile-friendly medical AI without sacrificing diagnostic accuracy or interpretability. By distilling knowledge from heavy-duty models into a lightweight architecture and verifying its decisions through XAI, the authors provide a viable path for deploying trustworthy AI on resource-constrained medical devices. Future work will explore extending this framework to image segmentation and utilizing semi-supervised learning to leverage unlabelled data.
Summary updated