Abstract
Solving the domain shift problem during inference is essential in medical imaging as most deep-learning based solutions suffer from it. In practice, domain shifts are tackled by performing Unsupervised Domain Adaptation (UDA), where a model is adapted to an unlabeled target domain by leveraging the labelled source domain. In medical scenarios, the data comes with huge privacy concerns making it difficult to apply standard UDA techniques. Hence, a closer clinical setting is Source-Free UDA (SFUDA), where we have access to source trained model but not the source data during adaptation. Methods trying to solve SFUDA typically address the domain shift using pseudo-label based self-training techniques. However, due to domain shift, these pseudo-labels are usually of high entropy and denoising them still does not make them perfect labels to supervise the model. Therefore, adapting the source model with noisy pseudo labels reduces its segmentation capability while addressing the domain shift. To this end, we propose a two-stage approach for source-free domain adaptive image segmentation: 1) Target-specific adaptation followed by 2) Task-specific adaptation. In the first stage, we focus on generating target-specific pseudo labels while suppressing high entropy regions by proposing an Ensemble Entropy Minimization loss. We also introduce a selective voting strategy to enhance pseudo-label generation. In the second stage, we focus on adapting the network for task-specific representation by using a teacher-student self-training approach based on augmentation-guided consistency. We evaluate our proposed method on both 2D fundus datasets and 3D MRI volumes across 7 different domain shifts where we achieve better performance than recent UDA and SF-UDA methods for medical image segmentation. Code is available at https://github.com/Vibashan/tt-sfuda.
Introduction
Deep learning models for medical imaging often suffer from domain shift: a model trained on MRI scans from one hospital might perform poorly on scans from another due to variations in scanner hardware, imaging protocols, or patient demographics. While Unsupervised Domain Adaptation (UDA) is commonly used to mitigate this, it requires simultaneous access to both source and target data. In clinical settings, privacy regulations like HIPAA or GDPR often prohibit sharing raw source data, necessitating Source-Free UDA (SFUDA). SFUDA relies solely on a pre-trained source model and unlabeled target data. However, the initial pseudo-labels generated by the source model on the target domain are often noisy and uncertain, leading to poor adaptation if not properly addressed.
Methodology: The TT-SFUDA Framework
The proposed Target and Task specific SFUDA (TT-SFUDA) framework addresses these challenges through a systematic two-stage process.
Stage I: Target-specific Adaptation
The first stage focuses on refining the model's initial guesses on the target domain.
- Ensemble Entropy Minimization ($L_{EEM}$): The model processes multiple augmented versions of the same input image. It identifies regions of high uncertainty (high entropy) across the ensemble and works to minimize this uncertainty, leading to more robust target-specific representations.
- Selective Voting (SV): By leveraging entropy maps from different augmentations, this strategy identifies and suppresses false negatives. This results in "Enhanced Pseudo-Labels" that are significantly cleaner than raw model outputs.
Stage II: Task-specific Adaptation
Once the target-specific representations are refined, the model focuses on the segmentation task using a teacher-student framework.
- Student-Teacher Framework: A "Teacher" model generates high-quality pseudo-labels (refined in Stage I) on weakly augmented images. These labels supervise a "Student" model trained on strongly augmented versions of the same images.
- Consistency Learning: The Teacher’s weights are updated via an Exponential Moving Average (EMA) of the Student’s weights, ensuring stable and consistent learning.
Experimental Evaluation
The researchers evaluated TT-SFUDA across seven domain shifts using both 2D and 3D medical imaging datasets:
- 2D Retinal Vessel Segmentation: Evaluated on CHASE, RITE, and HRF fundus image datasets.
- 3D Brain Tumor Segmentation: Evaluated on the BraTS 2019 dataset, focusing on shifts between MRI modalities (e.g., T2 to FLAIR).
Key Results
TT-SFUDA consistently outperformed both standard UDA and state-of-the-art SFUDA methods. For instance, in the HRF $\rightarrow$ CHASE shift, TT-SFUDA achieved a Dice score of 64.95, surpassing the next best SFUDA method (DPL at 61.29). In 3D MRI volumes (T2 $\rightarrow$ FLAIR), it achieved a Whole Tumor Dice score of 59.06, exceeding previous benchmarks. Ablation studies confirmed that both the Ensemble Entropy Minimization and the Student-Teacher framework are critical to this success.
Conclusion
TT-SFUDA demonstrates that high-accuracy domain adaptation is possible without access to original source data, a vital requirement for privacy-preserving clinical deployment. The key insight is the necessity of refining target-specific representations before task-specific learning to prevent overfitting to initial noise. While the method introduces some computational overhead and hyper-parameter sensitivity, its performance across diverse medical imaging tasks establishes it as a robust solution for source-free domain adaptation.
Summary updated