Dual-Sampling Attention Network for Diagnosis of COVID-19 From Community Acquired Pneumonia

Xi Ouyang, Jiayu Huo, Liming Xia, Fei Shan, Jun Liu, Zhanhao Mo, Fuhua Yan, Zhongxiang Ding, Qi Yang, Bin Song, Feng Shi, Huan Yuan, Ying Wei, Xiaohuan Cao, Yaozong Gao, Dijia Wu, Qian Wang, Dinggang Shen

Introduction

Early in the COVID-19 pandemic, the limitations of RT-PCR testing—including high false-negative rates and slow turnaround times—necessitated alternative diagnostic tools. Chest CT scans emerged as a rapid alternative; however, COVID-19 shares significant radiographic features with Community Acquired Pneumonia (CAP), such as ground-glass opacities (GGO) and consolidation. This overlap makes manual differentiation by radiologists both difficult and time-consuming, particularly during pandemic surges.

The Challenge of Infection Size Bias

A critical hurdle in developing automated diagnostic models is the inherent data imbalance regarding infection size. In many clinical datasets, COVID-19 cases often present with significantly larger infection volumes compared to CAP cases.

Distribution of Pneumonia Infection Area across COVID-19 and CAP cases, highlighting the size imbalance.

As shown in the distribution data, a standard neural network might inadvertently learn to use infection volume as a proxy for diagnosis (e.g., "large infection equals COVID-19"). This leads to poor generalization on early-stage COVID-19 cases with small infections or severe CAP cases with large infections.

Methodology

To address these challenges, the researchers proposed a multi-stage pipeline centered on a Dual-Sampling Attention Network using a 3D ResNet34 backbone.

Preprocessing and Masking

The pipeline begins with lung and infection region segmentation using the VB-Net toolkit. By masking the CT images to focus exclusively on the lung parenchyma, the model eliminates distracting information from surrounding tissues.

Dual-Sampling Strategy and Architecture

The core innovation lies in the dual-branch architecture designed to mitigate infection-size bias. The system trains two distinct models:

  1. Uniform Sampling (US): Trained on the natural distribution of the dataset.
  2. Size-balanced Sampling (SS): Specifically over-samples "hard" cases, such as small-volume COVID-19 and large-volume CAP.
The Dual-Sampling Attention Network architecture, featuring US and SS branches with online attention modules and ensemble learning.

Online Attention Module

Unlike post-hoc visualization tools like Grad-CAM, this module is an online, trainable component. It utilizes the segmented infection masks to supervise the network's attention maps during training. This forces the model to focus specifically on the infected regions when extracting features for diagnosis, ensuring the classification is based on pathology rather than lung shape or noise.

Ensemble Learning

The final diagnostic result is an ensemble of the US and SS branches. The predictions are combined using weights that are dynamically adjusted based on the ratio of the infection size to the total lung volume, allowing the model to adapt its logic based on the severity of the presentation.

Datasets and Results

The study utilized a massive multi-center dataset comprising 4,982 CT scans from 3,645 patients across eight hospitals. This diversity ensures the model's robustness across different CT scanner types and clinical settings.

The dual-sampling approach achieved significant performance gains, particularly on the previously mentioned "hard" cases. Key metrics include:

  • AUC: 0.944
  • Accuracy: 87.5%
  • Sensitivity: 86.9%
  • Specificity: 90.1%

Qualitative analysis confirmed that the attention maps were highly localized to actual pneumonia regions, providing a level of explainability essential for clinical adoption.

Conclusion

By combining supervised attention with a dual-sampling strategy, this network effectively overcomes the confounding variable of infection size. While future work may involve distinguishing between specific CAP subtypes (bacterial vs. fungal) and longitudinal analysis, the current system provides a powerful, explainable tool to assist radiologists in differentiating COVID-19 from other pneumonias.

Summary updated

BibTeX
@article{ouyang2020dual,
  author = {Xi Ouyang and Jiayu Huo and Liming Xia and Fei Shan and Jun Liu and Zhanhao Mo and Fuhua Yan and Zhongxiang Ding and Qi Yang and Bin Song and Feng Shi and Huan Yuan and Ying Wei and Xiaohuan Cao and Yaozong Gao and Dijia Wu and Qian Wang and Dinggang Shen},
  title = {{Dual-Sampling Attention Network for Diagnosis of COVID-19 From Community Acquired Pneumonia}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2020},
  doi = {10.1109/tmi.2020.2995508},
}
Figure