Prediction Error Meta Classification in Semantic Segmentation: Detection via Aggregated Dispersion Measures of Softmax Probabilities

Matthias Rottmann, Pascal Colling, Thomas-Paul Hack, Fabian Hüger, Peter Schlicht, Hanno GottschalkIJCNN 2018 · DOI

TL;DR

This paper introduces a novel "meta-classification" approach to assess the reliability of semantic segmentation predictions. By aggregating pixel-wise dispersion measures of softmax probabilities, they derive segment-level metrics that effectively predict whether a segmented object actually matches the ground truth, achieving high accuracy in detecting prediction errors.

What Problem Does This Paper Address?

In safety-critical applications like autonomous driving and medical diagnostics, it's crucial to know not just what a neural network predicts, but also how confident it is in that prediction. For semantic segmentation, where an image is divided into regions corresponding to different object classes, a key challenge is identifying "false positive" segments – regions that the network identifies as an object but which don't actually correspond to a real object in the ground truth. Existing methods often rely on simple thresholds of softmax probabilities or entropy, sometimes combined with techniques like Monte Carlo dropout, but these can be limited. This paper aims to provide a more robust and generalizable way to detect these unreliable predictions at the segment level.

Methods

The core of the proposed method involves two main steps:

  1. Pixel-wise Dispersion Measures: The authors leverage the output of semantic segmentation networks, specifically the softmax probabilities for each pixel. They compute measures of "dispersion" or "uncertainty" for these probability distributions. Two key measures are used:
  2. Entropy ($E_z$): A standard measure of uncertainty in a probability distribution.
  3. Difference in Probability ($D_z$): The difference between the highest and second-highest softmax probabilities. These measures are normalized to produce "dispersion heat maps" that highlight pixels where the network's prediction is less confident.

  4. Segment-wise Aggregation and Meta-Classification: These pixel-wise heat maps are then aggregated over predicted segments. For each segment, they compute various metrics, including:

  5. Mean entropy and probability difference (over interior and boundary pixels).
  6. Segment size.
  7. Relative sizes and entropies. These segment-level metrics are then used as features for a "meta-classification" task. This task aims to predict whether a segment's Intersection over Union (IoU) with the ground truth is zero (a false positive) or greater than zero. They employ two primary approaches:

  8. Logistic LASSO Regression: To classify segments as IoU=0 vs. IoU>0, using the aggregated metrics as input. LASSO helps in selecting the most informative metrics.

  9. Linear Regression: To directly predict the IoU value of a segment, providing a continuous measure of reliability.

Datasets

The paper evaluates its method on two publicly available datasets:

  • Cityscapes: A dataset for semantic segmentation of street scenes, containing 500 high-resolution images.
  • BraTS2017: A dataset for brain tumor segmentation, comprising MRI scans.

They use state-of-the-art networks trained on these datasets, including DeepLabv3+ with Xception65 and MobilenetV2 backbones for Cityscapes, and U-Net and a 3D network by Myronenko et al. for BraTS2017.

Key Insights and Ideas

  • Dispersion Measures as Reliable Indicators: The paper demonstrates that simple pixel-wise dispersion measures (like entropy and probability difference) are surprisingly effective when aggregated at the segment level. They are well-correlated with segment-wise IoU.
  • "Meta-Classification" for Reliability: The concept of "meta-classification" – classifying the prediction itself (as correct or incorrect) rather than the object class – is a powerful way to frame the problem of detecting unreliable segments.
  • LASSO for Feature Selection: Using LASSO regression is crucial for identifying which of the many derived metrics are most predictive of segment quality, leading to more parsimonious and interpretable models.
  • Generalizability Across Domains: The method shows promise in generalizing from street scenes to medical imaging (brain tumors), suggesting its broad applicability.
  • Adjusted IoU (IoUadj): The introduction of IoUadj provides a more nuanced metric that better reflects prediction quality when a ground truth object is split into multiple predicted segments, or when a predicted segment covers only a part of a ground truth object.

Key Results

  • Meta-Classification Performance: For the task of classifying segments with IoU=0 vs. IoU>0, the method achieves AUROC values of up to 91.55% on the BraTS2017 dataset and 87.71% on the Cityscapes dataset using penalized logistic regression.
  • IoU Prediction Performance: When predicting the IoU value directly using linear regression, the method achieves prediction standard deviations as low as 0.130 and $R^2$ values up to 84.15% on the Cityscapes dataset.
  • Outperforming Baselines: The proposed method consistently outperforms simpler baselines, such as using only entropy or random guessing, across both classification and regression tasks.

Limitations and Future Work

  • Limitations:
    • The paper notes that while their method is effective, incorporating model uncertainty (e.g., via MC dropout) in the generation of dispersion heat maps could further improve results.
  • The performance gain over the single-metric baseline (entropy only) in the BraTS2017 dataset was not as dramatic as in Cityscapes, partly due to a strong correlation between entropy and IoU in that specific domain and a class imbalance issue.
  • Future Work:
    • Investigate the use of MC dropout for generating more informative dispersion heat maps.
  • Apply the method for detecting labeling errors and for active learning.
  • Explore additional metrics that might further leverage detection accuracy.
  • Consider detection mechanisms that operate on earlier layers of the neural network, not just the softmax output.
  • The authors have made their source code publicly available.

Summary updated

BibTeX
@inproceedings{rottmann2018prediction,
  author = {Matthias Rottmann and Pascal Colling and Thomas-Paul Hack and Fabian Hüger and Peter Schlicht and Hanno Gottschalk},
  title = {{Prediction Error Meta Classification in Semantic Segmentation: Detection via Aggregated Dispersion Measures of Softmax Probabilities}},
  booktitle = {IJCNN},
  year = {2018},
  doi = {10.1109/ijcnn48605.2020.9206659},
}
Figure