GCT: A Granger-Causal Transformer for Multivariate Traffic Analysis in Smart Villages

Predicting vehicle traffic optimizes transportation management and urban planning. In this article, we combine real-time data from vehicle-detection Internet of Things (IoT) devices with external variables from Google Trends. Integrating such heterogeneous, complex data streams is challenging for traditional machine learning models that struggle to capture the dynamics of traffic patterns, which are influenced by multiple interdependent factors. To effectively model these complex, interdependent factors, we introduce the Granger-Causal Transformer (GCT), a transformer-based architecture for traffic prediction that integrates an LSTM network with a modified multi-head attention mechanism. This mechanism extends Granger causality to the spatio-temporal domain to analyze all causality relations between features consistently, while capturing long-range dependencies and temporal patterns. Before applying GCT, we generate lagged versions of the Google Trends time series to capture lead and lag effects. Tourists usually make searches about their destination weeks before traveling, so peaks in search interest occur earlier than peaks in weekly traffic volume. Using lags aligns the predictors with weekly traffic volume and allows the model to use past searches to predict future traffic. We semantically validate the Google Trends terms by comparing each term with a reference string describing the study area, using a language model aligned with the data’s linguistic context. We then apply a dual filtering process comprising Granger noncausality and correlation tests to minimize noise and redundancy. We evaluate our proposed methodology against classical statistical models, deep learning models, large foundation models, and transformers across two case studies. The results demonstrate consistently superior performance and generalizability, with GCT achieving \(R^{2}\) improvements between 47% and 68% compared to the best-performing baselines across both settings, alongside substantial reductions in MAE and MSE.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Intelligent Systems and Technology
Published
2026-02-23
DOI
https://doi.org/10.1145/3787462
Citations
1
Primary Topic
Traffic Prediction and Management Techniques
Type
article
Field-Weighted Citation Impact
25.98
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

GCT: A Granger-Causal Transformer for Multivariate Traffic Analysis in Smart Villages

Daniel Bolaños-Martinez, Alberto Durán-López, Maria Bermúdez-Edo, Suparna De
1 citations
ACM Transactions on Intelligent Systems and Technology
Traffic Prediction and Management Techniques
25.98
article

GCT: A Granger-Causal Transformer for Multivariate Traffic Analysis in Smart Villages

Daniel Bolaños-Martinez, Alberto Durán-López, Maria Bermúdez-Edo, Suparna De
article en
1 citations

Abstract

Predicting vehicle traffic optimizes transportation management and urban planning. In this article, we combine real-time data from vehicle-detection Internet of Things (IoT) devices with external variables from Google Trends. Integrating such heterogeneous, complex data streams is challenging for traditional machine learning models that struggle to capture the dynamics of traffic patterns, which are influenced by multiple interdependent factors. To effectively model these complex, interdependent factors, we introduce the Granger-Causal Transformer (GCT), a transformer-based architecture for traffic prediction that integrates an LSTM network with a modified multi-head attention mechanism. This mechanism extends Granger causality to the spatio-temporal domain to analyze all causality relations between features consistently, while capturing long-range dependencies and temporal patterns. Before applying GCT, we generate lagged versions of the Google Trends time series to capture lead and lag effects. Tourists usually make searches about their destination weeks before traveling, so peaks in search interest occur earlier than peaks in weekly traffic volume. Using lags aligns the predictors with weekly traffic volume and allows the model to use past searches to predict future traffic. We semantically validate the Google Trends terms by comparing each term with a reference string describing the study area, using a language model aligned with the data’s linguistic context. We then apply a dual filtering process comprising Granger noncausality and correlation tests to minimize noise and redundancy. We evaluate our proposed methodology against classical statistical models, deep learning models, large foundation models, and transformers across two case studies. The results demonstrate consistently superior performance and generalizability, with GCT achieving \(R^{2}\) improvements between 47% and 68% compared to the best-performing baselines across both settings, alongside substantial reductions in MAE and MSE.

ACM Transactions on Intelligent Systems and TechnologyVol. 17(2)
Universidad de Granada (ES), University of Surrey (GB)
Sustainable cities and communities
Openalex Percentile: Top 1%
Traffic Prediction and Management Techniques
25.98
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.