Abstract
Thoracic disease classification from chest X-rays (CXRs) is challenging due to the small spatial footprint of many pathologies relative to the entire image. This paper introduces CXR-IRNet, a framework that incorporates medical domain knowledge by masking irrelevant anatomical regions. By integrating multi-scale attention with automated lung and heart segmentation, the model focuses on clinically relevant areas, preventing subtle cues from being obscured by healthy tissue. The approach achieves a state-of-the-art average AUROC of 0.8335 on the Chest X-ray14 dataset.
Introduction
Chest X-rays are fundamental diagnostic tools, yet training automated systems is hindered by the prevalence of image-level labels rather than precise region-level annotations. This creates a "needle in a haystack" scenario where small abnormalities, such as nodules, may occupy only 1% of the image and are easily overlooked by standard Convolutional Neural Networks (CNNs) that process the entire image. CXR-IRNet addresses this by explicitly weighting features within the heart and lung regions, ensuring that the visual signal from pathologies is not "drowned out" by healthy tissue.
Methodology
The CXR-IRNet framework employs a three-pronged strategy to enhance classification performance:
- Multi-scale Attention Module: This module computes spatial features at multiple resolutions, allowing the model to detect both large-scale abnormalities (like an enlarged heart) and fine-grained textures (like early-stage pneumonia).
- Pixel-wise Segmentation: Leveraging the fact that most thoracic diseases manifest in the lungs or heart, the system uses a pre-trained U-Net to automatically segment the left lung, right lung, and heart. This creates a binary mask (1 for lung/heart, 0 for everything else).
- Feature Weighting: Instead of simple feature fusion, the model performs an element-wise logical operation between learned attention maps and the segmentation masks. This effectively "zeros out" features found in irrelevant areas like the ribs, neck, or abdomen, forcing the classifier to focus on relevant anatomical regions.
The system utilizes a DenseNet-121 backbone, a standard and powerful architecture for medical imaging, and was trained using the Chest X-ray14 and JSRT datasets.
Key Results and Discussion
Evaluated on the Chest X-ray14 benchmark, CXR-IRNet achieved an average AUROC of 0.8335, outperforming well-known models like CheXNet (0.8105) and AGCNN (0.8221). The model showed particularly strong gains in detecting Infiltration, with an AUROC of 0.7901—a 12.87% improvement over previous best-performing fusion models.
As shown in the figure above, the model's internal attention maps align closely with ground-truth pathological regions. This high localization accuracy (measured by IoU scores) was achieved even though the model was only trained on image-level labels, confirming that the segmentation mask acts as an effective regularizer.
Conclusion
By using anatomical segmentation as a form of hard attention, CXR-IRNet effectively improves the detection of small-scale pathologies like nodules. While the model is currently dependent on the quality of the initial segmentation, it represents a significant step toward using domain knowledge to guide AI in medical imaging. Future work will focus on improving segmentation robustness for severely diseased lungs and expanding the framework to include region-wise lesion detection.
Summary updated