A Simple and Robust Framework for Cross-Modality Medical Image Segmentation applied to Vision Transformers

Matteo Bastico, David Ryckelynck, Laurent Corté, Yannick Tillier, Etienne DecencièreWorkshops @ ICCV 2023

Abstract

Cross-modality medical image segmentation remains a significant challenge due to the inherent domain shift between imaging techniques like MRI and CT. Traditional approaches often rely on complex data registration or computationally intensive generative models. This paper presents a streamlined framework that utilizes Conditional Instance Normalization (CIN) within a Vision Transformer (ViT) architecture. By learning modality-specific normalization parameters, the proposed Conditional Vision Transformer (C-ViT) effectively bridges the domain gap, allowing a single model to achieve state-of-the-art performance across multiple modalities without the need for aligned data or synthetic image generation.

Introduction

In clinical practice, multi-modal imaging is essential for comprehensive diagnosis and treatment planning. While MRI provides excellent soft-tissue contrast, CT is superior for visualizing bony structures and lung parenchyma. Developing automated segmentation tools that can handle both modalities is critical, yet difficult. AI models are typically domain-specific; a model trained on CT scans often fails when applied to MRI data due to differences in intensity distributions, noise profiles, and contrast.

Existing solutions to this "cross-modality" gap generally fall into three categories: registered data training, generative adversarial networks (GANs), and transfer learning. Registered datasets, where the same patient is scanned by both modalities in perfect alignment, are rare and difficult to acquire. GAN-based methods, which translate images from one modality to another, add significant computational overhead and risk introducing anatomical artifacts. Transfer learning often suffers from "catastrophic forgetting," where fine-tuning on a new modality degrades performance on the original one. This work introduces a robust alternative that leverages the architectural strengths of Vision Transformers and conditional normalization.

Methodology

Conditional Vision Transformer (C-ViT)

The core innovation of this framework is the integration of Conditional Instance Normalization (CIN) into a hierarchical vision transformer, specifically the Swin-UNETR. Unlike standard Layer Normalization, CIN allows the model to adapt its feature extraction based on the input modality $m$.

Overview of the Conditional Vision Transformer (C-ViT) architecture for 3D medical image segmentation.

For a given input, the CIN layer applies a modality-specific scaling factor ($\gamma_m$) and shift ($\beta_m$) to the normalized features. This mechanism effectively "tunes" the network's internal activations to the specific style of the input modality (e.g., MRI vs. CT) while keeping the majority of the transformer's weights shared. This shared weight structure forces the model to learn a common latent representation of the underlying anatomy, regardless of the imaging source.

Interleaved Mixed Training

To train the C-ViT, the authors employed an interleaved mixed training strategy. During each training iteration, the model is fed batches containing a mix of different modalities. This approach prevents the model from overfitting to a single domain and encourages the development of robust, modality-invariant features. By doubling the effective training data (using both MRI and CT), the framework also helps mitigate the "data-hungry" nature of transformer architectures in the medical domain.

Experimental Setup

The framework was evaluated using the Multi-Modality Whole Heart Segmentation (MM-WHS) 2017 Challenge dataset, consisting of 20 MRI and 20 CT volumes. The objective was to segment seven distinct cardiac substructures: the Left Ventricle (LV), Right Ventricle (RV), Left Atrium (LA), Right Atrium (RA), Myocardium (MYO), Ascending Aorta (AA), and Pulmonary Artery (PA). The experiments focused on using MRI as an "assistant" modality to improve segmentation accuracy on the "target" CT modality.

Results and Discussion

The C-ViT framework demonstrated significant improvements over both standard baselines and specialized cross-modality architectures. On the CT target modality, the C-ViT achieved a mean Dice score of 90.77%, a substantial increase over the baseline 3D UNet (87.06%). When compared directly to a standard Swin-UNETR without the conditional framework, the C-ViT improved whole heart segmentation accuracy by 6.87%.

Qualitative comparison of segmentation results on CT scans across different training strategies.

Qualitative analysis (as seen in the figure above) shows that C-ViT produces segmentations that more closely align with the ground truth (GT) than baseline or joint-training methods. The model is particularly effective at maintaining structural consistency in regions where contrast is low. Crucially, because the modality adaptation happens within the normalization layers, the approach adds negligible computational cost during inference; the user simply toggles a switch to select the appropriate modality parameters.

Conclusion

This work presents a simple yet powerful method for cross-modality medical image segmentation. By making normalization layers modality-aware, the C-ViT framework allows a single model to learn from diverse, non-registered datasets. Future research will focus on extending this mechanism to Unsupervised Domain Adaptation (UDA), potentially allowing models to adapt to new modalities without requiring any manual labels for the target domain.

Summary updated

BibTeX
@inproceedings{bastico2023simple,
  author = {Matteo Bastico and David Ryckelynck and Laurent Corté and Yannick Tillier and Etienne Decencière},
  title = {{A Simple and Robust Framework for Cross-Modality Medical Image Segmentation applied to Vision Transformers}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  doi = {10.1109/iccvw60793.2023.00446},
}
Figure