CAPS: Contour-Aware Anatomy-Prioritized Synthesis for Missing MRI Imputation in Brain Tumor Segmentation
Official repository for the paper: "CAPS: Contour-Aware Anatomy-Prioritized Synthesis for Missing MRI Imputation in Brain Tumor Segmentation".
Multi-parametric MRI (T1n, T1c, T2w, T2-FLAIR) is the standard for brain tumor assessment, but complete protocols are often unavailable in clinical practice. Robust segmenters can cope with a missing sequence, yet they output only a mask; standard synthesis models restore the image but, trained with pixel-wise losses, tend to blur tumor structures. CAPS synthesizes the missing sequence from the three available ones with an objective that explicitly prioritizes anatomical features and tumor contours, so that the restored image is both visually faithful and useful for downstream automated segmentation.
Figure 1: Real vs. CAPS-synthesized T1n, T1c, T2w and T2-FLAIR on the in-distribution cohort (Adult Glioma) and on
three cohorts unseen during training (Meningioma, Pediatric Glioma and Sub-Saharan Africa Glioma).
- Anatomy- and Contour-Aware Objective: the generator is trained with L1 + Anatomical Feature-Prioritized (AFP) loss + region and boundary Dice losses, computed through a frozen, sequence-specific tumor segmenter. Ground-truth masks are needed only during training.
- Any Missing Sequence, Ready for Downstream Segmentation: one 3-to-1 generator per missing sequence (T1n, T1c, T2w or T2-FLAIR), whose output completes the protocol for standard 4-channel segmentation networks.
- Synthesis on Unseen Cohorts: synthesis quality is maintained on Meningioma, Pediatric and Sub-Saharan Africa cohorts without any domain-specific adaptation.
- Open Clinical Validation Tool: the blinded radiological evaluation of the synthesized volumes was run with a web-based reader-study tool that we release at NIfTI-to-HTML-Evaluator.
Figure 2: CAPS training. A trainable 3D residual U-Net generator (G) synthesizes the missing sequence (T1c in the
example) from the available ones. The synthetic and real volumes are compared at pixel level (L1), at feature level
through a frozen pretrained segmenter S_aux (AFP loss), and at mask level against the ground-truth tumor mask
(Dual Dice loss: region + boundary).
Training follows two steps:
- Auxiliary segmenter: for each sequence, a single-channel nnU-Net segmenter S_aux is trained on the real sequence and then frozen.
- Generator: the generator G is trained with L1 + L_AFP + L_DualDice, using S_aux as a fixed feature extractor and boundary enforcer.
At inference only the generator is used: the synthesized sequence is concatenated with the three real ones and passed to any standard BraTS segmenter.
Downstream segmentation of the completed protocol (three real sequences + the CAPS-synthesized one) on the 219 cases of the official BraTS 2023 Adult Glioma validation set (Synapse evaluation), and image quality of the synthesized sequence (NMSE, PSNR).
| Missing sequence | Dice ET | Dice TC | Dice WT | Dice Mean | HD95 ET | HD95 TC | HD95 WT | HD95 Mean | NMSE ↓ | PSNR ↑ |
|---|---|---|---|---|---|---|---|---|---|---|
| Reference (all real) | 81.47 | 86.27 | 92.22 | 86.65 | 21.57 | 9.67 | 4.98 | 12.07 | – | – |
| T1n | 80.58 | 85.87 | 91.24 | 85.90 | 22.56 | 11.07 | 6.02 | 13.22 | 0.0160 | 29.00 |
| T1c | 57.67 | 77.59 | 91.86 | 75.71 | 36.10 | 10.90 | 4.63 | 17.21 | 0.0259 | 27.32 |
| T2w | 79.22 | 85.46 | 90.69 | 85.12 | 22.99 | 11.59 | 10.91 | 15.16 | 0.0530 | 26.18 |
| T2-FLAIR | 73.58 | 83.93 | 87.57 | 81.69 | 36.93 | 10.09 | 7.68 | 18.23 | 0.0453 | 25.34 |
| Average | 72.76 | 83.21 | 90.34 | 82.11 | 29.64 | 10.91 | 7.31 | 15.96 | 0.0351 | 26.96 |
Dice in %, HD95 in mm.
All requirements, environment configurations, dataset preparation guidelines, pretrained models, and execution commands for training, validation, and inference are detailed in: INSTRUCTIONS.md
This repository is released under the Apache License 2.0. It includes a modified copy of nnUNet_translation and builds on nnU-Net, both Apache-2.0; see NOTICE.
If you find this repository useful for your research, please cite our work:
@article{diana2026caps,
title={CAPS: Clinically-Verifiable Anatomy-Prioritized Synthesis for Missing MRI Imputation in Brain Tumor Segmentation},
author={Diana-Albelda, Cecilia and Longuefosse, Arthur and Campos, Mario Rub{\'e}n Paz and Garc{\'\i}a-Mart{\'\i}n, {\'A}lvaro and Bescos, Jesus},
journal={arXiv preprint arXiv:2610.28179},
year={2026}
}