Augmentation based unsupervised domain adaptation

Mauricio Orbes-Arteaga, Thomas Varsavsky, Lauge Sorensen, Mads Nielsen, Akshay Pai, Sebastien Ourselin, Marc Modat, M Jorge CardosoarXiv 2022

TL;DR

This paper introduces a robust unsupervised domain adaptation (UDA) framework for medical image segmentation that combines adversarial feature alignment with consistency training. By leveraging specialized MRI data augmentations and a multi-stage training schedule, the method prevents the degenerate solutions common to consistency training alone, significantly improving the generalization of deep learning models across different hospital scanners without requiring target-domain labels.

What Problem Does This Paper Address?

Deep learning models excel at medical image segmentation, but they are notoriously sensitive to "domain shift." In clinical practice, an algorithm trained on MRI scans from one hospital (the source domain) often underperforms when deployed at another hospital (the target domain) due to differences in scanner manufacturers, magnetic field strengths, and imaging protocols.

While annotating data for every new scanner would solve this, manual segmentation of structures like White Matter Hyperintensities (WMHs) is incredibly time-consuming and expensive. Unsupervised Domain Adaptation (UDA) attempts to fix this by adapting models using labeled source data and unlabeled target data. However, existing UDA methods have flaws: reconstruction-based methods struggle with complex pathologies, adversarial methods can be unstable to tune, and consistency-training methods often fail or yield trivial, degenerate solutions if the initial domain gap is too wide.

Methods

The authors propose a hybrid UDA framework that merges the strengths of adversarial learning and consistency training, structured into a three-phase training schedule.

Figure 1: Diagram of proposed method. At training time, xu, xl and yl are supplied to the network. xu is an image from the unlabeled target domain and ˆxu is the result of applying some augmentation function to xu. A labeled image, xl, is passed through the network, fθ before combining with a label yl to form the segmentation loss, Ls. The image representations are fed to a domain discriminator dΩwhich attempts to maximise the cross-entropy between predicted domain and actual domain, Ladv. Finally, similarity is promoted between the network predictions on xu and ˆxu using LP C.
  1. Supervised Pre-training: The core segmentation network (a standard 2D U-Net) is initially trained using only the labeled source domain data.
  2. Adversarial Feature Alignment: To bridge the initial domain gap, the authors introduce a domain discriminator network. The segmenter acts as a feature extractor, trying to fool the discriminator into being unable to distinguish between source and target domain features. This acts as a "pre-alignment" step.
  3. Joint Consistency Training: Once the domains are roughly aligned, consistency regularization is activated. The model is forced to output identical segmentation predictions for a target image and its heavily augmented counterpart.

Crucially, the authors replace the standard Kullback-Leibler (KL) divergence loss typically used in consistency training with a Dice loss, which is much better suited for handling the severe class imbalances inherent to medical lesion segmentation.

Data Augmentation Strategies

The consistency training is powered by three types of augmentations:

  • Geometric: Affine transformations including random rotations, shears, and scaling.
  • MRI-Specific: Synthetic k-space motion artifacts and bias field distortions to mimic real scanner noise.
  • Real (Paired): Leveraging cases where the same subject had both 2D and 3D MRI acquisitions during the same session, treating them as natural, realistic augmented variants of one another.

Datasets

The method was evaluated on two primary datasets:

  1. MICCAI 2017 WMH Segmentation Challenge Dataset: Contains T1-weighted and FLAIR MRI pairs from 60 subjects across three distinct clinical sites (Utrecht, Singapore, and Amsterdam), each utilizing different scanner hardware.
  2. POPPY Dataset: A dataset consisting of 72 subjects, where each subject underwent two different FLAIR sequences (axial 2D and volumetric 3D) during the same imaging session on a Philips 3T scanner.

Key Insights and Ideas

  • The Power of Pre-Alignment: Consistency training relies on "label propagation" from the source to the target domain. If the domains are too different, the model simply predicts background or foreground for everything—a trivial solution that technically satisfies the consistency constraint but ruins segmentation performance. The adversarial loss acts as a vital guide, bringing the domains close enough in feature space for consistency training to safely take over.
  • Task-Specific Augmentations Matter: Standard computer vision augmentations (like color jittering) don't translate well to medical imaging. Incorporating domain-specific physics simulations—like k-space artifacts and magnetic bias fields—provides the inductive bias necessary for the network to learn true domain-invariant anatomical representations.

Key Results

The hybrid approach (TC & Adversarial) consistently outperformed individual adaptation strategies across multiple cross-clinic evaluation tracks.

Main quantitative results across different cross-clinic adaptation tasks.
  • Clinic 1 $\rightarrow$ Clinic 2: The proposed method achieved a median Dice score of 0.7572, significantly higher than "No Adaptation" (0.6761) and outperforming standalone adversarial learning (0.7141) and standalone consistency training (0.7392).
  • Clinic 2 $\rightarrow$ Clinic 3: The method achieved a top-tier Hausdorff Distance (HD95) of 4.7457 mm, demonstrating highly accurate boundary delineation compared to the unadapted baseline (8.6575 mm).
  • On the POPPY dataset, adding geometric and MRI-specific augmentations to the real paired sequences yielded the highest overall target domain performance, proving that compounding diverse augmentation types enhances robustness.

Limitations and Future Work

A key limitation acknowledged by the authors is that their framework does not explicitly exploit prior knowledge of the target domain's distribution to design custom augmentations. Instead, it relies on a broad mix of generic and MRI-specific transformations.

For future work, the authors plan to explore methods that automatically compute the exact distribution shift between domains. This would allow the framework to dynamically select the most effective augmentation functions and automatically determine whether the adversarial pre-alignment step is strictly necessary, avoiding potential information loss from over-alignment.

Summary updated

BibTeX
@misc{orbesarteaga2022augmentation,
  author = {Mauricio Orbes-Arteaga and Thomas Varsavsky and Lauge Sorensen and Mads Nielsen and Akshay Pai and Sebastien Ourselin and Marc Modat and M Jorge Cardoso},
  title = {{Augmentation based unsupervised domain adaptation}},
  year = {2022},
  eprint = {2202.11486},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.11486},
}
Figure