Spectral Adversarial MixUp for Few-Shot Unsupervised Domain Adaptation

Jiajin Zhang, Hanqing Chao, Amit Dhurandhar, Pin-Yu Chen, Ali Tajer, Yangyang Xu, Pingkun Yan

Introduction

Deep learning models in medical imaging often encounter significant performance degradation when deployed across different clinical environments. This phenomenon, known as domain shift, arises from variations in imaging hardware, lighting conditions, and site-specific protocols. While Unsupervised Domain Adaptation (UDA) has been developed to mitigate these effects, standard techniques typically require hundreds or thousands of unlabeled images from the target site to be effective.

In many clinical scenarios, acquiring such a large volume of data is impractical due to privacy regulations and logistical constraints. This paper introduces Spectral Adversarial MixUp (SAMix), a framework designed for Few-Shot Unsupervised Domain Adaptation (FSUDA). SAMix enables models to adapt to a new domain using as few as one to ten unlabeled images by strategically augmenting data in the frequency domain.

Methodology

SAMix is a "plug-in" module that can be integrated into existing UDA architectures. It operates on the principle that in the frequency domain (via Fourier Transforms), the phase of an image contains its structural information (the medical content), while the amplitude contains the style (the domain-specific characteristics). The framework consists of two primary components:

1. Domain-Distance-modulated Spectral Sensitivity (DoDiSS)

Rather than analyzing pixel-level differences, DoDiSS calculates a "sensitivity map" in the frequency domain. This map identifies which specific frequencies and textures cause the model to fail when transitioning from the source domain (e.g., Hospital A) to the target domain (e.g., Hospital B). By pinpointing these spectral weaknesses, the system can focus its adaptation efforts where they are most needed.

2. Spectral Adversarial MixUp (SAMix)

The core algorithm performs a controlled mix of the source and target amplitude spectra. Unlike traditional random augmentation, SAMix employs an adversarial approach. It searches for the specific combination of frequencies that the model currently finds most difficult to process. By training the model on these "hard" synthetic examples—which maintain the original labels through the source phase—the model becomes significantly more robust to the variations present in the new clinical environment.

Experimental Evaluation

The researchers evaluated SAMix across two distinct medical imaging tasks to test its versatility:

  • Fundus Image Segmentation: Using the REFUGE dataset as the source and RIM-One as the target, the task involved segmenting the optic disc and cup. This tested the model's resilience against different retinal camera scanners.
  • Histopathology Classification: Using the Camelyon dataset, the model was tasked with tumor tissue classification across images from five different hospitals, testing its ability to generalize across varying lab protocols and staining techniques.

Key Results and Insights

SAMix demonstrated substantial improvements over baseline models and existing FSUDA-specific methods:

  • 1-Shot Performance: In the Fundus segmentation task, adding SAMix to a standard UDA model (Advent) improved the average Dice Score from 64.43% to 78.48% using only a single target image.
  • Superiority over Specialized Methods: SAMix consistently outperformed other state-of-the-art methods such as Adversarial Style Mining (ASM) and SM-PPM in both segmentation and classification benchmarks.
  • Feature Alignment: t-SNE visualizations indicated that SAMix effectively merged the feature distributions of the source and target domains. This suggests the model successfully learned to prioritize anatomical structures over site-specific "noise."

Discussion and Limitations

While SAMix represents a significant step forward for FSUDA, there are trade-offs to consider. The adversarial optimization step requires an inner loop of iterations to identify "hard" samples, which increases the total training time compared to simple random augmentation. Additionally, the method relies on the assumption that domain style is primarily captured by the amplitude spectrum; while this holds true for many visual shifts, it may not account for complex geometric or structural differences between domains.

Future work may explore the application of spectral adversarial approaches to non-medical domains, such as autonomous driving, where domain shifts are equally prevalent but potentially more varied in nature. Nevertheless, for clinical applications where data is scarce, SAMix provides a powerful, efficient tool for model adaptation.

Summary updated

BibTeX
@inproceedings{zhang2023spectral,
  author = {Jiajin Zhang and Hanqing Chao and Amit Dhurandhar and Pin-Yu Chen and Ali Tajer and Yangyang Xu and Pingkun Yan},
  title = {{Spectral Adversarial MixUp for Few-Shot Unsupervised Domain Adaptation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2023},
  url = {https://openreview.net/forum?id=EBQ3_Gm_5g},
}
Figure