Vision Transformer for COVID-19 CXR Diagnosis using Chest X-ray Feature Corpus

Sangjoon Park, Gwanghyun Kim, Yujin Oh, Joon Beom Seo, Sang Min Lee, Jin Hwan Kim, Sungjun Moon, Jae-Kwang Lim, Jong Chul YearXiv 2021

Abstract

Under the global COVID-19 crisis, developing robust diagnosis algorithms for COVID-19 using Chest X-rays (CXR) is hampered by the lack of well-curated COVID-19 datasets, although CXR data for other diseases are abundant. This situation is suitable for vision transformer architectures that can exploit abundant unlabeled data using pre-training. However, the direct use of existing vision transformers that use corpora generated by ResNet is not optimal for correct feature embedding. To mitigate this problem, we propose a novel vision Transformer using a low-level CXR feature corpus obtained to extract abnormal CXR features. Specifically, the backbone network is trained using large public datasets to obtain abnormal features in routine diagnosis such as consolidation and ground-glass opacity (GGO). Then, the embedded features from the backbone network are used as a corpus for vision transformer training. Our experiments demonstrate that our method achieved state-of-the-art performance and has better generalization capability across external test datasets from different institutions, which is crucial for widespread deployment.

Introduction

While Chest X-rays are a primary screening tool for COVID-19, developing AI models for them is challenging due to a significant "data gap." While millions of X-rays exist for general lung diseases, well-curated COVID-19 datasets are relatively small. Standard Convolutional Neural Networks (CNNs) often struggle to generalize across different hospital settings due to variations in imaging protocols and equipment. Furthermore, while Vision Transformers (ViTs) are excellent at capturing global relationships, they typically require massive amounts of data to train from scratch—data that is currently scarce for COVID-19.

Methodology

This research proposes a two-stage "hybrid" approach that treats medical findings similarly to words in a natural language processing (NLP) sentence. The architecture moves away from raw image patches, instead utilizing a "vocabulary" of common lung abnormalities.

  1. The Backbone (Feature Corpus): A DenseNet-121 backbone is first trained on the massive CheXpert dataset (over 190,000 images) to recognize 10 common low-level findings, such as edema and consolidation. This stage utilizes Probabilistic Class Activation Map (PCAM) pooling to ensure the network focuses on relevant abnormal features.
  2. The Transformer Encoder: Intermediate feature maps are extracted from the pre-trained backbone. These maps represent a "corpus" of abnormal features which are then fed into a Transformer Encoder.
  3. The Diagnosis Logic: The Transformer learns the "grammar" of these features—how their pattern, distribution, and location across the lung fields relate to a COVID-19 diagnosis versus other infections or normal lungs.
The two-stage training process: (A) Pre-training the backbone on general findings and (B) Training the overall Transformer network for COVID-19 diagnosis.

Experimental Setup and Datasets

To ensure robustness, the study utilized a diverse range of data sources:

  • Pre-training: CheXpert dataset for building the feature backbone.
  • Training/Validation: A combination of local data from Asan Medical Center and public datasets including NIH, Brixia, and BIMCV.
  • External Testing: To evaluate generalization, the model was tested on three "unseen" datasets from different institutions: Chonnam National University Hospital (CNUH), Yeungnam University Hospital (YNU), and Kyungpook National University Hospital (KNUH).

Key Results and Interpretability

The proposed model consistently outperformed ResNet-50 and standard ViT variants, particularly on external datasets. It achieved an average Area Under the Curve (AUC) of 0.941, 0.909, and 0.915 across the three external test sets, maintaining stable performance where other models saw significant drops.

A critical component of this success is the model's interpretability. Using saliency map visualizations, the researchers confirmed that the model aligns with radiological logic. For instance, it correctly identifies focal lesions for bacterial pneumonia while recognizing the multi-focal, bilateral involvement characteristic of COVID-19.

Saliency maps comparing (A) focal involvement in bacterial infection vs. (B) bilateral, multi-focal involvement in COVID-19 infection.

Discussion and Conclusion

The core innovation of this work is the abstraction of raw pixels into a universal "vocabulary" of medical abnormalities. By focusing on these features rather than machine-specific raw data, the model becomes significantly more robust to changes in imaging environments. Interestingly, the authors found that generic self-supervised pre-training (like SimCLR) was less effective than their targeted medical feature pre-training.

Future work will look toward broader clinical integration and testing the "feature corpus" approach on even more diverse global populations to further validate its generalization capabilities in varied clinical settings.

Summary updated

BibTeX
@misc{park2021vision,
  author = {Sangjoon Park and Gwanghyun Kim and Yujin Oh and Joon Beom Seo and Sang Min Lee and Jin Hwan Kim and Sungjun Moon and Jae-Kwang Lim and Jong Chul Ye},
  title = {{Vision Transformer for COVID-19 CXR Diagnosis using Chest X-ray Feature Corpus}},
  year = {2021},
  eprint = {2103.07055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.07055},
}
Figure