i-CLTP: Integrated contrastive learning with transformer framework for traffic state prediction and network-wide analysis
Journal article, 2025

Traffic state predictions are critical for the traffic management and control of transport systems. This study introduces an innovative contrastive learning framework coupled with a transformer architecture for spatiotemporal traffic state prediction, designed to capture the spatio-temporal heterogeneity inherent in traffic. The transformer structure functions as the upper level of the prediction framework to minimize the prediction errors between the input and predicted output. Based on the self-supervised contrastive learning, the lower level in the framework is proposed to discern the spatio-temporal heterogeneity and embed the latent characteristic of traffic flow by regenerating the augmentation features. Then, a soft clustering problem is applied between the upper level and lower level to category the types of traffic flow characteristics by minimizing the joint loss across each cluster. Subsequently, the proposed model is evaluated through a real-world highway traffic flow dataset for bench marking against several latest existing models. The experimental results affirm that the proposed model considerably enhances traffic state prediction accuracy. In terms of precision metrics, the model records a Mean Absolute Error of 13.31 and a Mean Absolute Percentage Error of 7.85%, reflecting marked improvements of 2.0% and 14.5% respectively over the latest and most competitive baseline model. Furthermore, the analysis reveals that capacity of the proposed method to learn the cluster patterns of spatio-temporal traffic dynamics reflected by calibrated fundamental diagrams.

Soft clustering

Traffic state prediction

Fundamental diagram

Transformer

Contrastive learning

Author

Ruo Jia

Chalmers, Architecture and Civil Engineering, Geology and Geotechnics

Kun Gao

Chalmers, Architecture and Civil Engineering, Geology and Geotechnics

Yang Liu

Chalmers, Architecture and Civil Engineering, Geology and Geotechnics

Bo Yu

Tongji University

Xiaolei Ma

Beihang University

Zhenliang Ma

Royal Institute of Technology (KTH)

Transportation Research, Part C: Emerging Technologies

0968-090X (ISSN)

Vol. 171 104979

Digital solutions for sustainable planning and management of shared micromobility using Big Data

VINNOVA (2023-01042), 2023-09-04 -- 2025-03-31.

Electric Multimodal Transport Systems for Enhancing Urban Accessibility and Connectivity (eMATS)

European Commission (EC), 2023-01-01 -- 2025-12-31.

Swedish Energy Agency (2023-00029), 2023-05-05 -- 2026-04-30.

Areas of Advance

Transport

Subject Categories (SSIF 2011)

Transport Systems and Logistics

Computer Science

DOI

10.1016/j.trc.2024.104979

More information

Latest update

1/10/2025