Back to search

McGill University

Leveraging Transformers for Spatiotemporal Modelling

Abstract

dc:description.abstract

Time series data are ubiquitous, spanning various fields of study. Multivariate time series data pose unique challenges due to their intertwined temporal and spatial dependencies. For example, in traffic flow analysis, traffic speeds at different intersections exhibit complex spatiotemporal correlations, whereas in the brain, proteins interact through structural connectivity networks. Effectively modelling these dependencies remains a significant challenge. This thesis introduces T-Graphormer, a Transformer-based approach capable of modelling spatiotemporal correlations simultaneously. By adding temporal encodings in the Graphormer architecture, each node attends to all other tokens within the graph sequence, enabling the model to capture rich spacetime patterns with minimal predefined inductive biases.The performance of T-Graphormer is evaluated across two distinct domains: traffic prediction and Alzheimer’s disease modelling. In traffic prediction, T-Graphormer achieves state-of-the-art results on multiple real-world datasets, reducing root mean squared error (RMSE) and mean absolute percentage error (MAPE) by up to 10%. However, its high memory demands, attributed to the quadratic complexity of the attention mechanism, limits its scalability. Proposed strategies, such as sparse attention and adaptive embeddings, offer potential solutions to these constraints. In the domain of disease modelling, T-Graphormer demonstrates its versatility by addressing tasks like disease prognosis, early diagnosis, and subtype identification. Nevertheless, the relatively small size and heterogeneity of the ADNI dataset pose significant challenges. To ensure robustness and interpretability, simpler linear models are employed, revealing biologically relevant insights and emphasizing the importance of cross-sectional models in real-world healthcare applications.This thesis underscores the need for scalable architectures capable of integrating spatiotemporal data while highlighting the complementary role of interpretable models in fields like healthcare. The flexibility and adaptability of T-Graphormer across domains establish it as a promising foundation for spatiotemporal learning while illuminating future directions for enhancing its scalability and real-world applicability

Degree

thesis:*
Name thesis:degree_name
Master of Science
Grantor dc:publisher
McGill University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Bai, Mark
Advisors dc:contributor.advisor
  • Liu, Xue (Supervisor1)
  • Evans, Alan C. (Supervisor2)

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
Language dc:language.iso
en

Identifiers

dc:identifier.*
OCLC
1535346651
Dc Identifier Other
hyrax:3n2044781

Chain of custody

source
Harvested from
McGill University
Base URL
mcgill.scholaris.ca/server/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Bai, Mark. Leveraging Transformers for Spatiotemporal Modelling. McGill University, 2025. https://doi.org/10.82308/20988