CitySim: A Drone-Based Vehicle Trajectory Dataset for Safety Oriented Research and Digital Twins

Ou Zheng, Mohamed A. Abdel-Aty, Lishengsa Yue, Amr Abdelraouf, Zijin Wang, Nada MahmoudarXiv 2022 · DOI

TL;DR

This paper introduces CitySim, a novel drone-based vehicle trajectory dataset designed to address the limitations of existing datasets in capturing safety-critical events with high accuracy. CitySim offers detailed, high-resolution trajectories and crucial geometric information (rotated bounding boxes) to enable more robust safety evaluations and facilitate digital twin applications in transportation research.

What Problem Does This Paper Address?

Developing advanced safety systems for vehicles, especially autonomous ones, requires highly accurate and detailed trajectory data that captures critical events like sudden lane changes, merges, and near-collisions. Existing datasets, while useful, often fall short in one or both of these aspects. Some datasets lack the necessary temporal and spatial resolution, while others don't sufficiently represent the diverse range of safety-critical scenarios encountered in real-world driving. This gap makes it challenging to train and validate safety algorithms effectively, and hinders the development of realistic digital twins for transportation systems.

Methods

The creation of the CitySim dataset involved a rigorous five-step pipeline to ensure trajectory accuracy:

  • Video Stabilization: To counteract drone movement and vibrations, algorithms like SIFT (Scale-Invariant Feature Transform) and CSRT (Channel and Spatial Reliability Tracker) were employed to stabilize the video frames.
  • Object Filtering: Unwanted elements in the background, such as road markings, were removed using foreground/background segmentation and inpainting techniques to prevent detection errors.
  • Multivideo Stitching: To overcome the limited field of view of individual drones, videos from multiple drones were stitched together using histogram color matching and SIFT features, creating a larger, cohesive observation area.
  • Object Detection and Tracking: A Mask R-CNN (Region-based Convolutional Neural Network) was used for accurate vehicle detection, generating segmentation masks. Crucially, this was combined with a rotated bounding box approach to capture vehicle orientation and size more precisely than traditional straight bounding boxes. The CSRT tracker was then used to maintain object tracking, interpolating missed detections.
  • Enhanced Error Filtering: A data fixing tool was developed to allow manual correction of errors in bounding boxes caused by environmental factors or detection inaccuracies. This feedback loop, using active learning, further improved the accuracy of the detection models.

Datasets

The primary contribution of this paper is the introduction of the CitySim dataset. This dataset comprises 1,140 minutes of drone video recordings from 12 diverse locations, including freeway segments, weaving segments, merge/diverge segments, and various types of intersections (signalized, stop-controlled, and control-free).

The paper also references and compares CitySim with existing datasets such as:

  • NGSIM: An older dataset with known trajectory errors and a lack of near-collision events.
  • HighD: Primarily contains freeway segments under free-flow conditions, limiting the variety of safety-critical events.
  • InD and Interaction: Datasets focused on intersections, but with limitations in the number and type of intersections covered.

CitySim distinguishes itself by providing a richer set of safety-critical events and offering rotated bounding box information, which is absent in the other datasets.

Key Insights and Ideas

  • Rotated Bounding Boxes are Crucial for Safety: The paper strongly emphasizes that using rotated bounding boxes, which accurately represent a vehicle's orientation and dimensions, is essential for robust safety evaluations. Traditional center-point or straight bounding box methods can introduce significant bias errors, especially in complex scenarios like intersections.
  • Drone-Based Data Captures Real-World Complexity: By using drones, CitySim captures a more comprehensive view of traffic interactions, including those that might be occluded or distorted in ground-level camera footage. This is particularly important for understanding multi-vehicle conflicts.
  • Digital Twins Need Rich Data: The inclusion of 3D base maps and signal timing data in CitySim directly supports the development of digital twins for transportation. This allows for high-fidelity simulations that can bridge the gap between virtual testing and real-world performance.
  • Safety-Critical Events are Underrepresented in Existing Datasets: The analysis clearly shows that CitySim contains a significantly higher number and severity of safety-critical events (cut-ins, merges, diverges) compared to established datasets like HighD and NGSIM.

Key Results

  • High Trajectory Accuracy: The five-step processing pipeline, including advanced computer vision techniques and manual error correction, ensures high accuracy for the extracted vehicle trajectories.
  • Abundant Safety-Critical Events: CitySim contains a significantly larger number of safety-critical events, including 8,873 cut-in events, 1,954 merge events, and 3,910 diverge events from just two locations, compared to HighD (5,468 cut-ins) and NGSIM (2,907 cut-ins).
  • More Severe Conflicts: The dataset captures more severe conflicts, as indicated by lower minimum time-to-collision (minTTC) and minimum post-encroachment time (minPET) values, suggesting a higher potential for crashes.
  • Improved Intersection Conflict Analysis: The paper demonstrates that using rotated bounding boxes for intersection conflict analysis yields significantly different and more accurate results compared to center-point methods, highlighting the bias introduced by simpler representations.
  • Digital Twin Readiness: CitySim provides 3D base maps and signal timing data, enabling researchers to build and test digital twins for various safety applications.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that drone flight altitude and video resolution can limit the coverage area. While multivideo stitching mitigates this, there are still inherent limitations.
  • The dataset primarily focuses on specific types of road geometries and may not cover every conceivable scenario.
  • Future Work:
    • The authors plan to include more locations with intensive vehicle interactions, such as unsignalized intersections and mid-block scenarios.
  • They intend to provide traffic flow parameters and calibrate typical traffic flow models to facilitate traffic simulation.
  • A data visualization tool will be developed to help users better screen and visualize the vehicle trajectories.

Summary updated

Abstract

The development of safety-oriented research and applications requires fine-grain vehicle trajectories that not only have high accuracy, but also capture substantial safety-critical events. However, it would be challenging to satisfy both these requirements using the available vehicle trajectory datasets do not have the capacity to satisfy both.This paper introduces the CitySim dataset that has the core objective of facilitating safety-oriented research and applications. CitySim has vehicle trajectories extracted from 1140 minutes of drone videos recorded at 12 locations. It covers a variety of road geometries including freeway basic segments, signalized intersections, stop-controlled intersections, and control-free intersections. CitySim was generated through a five-step procedure that ensured trajectory accuracy. The five-step procedure included video stabilization, object filtering, multi-video stitching, object detection and tracking, and enhanced error filtering. Furthermore, CitySim provides the rotated bounding box information of a vehicle, which was demonstrated to improve safety evaluations. Compared with other video-based critical events, including cut-in, merge, and diverge events, which were validated by distributions of both minimum time-to-collision and minimum post-encroachment time. In addition, CitySim had the capability to facilitate digital-twin-related research by providing relevant assets, such as the recording locations' three-dimensional base maps and signal timings.
BibTeX
@misc{zheng2022citysim,
  author = {Ou Zheng and Mohamed A. Abdel-Aty and Lishengsa Yue and Amr Abdelraouf and Zijin Wang and Nada Mahmoud},
  title = {{CitySim: A Drone-Based Vehicle Trajectory Dataset for Safety Oriented Research and Digital Twins}},
  year = {2022},
  eprint = {2208.11036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.11036},
}
Figure