Manuscript Offprint
arXiv:2609.06636TD-STGT: A Spatio-Temporal Graph Transformer for Mobile Traffic Demand Forecasting
Mohamad Alkadamani*† and Halim Yanikomeroglu†
*Communications Research Centre Canada, Ottawa, ON, Canada
†Department of Systems and Computer Engineering, Carleton University, Ottawa, ON, Canada
Email: mohamad.alkadamani@ised-isde.gc.ca, halim@sce.carleton.ca
Abstract—Fine-grained mobile traffic demand forecasting is essential for long-term planning of 5G and future 6G networks, including radio upgrades, site densification, backhaul expansion, and spectrum activation. This paper proposes the Traffic Demand Spatio-Temporal Graph Transformer (TD-STGT), a graph neural forecasting framework for predicting changes in wireless mobile traffic demand across fine geographic grids. The framework uses a population-scaled demand proxy developed from crowdsourced mobile measurements and daytime population information. Experiments across five Canadian metropolitan regions show that TD-STGT achieves the best performance in forecasting grid-level demand changes, reaching a of 0.462 and reducing by 5.7% relative to the strongest baseline. The proposed model provides a practical tool for identifying areas with increasing demand pressure and prioritizing future mobile-network capacity upgrades.
Index Terms—mobile traffic forecasting, spatio-temporal graph neural networks, graph transformers, network planning.
I. INTRODUCTION
Mobile network traffic demand continues to increase as LTE and 5G networks support high-resolution video, cloud services, fixed-wireless access, connected vehicles, and emerging 6G use cases [1]. For mobile network operators (MNOs), anticipating where demand will grow is essential for planning decisions such as radio upgrades, site densification, backhaul expansion, and spectrum activation. A key challenge is that direct operator traffic data are proprietary and are generally not accessible for research. This study therefore uses crowdsourced mobile measurement data as an observable basis for traffic-demand analysis. In this context, crowdsourced data refers to time-stamped and geo-located user-side measurements collected from mobile devices through software development kits (SDKs) embedded in applications. Such data do not provide the complete carried traffic of an operator network, but they provide repeated observations of mobile-network activity over space and time.
Prior spectrum-demand studies used geospatial features, deployment-based proxies, interpretable learning, and graph models to estimate local demand [2]–[6], but they mainly address spatial estimation. Mobile traffic forecasting has used recurrent and graph-based models to capture temporal and spatial dependence [7]–[10]; however, many studies rely on proprietary counters or short observation windows.
This paper proposes a data-driven framework that constructs a population-scaled proxy from crowdsourced measure-
ments and forecasts grid-level demand change using a spatio-temporal graph transformer. Spatio-temporal modeling is used because demand does not evolve independently across grids: nearby and functionally related areas often change together. The proposed model, referred to as Traffic Demand Spatio-Temporal Graph Transformer (TD-STGT), uses local graph attention, global spatial self-attention, temporal convolution, and temporal self-attention to forecast grid-level demand changes.
The contributions are summarized as follows:
-
A crowdsourced proxy for mobile traffic demand is developed from user-side mobile measurement data.
-
A spatio-temporal graph transformer architecture is formulated for grid-level mobile traffic-demand forecasting.
-
An assessment is conducted across five Canadian metropolitan regions, demonstrating the ability of the proposed model to forecast demand-change patterns in urban and suburban planning scenarios.
The remainder of the paper is organized as follows. Section II presents the analysis setup and proxy construction. Section III formulates the forecasting problem and describes TD-STGT. Section IV presents the experimental setup and results. Section V concludes the paper.
A. Analysis Setup
The study covers Montreal, Ottawa, Toronto, Calgary, and Vancouver, focusing on urban and suburban areas where mobile traffic growth is concentrated. Each region is divided into grid cells of approximately 1.5 km², yielding 38,246 grids. Crowdsourced observations are spatially assigned to grids and aggregated weekly and monthly; monthly aggregation is used as the main planning-level granularity because it is more stable under sampling variability.
The data include SDK-based crowdsourced measurements, daytime population, and network deployment records. The crowdsourced data provide user-side observations of mobile activity, daytime population approximates the number of potential users present in each grid during peak activity periods, and deployment records are used only for independent validation.
B. Population-Scaled Peak-Demand Proxy
The proposed proxy preserves user-side information in transmitted-byte measurements while reducing bias from un-even SDK sampling and low-sample grids. Let be the set of crowdsourced observations in grid g during peak hours of period t, and let be the transmitted bytes of observation m. The observed peak-hour byte volume and record count are
The exposure-normalized peak intensity is
where avoids division by zero.
To stabilize low-sample grids, the grid-specific value is shrunk toward the corresponding city-period average:
where c is the city containing grid g and controls shrinkage strength. The stabilized peak-hour intensity is
When a grid has many peak-hour samples, approaches one; otherwise, the estimate is pulled toward the city-period average.
Let denote daytime population. The population-scaled proxy is
This proxy represents grid-level peak-demand potential by combining observed mobile data usage per crowdsourced observation with the daytime population in each grid. The level series is log-transformed as , and the forecasting target is the one-period change . The proxy is computed at weekly and monthly resolution. Weekly aggregation provides more temporal samples, while monthly aggregation is used as the main planning-level target because it smooths sampling variability and aligns with MNO capacity-planning cycles.
C. Proxy Behavior and Validation
Figure 1 summarizes the temporal behavior of the proxy before forecasting. Panel (a) indexes the city-level aggregate series and highlights broad relative growth patterns across metropolitan regions. Panel (b) shows representative high-demand Toronto grids and illustrates that even within one city, local trajectories can evolve differently. This heterogeneity motivates grid-level spatio-temporal forecasting rather than a purely aggregate city-level predictor.
In Fig. 2, each grid is colored by the annualized trend of its monthly log-proxy series. The spatially heterogeneous growth pattern in Toronto further motivates graph-based forecasting.
Network deployment records are used for independent validation. A meaningful demand proxy should exhibit positive spatial association with deployed bandwidth, because operators tend to provision greater capacity in areas with persistent demand pressure. For validation, a site-data snapshot
(a)

