Abstract
Medical image segmentation models often struggle with domain shift when deployed across different scanners or institutions. While Domain Generalization (DG) typically requires multi-source data, Single-source Domain Generalization (SDG) aims to achieve robustness using only one training dataset. We present RaffeSDG, a framework that utilizes randomized frequency-domain filtering and homologous sample blending to simulate diverse target domains. Our approach achieves state-of-the-art performance across multiple modalities, including fundus photography, OCT, and ultrasound, demonstrating superior generalization to unseen clinical environments.
Introduction
Deep learning models in medical imaging frequently encounter "domain shift," where a model trained on data from one specific device fails when applied to images from another. While traditional DG methods mitigate this by training on diverse datasets, acquiring large-scale, multi-institutional annotated data is often impractical due to privacy and logistical constraints. SDG represents a more challenging yet realistic scenario: training a robust model from a single source. Existing SDG techniques often rely on heavy-handed data augmentation or complex generative models that may introduce artifacts or fail to capture the structural essence of medical images. RaffeSDG addresses these issues by manipulating the image frequency spectrum to decouple style from structure.
Methodology
The RaffeSDG framework is built upon three core components designed to enhance domain robustness without the need for target domain data.
- Random Fourier Filtering: The model applies Butterworth high-pass filters with randomized parameters to the image's frequency spectrum. This process perturbs low-frequency "style" information (e.g., lighting, contrast) while preserving high-frequency "structural" details (e.g., vessel edges). Unlike "ideal" filters that can create ringing artifacts, Butterworth filters provide a smoother transition, resulting in more realistic augmented data.
- Homologous Sample Blending: To simulate local artifacts and non-uniform domain shifts, the framework blends two differently filtered versions of the same image using a continuous, distance-based mask. This creates diverse "sub-image" variations that mimic real-world clinical noise.
- Dual-Decoder Architecture: The network employs a shared encoder with two decoders. The primary decoder handles segmentation, while a secondary self-supervised decoder reconstructs a structural saliency map (derived via Gaussian filtering). This dual-task setup forces the encoder to prioritize anatomical structures over domain-specific textures.
Experimental Setup
The effectiveness of RaffeSDG was evaluated across three tissues and four imaging modalities:
- Retinal Vessels: Trained on the DRIVE dataset (Fundus photography) and tested on four unseen datasets: AVRDB, CHASEDB, STARE, and IOSTAR.
- Retinal Layers: Trained on HC-MS (OCT) and tested on DUKE-AMD, GOALS, and AROI.
- Joint Cartilage: Trained on a clinical ultrasound dataset and tested on three others featuring different gain and grayscale configurations.
Results and Discussion
RaffeSDG consistently outperformed existing SDG methods and rivaled Domain Adaptation (DA) techniques that require target data during training. In vessel segmentation on the STARE dataset, RaffeSDG achieved a DICE score of 0.775, significantly higher than the baseline U-Net (0.600) and the previous state-of-the-art FreeSDG (0.677).
A key insight is that domain shifts in medical imaging are predominantly low-frequency phenomena. By specifically targeting these frequencies, RaffeSDG effectively "simulates" the distribution of unknown target domains. The t-SNE analysis in Figure 6 illustrates how the augmented source domain data expands to overlap with the feature space of multiple unseen target datasets. Furthermore, the model demonstrated high data efficiency, outperforming other models even when trained on a fraction of the available source data (e.g., surpassing SOTA models with only 8 raw samples from DRIVE).
Conclusion
RaffeSDG provides a robust and efficient solution for single-source domain generalization in medical image segmentation. By leveraging frequency-domain perturbations and structural consistency, it bridges the gap between single-institution training and multi-institution deployment. Future work will address multi-category segmentation challenges by incorporating category-wise generalization modules to better distinguish between adjacent tissue types.
Summary updated