Fourier Contour Learning for Efficient and Traceable Cardiac MRI Quantification

Yi Yu, Zhenyu Bu, Ziyu Zhang, Yixuan Liu, Aotian Chen, James Mihalich, Parker Martin, Xia Ning, Yuchi Han, Yuan XueNeurIPS 2026

TL;DR

Measuring heart function from MRI scans usually forces an awkward choice: either color in tens of thousands of pixels to count volumes (transparent, but computationally heavy and label-hungry) or have a neural network guess the volume directly (compact, but a black box). Fourier Contour Learning bridges this divide by representing heart chambers as smooth mathematical curves defined by just a handful of parameters. This elegant geometry lets a single model learn simultaneously from pixel masks, text-report volume numbers, and completely unlabeled scans—running 8x faster while keeping every clinical number visually traceable.

What Problem Does This Paper Address?

Cardiac magnetic resonance (CMR) imaging is the gold standard for measuring how well a heart pumps—specifically by tracking chamber volumes to calculate biomarkers like ejection fraction. Automating this usually splits into two camps:

  1. Dense Segmentation: Predicting pixel-by-pixel masks and counting voxels. Clinicians can visually verify the masks, which builds trust. However, pixel-level annotations are scarce and expensive. Plus, dense masks create massive token bloat (over 76,000 tokens for a 30-frame scan) when fed into modern Vision-Language Models (VLMs).
  2. Direct Regression: Predicting scalar volume numbers straight from the image. This can train on abundant clinical reports (like the UK Biobank's 96,000+ subjects), where volume numbers exist without drawn masks. Yet, it offers zero visual proof of how it got the answer.
Figure 1: Output representations for CMR quantification. Segmentation predicts dense masks that are visually verifiable but output-heavy; regression predicts compact measurements but lacks explicit anatomy; Fourier contour learning predicts compact anatomical contours whose coefficients decode to boundaries and analytically determine volumes. nnU-Net [15] and Germain et al. [7] are shown as representative segmentation and regression methods. Efficiency is evaluated per 256 × 256 slices.

How do you build a representation that is visually auditable like a mask, compact like regression, and capable of learning from all available data types at once?

Methods

Instead of pixels or raw scalars, the authors parameterize heart boundaries in polar coordinates using truncated Fourier series—representing closed shapes as a sum of smooth sine and cosine waves.

For each 2D MRI slice, the network predicts three nested curves: the left ventricular inner wall (LV), outer wall (LVE), and a biventricular outer contour (BV) wrapping the right ventricle. With a default truncation order of $M=4$ frequencies, each contour requires just 11 numbers (center coordinates, average radius, and 8 shape coefficients) plus a presence score—totaling 36 parameters per slice.

Figure 3: Method overview. (a) DETR-style architecture used to predict Fourier contour representa- tions, with cross-slice attention to aggregate 3D context. (b) Contours with different truncation orders M. (c–e) Training with heterogeneous supervision. (c) Mask-labeled data supervising contours and coefficients. (d) Volume-labeled data supervising via the enclosed area equation. (e) Unlabeled data utilized through self-supervised learning, including edge alignment and cross-scale consistency.

What is standard vs. novel here:

  • Architecture: They adapt a standard DETR-style CNN-Transformer encoder-decoder, stripping away the 100 generic object queries (and slow bipartite matching) in favor of just 3 dedicated anatomical queries. A lightweight cross-slice attention module shares 3D context across anisotropic MRI slice stacks.
  • Analytic Differentiable Volume: Thanks to Green’s theorem / Parseval's identity in polar coordinates, the exact area inside a Fourier contour can be computed analytically from its coefficients ($A = \pi R_0^2(1 + 2\sum |c_m|^2)$) without ever drawing a pixel! Summing across slices makes 3D volume directly differentiable, unlocking training on text-report measurements.
  • Self-Supervised Unlabeled Learning: For raw, unlabeled scans, they introduce a clever polarity-aware edge alignment loss that nudges predicted contour normals to snap onto Sobel image gradients (knowing, for instance, that blood pools are brighter than heart muscle), alongside scale-consistency regularization.

Datasets

A single unified model is trained and evaluated across five datasets:

  • Public Benchmarks (Mask-labeled at End-Diastole & End-Systole): ACDC (150 scans), M&Ms (345 multi-center/multi-vendor scans, including 25 unlabeled), and M&Ms-2 (360 scans).
  • Newly Introduced In-House Cohorts:
  • RO1K: 1,072 scans paired only with clinical text reports (LV/RV volumes, no masks) used for measurement-supervised training.
  • ACP (Arbitrary Cardiac Phases): 95 cine scans densely annotated across all 30 frames of the heartbeat, used purely as an external test set to verify generalization beyond standard end-diastolic/end-systolic snapshots.

Key Insights and Ideas

  • Calculus beats voxel counting: Because volume is a smooth algebraic function of the wave coefficients, backpropagating clinical report numbers directly shapes the anatomical geometry. You don't need pixel labels to teach the model where the chamber walls are.
  • Built-in anatomical priors: Dense pixel networks occasionally hallucinate disconnected "islands" of heart tissue, especially around noisy medical implants (like pacemakers/ICDs). A low-frequency Fourier curve mathematically cannot fragment—it guarantees a closed, continuous, smooth boundary by construction.
  • Free 3D meshes and VLM compression: Because every contour is sampled at ordered angles $\theta \in [0, 2\pi]$, point #12 on slice 3 naturally corresponds to point #12 on slice 4, yielding instant, template-free 3D surface meshes without jagged "Marching Cubes" staircase artifacts. Furthermore, compressing an entire slice's anatomy into 3 query tokens makes feeding 3D/4D heart scans into VLMs computationally trivial.
Figure 2: Qualitative comparison with dense segmentation. On representative ACDC slices from basal, mid-ventricular, and apical levels at ED and ES, Fourier Contour Learning produces smooth and coherent anatomical boundaries with visual quality comparable to nnU-Net [15], while using a compact contour parameterization. Unlike dense masks, the predicted contours provide ordered boundaries that can be directly inspected and analytically converted into volume measurements.

Key Results

  • Speed & Efficiency: Compared to the powerhouse nnU-Net baseline on a $10 \times 256 \times 256$ volume, Fourier Contour Learning uses roughly 1/3 the FLOPs (137.4G vs. 400.3G) and runs 8.2x faster (23.2 ms vs. 189.5 ms).
  • Boundary & Volume Accuracy: On ACDC, the ConvNeXt variant matches or beats nnU-Net on LV Dice (94.17% vs. 93.43%), substantially improves boundary agreement via Normalized Surface Dice (LV NSD: 95.81% vs. 90.97%), and lowers clinical volume errors across LV, myocardium, and RV (e.g., MYO error drops from 8.36 mL to 6.31 mL).
  • Full-Cycle Generalization: On the unseen 30-frame ACP benchmark, it outperforms nnU-Net across nearly all metrics, cutting LV volume error from 8.02 mL down to 4.71 mL.
  • VLM Reasoning: Plugging the learned anatomical tokens into Qwen3-VL boosts cardiac disease classification accuracy on ACDC from 67.5% to 85.0% while reducing ejection fraction estimation error.

Limitations and Future Work

  • Complex Shapes Struggle: While low-order Fourier series effortlessly hug circular structures like the left ventricle, they are less expressive for the crescent-shaped, sharply cornered right ventricle (where RV Dice trails dense baselines by ~2–3%). Cranking up the frequency order ($M=8$) overfits rather than fixes this.
  • Asymmetric Data Advantage: Strict apples-to-apples baseline comparisons are tricky because standard segmentation networks simply cannot ingest the 1,072 measurement-only scans that boost this model.
  • Future Work: The authors envision scaling these ultra-compact anatomical tokens to full 4D spatiotemporal cine MRI sequences, giving Vision-Language Models a lightweight, clinically grounded way to "watch" and diagnose heart motion across time without drowning in tens of thousands of video tokens.

Summary updated

Abstract

Automated cardiac MRI quantification is commonly framed either as dense segmentation followed by voxel counting or as direct regression of global measurements. The two paradigms are difficult to unify: segmentation is visually interpretable but label-intensive and output-heavy, while regression is compact but less verifiable. We propose Fourier Contour Learning, which represents cardiac boundaries with compact anatomical Fourier contours. The predicted coefficients define smooth, interpretable contours and enable differentiable volume computation, connecting mask supervision, measurement supervision, and unlabeled-image regularization within one framework. We instantiate this representation with an anatomy-query decoder and cross-slice attention which creates a traceable path from image to contour to clinical measurement. Across three public datasets and an in-house all-phase cohort, our method achieves segmentation accuracy comparable to strong dense-prediction baselines, improves boundary agreement, and reduces clinically relevant volume error while using only a small number of output parameters per structure. We further show that the learned model provides an efficient interface for vision-language question answering and surface reconstruction. These results demonstrate the potential of Fourier contours as a unified intermediate representation for scalable, traceable, and clinically grounded cardiac analysis.
BibTeX
@inproceedings{yu2026fourier,
  author = {Yi Yu and Zhenyu Bu and Ziyu Zhang and Yixuan Liu and Aotian Chen and James Mihalich and Parker Martin and Xia Ning and Yuchi Han and Yuan Xue},
  title = {{Fourier Contour Learning for Efficient and Traceable Cardiac MRI Quantification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=LI2SkSGEGQ},
}
Figure