(b)
Fig. 1. Temporal evolution of the proposed population-scaled peak-demand proxy.

Fig. 2. Spatial rate of change of the proposed proxy in Toronto.
is assigned to the same grid. Let denote total deployed bandwidth in grid g [5]. The association is measured as
where is covariance across grids and and are the corresponding standard deviations.
III. PROBLEM FORMULATION
The objective is to forecast changes in grid-level mobile traffic demand represented by the crowdsourced population-scaled proxy. Let denote the log-transformed proxy values for all grids at period , where . Because direct level forecasting is highly persistent, the main supervised target is the one-period change:
This formulation evaluates whether a model can identify grids whose demand trajectory changes beyond simple persistence.
Let denote available period-level features, including historical proxy values, previous changes, lagged peak-hour sample counts, exposure-normalized byte indicators and daytime population descriptors. The grid-time panel contains grids across the five metropolitan regions.
For an input window of length L, the model receives historical proxy states, change values, and auxiliary grid-period features from to t-1 and predicts future proxy changes as
where is the spatio-temporal input tensor, is the grid graph, is the forecast horizon, and denotes trainable parameters. The main task uses , and evaluation reports , , and on the change target.
IV. PROPOSED TD-STGT METHODOLOGY
A. Graph Construction
A spatial graph is constructed where each node represents a grid cell. Edges encode spatial adjacency and distance-based proximity. The edge weight between nodes i and j is
where and are grid centroids, contains the nearest grids, and controls distance decay. Self-loops preserve each grid's history; the default setting uses .
B. Overall Architecture
TD-STGT contains spatial, temporal, and prediction modules. It combines local graph attention network (GAT), global spatial attention, temporal convolutional network (TCN), and temporal transformer blocks. Fig. 3 summarizes the architecture.
C. Input Embedding
The input window is projected into a d-dimensional representation:
where .
D. Local Spatial Graph Attention Branch
For each time step , a graph attention layer updates node i using its spatial neighbors:
where is the unnormalized attention score from neighbor j to grid i, is the normalized attention coefficient, a is a learnable attention vector, is a graph-attention projection matrix, is the input embedding of grid i at time , denotes concatenation, and is a nonlinear activation. Multi-head attention is implemented by concatenating or averaging head-specific outputs.
E. Global Spatial Transformer Branch
The spatial transformer captures long-range relationships using self-attention. Spatial positional encodings are added as
For each time step, multi-head spatial self-attention is computed as
where is the number of heads, is the per-head dimension, and , , and are query, key, and value matrices, respectively. The branch output is
where denotes layer normalization.
F. Gated Spatial Fusion
The local GAT output and global spatial transformer output are fused through a nonlinear gate:
where is the learned fusion gate, and are trainable projection matrices, is a bias term, and denotes element-wise multiplication. The gate allows each grid and timestamp to determine whether local or global spatial context is more informative.
G. Temporal Dependency Modeling
The temporal module begins with a TCN applied to each grid sequence, using causal dilated convolutions to model local temporal dependencies. A causal dilated convolution is
where is the TCN output for grid i at time , K is the convolution kernel size, is the dilation rate, and is the convolution weight at lag q. Residual TCN blocks capture local temporal changes in deployment and demand.
Temporal positional encodings are then added:

