Uncertainty Propagation for Echocardiography Clinical Metric Estimation via Contour Sampling

arXiv:2502.12713 · cs.CV · Submitted 2025-02-18 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "Uncertainty Propagation for Echocardiography Clinical Metric Estimation via Contour Sampling".

Jane: The gist: This work proposes a novel uncertainty estimation method based on contouring rather than segmentation to propagate uncertainty from input images to derived clinical metrics in echocardiography.

Tom: First, who's behind it and why it matters.

Paper summary: Tom: We've touched on the setup of this paper and what they claim about moving beyond pixel-wise uncertainty. Essentially, the thesis is that because clinical parameters like left ventricular volume rely on segmentation maps, we need a way to convert pixel-wise uncertainty into useful uncertainty for those final metrics.

Jane: They point out that since there isn't a clear path to do that with standard segmentation maps, they propose using contouring instead of segmentation as their starting point for uncertainty estimation.

Lu: Their core idea is to explicitly predict the location uncertainty of the contour points themselves. This allows them to draw samples from these predicted uncertainties, which then feed into a propagation step for clinical metrics.

Meng: So they are proposing this pipeline: Predict contour uncertainty, sample contours based on that, and then use those sampled contours to calculate volume or ejection fraction with associated uncertainty.

Jane: Exactly. They train a contouring neural network to output heatmaps that encode both the center position and the uncertainty halo of a control point. This is where they start their modeling process.

Tom: They use these heatmaps to extract mean and variance, modeling each point as a two-dimensional Gaussian distribution, leading to predictions for and <ref:2502.12713#pg2>.

Lu: Then they move to the shape uncertainty modeling part where they propose a posterior shape model based on principal component analysis. This lets them model the uncertainty of one point given the position of other points.

Jane: That PCA-based posterior shape model predicts a conditional distribution, p(ss(g)) = N(mu c, c), which helps them get richer information about how points relate to each other.

Tom: And they fuse this with the contour uncertainty using a hierarchical sampling algorithm. This involves sampling basal and apex points independently and then combining their distributions by multiplying them together, like combining a likelihood and a prior term.

Meng: That hierarchical sampling sounds like it's trying to capture complex spatial dependencies in the shape model, which is necessary because you need multiple contours for metrics like volume.

Jane: The ultimate goal of this process is uncertainty propagation to clinical metrics. They use a Monte Carlo framework where they run T a samples for aleatoric and T e samples for epistemic uncertainty.

Tom: After running those samples, they compute the mean and variance for each subset of the metric, resulting in mu m1, sigma squared m1, etc <ref:2502.12713#pg2>., which leads to the final predictive uncertainty sigma squared F = sigma squared F a + sigma squared F e <ref:2502.12713#pg2>.

Lu: So, this paper is focused on providing an intelligible way to combine aleatoric and epistemic uncertainty specifically for echocardiography clinical metrics.

Jane: It moves the field away from just pixel-wise uncertainty and toward a model that captures the shape's inherent uncertainty, which seems like a much more meaningful direction for clinical application.

Conclusion: Tom: So to wrap up on "Uncertainty Propagation for Echocardiography Clinical Metric Estimation via Contour Sampling," the authors are proposing this contour-based approach as a novel way to handle uncertainty estimation in this domain.

Jane: The key implication is that by modeling contour uncertainty and shape uncertainty, we can provide a framework that correctly propagates those uncertainties to clinical metrics, which is crucial because pixel-wise uncertainty alone falls short for these tasks.

Lu: They found this method provides optimal results in clinical metric calibration when combined with temporal consistency in the sampling process.

Meng: From a deployment standpoint, it's powerful because it addresses the variability needed for accurate calibration, even if the complexity means you have to run multiple samples during inference.

Jane: It suggests that future work will involve integrating more temporal consistency into this sampling process to see how that further refines the uncertainty estimates on moving structures.

Tom: This framework gives us a concrete way to combine aleatoric and epistemic uncertainty for things like left ventricular volume and ejection fraction, which is what matters most for clinical utility.

Thierry Judge, Olivier Bernard, Woo-Jin Cho Kim, Alberto Gomez, Arian Beqiri, Agisilaos Chartsias

University of Sherbrooke Department of Computer Science University of Sherbrooke INSA Universite Claude Bernard Lyon 1 CNRS UMR 5220 Inserm U1206 CREATIS Ultromics Ltd. King’s College London

cs.CV

Submitted: 2025-02-18

Updated: 2026-10-14

Code: https://github.com/ThierryJudge/contouring-uncertainty

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 77/100

The gist: The gist: This work proposes a novel uncertainty estimation method based on contouring rather than segmentation to propagate uncertainty from input images to derived clinical metrics in

Key concepts

