CheXmask-U: Quantifying uncertainty in landmark-based anatomical segmentation for X-ray images

Matias Cosarinsky, Nicolás Gaggion, Rodrigo Echeveste, Enzo Ferrante

TL;DR

This paper introduces a novel framework for quantifying fine-grained, node-level uncertainty in landmark-based anatomical segmentations of chest X-rays. By leveraging the latent space of a variational graph neural network, the authors successfully map out spatial variations in prediction quality and release CheXmask-U, a massive dataset of over 650,000 X-ray segmentations enriched with per-node uncertainty estimates.

What Problem Does This Paper Address?

Traditional medical image segmentation methods operate at the pixel level, often using convolutional or Transformer networks. While powerful, these approaches treat pixels independently, which can lead to anatomically impossible shapes (e.g., disconnected lung zones or jagged heart borders).

To fix this, researchers developed landmark-based segmentation, which models anatomical structures as graphs of interconnected points, ensuring topological correctness by design. However, until now, these models have been entirely deterministic. They provide no measure of confidence, making it impossible for clinicians or downstream algorithms to know which parts of a predicted boundary are reliable and which are guesswork due to noise, occlusions, or pathology.

Methods

The authors build upon HybridGNet, an architecture that combines a standard CNN image encoder with a Graph Convolutional Network (GCNN) decoder via a Variational Autoencoder (VAE) latent space.

The CheXmask-U uncertainty estimation framework, mapping an input image to a probabilistic latent space and decoding multiple stochastic landmark predictions.

They exploit this variational architecture to extract two distinct types of uncertainty:

  1. Latent Uncertainty: Derived directly from the variance ($\sigma^2$) of the learned distribution in the VAE bottleneck, providing a global confidence score for the entire anatomical structure.
  2. Predictive Uncertainty: Generated by sampling $N=50$ stochastic vectors from the latent space and passing them through the GCNN decoder. This yields multiple coordinate predictions per landmark, allowing the authors to compute the standard deviation for each individual node.

Crucially, this setup is highly efficient: the image is encoded only once, and the multiple decodings can be batched together rapidly in the graph domain.

Datasets

  • Training: The model was trained using a combination of four established chest X-ray datasets: JSRT, Padchest, Montgomery, and Shenzhen.
  • Evaluation & OOD Detection: Evaluated using the large-scale CheXmask dataset, which aggregates images from ChestX-ray8, CheXpert, MIMIC-CXR-JPG, Padchest, and VinDr-CXR.
  • New Benchmark Released: The authors introduce CheXmask-U, adding per-node predictive uncertainty estimates to all 657,566 frontal chest X-ray landmark segmentations from the original CheXmask collection.

Key Insights and Ideas

  • Spatial Granularity Matters: Unlike previous methods that only give an image-level quality score, this approach tells you exactly where the model is confused. For instance, if a pacemaker or an implant occludes part of a lung, only the nodes directly over the occlusion show high uncertainty.
Node-wise uncertainty visualization under artificial occlusions, demonstrating localized spikes in uncertainty within masked regions.
  • Bypassing the Bottleneck: The authors compared a model variant using Image-to-Graph Skip Connections (IGSC) against a plain model. While skip connections improve raw segmentation accuracy by letting high-resolution features bypass the VAE bottleneck, they can cause non-monotonic uncertainty behavior under extreme noise because the model relies heavily on unregularized features.
  • Computational Efficiency: Unlike pixel-level Monte Carlo (MC) Dropout, which requires running a heavy CNN encoder dozens of times, this method only encodes once. Generating 50 samples takes just ~9ms on a standard GPU, making it highly practical for clinical deployment.

Key Results

  • Strong Error Correlation: The node-wise predictive uncertainty strongly correlates with actual landmark errors when compared against manual annotations from two independent expert annotators (correlation coefficients of 0.58 and 0.59).
  • Out-of-Distribution (OOD) Detection: Using the predictive uncertainty score as a scalar detector achieved an Area Under the ROC Curve (AUC) of 0.98 for the skip-connections model and 0.93 for the plain model when identifying low-quality or non-chest X-ray images.
  • Outperforming Pixel Baselines: When converted to pixel masks for comparison, the variational HybridGNet demonstrated a stronger uncertainty-error correlation (0.76) than established pixel-level baselines like U-Net with MC Dropout (0.67) and PHiSeg (0.55).

Limitations and Future Work

A key limitation identified is the behavior of the skip-connections variant under severe noise corruption, where the uncertainty estimates plateau or drop deceptively due to features bypassing the variational bottleneck.

Additionally, the current framework is strictly tailored to 2D frontal chest X-rays and specific structures (lungs and heart). The authors note that extending this framework to multi-organ segmentations or 3D imaging modalities (like CT or MRI scans) remains an open and promising direction for future research.

Summary updated

BibTeX
@inproceedings{cosarinsky2026chexmask,
  author = {Matias Cosarinsky and Nicolás Gaggion and Rodrigo Echeveste and Enzo Ferrante},
  title = {{CheXmask-U: Quantifying uncertainty in landmark-based anatomical segmentation for X-ray images}},
  booktitle = {MIDL},
  year = {2026},
  url = {https://openreview.net/forum?id=FjimE8oktT},
}
Figure