Grad-CL: Source Free Domain Adaptation with Gradient Guided Feature Disalignment
Preprint
Abstract
Accurate segmentation of the optic disc and cup is critical for the early diagnosis and management of ocular diseases such as glaucoma. However, segmentation models trained on one dataset often suffer significant performance degradation when applied to target data acquired under different imaging protocols or conditions. To address this challenge, we propose \textbf{Grad-CL}, a novel source-free domain adaptation framework that leverages a pre-trained source model and unlabeled target data to robustly adapt segmentation performance without requiring access to the original source data. Grad-CL combines a gradient-guided pseudolabel refinement module with a cosine similarity-based contrastive learning strategy. In the first stage, salient class-specific features are extracted via a gradient-based mechanism, enabling more accurate uncertainty quantification and robust prototype estimation for refining noisy pseudolabels. In the second stage, a contrastive loss based on cosine similarity is employed to explicitly enforce inter-class separability between the gradient-informed features of the optic cup and disc. Extensive experiments on challenging cross-domain fundus imaging datasets demonstrate that Grad-CL outperforms state-of-the-art unsupervised and source-free domain adaptation methods, achieving superior segmentation accuracy and improved boundary delineation. Project and code are available at https://visdomlab.github.io/GCL/.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Label Calibration in Source Free Domain Adaptation2025
- Uncertainty and Energy based Loss Guided Semi-Supervised Semantic Segmentation2025
- A Comprehensive Survey on Source-Free Domain AdaptationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2024
- Robust Source-Free Domain Adaptation for Fundus Image Segmentation2024
- UC-SFDA: Source-free domain adaptation via uncertainty prediction and evidence-based contrastive learningKnowledge-Based Systems, 2023
- Local contrastive loss with pseudo-label based self-training for semi-supervised medical image segmentationMedical Image Analysis, 2023
- Unsupervised Domain Adaptation Based Image Synthesis and Feature Alignment for Joint Optic Disc and Cup SegmentationIEEE Journal of Biomedical and Health Informatics, 2021
- Maximum Density Divergence for Domain AdaptationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2020
- REFUGE Challenge: A unified framework for evaluating automated methods for glaucoma assessment from fundus photographsMedical Image Analysis, 2020
- Patch-Based Output Space Adversarial Learning for Joint Optic Disc and Cup SegmentationIEEE Transactions on Medical Imaging, 2019