A Generic Framework for Clustering Vehicle Motion Trajectories

Fazeleh Sadat Hoseini, Sadegh Rahrovani, Morteza Haghir ChehreghaniarXiv 2020

Introduction

Developing safe autonomous vehicles (AVs) requires the analysis of millions of kilometers of driving data. A significant bottleneck in this process is identifying specific "scenarios"—such as a vehicle cutting into a lane or passing on the left—to train and verify Autonomous Drive (AD) systems. Traditional methods rely on manual annotation, which is slow and expensive, or rule-based systems, which are often brittle and fail to capture the nuances of real-world trajectories.

This paper introduces DTMM, a robust, unsupervised framework designed to automatically categorize driving behaviors. By combining temporal alignment, non-linear embeddings, and transitive distance measures, DTMM effectively clusters variable-length vehicle trajectories without the need for manual labels or rigid predefined rules.

Problem Context: Messy Real-World Data

Real-world trajectories are inherently "messy." They vary in duration, occur at different speeds, and do not naturally form neat, spherical groups in data space. Identifying maneuvers like "cut-ins" or "drive-bys" requires a system that can handle these non-linearities.

Illustration of typical driving scenarios, including cut-ins and drive-bys, defined by lateral and longitudinal positions.

The DTMM Framework

The proposed DTMM framework consists of a five-stage pipeline designed to "unfold" complex trajectory data into clear, clusterable groups.

The five-stage DTMM framework compared against four baseline configurations, highlighting the progression from temporal alignment to clustering.
  1. Temporal Alignment (DTW): Dynamic Time Warping is used to calculate the alignment cost between sequences of different lengths and speeds, producing a dissimilarity matrix.
  2. Structured Embedding (t-SNE): The high-dimensional dissimilarities are projected into a 2D vector space using t-SNE. This step reveals the global structure of the data while maintaining local similarities.
  3. Transitive Relations (Minimax): Driving scenarios often form elongated clusters (manifolds). DTMM uses Minimax (path-based) distance to capture connectivity, ensuring that trajectories connected by a chain of intermediate similarities are grouped together.
  4. Secondary Embedding (MDS): Multidimensional Scaling (MDS) embeds the Minimax distances into a new vector space, preparing the data for standard clustering.
  5. Clustering (GMM): A Gaussian Mixture Model performs the final clustering, with the optimal number of clusters determined automatically via the Silhouette method.

Key Insights and Results

A core innovation of this work is the use of transitivity. Standard clustering algorithms like k-means assume clusters are spherical. However, driving data often resembles long, winding ribbons. By employing Minimax distance—which identifies the "smallest largest gap" between points—the algorithm can follow these "ribbons" to their logical ends.

The framework was evaluated on real-world datasets containing cut-ins and drive-bys. Key findings include:

  • Superior Accuracy: DTMM achieved near-perfect clustering (Rand Index and V-measure of 1.0) in almost every test case, significantly outperforming baselines that lacked manifold learning or transitive relation steps.
  • Robustness: The system handled trajectories ranging from 3 to 7 seconds without requiring artificial padding.
  • GAN Validation: The framework also served as a validation tool for synthetic data. When datasets were augmented with high-quality GAN-generated "cut-ins," DTMM's performance remained high, confirming the synthetic data's physical realism.

Conclusion and Future Work

While DTMM provides a powerful tool for offline batch processing of trajectory databases, challenges remain. The computational complexity of DTW and Minimax distance may limit scalability for multi-million trajectory datasets without optimization. Future research will focus on adapting the framework for real-time scenario recognition and exploring more nuanced behaviors, such as distinguishing between aggressive and passive driving styles.

Summary updated

BibTeX
@misc{hoseini2020generic,
  author = {Fazeleh Sadat Hoseini and Sadegh Rahrovani and Morteza Haghir Chehreghani},
  title = {{A Generic Framework for Clustering Vehicle Motion Trajectories}},
  year = {2020},
  eprint = {2009.12443},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.12443},
}
Figure