MMCAformer: Macro-Micro Cross-Attention Transformer for Traffic Speed Prediction with Microscopic Connected Vehicle Driving Behavior
Preprint
Abstract
Accurate speed prediction is crucial for proactive traffic management to enhance traffic efficiency and safety. Existing studies have primarily relied on aggregated, macroscopic traffic flow data to predict future traffic trends, whereas road traffic dynamics are also influenced by individual, microscopic human driving behaviors. Recent Connected Vehicle (CV) data provide rich driving behavior features, offering new opportunities to incorporate these behavioral insights into speed prediction. To this end, we propose the Macro-Micro Cross-Attention Transformer (MMCAformer) to integrate CV data-based micro driving behavior features with macro traffic features for speed prediction. Specifically, MMCAformer employs self-attention to learn intrinsic dependencies in macro traffic flow and cross-attention to capture spatiotemporal interplays between macro traffic status and micro driving behavior. MMCAformer is optimized with a Student-t negative log-likelihood loss to provide point-wise speed prediction and estimate uncertainty. Experiments on four Florida freeways demonstrate the superior performance of the proposed MMCAformer compared to baselines. Compared with only using macro features, introducing micro driving behavior features not only enhances prediction accuracy (e.g., overall RMSE, MAE, and MAPE reduced by 9.0%, 6.9%, and 10.2%, respectively) but also shrinks model prediction uncertainty (e.g., mean predictive intervals decreased by 10.1-24.0% across the four freeways). Results reveal that hard braking and acceleration frequencies emerge as the most influential features. Such improvements are more pronounced under congested, low-speed traffic conditions.Keywords
All Related Versions
This publication has 55 references indexed in Scilit:
- SAFER-predictor: Sparse adversarial training framework for robust traffic prediction under missing and noisy dataCommunications in Transportation Research, 2025
- CASAformer: Congestion-aware sparse attention transformer for traffic speed predictionCommunications in Transportation Research, 2025
- Mixture of Spatial–Temporal Graph Transformer Networks for urban congestion prediction using multimodal transportation dataExpert Systems with Applications, 2024
- STFGCN: Spatial–temporal fusion graph convolutional network for traffic predictionExpert Systems with Applications, 2024
- Lane changing and congestion are mutually reinforcing?Communications in Transportation Research, 2023
- Traffic conflict prediction using connected vehicle dataAnalytic Methods in Accident Research, 2023
- Predicting intersection crash frequency using connected vehicle data: A framework for geographical random forestAccident Analysis & Prevention, 2022
- Real-time crash potential prediction on freeways using connected vehicle dataAnalytic Methods in Accident Research, 2022
- How instantaneous driving behavior contributes to crashes at intersections: Extracting useful information from connected vehicle message dataAccident Analysis & Prevention, 2019
- Traffic Flow Dynamics2013