Abstract
Standard deep learning models for brain lesion segmentation are typically constrained to a fixed set of MRI modalities defined during training. This lack of flexibility hinders clinical deployment where imaging protocols vary or new sequences are introduced. We present a modality-agnostic framework that enables models to leverage unseen MRI contrasts at test time. By incorporating a dedicated "agnostic" input pathway and a novel synthetic data augmentation strategy, our approach maintains high performance on known modalities while effectively generalizing to completely new sequences, such as Diffusion Weighted Imaging (DWI), without requiring retraining.
Introduction
Magnetic Resonance Imaging (MRI) in clinical practice utilizes various "modalities" (e.g., T1-weighted, T2-weighted, FLAIR) to highlight different pathological features. However, most automated segmentation models are brittle; they require a specific, fixed input configuration. When a clinic employs a different protocol or introduces a specialized sequence not present in the training set, these models often fail.
Existing approaches to this problem, such as domain adaptation or domain generalization, often require slow retraining or result in a loss of fine-grained detail. This work proposes a "best of both worlds" solution: a model that retains expertise in known modalities while remaining capable of extracting structural information from entirely new ones.
Methods
The core of the proposed method is a modification to the standard U-Net architecture, introducing two primary components: the Agnostic Path and a specialized training regime.
Architecture: The Agnostic Path
Instead of relying solely on dedicated channels for specific modalities, the architecture includes a "Modality-Agnostic" channel. In the optimized Agnostic Path configuration, this channel feeds into a sub-network consisting of three convolutional layers before merging with the main U-Net features. This dedicated processing power allows the model to interpret unfamiliar intensity distributions.
Training and Data Augmentation
To teach the model to handle unknown contrasts, the authors employed Modality Dropout (randomly omitting sequences) alongside a suite of synthetic augmentations:
- Intensity Variations: Random scaling and shifting of brightness/contrast.
- Inversion: Flipping pixel intensities to simulate different contrast weights.
- MixUp: Linear blending of modalities.
- Lesion Switch: A novel technique that transplants lesion appearances from one modality into the healthy tissue of another, creating realistic but artificial contrasts.
The model was evaluated across 8 MRI databases covering 5 pathologies (Stroke, Tumors, Traumatic Brain Injury, Multiple Sclerosis, and White Matter Hyperintensities) and 8 distinct modalities.
Results and Discussion
The Agnostic Path model consistently outperformed standard baselines when faced with unseen data. For instance, when evaluated on the ISLES22 dataset with unseen DWI sequences, the model achieved a 6.4% improvement in Dice score. Even more striking results were observed with unseen FLAIR sequences for white matter hyperintensity (WMH) segmentation, where the model showed a 29.7% improvement over standard models.
Key Insights
- Structural Priority: The augmentation strategy forces the agnostic path to prioritize underlying anatomical structure over specific intensity values, facilitating cross-modality generalization.
- Parameter Weighting: The extra layers in the Agnostic Path prevent the model from ignoring new modalities in favor of familiar ones, effectively acting as an attention mechanism for novel inputs.
- Fine-Tuning Efficiency: The pre-trained agnostic pathway provides a superior starting point for fine-tuning on small, site-specific datasets compared to standard pre-trained models.
Conclusion
By combining modality-specific expertise with a flexible, agnostic processing pathway, this framework addresses a critical barrier to the clinical adoption of AI in radiology. Future work will focus on refining augmentations to better represent the complex physics of diverse MRI acquisitions and improving performance when multiple unseen modalities are presented simultaneously.
Summary updated