Contour-based Aleatoric Uncertainty Modeling
Instead of measuring pixel-level uncertainty, this method models the uncertainty of where the contour points are located. A neural network predicts heatmaps showing both the center (mean position) and a halo (uncertainty size) for each potential point on the contour.
Shape Uncertainty Modeling (PSM)
To handle multiple contours needed for clinical metrics, a Posterior Shape Model based on Principal Component Analysis (PCA) is used. This statistical model predicts the uncertainty of one point given the positions of other points, allowing for more accurate shape modeling than simple independent sampling.
Aleatoric and Shape Uncertainty Fusion
A hierarchical sampling algorithm combines contour uncertainty and shape uncertainty. It samples basal and apex points first, uses the shape model to predict conditional distributions, and then fuses these distributions to generate new conditioned distributions for all points.

Terminology

Summary

The gist: This work proposes a novel uncertainty estimation method based on contouring rather than segmentation to propagate uncertainty from input images to derived clinical metrics in echocardiography.

Contour-based Aleatoric Uncertainty Modeling

Contrary to most previous work in uncertainty estimation for segmentation, this approach models the uncertainty of contour points rather than the pixel-wise uncertainty, advocating that this is more appropriate for left-ventricle segmentation because there is no uncertainty around the presence of the left-ventricle in the image, but rather uncertainty regarding its position<ref:2502.12713#pg4>. The prediction of a contour and its associated uncertainty begins with a training dataset made of D = N pairs n=1, where each pair is an image xn ∈ R H×W of height H and width W, and corresponding ground truth segmentation map yn ∈ 0, 1 C×H×W <ref:2502.12713#pg4>. A contouring neural network f c θ (·) is trained to predict K heatmaps Z k ∈ R H×W, each associated to a control point, as illustrated on the left of Figure 1 <ref:2502.12713#pg5>. Each heatmap contains a blurry white spot whose center corresponds to the position of a control point (variable µ) and whose halo size corresponds to the uncertainty of that point (variable Σ) <ref:2502.12713#pg5>. The mean and variance can be extracted from the heatmap using two coordinate maps I ∈ R H×W and J ∈ R H×W, which are used to extract the mean and variance of the heatmap for each point <ref:2502.12713#pg5>. By combining the computed variance and covariance values, a 2-dimensional Gaussian distribution can be modeled<ref:2502.12713#pg5>. The model thus predicts a tuple (ˆµ, Σ) ˆ for each image x, with µˆ ∈ R K×2 and Σˆ ∈ R K×2×2 <ref:2502.12713#pg5>. To train the network, the negative-log likelihood of the Gaussian is used for each point<ref:2502.12713#pg5>.

Shape Uncertainty Modeling

While the previous formulation allows predicting one contour, uncertainty propagation to clinical metrics requires multiple contours, which can be retrieved with stochastic sampling of ˆµk, Σˆk K k=1 <ref:2502.12713#pg6>. However, sampling each individual distribution does not provide valid contours as the inter-point covariance is not modeled<ref:2502.12713#pg6>. We propose using a statistical shape model that models the uncertainty of points given the position of other points, defined as a posterior shape model (PSM) based on principal component analysis (PCA)<ref:2502.12713#pg6>. The PSM predicts a conditional distribution given partial data, p(ss(g)) = N (µc, Σc) <ref:2502.12713#pg7>. The mean and covariance matrix are given by µc = ¯µ + Q(Q T g Qg + ϵ squared I2K) −1Q T g(s(g) − µg) ∈ R 2K, (9)<ref:2502.12713#pg7>. The model will refer to the matrix Q computed with respect to µˆ as Qˆ <ref:2502.12713#pg7>.

Aleatoric and Shape Uncertainty Fusion

A hierarchical sampling algorithm is defined to fuse both the contour uncertainty and shape uncertainty<ref:2502.12713#pg7>. The process begins by sampling both basal points and apex point independently, as these points are tied to well-defined anatomical landmarks<ref:2502.12713#pg7>. Given this partial input, the parameters of the posterior shape model distribution can be predicted using PSM<ref:2502.12713#pg7>. To obtain a distribution conditioned on both the original model prediction and the sampled points, we fuse both distributions by multiplying them as is done when combining a likelihood and prior term<ref:2502.12713#pg7>. This results in new conditioned distributions for each point, which are then used to sample the midpoints between previously sampled points and repeat the process until all points are sampled at each hierarchical level<ref:2502.12713#pg7>.

Uncertainty Propagation

