Self-supervised Image-text Pre-training With Mixed Data In Chest X-rays

Xiaosong Wang, Ziyue Xu, Leo K. Tam, Dong Yang, Daguang XuarXiv 2021

Abstract

Medical imaging datasets often suffer from fragmentation, consisting of isolated images, text reports, or paired sets scattered across different institutions. This paper introduces a self-supervised transformer framework designed to leverage such "mixed" data. By utilizing a multi-scale masked vision model and a cross-correlation loss, the proposed system enhances performance in chest X-ray classification, retrieval, and reconstruction, particularly in low-labeled data regimes.

Introduction

In clinical settings, data is often siloed and incomplete. While millions of chest X-rays exist, they frequently lack corresponding radiology reports, or vice versa. Standard supervised learning requires expensive expert annotations, which are difficult to scale. Existing self-supervised methods often fail to bridge the gap between visual and semantic features when data is not perfectly paired.

Overview of the mixed data training paradigm and downstream tasks.

The researchers address this by proposing a framework that can ingest "all we have"—paired, unpaired, and multi-institutional data—to learn robust medical representations.

Methodology

The core of the approach is a transformer-based framework capable of handling diverse data types through specialized modules and loss functions.

The proposed transformer architectures, including the Mix-up Pre-training Framework (c) which integrates text and image encoders.

Unified vs. Decoupled Transformers

Two primary modules were evaluated:

  1. UNIT (UNIfied Transformer): Fuses image and text features early via cross-attention.
  2. UWOX (UNIT WithOut Cross-fusion): Maintains separate encoders aligned through shared weights, offering greater flexibility for single-modality inference.

Multi-scale Masked Vision Modeling (MVM)

To preserve spatial context and avoid artifacts common in standard vision transformers, the model employs a three-layer image pyramid. It must reconstruct masked patches by integrating information across different resolutions.

Pair-matching Loss

To utilize unpaired data, a cross-correlation matrix and binary classifier predict if an image-text pair is authentic. This mechanism forces the model to learn semantic alignments between visual findings and textual descriptions.

Experiments and Results

The framework was pre-trained on the MIMIC-CXR dataset (~227k pairs) and NIH14-CXR (~112k images), then evaluated on the OpenI-CXR dataset to test cross-institutional generalization.

  • State-of-the-Art Classification: The model achieved an average AUC of 0.922 on OpenI-CXR, surpassing previous benchmarks like TieNet.
  • Data Efficiency: The "Mix-up" strategy proved exceptionally effective when only 1% of labeled data was available for fine-tuning, demonstrating the power of self-supervised priming.
  • Retrieval and Reconstruction: The UWOX-mixup model outperformed specialized baselines in image-report retrieval tasks. Qualitatively, the multi-scale approach yielded sharper, more anatomically accurate X-ray reconstructions.

Discussion and Conclusion

The study demonstrates that pre-training on a mix of paired and unpaired data from multiple sources is superior to training on a single curated dataset. The "noise" from unpaired data serves as a regularizer, leading to more robust representations. While the multi-scale approach significantly improves vision transformer performance, a domain gap remains between different hospital datasets. Future research will explore overlapped patches to further reduce artifacts and extend the framework to tasks like lesion segmentation and temporal analysis.

Summary updated

BibTeX
@misc{wang2021self,
  author = {Xiaosong Wang and Ziyue Xu and Leo K. Tam and Dong Yang and Daguang Xu},
  title = {{Self-supervised Image-text Pre-training With Mixed Data In Chest X-rays}},
  year = {2021},
  eprint = {2103.16022},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.16022},
}
Figure