Abstract
Deep learning models for medical image segmentation frequently encounter "out-of-distribution" cases where they may fail silently. This paper proposes an automated "alarm system" that leverages a Variational Auto-Encoder (VAE) to learn a robust prior of anatomical shapes. By measuring the fidelity of a predicted segmentation mask to this learned shape manifold—a metric termed "Fake Dice"—the system can accurately predict the actual Dice score and flag failures without human intervention or ground truth labels. Experimental results on abdominal CT scans demonstrate that this shape-based approach outperforms traditional uncertainty estimation methods and exhibits strong transferability across different datasets.
Introduction
While deep learning has revolutionized medical image segmentation, these models often struggle with rare anatomical variations or specific pathologies not well-represented in training sets. In a clinical pipeline, manual verification of every 3D scan is unfeasible, yet a "silent failure"—where a model produces a nonsensical result without warning—can have serious consequences.
Existing solutions often rely on uncertainty estimation, such as Bayesian Neural Networks or entropy maps. However, these methods typically highlight uncertainty only at the boundaries of an object and often fail to signal an alarm when the model misses a part of an organ entirely or creates "hallucinated" segments. This paper addresses the challenge by building a Quality Assessment (QA) tool that evaluates a predicted mask's anatomical plausibility without requiring the actual ground truth for that specific scan.
Methodology
The proposed framework utilizes a two-step process centered on a Variational Auto-Encoder (VAE) to establish a shape prior that is independent of image intensity.
Learning the Shape Prior
The core of the system is a VAE trained exclusively on ground truth (GT) masks. Because the VAE only observes "perfect" shapes during training, it learns a low-dimensional latent space (manifold) representing valid anatomical structures. The authors found that a 128-dimensional latent space was the optimal "sweet spot"; a space too small cannot represent complex anatomy, while one too large might learn an identity mapping that fails to distinguish between good and bad shapes.
The "Fake Dice" Regressor
During the inference phase, a segmentation model generates a prediction which is then fed into the pre-trained VAE.
- High-quality predictions align with the learned manifold and are reconstructed by the VAE with high fidelity.
- Low-quality predictions (erroneous shapes) are effectively "denoised" or corrected by the VAE toward the nearest valid anatomical shape.
The similarity between the original prediction and its VAE reconstruction is defined as the "Fake Dice" score. Finally, a simple linear regressor maps this "Fake Dice" score to the estimated "Real Dice" score. To ensure the regressor can identify failures, the authors used a "jackknifing" strategy, simulating various model failures on the training set to provide examples of "bad" segmentations.
Experimental Setup and Datasets
The study focused on 3D abdominal CT scans for pancreas and tumor segmentation across three major datasets:
- NIH Pancreas-CT Dataset: 82 scans used primarily for training the shape model.
- Medical Segmentation Decathlon (MSD): 420 scans, including challenging cases with cancerous lesions.
- Synapse Dataset: 50 scans used to evaluate the "transferability" of the alarm system across different data sources and scanner protocols.
Key Results
Superior Accuracy and Correlation
The VAE-based alarm system significantly outperformed standard baselines like Entropy Uncertainty and Bayesian Neural Networks. On the NIH dataset, it achieved a Mean Absolute Error (MAE) of 2.89 in predicting the Dice score, compared to 3.51 for the best uncertainty-based baseline. Furthermore, the "Fake Dice" metric demonstrated a strong Pearson Correlation coefficient (above 0.80) with actual segmentation quality across all tested datasets.
Robustness and Transferability
A key insight of the study is that anatomical shape is more stable than image intensity. While the appearance of a CT scan varies wildly between scanners, the shape of an organ is a consistent prior. Consequently, the alarm system trained on the NIH dataset remained highly effective when applied to the MSD or Synapse datasets without any retraining, highlighting its potential for general clinical use.
Discussion and Limitations
While the VAE-based system provides a robust mechanism for detecting structural failures, it currently operates solely on the segmentation mask (the shape). It ignores the underlying CT image texture, which might contain useful clues—for instance, if a mask is placed over a completely different tissue type. Additionally, the system performs better on organs with relatively stable shapes, like the pancreas, than on highly irregular structures like tumors. Future work will focus on integrating image-level features and extending the model to multi-organ segmentation tasks.
Summary updated