The predictive uncertainty of a clinical metric F is given by Vp(mx) = Eqw(θ) h Vpθ(yx) [F(y)]i + Vqw(θ) h Epθ(yx) [F(y)]i <ref:2502.12713#pg7>. To compute this uncertainty, a Monte Carlo framework is used where Yˆ = Ta to be the number of samples to estimate the aleatoric uncertainty and Te to be the number of epistemic samples <ref:2502.12713#pg7>. For each prediction in Yˆ, a given clinical metric F can be computed to obtain M = m1 1 Ta, m1 2 Ta, …, mTe Te <ref:2502.12713#pg7>. The mean and variance of each subset are computed to obtain M′ = µm1, σ2 m1, … (µmTe, σ2 mTe) <ref:2502.12713#pg7>. Finally, both components of the clinical metric uncertainty can be combined to obtain the predictive uncertainty, σ squared F = σ squared Fa + σ squared Fe <ref:2502.12713#pg7>.

Conclusion

The framework provides an intelligible uncertainty estimation that can combine both aleatoric and epistemic uncertainty<ref:2502.12713#pg10>. Our findings highlight that a contour-based approach to aleatoric uncertainty, combined with shape uncertainty modeling, delivers optimal results in clinical metric calibration<ref:2502.12713#pg10>. This approach is further improved by integrating temporal consistency in the sampling process<ref:2502.12713#pg10>. The incompatibility between the variability required to achieve clinical metric calibration and pixel-wise uncertainty calibration is a limitation of our work<ref:2502.12713#pg10>. CASUS and SSN exhibit better calibration on clinical metrics but show under-confidence in pixel-wise calibration<ref:2502.12713#pg10>.

Clinical Metrics

For each segmentation output, four clinical metrics are computed: the left ventricular area (Area), the leftventricular fractional area change (FAC), the left ventricular volume using the 2CH and 4CH views (Volume), and the ejection fraction (EF)<ref:2502.12713#pg9>. To assess uncertainty estimates, we use the uncertainty calibration error (UCE) [37], defined by UCE = X M m=1 Bm Ntest err(Bm) − uncert(Bm), (23)<ref:2502.12713#pg9>. We exclude predictions with negative values and discard Monte Carlo samples with negative values to ensure that clinically irrelevant samples do not bias the uncertainty calibration error calculation<ref:2502.12713#pg9>.

Experimental Setup

The experimental setup involved comparing various aleatoric uncertainty methods, including pixel-wise aleatoric uncertainty (PWA) [19], stochastic segmentation networks (SSN) [29], and test-time augmentation (TTA) [30]<ref:2502.12713#pg9>. The CASUS+t method combined with MC-Dropout ranks as the top or second-best method across all metrics in both datasets, emphasizing the benefits of temporal consistent sampling and the inclusion of epistemic uncertainty<ref:2502.12713#pg10>. The performance comparison showed that CASUS yields higher mutual information values on the Private dataset, suggesting it captures larger errors more effectively<ref:2502.12713#pg9>.

Evaluation Metrics

To assess segmentation quality, the Dice coefficient is used<ref:2502.12713#pg9>. The metric used to assess the image-level uncertainty is the negative correlation (Corr.) between image-level uncertainty and the image Dice<ref:2502.12713#pg9>. The expected calibration error (ECE) is computed as follows [36], where ECE = X M m=1 Bm Ntest acc(Bm) − conf(Bm) (22)<ref:2502.12713#pg9>.

Improvements for AI systems

  1. The improved system can estimate uncertainty propagation from input images to segmentation and, subsequently, to the derived clinical metrics by explicitly predicting aleatoric uncertainty directly for contour points rather than relying on pixel-wise uncertainty maps which often performs poorly since independent pixel distributions make plausible segmentation samples unlikely.

  2. The system can generate a robust endto-end pipeline for automatic clinical metric estimation with intelligible uncertainty, specifically by implementing the CASUS method, which combines contour aleatoric shape uncertainty sampling and temporal consistent sampling to produce plausible contours.

  3. The improved system can provide clinically relevant metrics by employing a Monte Carlo framework where it computes the mean and variance of each subset of clinical metric predictions, resulting in a total uncertainty estimate where the spatial uncertainty can be estimated per pixel by computing entropy of all samples in Yˆ.

Abstract

Echocardiography plays a fundamental role in the extraction of clinical parameters (e.g. left ventricular volume and ejection fraction) required to determine the presence and severity of heart-related conditions. When deploying automated techniques for computing these parameters, uncertainty estimation is highly valuable for assessing their utility. Since clinical parameters are usually derived from segmentation maps, there is no clear path for converting pixel-wise uncertainty values into uncertainty estimates in the downstream clinical metric calculation. In this work, we propose a novel uncertainty estimation method based on contouring rather than segmentation. Our method explicitly predicts contour location uncertainty from which contour samples can be drawn. Finally, the sampled contours can be used to propagate uncertainty to clinical metrics. Our proposed method not only provides accurate uncertainty estimations for the task of contouring but also for the downstream clinical metrics on one public and two private cardiac ultrasound datasets containing a total of 1264 patients. Code is available at: https://github.com/ThierryJudge/contouring-uncertainty.

Sources

Related papers