Trajectory Anomaly Detection with Language Models
Not on the map. Why?
Abstract (arXiv)
This paper presents a novel approach for trajectory anomaly detection using an autoregressive causal-attention model, termed LM-TAD. This method leverages the similarities between language statements and trajectories, both of which consist of ordered elements requiring coherence through external rules and contextual variations. By treating trajectories as sequences of tokens, our model learns the probability distributions over trajectories, enabling the identification of anomalous locations with high precision. We incorporate user-specific tokens to account for individual behavior patterns, enhancing anomaly detection tailored to user context. Our experiments demonstrate the effectiveness of LM-TAD on both synthetic and real-world datasets. In particular, the model outperforms existing methods on the Pattern of Life (PoL) dataset by detecting user-contextual anomalies and achieves competitive results on the Porto taxi dataset, highlighting its adaptability and robustness. Additionally, we introduce the use of perplexity and surprisal rate metrics for detecting outliers and pinpointing specific anomalous locations within trajectories. The LM-TAD framework supports various trajectory representations, including GPS coordinates, staypoints, and activity types, proving its versatility in handling diverse trajectory data. Moreover, our approach is well-suited for online trajectory anomaly detection, significantly reducing computational latency by caching key-value states of the attention mechanism, thereby avoiding repeated computations.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 14 of its 44 references that are in the map. First posted on arXiv 18 Sep 2024.
Builds on
14 of 44 references.
References · 14
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representationscited by 3,853
- 2018Deep contextualized word representationscited by 2,285
- 2021Learning to Prompt for Vision-Language Modelscited by 2,269
- 2016LSTM-based Encoder-Decoder for Multi-sensor Anomaly Detectioncited by 213
- 2022Leveraging Language Foundation Models for Human Mobility Forecastingcited by 50
- 2018Sequential Variational Autoencoders for Collaborative Filteringcited by 31
- 2022How do you go where? Improving next location prediction by learning travel mode information using transformerscited by 12
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025Towards Physics-informed Diffusion for Anomaly Detection in Trajectoriescited by 2
- 2025Graph Enhanced Trajectory Anomaly Detectioncited by 1
- 2026Context-Enriched Natural Language Descriptions of Vessel Trajectoriescited by 0
- 2026Hyperspectral Trajectory Image for Multi-Month Trajectory Anomaly Detectioncited by 0
- 2026IBAD: Interpretable Behavioral Anomaly Detection on Human Mobility Datacited by 0
- 2026TrajMind: Chaining Role-Specialized LoRAs for Fast-and-Slow Collective Trajectory Anomaly Diagnosiscited by 0
- 2026TrajMind: Chaining Role-Specialized LoRAs for Fast-and-Slow Collective Trajectory Anomaly Diagnosis2 Sep 2026
- 2026IBAD: Interpretable Behavioral Anomaly Detection on Human Mobility Data14 Jun 2026
- 2026Hyperspectral Trajectory Image for Multi-Month Trajectory Anomaly Detection26 Mar 2026
- 2026Context-Enriched Natural Language Descriptions of Vessel Trajectories8 Mar 2026
- 2025Graph Enhanced Trajectory Anomaly Detection22 Sep 2025
- 2025Towards Physics-informed Diffusion for Anomaly Detection in Trajectories8 Jun 2025