3D Self-Supervised Methods for Medical Imaging

Aiham Taleb, Winfried Loetzsch, Noel Danz, Julius Severin, Thomas Gärtner, Benjamin Bergner, Christoph Lippert

Abstract

Self-supervised learning methods have witnessed a recent surge of interest after proving successful in multiple application fields. In this work, we leverage these techniques, and we propose 3D versions for five different self-supervised methods, in the form of proxy tasks. Our methods facilitate neural network feature learning from unlabeled 3D images, aiming to reduce the required cost for expert annotation. The developed algorithms are 3D Contrastive Predictive Coding, 3D Rotation prediction, 3D Jigsaw puzzles, Relative 3D patch location, and 3D Exemplar networks. Our experiments show that pretraining models with our 3D tasks yields more powerful semantic representations, and enables solving downstream tasks more accurately and efficiently, compared to training the models from scratch and to pretraining them on 2D slices. We demonstrate the effectiveness of our methods on three downstream tasks from the medical imaging domain: i) Brain Tumor Segmentation from 3D MRI, ii) Pancreas Tumor Segmentation from 3D CT, and iii) Diabetic Retinopathy Detection from 2D Fundus images. In each task, we assess the gains in data-efficiency, performance, and speed of convergence. Interestingly, we also find gains when transferring the learned representations, by our methods, from a large unlabeled 3D corpus to a small downstream-specific dataset. We achieve results competitive to state-of-the-art solutions at a fraction of the computational expense. We publish our implementations for the developed algorithms (both 3D and 2D versions) as an open-source library, in an effort to allow other researchers to apply and extend our methods on their datasets.

Introduction

Deep learning in medical imaging is often hindered by "supervision starvation." While 3D scans like MRI and CT are plentiful, obtaining expert annotations is costly, time-consuming, and restricted by privacy. Furthermore, many existing approaches treat 3D scans as a series of 2D slices, which discards the rich anatomical context provided by the third dimension. While transfer learning from natural image datasets like ImageNet is common, the domain shift between natural images and medical scans limits its effectiveness. This paper addresses these challenges by introducing 3D self-supervised proxy tasks that learn directly from unlabeled 3D medical data.

Methods

The authors propose 3D generalizations of five established self-supervised proxy tasks. In these tasks, the supervision "labels" are automatically generated from the data itself:

  1. 3D Contrastive Predictive Coding (3D-CPC): The model predicts the latent representation of adjacent 3D patches based on a context of previous patches.
  2. Relative 3D Patch Location (3D-RPL): Given a central 3D patch and a query patch, the model predicts the query's relative position in a $3 \times 3 \times 3$ grid.
  3. 3D Jigsaw Puzzles (3D-Jig): A 3D volume is decomposed into a grid of cubes, shuffled, and the model must identify the permutation to reconstruct the original volume.
  4. 3D Rotation Prediction (3D-Rot): The model predicts which of 10 possible 3D rotations (multiples of 90°) was applied to an input scan.
  5. 3D Exemplar Networks (3D-Exe): Using a triplet loss, the model learns to group heavily augmented versions of the same 3D scan together while pushing different scans apart.
Overview of the five proposed 3D self-supervised proxy tasks: (a) CPC, (b) RPL, (c) Jig, (d) Rot, and (e) Exe.

Datasets and Evaluation

The study utilizes several large-scale datasets for pretraining and evaluation:

  • UK Biobank (UKB): Used for large-scale unlabeled pretraining with ~22,000 3D brain MRI scans.
  • BraTS 2018: Benchmark for 3D Brain Tumor Segmentation (MRI).
  • Medical Segmentation Decathlon: Dataset of 420 3D CT scans for Pancreas Tumor Segmentation.
  • Diabetic Retinopathy 2019: Used to evaluate 2D implementations of the SSL library.

Key Insights and Results

The most critical finding is that 3D proxy tasks consistently outperform their 2D counterparts. Learning the spatial relationship between anatomical structures in 3D provides a much more powerful semantic representation.

SSL shows its greatest strength when labeled data is scarce. With only 5-10% of available labels, models pretrained with 3D SSL outperformed supervised models trained from scratch by a significant margin. For example, in Brain Tumor Segmentation (BraTS), the 3D-RPL method achieved a Dice score of 81.28 for Enhanced Tumor (ET), compared to 76.38 for the baseline.

Furthermore, the authors demonstrated that pretraining on a large unrelated unlabeled corpus (UK Biobank) and fine-tuning on a specific disease dataset works exceptionally well. Pretrained models also converged much faster; in the pancreas task, SSL models reached high performance within the first 20 epochs, while "from scratch" models lagged significantly.

Conclusion

This work demonstrates that 3D self-supervised learning can effectively leverage unlabeled medical data to improve performance, data efficiency, and convergence speed in downstream tasks. By capturing full spatial context, these methods provide a robust alternative to 2D slice-based learning or transfer from non-medical domains. The authors have open-sourced their library to encourage the community to apply and extend these 3D methods.

Summary updated

BibTeX
@inproceedings{taleb2020d,
  author = {Aiham Taleb and Winfried Loetzsch and Noel Danz and Julius Severin and Thomas Gärtner and Benjamin Bergner and Christoph Lippert},
  title = {{3D Self-Supervised Methods for Medical Imaging}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure