Skip to main content
QUICK REVIEW

[Paper Review] inTformer: A Time-Embedded Attention-Based Transformer for Crash Likelihood Prediction at Intersections Using Connected Vehicle Data

B M Tazbiul Hassan Anik, Zubayer Islam|arXiv (Cornell University)|Jul 7, 2023
Traffic Prediction and Management TechniquesEngineering5 citations
TL;DR

This paper proposes inTformer, a time-embedded attention-based Transformer model that leverages connected vehicle data to predict crash likelihood at intersections in real time. By dividing intersections into 'within-intersection' and 'approach' zones, the model achieves 73% sensitivity in the within-intersection zone and 70% in the approach zone, outperforming prior deep learning models on the same dataset.

ABSTRACT

The real-time crash likelihood prediction model is an essential component of the proactive traffic safety management system. Over the years, numerous studies have attempted to construct a crash likelihood prediction model in order to enhance traffic safety, but mostly on freeways. In the majority of the existing studies, researchers have primarily employed a deep learning-based framework to identify crash potential. Lately, Transformer has emerged as a potential deep neural network that fundamentally operates through attention-based mechanisms. Transformer has several functional benefits over extant deep learning models such as LSTM, CNN, etc. Firstly, Transformer can readily handle long-term dependencies in a data sequence. Secondly, Transformers can parallelly process all elements in a data sequence during training. Finally, a Transformer does not have the vanishing gradient issue. Realizing the immense possibility of Transformers, this paper proposes inTersection-Transformer (inTformer), a time-embedded attention-based Transformer model that can effectively predict intersection crash likelihood in real-time. The proposed model was evaluated using connected vehicle data extracted from Signal Analytics Platform. Acknowledging the complex traffic operation mechanism at intersection, this study developed zone-specific models by dividing the intersection region into two distinct zones: within-intersection and approach zone. The best inTformer models in 'within-intersection,' and 'approach' zone achieved a sensitivity of 73%, and 70%, respectively. The zone-level models were also compared to earlier studies on crash likelihood prediction at intersections and with several established deep learning models trained on the same connected vehicle dataset.

Motivation & Objective

  • To develop a real-time crash likelihood prediction model for intersections using connected vehicle data.
  • To address the gap in crash prediction research focused on freeways by shifting attention to complex intersection environments.
  • To leverage the attention mechanism of Transformers to model long-term dependencies and improve prediction accuracy over traditional RNNs and CNNs.
  • To create zone-specific models (within-intersection and approach zones) to account for distinct traffic dynamics at different intersection regions.
  • To evaluate the proposed model against established deep learning models using the same connected vehicle dataset for fair comparison.

Proposed method

  • The inTformer model employs a time-embedded multi-head self-attention mechanism to process temporal sequences of connected vehicle data.
  • Temporal embeddings are explicitly incorporated into the input representation to preserve the chronological order and sequence dynamics of vehicle trajectories.
  • The intersection region is partitioned into two distinct zones—'within-intersection' and 'approach'—to train separate models tailored to each zone’s traffic behavior.
  • The model is trained end-to-end on connected vehicle data extracted from the Signal Analytics Platform, using sequence-based features such as speed, location, and time-stamped vehicle movements.
  • Attention weights are computed across all time steps in a sequence, enabling parallel processing and mitigating vanishing gradient issues common in RNNs.
  • The final prediction head outputs the likelihood of a crash occurring within a predefined time window based on the encoded sequence representation.

Experimental results

Research questions

  • RQ1Can a Transformer-based model effectively predict crash likelihood at intersections using connected vehicle data?
  • RQ2How does the performance of the inTformer model compare to established deep learning models (e.g., LSTM, CNN) on the same intersection crash prediction task?
  • RQ3Does modeling the intersection as two distinct zones (within-intersection and approach) improve prediction accuracy compared to a single unified model?
  • RQ4To what extent does time-embedding enhance the model’s ability to capture temporal dependencies critical for crash prediction?
  • RQ5What is the sensitivity of the inTformer model in detecting imminent crashes in different intersection zones?

Key findings

  • The inTformer model achieved a sensitivity of 73% in the 'within-intersection' zone, indicating strong detection capability for potential crashes in the core intersection area.
  • In the 'approach' zone, the model achieved a sensitivity of 70%, demonstrating effective prediction of crash likelihood during vehicle approach to the intersection.
  • The zone-specific modeling approach improved performance by capturing distinct traffic dynamics unique to each region, outperforming a single unified model.
  • The inTformer model outperformed baseline deep learning models such as LSTM and CNN on the same connected vehicle dataset, particularly in handling long-term temporal dependencies.
  • The use of time-embedded attention mechanisms enabled better sequence modeling and reduced vanishing gradient issues compared to recurrent architectures.
  • The model's ability to process sequences in parallel during training contributed to faster convergence and improved scalability on large-scale connected vehicle data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.