Weighing features of lung and heart regions for thoracic disease classification

Jiansheng Fang, Yanwu Xu, Yitian Zhao, Yuguang Yan, Junling Liu, Jiang Liu

Abstract

Thoracic disease classification in chest X-rays (CXRs) is often hindered by the low signal-to-noise ratio of pathological features compared to normal anatomy. This paper introduces CXR-IRNet, a deep learning framework designed to prioritize lung and heart regions through anatomical segmentation and multi-scale attention. By "zeroing out" irrelevant background noise, the model achieves state-of-the-art results on the Chest X-ray14 benchmark, demonstrating superior classification and localization capabilities.

Introduction

Diagnosing thoracic diseases from CXRs is a high-volume task requiring significant expertise. While deep learning has shown promise, standard global learning strategies often struggle because pathological cues, such as small nodules, occupy only a fraction of the image. Consequently, discriminative features can be obscured by non-pathological structures like ribs or shoulders. CXR-IRNet addresses this by leveraging anatomical domain knowledge to identify disease-specific cues in a weakly supervised manner, using only image-level labels.

Methodology

The CXR-IRNet framework consists of three primary components designed to isolate and amplify relevant signals:

  1. Multi-scale Attention Module: This module employs multiple convolutional kernel sizes (5x5 and 9x9) to capture features across different spatial scales. This allows the model to detect both large-scale abnormalities, such as cardiomegaly, and subtle textures like nodules.
  2. Pixel-wise Segmentation: A U-Net model, pre-trained on the JSRT dataset, provides precise segmentation of the left lung, right lung, and heart. This generates a binary mask that defines the regions of interest.
  3. Feature Weighting: Rather than simple feature fusion, the model performs element-wise multiplication between the global attention map and the anatomical mask. This operation effectively "zeroes out" features outside the lungs and heart, forcing the classifier to focus on areas where thoracic diseases typically manifest.

The classification backbone utilizes a pre-trained DenseNet-121 for efficient feature extraction.

Figure 1: The CXR-IRNet architecture, highlighting the multi-scale attention module and the pixel-wise segmentation masking process.

Experimental Setup

The model was evaluated using the following datasets:

  • Chest X-ray14: The primary classification dataset, containing 112,120 frontal-view images labeled with 14 thoracic diseases.
  • JSRT Dataset: Used for training the U-Net segmentation model.
  • Box Set: A subset of 984 images with hand-labeled bounding boxes used to validate localization accuracy.

Results and Analysis

CXR-IRNet established a new state-of-the-art on the Chest X-ray14 benchmark with an average AUROC of 0.8335, outperforming CheXNet (0.8105) and AGCNN (0.8221). Notable gains were observed in challenging categories like Infiltration (0.7901) and Nodule (0.8377).

Qualitative analysis via heatmaps demonstrates the model's ability to accurately localize pathologies. In quantitative tests on the "Box Set," the inclusion of the multi-scale attention module improved localization accuracy (measured by Intersection over Union, or IoU) by 23.67%.

Figure 2: Localization heatmaps generated by CXR-IRNet for various thoracic diseases, showing high correspondence with ground-truth bounding boxes.

Discussion and Conclusion

The core strength of CXR-IRNet lies in its use of anatomical domain knowledge as an inductive bias. By hard-coding the constraint that pathologies reside within lung and heart boundaries, the model avoids learning spurious correlations from the background. The "weighting" approach proved more effective than standard feature fusion, ensuring that local signals are not diluted.

While the model is dependent on the accuracy of the initial segmentation, its performance gains highlight the value of region-specific focus in medical imaging. Future work may explore more granular region-wise detection to further refine the identification of visual cues unique to specific pathological zones.

Summary updated

Abstract

Background Chest X-rays are the most commonly available and affordable radiological examination for screening thoracic diseases. According to the domain knowledge of screening chest X-rays, the pathological information usually lay on the lung and heart regions. However, it is costly to acquire region-level annotation in practice, and model training mainly relies on image-level class labels in a weakly supervised manner, which is highly challenging for computer-aided chest X-ray screening. To address this issue, some methods have been proposed recently to identify local regions containing pathological information, which is vital for thoracic disease classification. Inspired by this, we propose a novel deep learning framework to explore discriminative information from lung and heart regions. Result We design a feature extractor equipped with a multi-scale attention module to learn global attention maps from global images. To exploit disease-specific cues effectively, we locate lung and heart regions containing pathological information by a well-trained pixel-wise segmentation model to generate binarization masks. By introducing element-wise logical AND operator on the learned global attention maps and the binarization masks, we obtain local attention maps in which pixels are are 1 for lung and heart region and 0 for other regions. By zeroing features of non-lung and heart regions in attention maps, we can effectively exploit their disease-specific cues in lung and heart regions. Compared to existing methods fusing global and local features, we adopt feature weighting to avoid weakening visual cues unique to lung and heart regions. Our method with pixel-wise segmentation can help overcome the deviation of locating local regions. Evaluated by the benchmark split on the publicly available chest X-ray14 dataset, the comprehensive experiments show that our method achieves superior performance compared to the state-of-the-art methods. Conclusion We propose a novel deep framework for the multi-label classification of thoracic diseases in chest X-ray images. The proposed network aims to effectively exploit pathological regions containing the main cues for chest X-ray screening. Our proposed network has been used in clinic screening to assist the radiologists. Chest X-ray accounts for a significant proportion of radiological examinations. It is valuable to explore more methods for improving performance.
BibTeX
@article{fang2021weighing,
  author = {Jiansheng Fang and Yanwu Xu and Yitian Zhao and Yuguang Yan and Junling Liu and Jiang Liu},
  title = {{Weighing features of lung and heart regions for thoracic disease classification}},
  journal = {BMC Medical Imaging},
  year = {2021},
  doi = {10.1186/s12880-021-00627-y},
}
Figure