Evaluation Metrics for Object Detection for Autonomous Systems

Apurva Badithela, Tichakorn Wongpiromsarn, Richard M. MurrayarXiv 2022

TL;DR

This paper introduces a novel framework for evaluating autonomous vehicle perception by linking object detection performance directly to system-level safety requirements. By using distance-parametrized and proposition-labeled confusion matrices, the authors provide a way to quantify how likely a self-driving car is to satisfy its safety goals (expressed in Linear Temporal Logic) given the specific errors of its vision system.

What Problem Does This Paper Address?

In the world of autonomous systems, there is a significant "perception-planning gap." Computer vision researchers typically evaluate object detectors using standard metrics like Mean Average Precision (mAP), precision, and recall. While useful for comparing models, these metrics don't tell us if a car will actually be safe.

For instance, a standard confusion matrix treats a missed pedestrian 50 meters away the same as one 5 meters away. However, for a planning module, the latter is a catastrophic failure, while the former might be negligible. Furthermore, a planner might only care if any pedestrian is present to trigger a "stop" command; it doesn't necessarily need to know if there are three or four. Current evaluation methods fail to account for these downstream requirements and the spatial context of detections.

Methods

The authors propose a framework that integrates perception metrics into formal system verification (see Figure 1).

Fig. 1: Planning and control is evaluated using temporal logic, and this analysis often excludes perception performance. Based on confusion matrices from computer vision, we propose new metrics for object detection, and outline a framework for accounting for perception performance in evaluating the overall system.

Key innovations include:

  • Distance-Parametrized Confusion Matrices: Instead of one global matrix, they create multiple matrices corresponding to different distance bins from the ego vehicle. This captures the reality that detectors are generally more accurate for closer objects.
  • Proposition-Labeled Confusion Matrices: Instead of labeling rows and columns with object classes (e.g., "car," "pedestrian"), they use atomic propositions (e.g., "there exists a pedestrian"). This aligns the perception output with the logical inputs required by high-level planners.
  • Markov Chain Integration: They use these new confusion matrices to define transition probabilities in a Markov chain model of the system.
  • Probabilistic Model Checking: By applying the Storm model checker to this Markov chain, they calculate the satisfaction probability—the likelihood that the system will adhere to safety specifications defined in Linear Temporal Logic (LTL).

Datasets

  • NuScenes: A large-scale multimodal dataset for autonomous driving. The authors used the first 85 scenes of the v1.0 dataset for evaluation.
  • MS COCO: Used to pre-train the YOLOv3 object detection model evaluated in the study. The authors intentionally chose a model trained on a different dataset to observe how "imperfect" perception affects safety analysis.

Key Insights and Ideas

  • Context is King: Safety is not just about detection accuracy; it's about where the errors happen. Distance-parameterization reveals that a system might be "safe enough" if its errors are confined to long ranges where the planner has time to react.
  • Planning-Aware Metrics: The proposition-labeled approach shows that many "errors" in traditional computer vision (like miscounting a group of pedestrians) don't actually impact safety if the planner's decision remains the same.
  • Quantifying Safety: The framework moves safety assessment from qualitative "gut feelings" to a rigorous, quantitative probability. This allows engineers to see exactly how much a 10% improvement in detection at 10 meters boosts overall system safety.

Key Results

The authors tested their framework on a car-pedestrian scenario where the car must stop if a pedestrian is at a crosswalk (see Figure 3).

Fig. 2: Running example of a car and pedestrian. If there is a pedestrian at crosswalk cell Ck, that is, xe |= ped, then the car must stop at cell Ck−1. Otherwise, it must not stop.
  • Distance Matters: Comparing a standard confusion matrix to a distance-parametrized one showed a two-fold increase in the calculated satisfaction probability for low speeds. This suggests standard metrics are often overly pessimistic about system safety.
  • Proposition vs. Class: The proposition-labeled matrix resulted in higher satisfaction probabilities than the class-based counterpart, confirming that focusing on decision-relevant information provides a more accurate safety picture.
  • Speed Sensitivity: As expected, satisfaction probability dropped significantly as the car's initial speed increased, as there was less time to recover from perception misses (see Figure 5).
Satisfaction probability vs. initial speed

Limitations and Future Work

  • Model Performance: The overall satisfaction probabilities were relatively low (~20%), largely because the YOLOv3 model was vision-only and not fine-tuned on NuScenes.
  • Static Environments: The current model assumes the environment doesn't react to the car. Future work aims to extend this to reactive environments (e.g., pedestrians who jump out of the way).
  • Missing Modalities: The study focused on 2D vision. The authors plan to incorporate LIDAR and RADAR data, which are standard in modern autonomous stacks.
  • Temporal Dynamics: The framework currently evaluates frame-by-frame detections and does not yet account for temporal tracking and filtering, which usually smooths out perception errors in real systems.

Summary updated

BibTeX
@misc{badithela2022evaluation,
  author = {Apurva Badithela and Tichakorn Wongpiromsarn and Richard M. Murray},
  title = {{Evaluation Metrics for Object Detection for Autonomous Systems}},
  year = {2022},
  eprint = {2210.10298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.10298},
}
Figure