NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Complex Style Image Transformations for Domain Generalization in Medical Images

Nikolaos Spanos, Anastasios Arsenos, Paraskevi-Antonia Theofilou, Paraskevi K. Tzouveli, Athanasios Voulodimos, Stefanos D. Kollias · DOI

Abstract

Deep learning models for medical image segmentation often struggle with "domain shift," where performance drops significantly when applied to data from different scanners or protocols. This paper introduces CompStyle, a framework designed for single-source domain generalization. By combining high-complexity fractal-based image mixing with adversarial style transfer, CompStyle forces models to learn invariant anatomical features rather than scanner-specific styles. Evaluated on prostate and cardiac MRI datasets, the framework demonstrates substantial improvements in robustness against out-of-distribution data and common clinical artifacts without increasing inference-time computational costs.

Introduction: The Challenge of Domain Shift

Medical image segmentation models are notoriously brittle. A model trained on MRI scans from a specific manufacturer (e.g., Siemens) often fails when deployed on scans from another (e.g., Philips) due to subtle variations in contrast, noise, and artifacts. This phenomenon, known as domain shift, is a major barrier to the clinical adoption of AI. While Domain Generalization (DG) techniques exist, they typically require multiple source datasets, which are often unavailable due to privacy and data-siloing constraints. CompStyle addresses this by enabling robust generalization from a single training source.

Methodology: The CompStyle Framework

The CompStyle framework operates on two primary levels during the training phase:

  1. Input-Level Image Mixing with Fractals: Instead of standard geometric or color augmentations, CompStyle mixes training images with fractal patterns. These non-natural, high-complexity textures serve as a regularizer, effectively "blinding" the model to specific scanner textures and forcing it to focus on the underlying anatomical content.
  2. Adversarial Style Transfer: Building on the MaxStyle approach, the framework utilizes an auxiliary decoder to perturb style statistics (mean and variance of features) in the latent space. This creates "hard" adversarial examples—images intentionally modified to be difficult to segment—which pushes the network to develop more robust, invariant representations.
Comparison of original medical images and their augmented counterparts used for training to improve model robustness.

A key advantage of this approach is its efficiency: the auxiliary decoder is only active during training. The final model can be deployed as a standard, lightweight network (such as FCN-16 or FCN-64) with no additional computational overhead.

Experimental Setup and Datasets

The researchers validated CompStyle across two distinct medical imaging tasks:

  • Prostate Segmentation: Using the Medical Decathlon dataset as the single source, the model was tested on seven "out-of-domain" (OOD) datasets (including NCI-ISBI-2013, I2CVB, and PROMISE12) featuring diverse scanners and protocols.
  • Cardiac Robustness: Using the ACDC cardiac dataset, the team evaluated the model's resilience to synthetic corruptions common in clinical environments, such as motion artifacts, ghosting, and electromagnetic interference (spike artifacts).

Key Results and Insights

CompStyle demonstrated a significant performance leap over baseline and state-of-the-art methods:

  • Out-of-Domain Reliability: On the most challenging prostate test sets, where baseline DICE scores dropped to ~24-29%, CompStyle maintained scores of ~64-77%.
  • Resilience to Artifacts: The framework was exceptionally effective against "Spike" artifacts. While baseline models essentially failed (DICE score of 1), CompStyle achieved scores of ~50-62%.
  • Model Capacity: Interestingly, larger networks (FCN-64) showed greater benefits from CompStyle than smaller ones (FCN-16), suggesting that higher-capacity models are better equipped to store the complex, invariant features required for generalization.
An example of a cardiac MRI scan corrupted by spike artifacts (electromagnetic interference), a condition where CompStyle significantly outperformed baseline models.

Conclusion

CompStyle offers a powerful solution for single-source domain generalization in medical imaging. By leveraging the complexity of fractals and adversarial training, it bridges the gap between specialized hospital models and general-purpose clinical tools. While there is a minor trade-off in performance on the original source domain, the massive gains in out-of-distribution reliability make it a promising candidate for real-world deployment. Future research will explore its application to Vision Transformers (ViTs) and other domains like autonomous driving.

Summary updated

BibTeX
@misc{spanos2024complex,
  author = {Nikolaos Spanos and Anastasios Arsenos and Paraskevi-Antonia Theofilou and Paraskevi K. Tzouveli and Athanasios Voulodimos and Stefanos D. Kollias},
  title = {{Complex Style Image Transformations for Domain Generalization in Medical Images}},
  year = {2024},
  eprint = {2406.00298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.00298},
}
Figure