Fig. 3. Overview of the TD-STGT architecture.
where O is the TCN representation and encodes the order of the input periods. Temporal multi-head self-attention is then applied along the time dimension for each grid:
where , , and are temporal query, key, and value matrices for head , and is the temporal output projection. The temporal representation is
where is a position-wise feed-forward network.
H. Prediction Head and Loss Function
The prediction head maps the temporal representation to the forecast horizon of proxy changes:
where is implemented using two convolutional layers with a ReLU activation followed by a fully connected projection to the forecast horizon.
The model is trained using a loss function that combines change-forecasting error, spatial smoothness, and temporal smoothness:
where and control spatial and temporal regularization:
where penalizes change-forecasting error, penalizes unrealistic discontinuities in predicted changes between connected grids, and regularizes abrupt oscillations across multi-step change forecasts.
V. EXPERIMENTAL SETUP, RESULTS, AND DISCUSSION
A. Dataset Split and Sliding Window Strategy
Chronological splitting is used to avoid future information leakage: earlier periods are used for training, an intermediate period for validation, and the most recent periods for testing. Validation and test samples use only historical context from preceding periods, so no future proxy value or current-period proxy component enters the input.
To assess spatial generalization, an additional blocked split holds out contiguous grid regions during training. The strictest protocol combines both dimensions by testing future periods in spatially held-out regions. The main results report the chronological test setting, while the spatial and spatio-temporal splits are used for robustness analysis.
The main configuration uses an input window of approximately four years and H = 1 forecast step, corresponding to next-period proxy-change forecasting at the selected weekly or monthly granularity.
TABLE I TD-STGT MODEL CONFIGURATION
| Parameter | Value |
|---|---|
| Grid nodes N | 38,246 |
| Input features F | 18 proxy-derived and auxiliary features |
| Input window L | 48 snapshots |
| Forecast horizon H | 1 snapshot |
| Graph neighbors k | 8 |
| Embedding dimension d | 128 |
| Attention heads h | 4 |
| TCN kernel size K | 3 |
| Dropout | 0.20 |
| Optimizer | AdamW |
| Learning rate | |
| Batch size | 32 windows |
| Maximum epochs | 100 |
| Early stopping | 12 epochs |
| AWS instance | EC2 G5.2xlarge |
| GPU | NVIDIA A10G 24 GB |
TABLE II KEY HYPERPARAMETERS OF BASELINE MODELS
| Model | Hyperparameter | Value |
|---|---|---|
| Linear ARX | Regularization | Ridge, |
| RF | Estimators, depth | 300, 18 |
| XGBoost | Estimators, LR, depth | 500, 0.03, 6 |
| LSTM | Layers, hidden, dropout | 2, 96, 0.2 |
| GRU | Layers, hidden, dropout | 2, 96, 0.2 |
| CNN-LSTM | Kernel, hidden, dropout | 3, 96, 0.2 |
| STGCN | Layers, channels, kernel | 2, 64, 3 |
| TD-STGT | Heads, embedding, dropout | 4, 128, 0.2 |
B. Model Configuration
Table I lists the default TD-STGT configuration. All models are implemented in PyTorch 2.7.1 and trained on an AWS EC2 G5.2xlarge instance equipped with one NVIDIA A10G GPU with 24 GB GPU memory. Hyperparameters are selected through validation-set grid search over reasonable ranges commonly used for spatio-temporal forecasting.
C. Baseline Models and Evaluation Metrics
Seven baseline models are selected: linear autoregressive regression, RF, XGBoost, LSTM, GRU, CNN-LSTM, and STGCN. The linear model provides an interpretable time-series baseline. RF and XGBoost evaluate strong nonlinear tabular approaches. LSTM and GRU evaluate sequence models without explicit spatial graph structure. CNN-LSTM evaluates Euclidean spatio-temporal learning. STGCN evaluates graph-based spatio-temporal forecasting. Table II summarizes the main hyperparameters used for the baseline models.
Performance is evaluated with , , and on the one-period change target. These metrics avoid overstating skill from the high persistence of proxy levels.
D. Proxy Validation Results
Table III reports deployed-bandwidth validation results for alternative proxy variants. The proposed population-scaled peak-demand proxy reaches the strongest association with deployed bandwidth, with median Pearson correlation of 0.71 and OLS of 0.66.
TABLE III PROXY VALIDATION AGAINST DEPLOYED BANDWIDTH
| Proxy variant | Median | OLS | p-value |
|---|---|---|---|
| Observed all-day bytes/hour | 0.64 | 0.60 | < 0.001 |
| Population-scaled peak-demand proxy | 0.71 | 0.66 | < 0.001 |
TABLE IV ONE-STEP DEMAND-CHANGE FORECASTING PERFORMANCE ON THE 2025 TEST SET
| Model | |||
|---|---|---|---|
| No-change baseline | 0.000 | 0.069 | 0.047 |
| Linear ARX | 0.112 | 0.065 | 0.045 |
| RF | 0.246 | 0.060 | 0.041 |
| XGBoost | 0.312 | 0.057 | 0.039 |
| LSTM | 0.274 | 0.059 | 0.040 |
| GRU | 0.291 | 0.058 | 0.039 |
| CNN-LSTM | 0.341 | 0.056 | 0.038 |
| STGCN | 0.405 | 0.053 | 0.036 |
| TD-STGT (Proposed) | 0.462 | 0.050 | 0.034 |

