# How do you go where? Improving next location prediction by learning travel mode information using transformers

arXiv: https://arxiv.org/abs/2210.04095 · HTML: https://mlsanity.com/paper/2210.04095/

## Key facts

- Cited by 12 papers in the map (data through 14 Oct 2026).
- Builds on 12 of its 48 references that are in the map.
- First posted on arXiv 8 Oct 2022.

## Builds on (most cited first, 12 of 12)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Deep Residual Learning for Image Recognition](https://mlsanity.com/paper/1512.03385/) (2015)
- [Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting](https://mlsanity.com/paper/2012.07436/) (2020)
- [A Survey on Deep Learning for Human Mobility](https://mlsanity.com/paper/2012.02825/) (2020)
- [MobTCast: Leveraging Auxiliary Trajectory Forecasting for Human Mobility Prediction](https://mlsanity.com/paper/2110.01401/) (2021)
- [Reinforced Imitative Graph Representation Learning for Mobile User Profiling: An Adversarial Training Perspective](https://mlsanity.com/paper/2101.02634/) (2021)
- [NLPMM: a Next Location Predictor with Markov Modeling](https://mlsanity.com/paper/2003.07037/) (2020)
- [Understanding metropolitan patterns of daily encounters](https://mlsanity.com/paper/1301.5979/) (2013)
- [Understanding Predictability and Exploration in Human Mobility](https://mlsanity.com/paper/1608.01939/) (2016)
- [Online POI Recommendation: Learning Dynamic Geo-Human Interactions in Streams](https://mlsanity.com/paper/2201.10983/) (2022)
- [Human Mobility in Opportunistic Networks: Characteristics, Models and Prediction Methods](https://mlsanity.com/paper/2008.05611/) (2020)
- [20 Years of Mobility Modeling & Prediction: Trends, Shortcomings & Perspectives](https://mlsanity.com/paper/1906.07451/) (2019)

## Built on by (most cited first, 12 of 12)

- [Trajectory Data Management and Mining: A Survey from Deep Learning to the LLM Era](https://mlsanity.com/paper/2403.14151/) (2024)
- [MobilityDL: A Review of Deep Learning From Trajectory Data](https://mlsanity.com/paper/2402.00732/) (2024)
- [Trajectory Anomaly Detection with Language Models](https://mlsanity.com/paper/2409.15366/) (2024)
- [Prompt Mining for Language-based Human Mobility Forecasting](https://mlsanity.com/paper/2403.03544/) (2024)
- [MRGRP: Empowering Courier Route Prediction in Food Delivery Service with Multi-Relational Graph](https://mlsanity.com/paper/2505.11999/) (2025)
- [Beyond Regularity: Modeling Chaotic Mobility Patterns for Next Location Prediction](https://mlsanity.com/paper/2509.11713/) (2025)
- [A Short Survey of Human Mobility Prediction in Epidemic Modeling from Transformers to LLMs](https://mlsanity.com/paper/2404.16921/) (2024)
- [Uncertainty quantification and out-of-distribution detection using surjective normalizing flows](https://mlsanity.com/paper/2311.00377/) (2023)
- [Encoding Agent Trajectories as Representations with Sequence Transformers](https://mlsanity.com/paper/2410.09204/) (2024)
- [TrajGEOS: Trajectory Graph Enhanced Orientation-based Sequential Network for Mobility Prediction](https://mlsanity.com/paper/2412.19092/) (2024)
- [Mind the Gaps: Auditing and Reducing Group Inequity in Large-Scale Mobility Prediction](https://mlsanity.com/paper/2510.26940/) (2025)
- [Detecting Transportation Mode Using Dense Smartphone GPS Trajectories and Transformer Models](https://mlsanity.com/paper/2603.00340/) (2026)

## Abstract (arXiv)

Predicting the next visited location of an individual is a key problem in human mobility analysis, as it is required for the personalization and optimization of sustainable transport options. Here, we propose a transformer decoder-based neural network to predict the next location an individual will visit based on historical locations, time, and travel modes, which are behaviour dimensions often overlooked in previous work. In particular, the prediction of the next travel mode is designed as an auxiliary task to help guide the network's learning. For evaluation, we apply this approach to two large-scale and long-term GPS tracking datasets involving more than 600 individuals. Our experiments show that the proposed method significantly outperforms other state-of-the-art next location prediction methods by a large margin (8.05% and 5.60% relative increase in F1-score for the two datasets, respectively). We conduct an extensive ablation study that quantifies the influence of considering temporal features, travel mode information, and the auxiliary task on the prediction results. Moreover, we experimentally determine the performance upper bound when including the next mode prediction in our model. Finally, our analysis indicates that the performance of location prediction varies significantly with the chosen next travel mode by the individual. These results show potential for a more systematic consideration of additional dimensions of travel behaviour in human mobility prediction tasks. The source code of our model and experiments is available at https://github.com/mie-lab/location-mode-prediction.
