TL;DR
Pinpointing the exact frames when a fetal heart is fullest (end-diastole) and most contracted (end-systole) in noisy ultrasound videos is a tedious, error-prone task. The authors introduce CPDM, a regression-based framework that separates what the heart looks like (spatial anatomy) from how it moves (temporal periodicity) using a Decoupled Spatio-Temporal Mamba (DSTM) module. This clean separation allows CPDM to beat existing methods, localizing key cardiac phases within an average total error of just 2.006 frames.
What Problem Does This Paper Address?
To assess fetal cardiac function and screen for congenital heart disease, clinicians rely on two critical landmarks in every heartbeat:
- End-diastolic (ED) frame: the moment of maximum left ventricular volume (just after the mitral valve closes).
- End-systolic (ES) frame: the moment of minimum ventricular volume (just after the aortic valve closes).
Traditionally, sonographers find these frames by manually scrubbing through ultrasound videos, which is time-consuming and suffers from inter-operator variability. Automated deep learning methods generally fall into two camps:
- Segmentation-based methods outline the left ventricle in every frame and find the extrema of the resulting area/volume curve. However, they require labor-intensive mask annotations and struggle with ultrasound noise.
- Regression-based methods skip segmentation and directly predict a continuous "phase score" for each frame (e.g., 1.0 at ED, 0.0 at ES), turning key-frame detection into finding peaks and valleys on a curve.
The catch? Adjacent ultrasound frames look nearly identical (as shown in the top panel of Fig. 1), so models need long-range temporal context. Existing regression models either apply temporal modeling only to final frame-level feature vectors or flatten the entire 3D video volume into a single sequence. Both approaches couple space and time together, blurring the distinction between anatomical structure and cardiac motion.
Methods
The Cardiac Phase Detection Model (CPDM) tackles this by keeping spatial and temporal modeling strictly separate while preserving the video's spatio-temporal structure.
The pipeline has three main parts:
- Stem Layer: A series of residual blocks that extracts initial spatial features from the video.
- Four Stacked DSTM Stages: Each stage uses the novel Decoupled Spatio-Temporal Mamba (DSTM) module followed by residual fusion and spatial-only downsampling (preserving frame-by-frame temporal alignment).
- Spatio-temporal decoupling: The 3D feature volume is reshaped into two views: per-pixel temporal sequences (to track motion over time) and per-frame spatial sequences (to capture anatomy).
- Global modeling: A bidirectional Mamba operator scans the temporal sequences both forward and backward to capture cardiac periodicity, while a spatial Mamba operator encodes global anatomical context within each frame.
- Feature fusion: The two streams are reshaped back, concatenated along the channel dimension, and fused via a 3D convolution and a depth-wise 3D convolution.
- Regression Head: A lightweight two-layer network predicts a continuous phase score $\hat{y}_t \in [0, 1]$ for each frame.
To sharpen predictions at the clinical boundaries, the authors introduce a boundary-weighted Huber Loss that assigns extra weight ($\omega = 3$) to true ED ($y_i = 1$) and ES ($y_i = 0$) frames during training. At inference, a three-frame sliding-window strategy searches above and below a 0.5 threshold to localize ED and ES frames without being thrown off by isolated score jitter.
Datasets
The model was evaluated on a clinically acquired Fetal Echocardiography Dataset (FED) from Shenzhen Maternal and Child Healthcare Hospital:
- 437 apical four-chamber (A4C) view videos from normal fetal cases (one video per subject), acquired across different ultrasound devices.
- 2,798 complete cardiac cycles total, with video lengths ranging from 46 to 502 frames (average cycle length: 25.29 frames) and fetal heart rates between 119 and 198 bpm.
- Annotations: Independently labeled by two senior cardiologists (with consensus review if they differed by more than two frames).
- Split: 8:1:1 train/validation/test at the video level, evaluated across five random splits.
Key Insights and Ideas
- Decoupling beats flattening: In ablation studies, replacing DSTM with spatial-priority (C1), temporal-priority (C2), or parallel spatio-temporal Mamba scanning (C3) consistently degraded performance. Explicitly separating space and time lets each stream specialize.
- Bidirectional time matters: Looking both forward and backward in time helps the model understand the periodic nature of the heartbeat, which is why bidirectional models consistently outperformed unidirectional ones.
- Loss weighting is a purposeful trade-off: Increasing the boundary weight $\omega$ from 2 to 3 slightly lowered overall regression $R^2$ (from 0.902 to 0.898), but significantly improved key-frame localization, dropping total frame error ($Err_{ALL}$) from 2.222 to 2.006.
Key Results
CPDM outperformed five representative baselines—DeepPhase, Res2LSTM, ResBiLSTM, UVT (Transformer-based), and OFM-U-Net (optical flow + Mamba)—across both regression and localization metrics:
- Localization Error: Achieves an $Err_{ED}$ of 0.700 frames, $Err_{ES}$ of 1.306 frames, and a combined $Err_{ALL}$ of 2.006 frames (compared to 3.024 for ResBiLSTM, 3.252 for OFM-U-Net, and 8.634 for UVT).
- Regression Quality: Reaches an $R^2$ of 0.898 and MAE of 0.060. In scatter plots of predicted vs. ground-truth scores, CPDM's predictions cluster tightly around the ideal $y = x$ line with a regression slope of 0.9450 (closest to 1.0 among all tested models).
- Efficiency: Uses 16.06M parameters (the smallest among compared models), runs at 804.84 FPS, and consumes 922.86 MB of peak GPU memory.
Limitations and Future Work
The authors note an inherent trade-off in their decoupled design: by separating spatial and temporal streams, the model weakens direct interactions between spatial appearance and short-term temporal variation, which can make it slightly less sensitive to subtle, rapid morphological changes right around ED and ES. In future work, they plan to explore more effective temporal modeling strategies and detection mechanisms to further boost precision and clinical applicability.
Summary updated