SegmentMeIfYouCan: A Benchmark for Anomaly Segmentation

Robin Chan, Krzysztof Lis, Svenja Uhlemeyer, Hermann Blum, Sina Honari, Roland Siegwart, Pascal Fua, Mathieu Salzmann, Matthias Rottmann

Abstract

Autonomous driving systems rely heavily on semantic segmentation to perceive their environment. However, these models typically operate under a "closed-world" assumption, failing when encountering objects outside their training set. We present "SegmentMeIfYouCan," a novel benchmark featuring two high-quality real-world datasets—RoadAnomaly21 and RoadObstacle21—and a component-wise evaluation metric (sIoU). Our evaluation reveals that current state-of-the-art models struggle significantly with small, unexpected obstacles, highlighting a critical safety gap in existing perception systems.

Introduction: The Closed-World Challenge

Most semantic segmentation networks are trained on fixed classes like cars, pedestrians, and sidewalks. When these models encounter an "anomaly"—such as a fallen tree or a stray animal—they often fail with high confidence, incorrectly assigning the object to a known category. This behavior is dangerous for safety-critical applications like automated driving. Existing benchmarks often rely on synthetic data, which fails to capture the complexity of real-world lighting and environmental interactions.

The SegmentMeIfYouCan Benchmark

To address these limitations, we propose a rigorous evaluation framework that shifts focus from pixel-wise to component-wise metrics. Standard metrics like AuPRC count every pixel equally, which can mask failures on small but hazardous objects. We introduce sIoU (adjusted Intersection over Union), which treats each individual object as a single component. This ensures that missing a small obstacle is penalized as heavily as missing a large one, providing a more safety-relevant performance measure.

Example of a RoadAnomaly21 scene featuring unexpected animals on a public road.

Real-World Datasets

The benchmark introduces two primary datasets designed to test different aspects of anomaly detection:

  1. RoadAnomaly21: Contains 100 images with "strict" anomalies—objects from categories entirely absent from standard training sets (e.g., Cityscapes).
  2. RoadObstacle21: Includes 327 images focused on the "drivable area." It targets any object that shouldn't be on the road, regardless of whether its category is known, such as a tree stump or a small toy.
A small obstacle on a forest road in the RoadObstacle21 dataset, illustrating the difficulty of detecting small, low-pixel-count hazards.

Key Insights and Results

Our evaluation of baseline methods—ranging from simple uncertainty estimators to complex generative models—yielded several key findings:

  • The Small Object Gap: Even top-performing models show a massive performance drop as object size decreases. For the smallest obstacles in RoadObstacle21, the rate of missed objects remains alarmingly high.
  • Metric Discrepancy: Models can achieve high pixel-wise scores while failing to detect nearly all small obstacles. The component-wise sIoU metric provides a necessary "wake-up call" for safety-critical perception.
  • Synthetic vs. Real: Models that excel on synthetic benchmarks often fail on RoadAnomaly21 due to the complex shadows and environmental interactions present in real-world imagery.
  • Leading Methods: Currently, the Maximized Entropy method leads the leaderboard. It works by training models to be intentionally uncertain when presented with out-of-distribution proxy data. Generative models like SynBoost show promise at the component level but currently lack the speed required for real-time deployment.

Conclusion

While SegmentMeIfYouCan provides a more realistic evaluation of anomaly segmentation, challenges remain. Current datasets are relatively small, and the benchmark is currently limited to camera-based vision. Future work will expand the dataset to include extreme weather and night scenes, moving toward perception systems that can reliably signal "I don't know" when encountering the unexpected.

Summary updated

Abstract

State-of-the-art semantic or instance segmentation deep neural networks (DNNs) are usually trained on a closed set of semantic classes. As such, they are ill-equipped to handle previously-unseen objects. However, detecting and localizing such objects is crucial for safety-critical applications such as perception for automated driving, especially if they appear on the road ahead. While some methods have tackled the tasks of anomalous or out-of-distribution object segmentation, progress remains slow, in large part due to the lack of solid benchmarks; existing datasets either consist of synthetic data, or suffer from label inconsistencies. In this paper, we bridge this gap by introducing the "SegmentMeIfYouCan" benchmark. Our benchmark addresses two tasks: Anomalous object segmentation, which considers any previously-unseen object category; and road obstacle segmentation, which focuses on any object on the road, may it be known or unknown.We provide two corresponding datasets together with a test suite performing an in-depth method analysis, considering both established pixel-wise performance metrics and recent component-wise ones, which are insensitive to object sizes. We empirically evaluate multiple state-of-the-art baseline methods, including several models specifically designed for anomaly / obstacle segmentation, on our datasets and on public ones, using our test suite.The anomaly and obstacle segmentation results show that our datasets contribute to the diversity and difficulty of both data landscapes.
BibTeX
@inproceedings{chan2021segmentmeifyoucan,
  author = {Robin Chan and Krzysztof Lis and Svenja Uhlemeyer and Hermann Blum and Sina Honari and Roland Siegwart and Pascal Fua and Mathieu Salzmann and Matthias Rottmann},
  title = {{SegmentMeIfYouCan: A Benchmark for Anomaly Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=epGbOLcvjy},
}
Figure