Introduction
Federated Learning (FL) has emerged as a vital paradigm for training deep learning models on sensitive medical data distributed across multiple institutions. By keeping data local and only sharing model updates, FL addresses significant privacy concerns. However, a critical challenge remains: domain shift. Medical images from different hospitals often exhibit variations due to different scanners, protocols, and patient demographics. A model trained on a specific set of source domains often fails to generalize to an unseen target domain (e.g., a new hospital).
Standard Domain Generalization (DG) techniques typically require centralized access to multi-source data to align feature distributions, which violates the core privacy tenets of FL. This paper introduces FedDG, a framework designed for Federated Domain Generalization that enables models to learn robust, domain-invariant features from decentralized sources without compromising privacy.
Methodology: Episodic Learning in Continuous Frequency Space (ELCFS)
The proposed approach, ELCFS, tackles domain shift through two innovative mechanisms: Continuous Frequency Space Interpolation (CFSI) and Boundary-oriented Episodic Learning (BEL).
Continuous Frequency Space Interpolation (CFSI)
CFSI leverages the properties of the Fourier Transform to share distribution information safely. In the frequency domain, an image's amplitude spectrum represents low-level "style" (e.g., contrast, texture), while the phase spectrum encodes high-level semantic structures (e.g., anatomy).
In FedDG, clients share a "distribution bank" containing only amplitude spectra. Each local client then interpolates its local data's amplitude with spectra from the bank using an interpolation ratio $\lambda$. This process generates "transformed" images that reflect the styles of other hospitals while preserving the original local anatomy. By varying $\lambda$ continuously, the model is exposed to a dense, continuous distribution space rather than discrete domain points.
Boundary-oriented Episodic Learning (BEL)
To further enhance robustness, FedDG employs a meta-learning (episodic) strategy. During each local training iteration, the model performs a "meta-train" step on original local data and a "meta-test" step on the frequency-transformed data to simulate domain shifts.
Crucially, the authors identify that segmentation errors primarily occur at anatomical boundaries. BEL introduces a specialized loss (based on InfoNCE) that focuses on these regions. By using boundary and background masks, the model is forced to extract domain-invariant features specifically for ambiguous boundary pixels, ensuring more reliable performance on unseen scanners.
Experimental Results
The FedDG framework was evaluated on two multi-source medical imaging datasets: Retinal Fundus images (4 sites) and Prostate MRI (6 sites), using a leave-one-domain-out cross-validation strategy.
Quantitative Performance
FedDG consistently outperformed the standard Federated Averaging (FedAvg) baseline and several state-of-the-art DG methods adapted for the federated setting.
- Retinal Fundus: Achieved a Dice score of 87.03%, a significant improvement over FedAvg (85.11%).
- Prostate MRI: Improved the average Dice score to 87.39% from the 85.57% baseline.
Qualitative Analysis
Visual results demonstrate that FedDG produces much cleaner and more accurate segmentation masks, particularly at the boundaries of the optic disc/cup and the prostate, where other methods often produce fragmented or misaligned predictions.
Conclusion
FedDG effectively bridges the gap between federated learning and real-world clinical deployment. By sharing amplitude spectra as a privacy-preserving proxy for domain distributions and focusing on boundary-invariant feature learning, the framework achieves state-of-the-art generalization. This approach paves the way for more robust and deployable medical AI systems that can serve new hospitals immediately without requiring local data retraining.
Summary updated