COVID-19 detection based on self-supervised transfer learning using chest X-ray images

Guang Li, Ren Togo, Takahiro Ogawa, Miki Haseyama

Abstract

Considering several patients screened due to the COVID-19 pandemic, computer-aided detection has strong potential in assisting clinical workflow efficiency and reducing the incidence of infections among radiologists and healthcare providers. Since many confirmed COVID-19 cases present radiological findings of pneumonia, radiologic examinations can be useful for fast detection. Therefore, chest radiography can be used to fast screen COVID-19 during patient triage, thereby determining the priority of care to help saturated medical facilities. In this paper, we propose a new learning scheme called self-supervised transfer learning for detecting COVID-19 from chest X-ray (CXR) images. We compared six self-supervised learning (SSL) methods and six pretrained DCNNs with the proposed method. Our method achieved a harmonic mean (HM) score of 0.985, AUC of 0.999, and four-class accuracy of 0.953. Our results show that knowledge learned from natural images using transfer learning is beneficial for SSL of CXR images and boosts the performance of representation learning for COVID-19 detection.

Introduction

The COVID-19 pandemic highlighted the urgent need for rapid, scalable diagnostic tools. While deep learning has shown promise in medical imaging, it typically requires vast amounts of expert-labeled data—a resource that is often scarce during an emerging health crisis. Traditional approaches generally follow two paths: transfer learning from natural image datasets (like ImageNet) or self-supervised learning (SSL) on domain-specific unlabeled data. However, transfer learning faces a domain gap between natural and medical images, while SSL often requires massive datasets to learn effective representations from scratch. This research addresses these limitations by proposing a "self-supervised transfer learning" framework that bridges the gap between general feature recognition and domain-specific precision.

Methods

The proposed framework utilizes a three-stage pipeline designed to maximize feature extraction efficiency across different data domains.

Overview of the proposed three-stage learning scheme for COVID-19 detection.

1. Supervised Pre-training

The process begins with a ResNet50 backbone pre-trained on the ImageNet dataset. This initial stage allows the model to develop a foundational understanding of basic visual elements such as edges, textures, and shapes, which are common across all types of imagery.

2. Self-Supervised Pre-training

In the second stage, the model undergoes self-supervised pre-training on a large corpus of unlabeled chest X-ray (CXR) images. This serves as a "domain adaptation" bridge. The architecture employs an asymmetric structure, utilizing a predictor network and a stop-gradient operation to prevent representation collapse—a common issue where the model learns trivial solutions.

Detailed architecture of the self-supervised pre-training stage using an asymmetric network structure.

3. Supervised Fine-tuning

Finally, the model is fine-tuned using a smaller set of labeled CXR images. This stage specializes the model for the specific task of differentiating between COVID-19, other types of pneumonia, and normal lung conditions.

Experimental Setup

The study utilized the COVID-19 Radiography Database, which at the time was the largest open CXR dataset.

  • Dataset Composition: 21,165 total images across four categories: COVID-19, Lung Opacity (non-COVID pneumonia), Normal, and Viral Pneumonia.
  • Preprocessing: All images were standardized to a resolution of 299 × 299 pixels.
  • Evaluation Metrics: Performance was assessed using accuracy, Area Under the Curve (AUC), and the Harmonic Mean (HM) score of sensitivity and specificity.

Results and Discussion

The proposed method demonstrated superior performance across multiple benchmarks:

  • Classification Performance: The model achieved a four-class accuracy of 95.3%, an AUC of 0.999, and an HM score of 0.985.
  • Comparative Analysis: The framework outperformed six other SSL methods (including SimCLR and BYOL) and six standard deep convolutional neural networks (DCNNs) such as CheXNet and DenseNet201.
  • Data Efficiency: A key finding was the model's resilience to small data volumes. When training on only 1% or 10% of the labeled data, the proposed method significantly outperformed traditional transfer learning and standard SSL.
  • Interpretability: Using Grad-CAM++, the researchers visualized the model's focus areas. The heatmaps confirmed that the model correctly identifies pathological regions in the lungs rather than relying on non-diagnostic artifacts like hospital text or image borders.

Conclusion

This study demonstrates that knowledge transferred from natural images significantly enhances the self-supervised learning process for medical imaging. This hybrid approach provides a more robust starting point for representation learning, particularly in scenarios where labeled data is limited. While the three-stage pipeline adds implementation complexity, its high accuracy and data efficiency make it a promising tool for clinical triage. Future work will focus on validating these results across more diverse, multi-center datasets to ensure broader generalizability.

Summary updated

BibTeX
@article{li2023covid,
  author = {Guang Li and Ren Togo and Takahiro Ogawa and Miki Haseyama},
  title = {{COVID-19 detection based on self-supervised transfer learning using chest X-ray images}},
  journal = {Int. J. Comput. Assist. Radiol. Surg.},
  year = {2023},
  url = {https://openreview.net/forum?id=T5gZAiaxkre},
}
Figure