Self-Supervised Domain Mismatch Estimation for Autonomous Perception

Jonas Löhdefink, Justin Fehrling, Marvin Klingner, Fabian Hüger, Peter Schlicht, Nico M. Schmidt, Tim Fingscheidt

Introduction

Deep learning models for autonomous driving, particularly those performing semantic segmentation, are highly sensitive to domain shift. A model trained on the sunny streets of Germany (e.g., the Cityscapes dataset) may fail dangerously when encountering rainy nights in New York or dusty rural roads. While the standard metric for segmentation is mean Intersection over Union (mIoU), calculating it requires ground-truth labels—data that is unavailable during real-time vehicle operation. This paper addresses the critical challenge of estimating performance degradation in real-time without human-labeled data.

Comparison of traditional performance evaluation vs. the proposed self-supervised domain mismatch estimation.

Methodology: The Autoencoder as an Observer

The authors propose a self-supervised framework that utilizes an autoencoder as a performance monitor. The autoencoder is trained on the same data as the primary segmentation model. Because autoencoders learn to reconstruct their own input, they require no labels, making them ideal for "online" monitoring.

The core of the approach lies in the following steps:

  1. Reconstruction Error: The system uses Peak Signal-to-Noise Ratio (PSNR) to measure how accurately the autoencoder reconstructs an incoming image. A drop in PSNR indicates that the autoencoder is encountering data outside its training distribution.
  2. Distributional Comparison: Rather than relying on a single frame, the system analyzes the distribution of PSNR values over a batch of images.
  3. Domain Mismatch (DM) Metric: The "Domain Mismatch" is calculated using the Earth Mover’s Distance (EMD) between the training PSNR distribution and the currently observed distribution. This metric quantifies the statistical shift in the environment.
Detailed workflow of the Domain Mismatch (DM) estimation using an autoencoder and Earth Mover’s Distance.

Experimental Setup and Datasets

The study validates the DM metric across three major benchmarks:

  • Cityscapes: High-quality urban imagery from Germany.
  • Berkeley DeepDrive (BDD100K): Diverse weather and lighting conditions from the U.S.
  • KITTI: Targeted data from a single German city to test subtle geographic shifts.

The researchers used Kendall’s rank order coefficient ($\tau$) to measure the correlation between the proposed DM metric and the actual mIoU drops observed in the segmentation model.

Key Results and Insights

The experiments yielded several critical insights:

  • High Correlation: The DM metric demonstrated a strong rank-order correlation with mIoU degradation, with Kendall’s $\tau$ values ranging between 0.6 and 0.8.
  • Sensitivity to Shift: The autoencoder proved more sensitive to domain shifts than the segmentation network itself, acting as an effective "early warning system." Even subtle shifts, such as moving from Cityscapes to KITTI, were detectable.
  • Detecting Massive Failure: A model trained on Cityscapes (81.2% mIoU) saw its performance plummet to ~23-26% when tested on BDD. The DM metric successfully flagged this catastrophic shift with a high value (~8.3-8.5 dB), compared to a baseline validation DM of only 1.31 dB.

Discussion and Future Work

While the DM metric provides a robust signal for domain shift, it currently relies on batch processing to build distributions, meaning it cannot provide an instantaneous signal for a single frame. Furthermore, the authors suggest a heuristic threshold—defining "out-of-domain" as twice the validation DM—which serves as a starting point for safety-critical handovers. Future research will focus on refining these thresholds and extending the framework to other perception tasks like object detection and depth estimation.

Summary updated

BibTeX
@inproceedings{lohdefink2020self,
  author = {Jonas Löhdefink and Justin Fehrling and Marvin Klingner and Fabian Hüger and Peter Schlicht and Nico M. Schmidt and Tim Fingscheidt},
  title = {{Self-Supervised Domain Mismatch Estimation for Autonomous Perception}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00175},
}
Figure