Abstract
Domain Adaption tasks have recently attracted substantial attention in computer vision as they improve the transferability of deep network models from a source to a target domain with different characteristics. A large body of state-of-the-art domain-adaptation methods was developed for image classification purposes, which may be inadequate for segmentation tasks. We propose to adapt segmentation networks with a constrained formulation, which embeds domain-invariant prior knowledge about the segmentation regions. Such knowledge may take the form of anatomical information, for instance, structure size or shape, which can be known a priori or learned from the source samples via an auxiliary task. Our general formulation imposes inequality constraints on the network predictions of unlabeled or weakly labeled target samples, thereby matching implicitly the prediction statistics of the target and source domains, with permitted uncertainty of prior knowledge. Furthermore, our inequality constraints easily integrate weak annotations of the target data, such as image-level tags. We address the ensuing constrained optimization problem with differentiable penalties, fully suited for conventional stochastic gradient descent approaches. Unlike common two-step adversarial training, our formulation is based on a single segmentation network, which simplifies adaptation, while improving training quality. Comparison with state-of-the-art adaptation methods reveals considerably better performance of our model on two challenging tasks. Particularly, it consistently yields a performance gain of 1-4% Dice across architectures and datasets. Our results also show robustness to imprecision in the prior knowledge. The versatility of our novel approach can be readily used in various segmentation problems, with code available publicly.
Introduction: The Challenge of Domain Shift
Deep learning models for medical imaging are notoriously sensitive to "domain shift." A model trained to segment intervertebral discs on one MRI protocol might fail completely when applied to images from a different scanner or a different modality, such as CT. Standard Unsupervised Domain Adaptation (UDA) usually relies on adversarial training, where a discriminator network tries to distinguish between source and target segmentations. However, for high-dimensional segmentation tasks, this approach is often unstable and ignores valuable anatomical prior knowledge.
Proposed Method: Constrained Domain Adaptation (CDA)
The authors propose a "soft" constrained optimization approach that enforces domain-invariant priors through a single segmentation network. Instead of matching feature distributions via GANs, CDA matches the statistics of the output via inequality constraints.
Inequality Constraints and Differentiable Penalties
Instead of forcing the model to match a specific value, CDA sets upper and lower bounds on predicted region properties. For example, the predicted size of an organ can be constrained to be within a certain percentage of an estimated volume. These constraints are implemented using squared ReLU-based penalty functions, making them fully differentiable and compatible with standard Stochastic Gradient Descent (SGD).
Learning and Integrating Priors
To obtain these bounds for the target domain, an auxiliary regression network is trained on source data to estimate the expected size of structures in target images. The framework also easily incorporates weak supervision, such as image-level tags (e.g., "this slice contains the liver"), to prevent the model from "hallucinating" structures in incorrect locations.
Experimental Evaluation
The method was evaluated on two public medical imaging benchmarks:
- IVDM3Seg (Spine): Segmenting intervertebral discs, adapting from "Water" to "In-Phase" MRI modalities.
- MMWHS (Cardiac): Multi-modality Whole Heart Segmentation, adapting from MRI to CT scans across four cardiac structures.
Key Results
- Performance Gains: CDA achieved a 72.3% Dice score in spine segmentation (vs. 57.3% for adversarial methods) and a 71.4% average Dice score in cardiac segmentation (vs. 41.1% for baselines).
- Efficiency: By using a single network instead of an adversarial setup, CDA is nearly twice as fast to train.
- Robustness: The model remains effective even with "noisy" priors, showing performance improvements with margins of error up to ±75% on size constraints.
- Architecture Agnostic: Success was demonstrated using both ENet and UNet backbones.
Conclusion and Future Work
CDA demonstrates that matching output statistics via constraints is a powerful and stable alternative to adversarial domain adaptation for segmentation. While highly effective, the method's sensitivity to initial domain shift and its current 2D focus present opportunities for future work. Extending the framework to 3D volumes and incorporating more complex anatomical priors, such as shape moments or spatial relationships, could further enhance its capabilities.
Summary updated