SODA: Detecting Covid-19 in Chest X-rays with Semi-supervised Open Set Domain Adaptation

Jieli Zhou, Baoyu Jing, Zeya Wang

TL;DR

SODA addresses the challenge of detecting COVID-19 from highly limited chest X-ray data by framing it as a semi-supervised open set domain adaptation problem. By introducing a two-level alignment strategy that synchronizes both global domain features and a shared subspace of common labels, SODA significantly outperforms standard fine-tuning and traditional domain adaptation methods in both classification accuracy and pathology localization.

What Problem Does This Paper Address?

During the early stages of the COVID-19 pandemic, a shortage of viral testing kits (RT-PCR) and low sensitivity rates created an urgent need for complementary screening tools. Chest radiology (X-rays) offered a rapid, widely available alternative. While deep learning models showed promise in automatically detecting COVID-19 from X-rays, they faced two severe bottlenecks:

  1. Domain Shift: Large-scale baseline datasets (like ChestXray-14) are collected under highly controlled conditions in top-tier U.S. hospitals, whereas early COVID-19 datasets were cobbled together from diverse global sources with varying image qualities, aspect ratios, and lighting conditions.
  2. Open Set Label Shift: COVID-19 was a completely new disease category not present in any pre-existing large-scale dataset. Standard fine-tuning techniques often cause models to "forget" how to detect common thoracic diseases (like standard pneumonia) or cause "negative transfer"—where the model incorrectly aligns unrelated diseases across different datasets due to the lack of shared label supervision.

Methods

The authors propose SODA (Semi-supervised Open set Domain Adversarial network) to tackle these challenges. Instead of relying on standard global domain adaptation, SODA utilizes a novel two-level alignment strategy:

  • Domain-Level Alignment: A general domain discriminator ($D_g$) forces the feature extractor ($G_f$) to learn features that are invariant to the source and target domains globally.
  • Common Label-Level Alignment: To prevent the model from misaligning distinct diseases (e.g., mapping target "Pneumonia" to source "Cardiomegaly"), the authors introduce a common label discriminator ($D_c$). This ensures that images sharing common labels across both domains are mapped to the same latent subspace.
  • Common Label Recognizer ($R$): Because the vast majority of the target domain data is unlabeled, the model includes a recognizer ($R$) trained to predict the probability that an unlabeled target image contains a shared disease label. This probability is then used to dynamically weight the adversarial losses of $D_c$ and $D_g$.
SODA Architecture Overview

Datasets

  • Source Domain: ChestXray-14 – A massive dataset containing 112,120 anonymized chest X-ray images labeled with 14 common thoracic diseases.
  • Target Domain: COVID-ChestXray – A small, heterogeneous dataset consisting of 328 chest X-rays (253 labeled positive for COVID-19 and 61 labeled with other well-studied pneumonias). For the semi-supervised evaluation protocol, this dataset was split into a 40% labeled set and a 60% unlabeled set.

Key Insights and Ideas

  • The Danger of Blind Alignment: Traditional domain adaptation assumes the source and target domains share the exact same classes. In an open-set scenario (like an emerging pandemic), forcing global alignment actually harms performance because the model tries to force a completely new disease (COVID-19) into pre-existing feature clusters.
  • Leveraging the Shared Subspace: By identifying "Pneumonia" as a common bridge between both datasets, SODA anchors the alignment process. The common label recognizer ($R$) acts as a smart gatekeeper, ensuring the adversarial network only aligns target images when they genuinely share clinical features with the source domain.

Key Results

Classification Accuracy

SODA achieved superior performance in separating COVID-19 from common pneumonia, outperforming both standard architectures and competitive domain adaptation baselines:

Model COVID-19 AUC-ROC Pneumonia AUC-ROC
ResNet50 (Fine-tuned) 0.8143 0.8342
DenseNet121 (Fine-tuned) 0.8202 0.8414
DANN 0.8785 0.8961
PADA 0.8822 0.9038
SODA (Ours) 0.9006 0.9082

Domain Invariance & Feature Separation

Using Proxy A-Distance (PAD), the authors demonstrated that SODA minimizes feature discrepancy across domains more effectively than alternative models.

Figure 2: Proxy A-Distance

Furthermore, t-SNE visualizations confirmed that SODA provides the cleanest separation between COVID-19 and standard pneumonia clusters in the target domain.

Figure 3: t-SNE visualization for DANN, PADA and SODA on the target domain.

Qualitative Pathology Localization

Using Grad-CAM to visualize model focus, standard models (ResNet50, DenseNet121) frequently focused on irrelevant image edges or dark corners. In contrast, SODA consistently highlighted the actual lung pathology locations, a capability verified qualitatively by an experienced radiologist.

Limitations and Future Work

The primary limitation acknowledged by the authors is the small scale of the target dataset (328 images), which was a byproduct of the early-2020 timeline. The authors note that future work will involve conducting a more rigorous evaluation study using larger, more diverse clinical datasets and deeper collaboration with radiologists to further refine the clinical utility of SODA's automated pathology localization.

Summary updated

BibTeX
@article{zhou2022soda,
  author = {Jieli Zhou and Baoyu Jing and Zeya Wang},
  title = {{SODA: Detecting Covid-19 in Chest X-rays with Semi-supervised Open Set Domain Adaptation}},
  journal = {IEEE ACM Trans. Comput. Biol. Bioinform.},
  year = {2022},
  doi = {10.1109/tcbb.2021.3066331},
}
Figure