Abstract
Medical image segmentation is often hindered by the high cost of expert annotation, particularly for the diverse modalities found in Magnetic Resonance Imaging (MRI). We present MRGen, a diffusion-based data engine designed to synthesize high-quality, mask-aligned MRI images for modalities lacking manual labels. By decoupling anatomical structure from visual appearance through a two-stage training strategy and a large-scale curated dataset (MRGen-DB), MRGen enables the training of robust segmentation models across underrepresented imaging domains.
The MRI Annotation Bottleneck
Segmentation—digitally outlining organs or tumors—is vital for modern radiology. However, MRI presents a unique challenge: different scanner settings produce distinct "modalities" (e.g., T1, T2, SPIR) that highlight tissues differently. A model trained on T1 images typically fails when applied to T2 images because the visual characteristics of organs change entirely.
Traditional solutions like image-to-image translation (e.g., CycleGAN) often require perfectly registered image pairs, which are rarely available. Consequently, thousands of manual labels are usually needed for every new modality, creating a massive bottleneck for clinical deployment.
Methods: Decoupling Anatomy from Appearance
MRGen addresses this by using Latent Diffusion Models (LDMs) to separate "what" an organ looks like from "where" it is located. The framework employs a two-stage training process:
- Text-Guided Pretraining: The model learns the visual physics of over 100 MRI modalities using a large image-text dataset. GPT-4 generated "templated prompts" (e.g., "T1 MRI; fat high signal, muscle intermediate signal...") act as a semantic bridge to teach the model how different tissues appear under various scan parameters.
- Mask-Conditioned Finetuning: The model is trained to follow anatomical masks. By training on both annotated and unannotated data, MRGen learns to "paint" target modality styles onto source anatomical geometries.
To ensure data reliability, the pipeline includes a SAM2 Autofilter. The Segment Anything Model 2 (SAM2) acts as a quality gate, discarding synthetic images that do not align perfectly with the input mask based on Intersection over Union (IoU) and confidence scores.
MRGen-DB: A Large-Scale MRI Dataset
A core contribution of this work is MRGen-DB, a comprehensive dataset comprising nearly 250,000 2D slices from over 6,000 3D volumes. It includes rich metadata such as modality, anatomical region (e.g., Pelvic, Upper Abdominal), and tissue attributes, aggregated from sources like Radiopaedia and various public challenges (CHAOS, MSD, etc.).
Key Results and Insights
MRGen significantly outperforms traditional generative and translation baselines. It achieved a Frechet Inception Distance (FID) of 82.18, compared to 178.18 for CycleGAN, indicating superior image realism and diversity.
In "zero-shot" scenarios—where no real labels exist for the target modality—models trained on MRGen-synthesized data showed dramatic performance gains. For instance, on the CHAOS-MRI T1 to T2-SPIR task, the Dice Similarity Coefficient (DSC) improved from a baseline of 6.90 to 66.18. The engine also demonstrates cross-modality versatility, successfully generating MRI images from CT-derived masks.
Limitations and Future Work
While MRGen represents a major step forward, challenges remain. The model can struggle with extremely small or thin structures due to downsampling in the diffusion process. Occasionally, "anatomical hallucinations" occur, where the model adds organs not present in the input mask. Future work will focus on native 3D generation to better capture volumetric context beyond the current 16-slice pseudo-3D extension.
Summary updated