arXiv:2609.00333cs.ROAug 2026

Manuscript Offprint

arXiv:2609.00333

Scene Graph-based Driving Scenario Extraction for Automotive Egocentric Datasets

Stefan Ramdhan, Kyanna Dagenais, Vera Pantelic, Victor Bandur, Mark Lawford

Stefan Ramdhan, Kyanna Dagenais, Vera Pantelic, Victor Bandur, Mark Lawford

McMaster Centre for Software Certification (McSCert)

McMaster University

Hamilton, Ontario, Canada

{ramdhans, dagenaik, pantelv, bandurvp, lawford}@mcmaster.ca

Abstract—Extracting scenarios from unlabelled real-world sensor data streams is a critical but challenging task in the development process of automated driving systems (ADS). Automatically sifting through large datasets to spatially and temporally locate critical scenarios can enable scenario-based coverage analysis of ADS datasets. In this paper, we present a method for extracting scenarios from egocentric datasets using scene graphs and Linear Temporal Logic (LTL). We first process egocentric sensor data and HD maps to generate a sequence of scene graphs representing a driving scenario. Next, we use LTL to formally specify driving scenarios of interest, then extract all instances of the scenarios from the dataset using an off-the-shelf model checker, which evaluates the LTL formula against the sequence of scene graphs. Our approach can be used on both simulated and real world datasets. We evaluate the method on the training and validation datasets from Argoverse 2 consisting of 850 15-second real-world driving logs, and several videos of dashcam footage. We demonstrate the effectiveness of our approach for extracting and querying scenarios by evaluating against a rule-based benchmark based on track annotations and HD maps.

I. INTRODUCTION

Modern automated driving systems (ADS) contain AI-enabled components that are trained on large scenario datasets representative of ADS' operational design domain (ODD). Furthermore, development of ADS deterministic algorithms often relies on large scenario datasets to, for example, parameterize safety models such as Responsibility-Sensitive Safety [1]. In the verification and validation (V&V) phase, it is critical to demonstrate correct, safe, and reliable ADS behaviour in scenarios that are representative of the ODD, including both common and edge case scenarios. Therefore, across the development lifecycle of ADS, large volumes of data on scenarios within an ODD are necessary. Determining whether a dataset of scenarios sufficiently covers the range of scenarios that can be encountered in an ODD requires extracting details about each of the scenarios, such as the number of instances of the scenario and the conditions in which it occurs. Existing methods do not automatically extract the rich semantics conveyed by video data, such as weather, road conditions, and states of traffic participants that might have a significant impact on the criticality of scenarios (e.g., a school bus' stop sign extended). This information would allow us to extract and analyze important safety critical scenarios, such as a robotaxi passing by a stopped school bus with its

stop lights on and the stop sign arm extended. Such behaviour has resulted in the U.S. National Transportation Safety Board launching an investigation into Waymo [2]. The sheer size of these datasets makes it prohibitively expensive to manually interpret data to identify such scenarios.

Our scenario extraction method uses scene graphs [3] as a semantic representation of a dataset. Scene graphs have been actively researched in the ADS field in the past five years to help understand the semantics of driving scenes [4–6]. In particular, we build on the work of [6] to generate sequences of scene graphs from real-world datasets. The scenarios to be extracted are formally specified via Linear Temporal Logic (LTL). Although we rely largely on the pipeline of [6], we focus on scenario extraction, not runtime monitoring. We make significant enhancements to the toolchain of [6] to add support for the extraction of track consistent sequences of scene graphs from real-world video data. We focus on real-world data because it presents a more challenging and pressing problem than extracting from simulation data.

The proposed method extracts scenarios defined at the semantic level from real-world egocentric data. We can determine whether a scenario exists within a dataset and, if so, temporally and spatially localize all instances of it. The method allows for analysis of the extracted scenarios such as coverage analysis in order to determine how well a scenario is represented in a dataset. The results of the analysis can be used to determine the quality of a dataset and ultimately improve it. The approach is evaluated on 850 15-second real-world driving logs from Argoverse (AV) 2 [7] supplemented by several videos of dashcam footage. The results indicate high accuracy when scene graphs are generated from vision data complemented with the state and HD map data. There is room for further improvement as most accuracy issues trace back to the tracking quality and do not present a fundamental problem with our approach.

The primary contributions of this paper are as follows:

  • To the best of our knowledge, our method improves on the state of the art in driving scenario extraction by extracting scenarios conditioned on vision-derived semantics from video data, while also retaining the deterministic, white-box benefits that traditional rule-based methods provide. Specifically, our approach can automatically extract sce-

narios conditioned on the rich semantics from video data, such as weather, road conditions, and features of objects—something that existing methods do not do.

  • We significantly improve an open-source scene graph generator (SGG), ROADScene2VEC [8], to better represent semantics relevant to scenario extraction. In particular, we eliminate two notable limitations of the existing tooling by (1) enabling object tracking in the sequence of generated scene graphs with track based labeling and (2) refining its coarse lane identification.

  • We do not introduce new algorithms—we integrate multiple existing systems with additional scaffolding.

  • All source code used to generate the results contained in this paper are available as an anonymized github repo¹ to allow replication and extension of this work.

The outline of this paper is as follows. Section II presents relevant background information. Section III introduces our approach, while Section IV evaluates the approach. Section V discusses the benefits of the approach, and compares it to other approaches. Finally, Section VI concludes with avenues for future work.

References (29)