An Auto-Encoder Strategy for Adaptive Image Segmentation

Evan M. Yu, Juan Eugenio Iglesias, Adrian V. Dalca, Mert R. Sabuncu

Abstract

Deep learning models for medical image segmentation typically require large amounts of manually labeled data, which is costly and often fails to generalize across different imaging protocols. We present the Segmentation Auto-Encoder (SAE), a framework that treats segmentation as a discrete representation learning task. By utilizing a Variational Autoencoder (VAE) architecture with a Gumbel-softmax relaxation and anatomical priors, the SAE learns to segment brain MRIs from unlabeled data. Our results demonstrate that the SAE achieves performance close to fully supervised models while providing a 10x speedup over traditional iterative methods.

Introduction

The success of deep learning in medical imaging is often hindered by the "data hunger" of supervised models. Voxel-level manual annotations are expensive to produce, and models trained on specific datasets often lack robustness when faced with domain shifts, such as changes in MRI scanner hardware or protocols. To address these challenges, there is a growing need for adaptive tools that can leverage the vast quantities of unlabeled clinical data. This paper introduces the Segmentation Auto-Encoder (SAE), a minimally supervised approach that frames segmentation as finding an optimal latent representation of an image.

Methods

The SAE architecture is built upon a Variational Autoencoder (VAE) framework designed to learn discrete anatomical representations.

Architecture

The model consists of two primary components:

  1. Encoder: A 3D U-Net that maps an input MRI scan $x$ to a segmentation map $s$.
  2. Decoder: A convolutional neural network that reconstructs the original image $\hat{x}$ from the predicted segmentation $s$.
The SAE architecture uses a VAE framework where the encoder produces a segmentation map and the decoder reconstructs the original image.

To handle the discrete nature of anatomical labels while maintaining differentiability, the authors employ the Gumbel-softmax relaxation. This allows gradients to propagate through the sampling layer during training.

Anatomical Priors

To guide the learning process, the authors incorporate a prior $p(s)$ into the objective function via a Kullback-Leibler (KL) divergence term. Two types of priors were evaluated:

  • Spatial Prior: A probabilistic atlas providing coordinate-specific label probabilities.
  • Markov Random Field (MRF) Prior: A prior that encourages spatial smoothness by penalizing anatomically inconsistent label transitions between adjacent voxels.

Results

The SAE was evaluated on 38 T1-weighted 3D brain MRI scans. Performance was measured using the Dice Overlap coefficient and the Hausdorff distance across 12 manual segmentations of brain regions.

Performance comparison of various models, showing that SAE2 (with MRF) approaches supervised performance.

Accuracy and Speed

The SAE significantly outperformed traditional atlas-based baselines. Specifically, the SAE2 model with an MRF prior achieved a Dice score of approximately 80.5%, coming within 4 percentage points of a fully supervised model (84.6%).

Furthermore, the SAE offers substantial computational advantages. At inference time, the model is approximately 10 times faster than traditional Expectation-Maximization (EM) tools. On a GPU, the SAE can process a scan in less than 2 seconds, compared to roughly 60 seconds for EM-based methods on a CPU.

Discussion

The SAE demonstrates that segmentation can be effectively framed as a representation learning problem where the decoder acts as a powerful regularizer. By forcing the encoder to produce labels that can reconstruct the original image intensities, the model learns to respect anatomical boundaries. The inclusion of an MRF prior further improves results by capturing local spatial dependencies inherent in human anatomy.

While the current model relies on affine registration to a common atlas space, future work could integrate spatial transformer networks to handle non-linear deformations. The unsupervised nature of the SAE makes it a promising candidate for domain adaptation, allowing for fine-tuning on new clinical datasets without the need for additional manual labels.

Summary updated

BibTeX
@inproceedings{yu2020auto,
  author = {Evan M. Yu and Juan Eugenio Iglesias and Adrian V. Dalca and Mert R. Sabuncu},
  title = {{An Auto-Encoder Strategy for Adaptive Image Segmentation}},
  booktitle = {MIDL},
  year = {2020},
}
Figure