An NCAP-like Safety Indicator for Self-Driving Cars

Jimy Cai Huang, Hanna KurniawatiarXiv 2021

TL;DR

This paper introduces a standardized safety assessment metric for autonomous vehicles called the Safe-Kamikaze Distance (SKD), designed to act like an NCAP safety rating for self-driving cars. By measuring the distance between safe pedestrian trajectories and the closest collision-causing ("kamikaze") trajectories, SKD quantifies how much a normal scenario must deform to become dangerous. The approach is computationally efficient, enabling rapid, simulation-based safety benchmarking after routine software updates.

Introduction

While formal verification and adversarial testing exist for autonomous vehicles, there is a lack of standardized, easy-to-compare safety indicators akin to the New Car Assessment Program (NCAP) used for traditional cars. Because autonomous systems operate in non-deterministic environments (e.g., unpredictable pedestrians, sensor noise, varying road conditions), static NCAP tests aren't sufficient.

The authors tackle the challenge of creating a dynamic, adaptive testing mechanism. Instead of just hunting for rare edge-case accidents, they want to evaluate how robust an autonomous car's software is to small perturbations in everyday scenarios. The goal is a metric that regulators and consumers could eventually use to compare the safety of different self-driving software versions.

Methodology

The core contribution is the Safe-Kamikaze Distance (SKD). The framework works by taking a "safe" trajectory of an adversary (like a pedestrian crossing the street) and generating "kamikaze" trajectories—paths where the adversary intentionally tries to collide with the car while staying as close to the original safe path as possible.

Overview of the SKD calculation framework, illustrating the generation of safe and kamikaze trajectories for safety assessment.

The process involves several key components:

  • Fréchet Distance: SKD is calculated as the average discrete Fréchet distance (a measure of similarity between curves) between these pairs of safe and kamikaze trajectories.
  • POMDPs for Trajectory Generation: To generate the kamikaze trajectories, the adversary is modeled using a Partially Observable Markov Decision Process (POMDP). The adversary knows its own state but only has partial observability of the autonomous car's underlying policy. The POMDP reward function encourages the adversary to crash into the car while minimizing its physical deviation from the baseline safe trajectory.
  • Theoretical Bound: The authors mathematically prove that SKD provides an upper bound on the probability that a small, random perturbation will turn a safe trajectory into a collision.

Experimental Setup

The framework was evaluated using a scenario where a pedestrian crosses a single-lane road (similar to Euro-NCAP's Vulnerable Road User tests). The authors used two sets of safe trajectories:

  • Real-world data: Pedestrian trajectories extracted from the "Lateral Interaction (Unilateral)" scenario published in a 2019 vehicle-crowd interaction dataset by Yang et al.
  • Synthetic data: Safe pedestrian trajectories generated using a POMDP agent within the high-fidelity CARLA simulator (v0.9.6).

Key Insights

  • Distance equals safety margin: A larger SKD intuitively means a car is safer. If the kamikaze trajectory must deviate significantly from a normal, safe trajectory to cause a crash, the car has a wide margin of error.
  • Inherent penalty for uncertainty: The SKD metric naturally penalizes cars with high stochastic uncertainty in their dynamics or perception. Even if a car's sensor noise is symmetric, a highly uncertain car will yield a smaller SKD, correctly flagging it as less safe.
  • Bridging static and dynamic testing: By using static regulatory scenarios (like Euro-NCAP tests) as the baseline "safe" trajectories and dynamically generating the kamikaze variants, the method provides a regulatory-friendly yet robust testing framework for AI-driven cars.

Results

  • Basic Controllers: The authors tested 9 variations of a basic controller by varying an aggressiveness multiplier ($C$). As the controller became more conservative (higher $C$), the SKD consistently increased, and the empirical collision rate dropped from ~80% down to 0%.
  • ML Controller: They evaluated a Machine-Learning-based controller in the CARLA simulator. It achieved a 0% collision rate with an SKD of 2.31 $\pm$ 0.08 on synthetic data and 5.70 $\pm$ 0.18 on real-world data.
  • Speed and Feasibility: The metric is highly efficient. Generating trajectories and computing the Fréchet distance takes under 11 seconds per simulation run. A full statistical assessment (e.g., 500 pairs of trajectories) can be completed in 15-30 minutes on a standard quad-core desktop, making it viable for continuous integration testing after software patches.

Limitations and Future Work

  • Simplified Dynamics: The current kamikaze trajectory generation assumes relatively simple car dynamics. Extending this to more realistic vehicle physics would require solving complex constrained differential games under partial observability.
  • Controller Variety: The framework needs to be tested against a wider variety of state-of-the-art ML controllers to fully validate its effectiveness as a universal safety measure.
  • Sim-to-Real Gap: The current evaluation is purely simulation-based. Future work must explore how to efficiently combine these simulation statistics with physical robot testing to create a holistic, real-world safety rating.

Summary updated

BibTeX
@misc{huang2021ncap,
  author = {Jimy Cai Huang and Hanna Kurniawati},
  title = {{An NCAP-like Safety Indicator for Self-Driving Cars}},
  year = {2021},
  eprint = {2104.00859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.00859},
}
Figure