Skip to main navigation Skip to search Skip to main content

CASAformer: Congestion-aware sparse attention transformer for traffic speed prediction

Research output: Journal Publications and Reviews › RGC 21 - Publication in refereed journal › peer-review

25 Downloads (CityUHK Scholars)

Abstract

Accurate and efficient traffic speed prediction is crucial for improving roaDongguand safety and efficiency. With the emerging deep learning and extensive traffic data, data-driven methods are widely adopted to achieve this task with increasingly complicated structures and progressively deeper layers of neural networks. Despite the design of the models, they aim to optimize the overall average performance without discriminating against different traffic states. However, the fact is that predicting the traffic speed under congestion is normally more important than under free flow since the downstream tasks, such as traffic control and optimization, are more interested in congestion rather than free flow. Most of the State-Of-The-Art (SOTA) models unfortunately do not differentiate between the traffic states during training and evaluation. To this end, we first comprehensively study the performance of the SOTA models under different speed regimes to illustrate the low accuracy of low-speed prediction. We further propose and design a novel Congestion-Aware Sparse Attention transformer (CASAformer) to enhance the prediction performance under low-speed traffic conditions. Specifically, the CASA layer emphasizes the congestion data and reduces the impact of free-flow data. Moreover, we adopt a new congestion adaptive loss function for training to make the model learn more from the congestion data. Extensive experiments on real-world datasets show that our CASAformer outperforms the SOTA models for predicting speed under 40 mph in all prediction horizons. © 2025 The Authors
Original languageEnglish
Article number100174
JournalCommunications in Transportation Research
Volume5
Online published10 Apr 2025
DOIs
Publication statusPublished - Dec 2025

Funding

The work is supported in part by a grant from Hong Kong Research Grant Council under GRF 11216323.

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 11 - Sustainable Cities and Communities
    SDG 11 Sustainable Cities and Communities

Research Keywords

  • Deep learning
  • Traffic congestion
  • Traffic prediction
  • Traffic state estimation
  • Transformer

Publisher's Copyright Statement

  • This full text is made available under CC-BY 4.0. https://creativecommons.org/licenses/by/4.0/

RGC Funding Information

  • RGC-funded

Fingerprint

Dive into the research topics of 'CASAformer: Congestion-aware sparse attention transformer for traffic speed prediction'. Together they form a unique fingerprint.

Cite this