Aligning What You Separate: Denoised Patch Mixing for Source-Free Domain Adaptation in Medical Image Segmentation

Quang-Khai Bui-Tran, Thanh-Huy Nguyen, Hoang-Thien Nguyen, Ba-Thinh Lam, Nguyen Lan Vi Vu, Phat K. Huynh, Ulas Bagci, Min XuarXiv 2025 · DOI

Introduction

Deep learning models in medical imaging frequently encounter performance degradation when deployed across different clinical sites—a phenomenon known as domain shift. Factors such as varying imaging hardware, lighting conditions, and patient demographics contribute to this challenge. While traditional Domain Adaptation (DA) techniques can mitigate these effects, they typically require access to the original source training data. In the medical field, privacy regulations like HIPAA and GDPR often prohibit such data sharing, necessitating Source-Free Domain Adaptation (SFDA).

SFDA aims to adapt a pre-trained model using only unlabeled target data. However, a significant hurdle in current SFDA approaches is the uniform treatment of all target samples. This often results in "noisy" or incorrect pseudo-labels for difficult cases, which can adversely affect model training. This paper introduces a novel framework that addresses this by intelligently separating "easy" from "hard" samples and employing a progressive learning strategy.

Methodology

The proposed framework is built upon three core components designed to facilitate robust adaptation without source data access.

Overview of the proposed SFDA framework, illustrating Hard Sample Selection and Denoised Patch Mixing.

1. Hard Sample Selection

Rather than adapting to the entire target dataset simultaneously, the model partitions images into Reliable and Unreliable subsets. This selection is guided by two metrics:

  • Entropy: Measures the model's uncertainty regarding its predictions.
  • Feature Similarity: Evaluates how closely an image's features align with the "average" source feature representation.

2. Denoised Patch Mixing (DPM)

To refine the training process, the authors implement a "denoising mask." By calculating class prototypes (average features for the optic cup and disc), the system masks out pixels that deviate significantly from their expected prototype. A modified "CutMix" strategy is then used to blend patches between images while suppressing these identified noisy pixels.

3. Dual Alignment Strategy

Training proceeds in two stages. First, Intra-Domain Alignment is performed within the reliable set to stabilize the model. Subsequently, Inter-Domain Alignment is conducted, where reliable patches are mixed into unreliable images to guide the model in handling more challenging cases.

Experimental Evaluation

The framework was evaluated on fundus image segmentation tasks, specifically for the optic disc and optic cup, which are vital for glaucoma diagnosis. The REFUGE dataset served as the source domain, while Drishti-GS and RIM-ONE-r3 were used as target domains.

Key Results and Discussion

The proposed method achieved state-of-the-art performance across multiple benchmarks, as measured by the Dice score and Average Symmetric Surface Distance (ASSD).

Quantitative comparison of the proposed method against existing SFDA techniques on the Drishti-GS and RIM-ONE-r3 datasets.

As shown in the results table, the framework significantly outperforms prior methods. On the RIM-ONE-r3 dataset, it achieved a Dice score of 95.14% for optic disc segmentation, surpassing the previous best method (SBIF) by 1.33%. Qualitative analysis further confirms that the method produces sharper boundaries that align more closely with ground-truth contours compared to competing approaches.

Insights on Progressive Adaptation

Ablation studies highlighted that starting with "easy" (reliable) samples provides a stable foundation for the model. The authors found a "sweet spot" for difficulty: designating approximately 10% of the target data as "unreliable" yielded optimal results. This balance ensures sufficient noise filtering while maintaining enough data diversity for effective learning.

Conclusion

This research demonstrates that a progressive, denoised approach to SFDA can significantly improve segmentation accuracy in new clinical environments. By separating reliable from unreliable samples and applying pixel-level denoising, the model achieves high-fidelity results without compromising data privacy. Future work will focus on reducing the computational overhead of Monte Carlo-based denoising and exploring the integration of large-scale foundation models.

Summary updated

BibTeX
@misc{buitran2025aligning,
  author = {Quang-Khai Bui-Tran and Thanh-Huy Nguyen and Hoang-Thien Nguyen and Ba-Thinh Lam and Nguyen Lan Vi Vu and Phat K. Huynh and Ulas Bagci and Min Xu},
  title = {{Aligning What You Separate: Denoised Patch Mixing for Source-Free Domain Adaptation in Medical Image Segmentation}},
  year = {2025},
  eprint = {2510.25227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.25227},
}
Figure