cs.LGFeb 27, 2026

Detecting Transportation Mode Using Dense Smartphone GPS Trajectories and Transformer Models

Authors: Yuandong Zhang, Othmane Echchabi, Tianshu Feng, Wenyi Zhang, Hsuai-Kai Liao, Charles Chang

Organizations: University of California San Diego, CA, USA · McGill University Mila - Quebec AI Institute Montréal, QC, Canada · University of Pennsylvania Philadelphia, PA, USA · Duke Kunshan University Kunshan, Jiangsu, China

Abstract

Transportation mode detection is an important topic within GeoAI and transportation research. In this study, we introduce SpeedTransformer, a novel Transformer-based model that relies solely on speed inputs to infer transportation modes from dense smartphone GPS trajectories. In benchmark experiments, SpeedTransformer outperformed traditional deep learning models, such as the Long Short-Term Memory (LSTM) network. Moreover, the model demonstrated strong flexibility in transfer learning, achieving high accuracy across geographical regions after fine-tuning with small datasets. Finally, we deployed the model in a real-world experiment, where it consistently outperformed baseline models under complex built environments and high data uncertainty. These findings suggest that Transformer architectures, when combined with dense GPS trajectories, hold substantial potential for advancing transportation mode detection and broader mobility-related research.

Figures & tables

Appendix figures & tables17 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Hyperspectral Trajectory Image for Multi-Month Trajectory Anomaly Detection

    Mar 26, 2026Md Awsafur Rahman, Chandrakanth Gudavalli, Hardik Prajapati +1Anomaly LocalizationTransformer Attention