Anatomy-aware Spatio-Temporal Modeling for Echocardiography Segmentation

Seok-Hwan Oh, Guil Jung, Myeong-Gee Kim, Young-Min Kim, hyeonjik lee, Sang-yun Kim, Hyuksool Kwon, Hyeon-min BaeNeurIPS 2026

TL;DR

Looking at a heart ultrasound is a bit like trying to trace shapes in a snowstorm, yet experienced cardiologists do it effortlessly because they intuitively know what the heart looks like and how it beats. The authors build this exact clinical intuition into an AI model called AST-Seg, teaching it both cardiac structural geometry and rhythmic motion. Alongside a massive new dataset mapping 12 distinct heart structures, their approach reliably delineates cardiac anatomy even on grainy, handheld ultrasound scanners where standard AI models stumble.

What Problem Does This Paper Address?

Echocardiography (heart ultrasound) is the workhorse of cardiology—it is cheap, real-time, and radiation-free. However, automating the measurement of heart chambers and valves is notoriously difficult for three reasons:

  1. Visual "Snow": Ultrasound suffers from low signal-to-noise ratios, speckle noise, and shadowed or missing boundaries.
  2. Domain Shifts: Images look wildly different depending on the operator and whether they were captured on a cart-based hospital system or a low-end portable device.
  3. Tunnel Vision in Existing Benchmarks: Popular public datasets usually only trace one to three structures (mostly the left ventricle), ignoring the valves, right heart, and aorta needed for a full clinical workup.
Challenges in echo segmentation—low image quality, device variability, and limited anatomical scope—contrasted with the comprehensive 12-structure Echo-Anatomy dataset.

Standard vision models—including medical adaptations of foundation models like the Segment Anything Model (SAM)—rely heavily on local pixel appearance. When a heart wall fades into acoustic shadow, pixel-matching fails.

Methods

To mimic how cardiologists read scans, AST-Seg processes 10-frame video clips conditioned on which specific structure you want to segment, combining three novel components:

  • Anatomy-aware Echo Feature Encoder (AEFE): Instead of letting a standard Vision Transformer (ViT) just group pixels that look alike, the authors add two cross-attention branches (one for the whole heart, one for the target structure) paired with a lightweight CNN. During training, they supervise the transformer's attention maps using ground-truth masks, explicitly forcing tokens belonging to the same anatomical structure to attend to one another. The encoder is warmed up via Masked Image Modeling on unlabeled videos before interleaving this anatomical supervision.
  • Deformable Spatio-Temporal Mamba (DSTM): Video Transformers scale quadratically with token length, making them heavy. State-space models like Mamba scale linearly, but standard Video Mamba flattens 2D frames into a single 1D strip of patches—an awkward fit for a heart pulsing locally in 2D space. DSTM fixes this in two steps: first, it uses deformable convolutions so each spatial token can dynamically reach out and grab shifting local tissue features; second, it runs a Mamba recurrent scan strictly along the time axis at each spatial location.
  • Temporal-Context Decoder (TCD): A coarse-to-fine decoder that first drafts a segmentation mask using only the current frame’s appearance, then refines the boundaries using the motion-rich features from DSTM.

Datasets

  • Echo Anatomy (EA) Dataset (New): Curated by the authors from 3,110 subjects across three vendors and five scanner models. It contains 21,535 frames (one frame annotated per 10-frame video clip) covering 12 clinically relevant structures—blood pools, walls, valves, and the aortic root—across three apical views.
  • Echo Video (EV) Dataset (New): An unlabeled pretraining corpus of 7.9 million frames used for self-supervised Masked Image Modeling.
  • Point-of-Care Echo (PoC-Echo) (New): An out-of-distribution test set of 259 scans from portable, low-SNR ultrasound devices, used strictly to test zero-shot robustness.
  • CAMUS (Existing): A standard public benchmark covering three left-heart structures, used for in-distribution comparisons.

Key Insights and Ideas

  • Appearance lies; anatomy doesn't: Comparing attention maps against a strong self-supervised baseline (DINOv3) reveals a stark difference. DINOv3 attends to random regions that share similar brightness or speckle texture, whereas AST-Seg cleanly lights up the exact anatomical neighbors of a queried point, allowing it to bridge invisible, shadowed boundaries.
  • Don't flatten a beating heart: Treating video as one long 1D string of patches breaks spatial continuity. Separating deformable spatial gathering from per-location temporal state-space modeling matches the periodic, localized biomechanics of cardiac motion—giving better accuracy than a Video Transformer at roughly half the compute (0.63 vs. 1.07 GFLOPs for the module).

Key Results

AST-Seg outperforms conventional CNNs/Transformers (U-Net, SwinUNet, H2Former), medical SAM variants (MedSAM, SAMUS), and video baselines (MemSAM, MediViSTA):

  • Standard Benchmarks (CAMUS): Achieves 95.03% Dice on the left ventricle blood pool, 89.00% on the LV wall, and 89.52% on the left atrium—beating the strongest baseline (MemSAM) across all metrics.
  • Zero-Shot Portable Ultrasound (PoC-Echo): While conventional networks drop into the low 80s (U-Net: 80.90% Dice) and MemSAM hits 87.48%, AST-Seg maintains 90.83% Dice, proving strong domain generalization on noisy handheld scans.
  • 12-Structure Segmentation (EA Dataset): Reaches the highest overall mean of 72.67% Dice (60.45% mIoU) across all 12 structures, excelling even on thin, fast-moving valves and atrial walls.

Limitations and Future Work

Not discussed in the paper. (Note: The provided 10-page main text concludes without a dedicated limitations or future work discussion).

Summary updated

Abstract

Echocardiography segmentation plays a central role in quantitative cardiovascular assessment. However, automated echocardiography segmentation remains challenging due to speckle noise, poorly defined anatomical boundaries, acquisition variability, and the limited anatomical coverage of existing benchmarks. Conventional segmentation methods demonstrate limited accuracy under such low image quality and domain shifts. Inspired by the observation that expert cardiologists can maintain reliable anatomical delineation by leveraging their structural understanding of the cardiac anatomy, we propose that incorporating anatomical priors into echocardiography segmentation models can improve both precision and robustness. To this end, we propose AST-Seg, an anatomy-aware spatio-temporal framework for echocardiography segmentation. AST-Seg introduces an anatomy-aware feature encoder that regularizes transformer attention with anatomy-derived spatial-relation priors, and a Deformable Spatio-Temporal Mamba module that captures localized and periodic cardiac motion through adaptive spatial aggregation followed by temporal state-space modeling. In addition, we curate an Echocardiography Anatomy (EA) dataset with pixel-level annotations for 12 clinically relevant cardiac anatomy, enabling comprehensive multi-structure cardiac interpretation. Extensive experiments on in-distribution CAMUS and EA datasets, as well as an out-of-distribution point-of-care echocardiography dataset, demonstrate that AST-Seg provides domain-generalized segmentation with improved precision.
BibTeX
@inproceedings{oh2026anatomy,
  author = {Seok-Hwan Oh and Guil Jung and Myeong-Gee Kim and Young-Min Kim and hyeonjik lee and Sang-yun Kim and Hyuksool Kwon and Hyeon-min Bae},
  title = {{Anatomy-aware Spatio-Temporal Modeling for Echocardiography Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=2TtThaZ1Ks},
}
Figure