arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.15366cs.LGcs.AI
收藏

使用语言模型进行轨迹异常检测

Trajectory Anomaly Detection with Language Models

George Mason University(乔治梅森大学)

Jonathan Mbuya, Dieter Pfoser, Antonios Anastasopoulos

AI总结:

本文提出LM-TAD,一种基于自回归因果注意力模型的轨迹异常检测方法,将轨迹视为token序列学习概率分布,结合用户特定token实现高精度异常定位,并在合成与真实数据集上展现优越性能与在线检测能力。

摘要:

本文提出了一种使用自回归因果注意力模型进行轨迹异常检测的新方法,称为LM-TAD。该方法利用了语言陈述与轨迹之间的相似性,两者均由需要通过外部规则和上下文变化来保持连贯性的有序元素组成。通过将轨迹视为token序列,我们的模型学习了轨迹上的概率分布,从而能够高精度地识别异常位置。我们引入了用户特定的token以考虑个体行为模式,增强了针对用户上下文定制的异常检测能力。我们的实验证明了LM-TAD在合成和真实数据集上的有效性。特别是,该模型在Pattern of Life (PoL)数据集上通过检测用户上下文异常而优于现有方法,并在Porto出租车数据集上取得了有竞争力的结果,突显了其适应性和鲁棒性。此外,我们引入了困惑度和惊奇率指标,用于检测异常值并精确定位轨迹内的特定异常位置。LM-TAD框架支持多种轨迹表示,包括GPS坐标、停留点和活动类型,证明了其在处理多样化轨迹数据方面的多功能性。此外,我们的方法非常适合在线轨迹异常检测,通过缓存注意力机制的键值状态来显著减少计算延迟,从而避免重复计算。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