Self-supervised Mean Teacher for Semi-supervised Chest X-Ray Classification

Fengbei Liu, Yu Tian, Filipe R. Cordeiro, Vasileios Belagiannis, Ian D. Reid, Gustavo Carneiro

Abstract

Deep learning models for medical imaging are often constrained by the high cost and scarcity of expert-labeled data. This paper presents $S^2MTS^2$, a novel two-stage framework that integrates self-supervised pre-training with semi-supervised fine-tuning. By leveraging a Mean Teacher architecture and Joint Contrastive Learning (JCL) to generate a continuous distribution of positive feature pairs, the model achieves state-of-the-art performance on chest X-ray classification. Notably, $S^2MTS^2$ demonstrates exceptional efficiency in low-data regimes, outperforming existing methods even when only 2% of labels are available.

Introduction

The primary bottleneck in developing robust medical AI is the reliance on large-scale, expert-annotated datasets. In radiology, obtaining high-quality labels for chest X-rays is time-consuming and expensive. Semi-supervised learning (SSL) offers a potential solution by utilizing small labeled sets alongside vast unlabeled data. However, traditional SSL methods often struggle with the multi-label nature of clinical diagnoses or fail to extract sufficiently rich representations from unlabeled images. This work addresses these challenges by proposing a framework that builds a strong feature foundation through self-supervision before proceeding to semi-supervised fine-tuning.

Methodology: The $S^2MTS^2$ Framework

The proposed Self-supervised Mean Teacher for Semi-supervised ($S^2MTS^2$) approach consists of two distinct stages:

Stage 1: Self-supervised Pre-training

The model utilizes a Mean Teacher architecture where a "Student" network learns from a "Teacher" network (an exponential moving average of the student's weights). A key innovation is the use of Joint Contrastive Learning (JCL). Instead of comparing discrete augmented versions of an image, JCL models features as a Gaussian distribution, allowing the student to sample an "infinite" number of positive pairs. This encourages the model to learn a more continuous and stable feature space, capturing the underlying structure of medical images without any labels.

Stage 2: Semi-supervised Fine-tuning

The pre-trained weights serve as the starting point for semi-supervised learning. The model is fine-tuned on a combination of labeled and unlabeled data. A consistency loss is applied to ensure the Student and Teacher produce similar predictions for unlabeled samples, while a standard classification loss is used for labeled data. The use of a DenseNet121 backbone ensures compatibility with standard medical imaging benchmarks.

Overview of the $S^2MTS^2$ framework showing the two-stage process: self-supervised pre-training with JCL and semi-supervised fine-tuning.

Experimental Results

The framework was evaluated on major benchmarks, including ChestX-ray14, CheXpert, and ISIC2018.

Performance in Data-Scarce Scenarios

The most significant advantage of $S^2MTS^2$ is its performance when labeled data is extremely limited. On the ChestX-ray14 dataset with only 2% labels, the model achieved a Mean AUC of 74.69%, a substantial improvement over the previous state-of-the-art of 66.95%. As shown in the table below, the model's performance with just 20% of labels (81.06% AUC) is comparable to fully supervised models using 100% of the data.

Comparison of AUC scores on ChestX-ray14 across different label percentages, highlighting the superiority of $S^2MTS^2$ in low-data regimes.

Key Insights

  • Robustness of JCL: Sampling from a distribution of features rather than discrete images leads to more robust representations.
  • Multi-label Suitability: Unlike methods relying on softmax activations, the Mean Teacher framework naturally handles multi-label clinical cases where patients present with multiple conditions.
  • Superior Baselines: Pre-training with self-supervision provides a significantly better initialization than standard supervised pre-training or training from scratch.

Conclusion

$S^2MTS^2$ effectively bridges the gap between self-supervised and semi-supervised learning for medical image classification. By maximizing the utility of unlabeled data through JCL and a Mean Teacher consistency mechanism, it sets new benchmarks for chest X-ray analysis. While the two-stage process and memory queue requirements increase computational complexity, the gains in label efficiency—where 5% of data can outperform previous 15% benchmarks—make it a highly practical framework for clinical applications where expert time is at a premium.

Summary updated

BibTeX
@inproceedings{liu2021self,
  author = {Fengbei Liu and Yu Tian and Filipe R. Cordeiro and Vasileios Belagiannis and Ian D. Reid and Gustavo Carneiro},
  title = {{Self-supervised Mean Teacher for Semi-supervised Chest X-Ray Classification}},
  booktitle = {MLMI @ MICCAI},
  year = {2021},
  doi = {10.1007/978-3-030-87589-3\_44},
}
Figure