A Fine-Grain Error Map Prediction and Segmentation Quality Assessment Framework for Whole-Heart Segmentation

Rongzhao Zhang, Albert C. S. Chung

Introduction

Automated image segmentation is a cornerstone of modern medical AI, essential for delineating structures like the heart for diagnosis and surgical planning. However, these algorithms are not infallible. In clinical settings, the absence of expert-provided "ground truth" labels makes it difficult to determine if a specific segmentation is accurate. Undetected errors can propagate through the clinical workflow, leading to incorrect volume measurements or misleading statistical conclusions.

While existing quality assessment methods often provide a single score for an entire dataset, they frequently fail to offer actionable feedback for individual patients or are too computationally expensive for real-time use. This paper introduces a deep learning framework designed to provide per-case, fine-grained feedback, predicting exactly which pixels are likely misclassified and providing a reliable "Quality Indicator" (QI) to help clinicians decide when to trust an AI’s output.

Methods

The proposed framework consists of a two-stage pipeline designed to transition from initial segmentation to detailed error analysis.

  1. The Segmentor: A standard 3D CNN (VoxResNet) is employed to generate the initial heart segmentation mask from MRI data.
  2. The Error Map Predictor: This core innovation is a secondary VoxResNet that takes both the original MRI image and the initial segmentation mask as inputs. It outputs a probabilistic map where each pixel represents the likelihood of being a misclassification.
Overview of the error map prediction framework and the underlying deep learning architecture.

The "Side-Output" Training Strategy

A significant challenge in training an error predictor is the lack of diverse error examples from high-quality models. To overcome this, the authors utilized "side outputs" from the deep supervision paths of the segmentor. By extracting masks from intermediate layers of the network, they generated a wide spectrum of segmentation qualities—ranging from total failures to near-perfect masks—providing a rich and varied training set for the error predictor.

Quality Indicator (QI)

By averaging the predicted error map, the framework derives a single scalar value (QI). This value serves as a highly accurate proxy for the actual segmentation accuracy, allowing for a global confidence assessment of the model's performance on a specific scan.

Datasets and Evaluation

The framework was evaluated using the MICCAI 2017 MMWHS (Multi-Modality Whole Heart Segmentation) dataset, which includes 20 MRI scans with manual annotations for seven foreground heart classes. Given the small sample size, the authors employed a rigorous 5-fold cross-validation to ensure the robustness of their findings.

Example of a multi-class heart segmentation mask from the MMWHS dataset.

Key Insights

  • Reframing Quality Assessment: The authors cleverly reframed quality assessment as a binary segmentation problem (Error vs. Correct). This allows the use of powerful architectures like VoxResNet for a task traditionally handled by simpler regression models.
  • Anatomical Logic: When the predictor was tested on actual ground truth masks, it achieved an accuracy of 0.9967. This suggests the model successfully learned the underlying anatomical logic of a correct heart shape.
  • Inverse Difficulty: Interestingly, the model is more effective at identifying errors on low-quality masks. On high-quality segmentations, errors often appear as thin slivers at class boundaries, which are more difficult to distinguish from the natural variance in human annotation styles.

Results

The experimental results demonstrate that the Quality Indicator (QI) is an exceptionally reliable proxy for real-world performance:

  • Correlation: The Pearson Correlation Coefficient (PCC) between the predicted QI and actual segmentation accuracy was 0.972, indicating a near-perfect linear relationship.
  • Precision: The Mean Absolute Error (MAE) between the QI and actual accuracy was only 0.0048, meaning the predicted accuracy is typically within 0.5% of the truth.
  • Error Map Accuracy: The task of predicting the spatial location of errors achieved a Dice score of 0.626, a substantial result given the inherent difficulty of predicting "missing" information.

Conclusion and Future Work

This framework provides both global confidence scores and local guidance for manual correction, bridging a critical gap in clinical AI deployment. While the current study is limited by a small dataset of 20 MRI scans, the methodology is generic and potentially adaptable to other organs or imaging modalities like CT.

Future research directions include using the error map predictor as a "critic" in a Generative Adversarial Network (GAN) loop, where the segmentor learns to improve its output by attempting to "fool" the error predictor, leading to even more refined automated segmentations.

Summary updated

Abstract

When introducing advanced image computing algorithms, e.g., whole-heart segmentation, into clinical practice, a common suspicion is how reliable the automatically computed results are. In fact, it is important to find out the failure cases and identify the misclassified pixels so that they can be excluded or corrected for the subsequent analysis or diagnosis. However, it is not a trivial problem to predict the errors in a segmentation mask when ground truth (usually annotated by experts) is absent. In this work, we attempt to address the pixel-wise error map prediction problem and the per-case mask quality assessment problem using a unified deep learning (DL) framework. Specifically, we first formalize an error map prediction problem, then we convert it to a segmentation problem and build a DL network to tackle it. We also derive a quality indicator (QI) from a predicted error map to measure the overall quality of a segmentation mask. To evaluate the proposed framework, we perform extensive experiments on a public whole-heart segmentation dataset, i.e., MICCAI 2017 MMWHS. By 5-fold cross validation, we obtain an overall Dice score of 0.626 for the error map prediction task, and observe a high Pearson correlation coefficient (PCC) of 0.972 between QI and the actual segmentation accuracy (Acc), as well as a low mean absolute error (MAE) of 0.0048 between them, which evidences the efficacy of our method in both error map prediction and quality assessment.
BibTeX
@inproceedings{zhang2019fine,
  author = {Rongzhao Zhang and Albert C. S. Chung},
  title = {{A Fine-Grain Error Map Prediction and Segmentation Quality Assessment Framework for Whole-Heart Segmentation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2019},
  url = {https://openreview.net/forum?id=hkHV_NTscC},
}
Figure