CMDiff: Left Atrial Scar Segmentation from 3D LGE MRI Using Conditional Mask Diffusion Model: A Feasibility Study

Jing Zhang, Bastien Bergere, Jonas Leite, Emilie Bollache, Mikaël Laredo, Alban Redheuil, Nadjia KachenouraarXiv 2026 · arXiv

TL;DR

This feasibility study introduces CMDiff, a conditional mask diffusion model designed to segment sparse left atrial scars from 3D MRI. While the researchers found that predicting the clean mask directly (rather than noise) makes diffusion technically viable for this task, it does not yet outperform traditional deterministic models in accuracy or efficiency.

What Problem Does This Paper Address?

Atrial fibrillation (AF) affects millions worldwide, and treating it often involves catheter ablation to neutralize problematic heart tissue. Success depends heavily on understanding the extent of left atrial (LA) scar or fibrosis. Doctors use Late Gadolinium Enhancement (LGE) MRI to see these scars, but segmenting them automatically is a nightmare for AI.

The challenges are fourfold:

  1. Low Contrast: Scars are often barely distinguishable from surrounding tissue.
  2. Thin Anatomy: The atrial wall is only 2–4 mm thick.
  3. Extreme Class Imbalance: Scars are "sparse"—they occupy a tiny fraction of the total image volume.
  4. Observer Variability: Even human experts often disagree on where a scar begins and ends.

While most current solutions are "deterministic" (one input image = one fixed output mask), this paper investigates whether diffusion models—the generative tech behind DALL-E and Midjourney—can offer a better way to handle the uncertainty and complexity of medical segmentation.

Methods

The authors propose CMDiff (Conditional Mask Diffusion). Unlike standard diffusion models that generate images from noise, CMDiff generates a segmentation mask.

Key Innovations:

  • Clean-Mask Prediction: Standard diffusion models usually try to predict the noise added to an image. However, for sparse binary masks, the authors found this fails. Instead, CMDiff is parameterized to predict the clean mask ($\hat{y}_0$) at every step. This allows the model to use standard segmentation losses like Dice and Binary Cross-Entropy (BCE) during training.
  • Dynamic Conditional Encoder (DCE): To ensure the generated mask matches the patient's anatomy, the model uses a lightweight DCE. This module extracts multi-scale features from the LGE-MRI and injects them into the denoising process using FiLM (Feature-wise Linear Modulation).
  • Hybrid Loss Function: The training objective combines a signal-to-noise-ratio (SNR) weighted MSE loss (for the diffusion process) with a timestep-weighted segmentation loss.
Fig. 1: Overview of the proposed CMDiff framework for 3D LGE-MRI scar segmentation. During training, noise is added to the ground-truth mask and the denoising backbone learns to recover the clean scar mask conditioned on the LGE image. During inference, a noisy mask is iteratively denoised through the sampling scheduler, while the DCE provides multi-scale image conditioning to the 3D sinusoidal UNet.

Datasets

The study utilized the public LASCARQS 2022 dataset, which contains 3D LGE-MRI scans of patients with AF.

  • Scale: While 130 subjects have anatomy labels, only 60 subjects have the expert scar annotations required for this task.
  • Setup: The authors used a five-fold cross-validation (48 training and 12 held-out cases per fold).

Key Insights and Ideas

  • The "Noise" Failure: One of the most significant findings was that the standard "noise-prediction" configuration used in most diffusion models is virtually useless for sparse medical masks. It resulted in a Dice score near zero. Direct "clean-mask" prediction is essential for this domain.
  • Conditioning is King: Simply concatenating the MRI image to the noise wasn't enough. The multi-scale conditioning provided by the DCE was necessary to help the model respect the underlying anatomy.
  • Diminishing Returns on Sampling: In diffusion, you can choose how many "steps" to take during inference. The authors tested various schedulers (DDIM, UniPC, etc.). They found that 20–50 steps provided the best balance; going up to 200 steps increased computation time significantly without improving accuracy.
  • Stochasticity as a Tool: Because diffusion is generative, you can run it multiple times on the same image to get different "plausible" masks. The disagreement between these masks (measured via entropy maps) highlights areas where the model is uncertain.

