Table of Contents
Fetching ...

GADformer: A Transparent Transformer Model for Group Anomaly Detection on Trajectories

Andreas Lohrer, Darpan Malik, Claudius Zelenka, Peer Kröger

TL;DR

GADFormer presents a transparent, BERT-based transformer model for Group Anomaly Detection on trajectories, enabling unsupervised and semi-supervised learning with attention-driven representations of trajectory segments. It introduces a Block Attention-anomaly Score (BAS) to inspect how attention patterns separate normal from abnormal groups, enhancing model transparency. Across synthetic and three real-world trajectory datasets, GADFormer achieves competitive or superior AUROC and often higher AUPRC compared with GRU-based and MTGAD baselines, while remaining robust to noise and novelty. The work demonstrates the feasibility of using a transformer-encoder for GAD on coordinate-based trajectories and opens avenues for cross-domain extensions and improved probability calibration.

Abstract

Group Anomaly Detection (GAD) identifies unusual pattern in groups where individual members might not be anomalous. This task is of major importance across multiple disciplines, in which also sequences like trajectories can be considered as a group. As groups become more diverse in heterogeneity and size, detecting group anomalies becomes challenging, especially without supervision. Though Recurrent Neural Networks are well established deep sequence models, their performance can decrease with increasing sequence lengths. Hence, this paper introduces GADformer, a BERT-based model for attention-driven GAD on trajectories in unsupervised and semi-supervised settings. We demonstrate how group anomalies can be detected by attention-based GAD. We also introduce the Block-Attention-anomaly-Score (BAS) to enhance model transparency by scoring attention patterns. In addition to that, synthetic trajectory generation allows various ablation studies. In extensive experiments we investigate our approach versus related works in their robustness for trajectory noise and novelties on synthetic data and three real world datasets.

GADformer: A Transparent Transformer Model for Group Anomaly Detection on Trajectories

TL;DR

GADFormer presents a transparent, BERT-based transformer model for Group Anomaly Detection on trajectories, enabling unsupervised and semi-supervised learning with attention-driven representations of trajectory segments. It introduces a Block Attention-anomaly Score (BAS) to inspect how attention patterns separate normal from abnormal groups, enhancing model transparency. Across synthetic and three real-world trajectory datasets, GADFormer achieves competitive or superior AUROC and often higher AUPRC compared with GRU-based and MTGAD baselines, while remaining robust to noise and novelty. The work demonstrates the feasibility of using a transformer-encoder for GAD on coordinate-based trajectories and opens avenues for cross-domain extensions and improved probability calibration.

Abstract

Group Anomaly Detection (GAD) identifies unusual pattern in groups where individual members might not be anomalous. This task is of major importance across multiple disciplines, in which also sequences like trajectories can be considered as a group. As groups become more diverse in heterogeneity and size, detecting group anomalies becomes challenging, especially without supervision. Though Recurrent Neural Networks are well established deep sequence models, their performance can decrease with increasing sequence lengths. Hence, this paper introduces GADformer, a BERT-based model for attention-driven GAD on trajectories in unsupervised and semi-supervised settings. We demonstrate how group anomalies can be detected by attention-based GAD. We also introduce the Block-Attention-anomaly-Score (BAS) to enhance model transparency by scoring attention patterns. In addition to that, synthetic trajectory generation allows various ablation studies. In extensive experiments we investigate our approach versus related works in their robustness for trajectory noise and novelties on synthetic data and three real world datasets.
Paper Structure (14 sections, 21 equations, 5 figures, 4 tables, 1 algorithm)

This paper contains 14 sections, 21 equations, 5 figures, 4 tables, 1 algorithm.

Figures (5)

  • Figure 1: GADformer trajectory representations on synthetic trajectory data - on the left: 72 raw trajectory steps $p_{n}$ (=group members $o_{n}$) as part of gray normal or red abnormal groups (=individual trajectories $\Lambda_{m}$); on the right: trajectory step embeddings $e_{n}$ of one individual trajectory (=group$~\mathcal{G}$).
  • Figure 2: GADFormer architecture overview.
  • Figure 3: BAS in case of good model performance.
  • Figure 4: BAS in case of bad model performance.
  • Figure 5: Robustness results for synthetic and real world datasets of Table \ref{['tab:resultsOrigUE']}. Span shows the stddev of 10 seeds; cross is the used mean performance.