Light-weight spatio-temporal graphs for segmentation and ejection fraction prediction in cardiac ultrasound

Sarina Thomas, Andrew Gilbert, Guy Ben-YosefarXiv 2022

Accurately measuring how well a heart pumps blood is a cornerstone of cardiovascular medicine. The gold standard metric is the Ejection Fraction (EF)—the percentage of blood leaving the left ventricle each time it contracts. Traditionally, this requires clinicians (or AI) to painstakingly segment the heart's borders in ultrasound videos.

In their paper, "Light-weight spatio-temporal graphs for segmentation and ejection fraction prediction in cardiac ultrasound," researchers Sarina Thomas, Andrew Gilbert, and Guy Ben-Yosef introduce EchoGraphs, a novel approach that moves away from traditional pixel-by-pixel classification in favor of a more "anatomically aware" graph-based method.

TL;DR

EchoGraphs uses Graph Convolutional Networks (GCNs) to predict cardiac keypoints and ejection fraction simultaneously from ultrasound videos. By treating the heart's border as a flexible graph rather than a collection of pixels, the model achieves state-of-the-art accuracy while being significantly faster and more robust than traditional semantic segmentation methods.

What Problem Does This Paper Address?

Most current AI for cardiac ultrasound relies on semantic segmentation. These models look at every single pixel and decide, "Is this part of the left ventricle or not?" While effective, this approach has three main drawbacks:

  1. Lack of Shape Constraints: Pixel-wise models don't "know" what a heart looks like. They can occasionally predict anatomically impossible shapes or disconnected "blobs."
  2. Computational Cost: High-resolution pixel classification is resource-intensive, making it hard to run on portable, point-of-care ultrasound devices.
  3. Landmark Identification: Clinicians need specific landmarks (like the apex or base) to calculate volume. Semantic segmentation requires an extra, separate step to find these points.

The authors argue that since the left ventricle has a consistent, circular shape, it is more natural to treat its border as a set of connected points (a graph) and regress their coordinates directly.

Methods

The core of EchoGraphs is a modular architecture that combines standard Computer Vision encoders with specialized Graph Convolutional Networks.

  • The Encoder: The model first uses a CNN (like MobileNetV2 for speed or ResNet for accuracy) to extract features from ultrasound frames. For video, they use an R(2+1)D encoder to capture motion over time.
  • The Graph Decoder: Instead of a standard U-Net decoder, they use a GCN. They represent the ventricle border as an undirected graph. To handle the circular nature of the heart, they employ spiral convolutions, which enforce a fixed ordering of neighboring nodes during processing.
  • Multi-Task Learning: The model doesn't just segment; it also includes a regression head to predict the EF value directly and an optional classifier to identify the specific frames where the heart is most full (End Diastole) and most empty (End Systole).
Fig. 1. Overview of the proposed method Single frame GCN (top): The output of the CNN encoder is forwarded to the GCN with four spiral convolution layers that regresses a coordinate vector for each keypoint. Multi-frame GCN (bottom): The image sequence consisting of F frames is fed into a CNN video encoder that outputs a feature representation. This feature representation is passed to a regressor module to predict the EF value and the spatio-temporal GCN that outputs keypoint coordinates for the two key frames. An ED/ES classifier is optionally added when the location of those frames is unknown (Sec. 2.2)

Datasets

The researchers trained and evaluated their models on EchoNet-Dynamic, a massive open-access dataset containing over 10,000 echocardiography videos. Each video includes expert-annotated keypoints for the left ventricle and calculated EF values, providing a rigorous benchmark for both segmentation and clinical measurement.

Key Insights and Ideas

  • Inductive Bias for Shape: By using a graph, the model has an inherent "understanding" of the heart's topology. It is physically constrained to produce a single, closed contour, which naturally prevents the "outlier blobs" common in pixel-wise methods.
  • Efficiency via Coordinate Regression: Predicting 40 $(x, y)$ coordinates is computationally much lighter than classifying tens of thousands of pixels. This makes the model a prime candidate for mobile medical devices.
  • Temporal Consistency: In the multi-frame version, the graph nodes at one time step are connected to the same nodes in the next. This "spatio-temporal" connection helps the model maintain a smooth, consistent segmentation throughout the heartbeat.

Key Results

EchoGraphs matches or exceeds the performance of much heavier models while being significantly faster.

  • Speed: Using a MobileNetV2 backbone, EchoGraphs achieved a runtime of just 2.45ms per frame on a CPU, compared to 14.86ms for the state-of-the-art nnU-Net.
  • Robustness: The model showed fewer extreme failures. As measured by the Hausdorff distance (which tracks the maximum distance between the predicted and true border), EchoGraphs was more consistent than traditional models like DeepLabV3.
  • Clinical Accuracy: The model achieved a state-of-the-art $R^2$ correlation of 0.81 for Ejection Fraction prediction, outperforming previous methods that relied on direct regression alone.
Fig. 2. Left: Best, median, and worst results from the EchoGraphs single-frame seg- mentation network. The model prediction in the worst case appears to be more accurate than the label. Right: Hausdorffdistance (in pixels) box plot of segmentation results. Compared to semantic segmentation, the EchoGraphs (with MobileNet2 backbone) is more robust.

Limitations and Future Work

While highly effective, the authors note that EchoGraphs' Dice score (a measure of overlap) is slightly lower than the nnU-Net. They attribute this to the extensive, automated hyperparameter tuning and test-time augmentations used by nnU-Net, which could likely be applied to EchoGraphs in the future.

The authors suggest that this graph-based approach could be extended to other cardiac measurements, such as strain analysis (measuring how the heart muscle deforms) or detecting foreshortening (when the ultrasound probe is angled incorrectly, making the heart look smaller than it is).

For those interested in the implementation, the source code is available on GitHub.

Summary updated

BibTeX
@misc{thomas2022light,
  author = {Sarina Thomas and Andrew Gilbert and Guy Ben-Yosef},
  title = {{Light-weight spatio-temporal graphs for segmentation and ejection fraction prediction in cardiac ultrasound}},
  year = {2022},
  eprint = {2207.02549},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.02549},
}
Figure