Diagnostics in Semantic Segmentation

Vladimir Nekrasov, Chunhua Shen, Ian D. ReidarXiv 2018

Introduction

In the current landscape of computer vision, semantic segmentation models are predominantly evaluated using aggregate metrics like mean Intersection-over-Union (mIoU). While useful for leaderboard rankings, these single-number summaries often mask significant performance disparities across different object types and scales. A model achieving high mIoU might perform excellently on large, frequent classes like 'road' while remaining functionally blind to 'pedestrians' or 'traffic signs' at a distance. This paper introduces a diagnostic framework designed to move beyond aggregate scores, identifying specific failure modes related to object characteristics, localization errors, and model uncertainty.

Diagnostic Methodology

The proposed framework evaluates models through three distinct lenses:

  1. Object Characteristic Analysis: Object instances are categorized into five size bins (Extra-Small to Extra-Large) and five aspect ratio bins (Extra-Tall to Extra-Wide). This granular categorization allows for the mapping of accuracy against physical object properties.
  2. Error Taxonomy: Errors are classified into Mislocalisation (where the correct label is present in the immediate spatial neighborhood) and Confusion (where the model predicts an entirely incorrect class). Confusion is further subdivided into semantic similarity (e.g., car vs. truck), background confusion, and dissimilar class confusion.
  3. Uncertainty Quantification: Using metrics like Relative Entropy and Relative Probability (the margin between top-1 and top-2 scores), the framework assesses the model's confidence.
Figure 1: Visualization of object instances categorized by size (XS to XL) and aspect ratio (XT to XW).

Key Insights and Results

The diagnostic analysis was applied to DeepLab-v3 and ResNet-38 on the PASCAL VOC and CityScapes datasets. Several critical patterns emerged:

The Small Object Blind Spot

Models exhibit a consistent performance decay as object size decreases. For instance, DeepLab-v3 frequently misses extra-small (XS) objects entirely. As shown in the performance plots, accuracy drops sharply for the smallest size bins across multiple classes.

Figure 3: Accuracy trends across different object sizes (PASCAL VOC) and aspect ratios (CityScapes). Note the significant performance drop for XS/S sizes and extreme aspect ratios.

Mislocalisation and the "Almost Right" Phenomenon

A substantial portion of measured error is attributed to boundary mislocalisation. When allowing for a small spatial tolerance (5-10 pixels), accuracy scores improve by 5% to 20%. Furthermore, Top-N analysis reveals that the correct label is frequently the model's second or third choice. On CityScapes, moving from Top-1 to Top-2 evaluation increased mean accuracy from 86.38% to 94.76%, suggesting that models often possess the "correct idea" but fail at the final class discrimination.

The "Zoom-in" Strategy

To address the small object deficit, a "Zoom-in" experiment was conducted. By identifying high-activation but low-confidence regions, cropping them, and re-processing them at higher resolution, dramatic gains were observed. For the 'bottle' class in PASCAL VOC, accuracy surged from 0.34% to 32.61% through simple upsampling.

Discussion and Future Work

The findings suggest that future progress in semantic segmentation should focus on architectural robustness to scale and better boundary refinement rather than just optimizing for mIoU. While the "Zoom-in" strategy proves effective, its current implementation requires prior knowledge of where to crop. Future research should explore automated attention mechanisms and "self-aware" models that utilize internal uncertainty maps to trigger high-resolution processing or active learning loops. Moving toward models that understand their own limitations is essential for safety-critical deployments in autonomous driving and medical imaging.

Summary updated

BibTeX
@misc{nekrasov2018diagnostics,
  author = {Vladimir Nekrasov and Chunhua Shen and Ian D. Reid},
  title = {{Diagnostics in Semantic Segmentation}},
  year = {2018},
  eprint = {1809.10328},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.10328},
}
Figure