Key Results

Quantitatively, CMDiff proved to be a "feasible alternative" but not a "performance leader."

  • Scar Segmentation: CMDiff achieved a Dice Similarity Coefficient (DSC) of 0.47, trailing behind the deterministic baseline's 0.51.
  • Boundary Accuracy: The 95th-percentile Hausdorff Distance (HD95)—a measure of the largest error at the boundaries—was 12.89 mm for CMDiff vs. 10.86 mm for the baseline.
  • Noise vs. Mask: The superiority of clean-mask prediction was stark. As shown in Table 1, noise prediction failed completely, while clean-mask prediction achieved usable results.
Fig. 1: Overview of the proposed CMDiff framework for 3D LGE-MRI scar segmentation. During training, noise is added to the ground-truth mask and the denoising backbone learns to recover the clean scar mask conditioned on the LGE image. During inference, a noisy mask is iteratively denoised through the sampling scheduler, while the DCE provides multi-scale image conditioning to the 3D sinusoidal UNet.

Limitations and Future Work

The authors are transparent about the hurdles remaining:

  1. The Performance Gap: Deterministic models that use explicit anatomical priors (like "the scar must be on the wall") still perform better.
  2. Inference Speed: CMDiff requires multiple iterations to produce a mask, making it much slower than a single-pass deterministic network.
  3. Data Scarcity: 60 labeled cases is a small sample size for training complex generative models.
  4. Future Direction: The authors suggest that instead of generating a mask from pure noise, diffusion might be better used as a refiner—taking a rough initial segmentation from a deterministic model and "polishing" it.

In summary, while CMDiff doesn't take the crown for accuracy yet, it establishes the technical groundwork for using diffusion in one of the most challenging areas of cardiac imaging.

Summary updated

Abstract

Late gadolinium enhancement (LGE) cardiac MRI enables non-invasive assessment of left atrial (LA) scar, an imaging marker associated with atrial fibrillation ablation outcome. However, automatic scar segmentation is hindered by low contrast, the thin atrial wall, scarce labels, and extreme class imbalance. Conditional diffusion offers iterative mask generation, but its suitability for sparse 3D LA scar segmentation remains unclear. To address this gap, we propose Conditional Mask Diffusion (CMDiff), which predicts clean masks using a dynamic-encoder-conditioned 3D sinusoidal UNet. We compared CMDiff with a deterministic baseline on identical cases in five-fold cross-validation of 60 scar-labelled public LASCARQS subjects, with 48 training and 12 held-out cases per fold. CMDiff achieved a scar DSC of 0.47 $\pm$ 0.08, HD95 of 12.89 $\pm$ 6.39 mm, and ASD of 1.91 $\pm$ 0.96 mm, compared with deterministic baseline values of 0.51 $\pm$ 0.08, 10.86 $\pm$ 5.39 mm, and 1.58 $\pm$ 1.03 mm, respectively. Under the same implementation, clean-mask prediction performed substantially better than the noise-prediction configuration evaluated in this study. Thus, CMDiff was technically feasible but did not improve segmentation performance: DSC was lower, and both HD95 and ASD were higher. Direct mask diffusion therefore provides an analytical alternative, but not a competitive performance advance for this task. The source code is publicly available at https://github.com/jizhang02/CMDiff.
BibTeX
@misc{zhang2026cmdiff,
  author = {Jing Zhang and Bastien Bergere and Jonas Leite and Emilie Bollache and Mikaël Laredo and Alban Redheuil and Nadjia Kachenoura},
  title = {{CMDiff: Left Atrial Scar Segmentation from 3D LGE MRI Using Conditional Mask Diffusion Model: A Feasibility Study}},
  year = {2026},
  eprint = {2611.07814},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.07814},
}
Figure