ScenarioCharacterization: A Modular Toolkit for Characterizing Safety across Trajectory Datasets

Ingrid Navarro, Yutong Duan, Jonathan Francis, Jean OharXiv 2026

TL;DR

ScenarioCharacterization is an open-source, dataset-agnostic toolkit that standardizes autonomous driving trajectory datasets into a unified format for safety profiling. By decoupling data ingestion from analysis using Pydantic schemas, it enables seamless cross-dataset feature extraction, criticality scoring, and counterfactual behavior probing to surface hidden traffic risks.

What Problem Does This Paper Address?

Trajectory datasets—such as those from Waymo, nuPlan, and Argoverse—are the lifeblood of modern autonomous driving (AD) research. However, every dataset speaks its own language, utilizing distinct data formats, coordinate systems, and agent taxonomies.

If a researcher develops a tool to mine safety-critical scenarios or evaluate model robustness on one dataset, porting it to another requires completely rewriting the core data-ingestion and analysis logic. This fragmentation prevents researchers from easily conducting cross-dataset benchmarking, scaling up scenario curation, or analyzing safety profiles uniformly.

Methods

The authors introduce a modular, configuration-driven pipeline divided into three distinct layers:

  1. Dataset Adapter Layer: This is the only component a user needs to implement for a new dataset. It maps the dataset's native format into a unified Scenario representation.
  2. Characterizer Layer: Operating entirely on the unified representation, this layer extracts low-level features (e.g., speed, acceleration, Time-to-Collision, and Deceleration Rate to Avoid Crash) and aggregates them into per-agent and per-scenario criticality scores. Crucially, it includes a Behavior Prober that performs counterfactual "what-if" analysis by altering an agent's future trajectory (e.g., simulating a non-reactive driver using constant-velocity extrapolation) to see if a nominal scenario becomes dangerous.
  3. Analysis Layer: This layer provides standardized visualization tools (both static and animated) and distribution analysis utilities to evaluate features and scores across entire datasets.

All layers communicate strictly through structured data validation schemas powered by Pydantic, ensuring that malformed inputs are caught immediately.

Fig. 1: Overview of SCENARIOCHARACTERIZATION, a framework for automated, dataset-agnostic profiling of driving scenarios in trajectory datasets. Colored blocks denote the schemas that carry data between layers, and match the color used for Scenario, ScenarioFeatures, ScenarioProbe, and ScenarioScores throughout the text. Solid arrows mark required paths, dashed arrows optional ones.

Datasets

The framework was evaluated by characterizing 5,000 temporally disjoint scenarios from three major autonomous driving benchmarks:

  • Waymo Open Motion Dataset (WOMD)
  • Argoverse2
  • nuPlan

To ensure a fair cross-dataset comparison, the toolkit standardizes all scenarios to a common 10 Hz sampling rate and maps disparate object categories into a unified taxonomy (Vehicle, Pedestrian, Cyclist).

Key Insights and Ideas

  • Schema-Driven Decoupling: By enforcing strict Pydantic data schemas between pipeline stages, the toolkit completely isolates dataset ingestion from downstream logic. A single analysis pipeline can evaluate completely different datasets without changing a line of code.
  • Uncovering "Latent Criticality": Many real-world recorded scenarios look safe on paper simply because an agent braked in time. By counterfactually replacing an agent's trajectory with a non-reactive path, the Behavior Prober uncovers scenarios that are highly sensitive to minor behavioral deviations—revealing hidden risks that recorded data alone hides.
  • Dataset Fingerprinting: Applying identical metrics across different benchmarks exposes the inherent structural biases of each dataset. For example, the toolkit reveals how curation choices impact traffic density and interaction proximity across Waymo, nuPlan, and Argoverse2.

Key Results

  • Ego-Agent Vulnerability: When running the constant-velocity counterfactual probe, the toolkit found that a non-reactive ego vehicle caused critical safety spikes in 34.4% of WOMD scenarios, 28.3% of Argoverse2 scenarios, and only 19.7% of nuPlan scenarios. This quantitative gap directly reflects the higher vehicle traffic density present in WOMD.
  • Interaction Dynamics: Cross-dataset analysis of the Deceleration Rate to Avoid Crash (DRAC) metric revealed that Argoverse2 contains a higher concentration of mid-range DRAC values for pedestrians and cyclists, indicating that its scenarios feature faster-closing, more dynamic interactions.
Fig. 2: Supported visualizations, shown on two WOMD [1] scenarios. Top: the ego waits at a traffic light while relevant agents approach and stop behind it. Bottom: the ego approaches an intersection as a cyclist initiates a left turn across its path.

Limitations and Future Work

  • Kinematic Focus: The current feature taxonomy is heavily centered on agent kinematics and pairwise interactions. It lacks descriptors for environmental context (e.g., weather, visibility) and sensor-level artifacts like occlusions or perception noise.
  • Simplistic Probes: The counterfactual prober currently relies on a basic constant-velocity model. The authors note that integrating more sophisticated, reactive adversarial agents and rule-based validators (testing against explicit traffic laws) is an important next step.
  • Beyond Driving: While demonstrated on autonomous driving benchmarks, the core abstraction could theoretically be extended to other trajectory-heavy domains, such as aviation or human motion tracking.

Summary updated

BibTeX
@misc{navarro2026scenariocharacterization,
  author = {Ingrid Navarro and Yutong Duan and Jonathan Francis and Jean Oh},
  title = {{ScenarioCharacterization: A Modular Toolkit for Characterizing Safety across Trajectory Datasets}},
  year = {2026},
  eprint = {2608.16041},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.16041},
}
Figure