Fig. 4. Absolute delta-error distributions across models.
E. Forecasting Performance
Table IV compares TD-STGT against the persistence and learning baselines for one-step-ahead change forecasting. The no-change baseline predicts and is included because the proxy level is highly persistent. TD-STGT achieves the highest and the lowest and . The strongest non-proposed baseline is STGCN with of 0.053, while TD-STGT reduces to 0.050, a 5.7% reduction.
The no-change baseline captures temporal persistence, while RF, XGBoost, and recurrent models provide moderate gains. STGCN is the strongest baseline because it uses graph structure, and TD-STGT performs best by combining graph locality, global spatial context, and temporal attention.
Fig. 4 shows the distribution of absolute delta errors. TD-STGT has the lowest median error and one of the tightest spreads, while STGCN is the strongest baseline and the recurrent models show larger dispersion.
The robustness analysis trains each neural model under 20 random seeds. Fig. 5 shows the resulting and distributions. LSTM, GRU, and CNN-LSTM exhibit wider spreads, STGCN is more stable, and TD-STGT has the narrowest distribution, indicating the most consistent convergence.

Fig. 5. Change-forecasting robustness across 20 random seeds.
TABLE V
SENSITIVITY ANALYSIS FOR KEY HYPERPARAMETERS
| Hyperparameter | Setting | RMSE | MAE |
|---|---|---|---|
| Learning rate | 0.053 | 0.036 | |
| 0.050 | 0.034 | ||
| 0.054 | 0.037 | ||
| Attention heads | 2 | 0.054 | 0.037 |
| 4 | 0.050 | 0.034 | |
| 8 | 0.052 | 0.035 | |
| Batch size | 16 | 0.053 | 0.036 |
| 32 | 0.050 | 0.034 | |
| 64 | 0.052 | 0.035 | |
| Embedding dimension | 64 | 0.056 | 0.038 |
| 128 | 0.050 | 0.034 | |
| 256 | 0.050 | 0.034 |
TABLE VI
ABLATION ANALYSIS OF TD-STGT
| Variant | |||
|---|---|---|---|
| Full TD-STGT | 0.462 | 0.050 | 0.034 |
| Without spatial module | 0.311 | 0.063 | 0.043 |
| Without local GAT branch | 0.421 | 0.052 | 0.036 |
| Without spatial transformer | 0.394 | 0.054 | 0.037 |
| Without TCN | 0.372 | 0.055 | 0.038 |
| Without temporal transformer | 0.386 | 0.054 | 0.037 |
| Without user-weighted proxy mapping | 0.335 | 0.061 | 0.041 |
F. Sensitivity Analysis
Sensitivity is evaluated by varying learning rate, attention heads, batch size, and embedding dimension.
As shown in Table V, the best operating point uses learning rate , four heads, batch size 32, and embedding dimension 128.
G. Ablation Study
The ablation study removes one TD-STGT component at a time under the same training protocol to identify where the gains originate. As shown in Table VI, removing the spatial module causes the largest degradation, confirming the importance of spatial context; proxy simplification also reduces accuracy.
H. Model Complexity and Computational Cost
Table VII compares advanced models in terms of parameter count, training time, inference time, and RMSE. TD-STGT is the most expensive model, but the cost remains practical for offline planning and is justified by the accuracy gain.
TABLE VII
MODEL COMPLEXITY AND COMPUTATIONAL COST
| Model | Params (M) | Train Time (min) | Inference (ms/batch) | RMSE |
|---|---|---|---|---|
| LSTM | 0.31 | 38 | 1.7 | 0.059 |
| GRU | 0.27 | 36 | 1.5 | 0.058 |
| CNN-LSTM | 0.58 | 47 | 2.2 | 0.056 |
| STGCN | 1.12 | 59 | 2.9 | 0.053 |
| TD-STGT | 2.86 | 88 | 4.4 | 0.050 |
VI. CONCLUSION
This study presented a spatio-temporal framework for forecasting grid-level changes in mobile traffic demand using a crowdsourced population-scaled proxy. The framework converts user-side mobile measurements and daytime population information into a demand signal whose temporal changes can be modeled at fine spatial granularity. Pilot results show that TD-STGT achieves the best performance among the evaluated baselines, with and of 0.050. The results indicate that proxy-driven change forecasting can help identify areas with increasing demand pressure and support proactive planning decisions such as densification, carrier activation, radio upgrades, and backhaul expansion.
REFERENCES
[1] Ericsson, “Ericsson mobility report,” 2025.
[2] J. Parekh, A. Ghasemi, and H. Yanikomeroglu, “Data-driven modelling of mobile network demand for efficient spectrum management,” in 2023 IEEE 34th Annual International Symposium on Personal, Indoor and Mobile Radio Communications (PIMRC), 2023, pp. 1–6.
[3] J. Parekh, E. Yackoboski, A. Ghasemi, and H. Yanikomeroglu, “Modeling local demand for mobile spectrum: An interpretable machine learning approach,” IEEE Open Journal of the Communications Society, vol. 6, pp. 4063–4082, 2025.
[4] J. Parekh, A. Ghasemi, and H. Yanikomeroglu, “Deepspectrum: A localized demand estimation model for mobile spectrum using deep learning,” in 2024 IEEE 100th Vehicular Technology Conference (VTC2024-Fall), Washington, DC, USA, Oct. 2024.
[5] M. Alkadamani, A. Ghasemi, and H. Yanikomeroglu, “Towards flexible spectrum access: Data-driven insights into spectrum demand,” in 2024 IEEE 100th Vehicular Technology Conference (VTC2024-Fall), 2024, pp. 1–7.
[6] M. Alkadamani, H. Yanikomeroglu, and A. Ghasemi, “A graph-based approach to spectrum demand prediction using hierarchical attention networks,” in 2025 IEEE Global Communications Conference (GLOBE-COM), Taipei, Taiwan, Dec. 2025.
[7] C. Qiu, Y. Zhang, Z. Feng, P. Zhang, and S. Cui, “Spatio-temporal wireless traffic prediction with recurrent neural network,” IEEE Wireless Communications Letters, vol. 7, no. 4, pp. 554–557, Aug. 2018.
[8] X. Wang, Z. Zhou, F. Xiao, K. Xing, Z. Yang, Y. Liu, and C. Peng, "Spatio-temporal analysis and prediction of cellular traffic in metropolis," IEEE Transactions on Mobile Computing, vol. 18, no. 9, pp. 2190–2202, 2019.
[9] X. Wang, K. Yang, Z. Wang, J. Feng, L. Zhu, J. Zhao, and C. Deng, "Adaptive hybrid spatial-temporal graph neural network for cellular traffic prediction," in IEEE International Conference on Communications (ICC), 2023, pp. 4026–4032.
[10] W. Jiang and J. Luo, “Graph neural network for traffic forecasting: A survey,” Expert Systems with Applications, vol. 207, 2022.