Hyperspectral Trajectory Image for Multi-Month Trajectory Anomaly Detection
A multi-month trajectory can stretch across thousands of time steps, yet still contain one anomalous moment. TITAnD turns that long sequence into an image designed to reveal both whether an anomaly occurred and when.
What if a months-long trajectory is not a sequence, but an image?
Dense GPS preserves granular motion. Sparse stay points preserve recorded stays. Either input is organized as a day × time-of-day HTI.
The complete TITAnD framework.
Framework Dense or sparse trajectory → HTI → anomaly detection
01 / Two observation regimes
Different samples. The same daily structure.
Movement unfolds within each day, while routines repeat and change across days. Flattening both into one sequence hides that structure.
Dense GPS preserves abnormal speeds and short-duration events, but becomes expensive over multi-month horizons. Sparse stay points scale more easily, but discard fine-grained evidence. TITAnD gives both a shared image representation.
Dense GPS
Continuous positions reveal detailed movement between places, including speed, acceleration, direction, and short events.
Motion is directly observed at fine time intervalsSparse stay points
Recorded places and dwell times preserve where a person stayed, while movement between consecutive stays is not directly observed.
Travel mode can be approximated from time and distanceThe sampling changes. The underlying daily routine does not.
02 / The visual reframe
Fold time along day boundaries.
A trajectory becomes a day × time-of-day image. Channels encode spatial, semantic, temporal, and kinematic information from either input regime.
Under this formulation, agent-level anomaly detection becomes image classification, while finding when an anomaly occurs becomes semantic segmentation.
- Rows
- Days across the observation horizon
- Columns
- Time slots within each day
- Channels
- Spatial, semantic, temporal, and available kinematic features
03 / Cyclic Factorized Transformer
Look within each day and compare across days.
Each CFT block first models time slots within a day, then compares the same time-of-day across days. Repeating this factorized pattern avoids full attention over one enormous flattened sequence.
04 / Evidence
Built for the long horizon.
Best AUC-PR across dense and sparse trajectory benchmarks.
Than a standard Transformer across 2–12 month horizons.
A compact backbone for multi-month trajectory analysis.
05 / Temporal localization
Not only whether.
Also when.
Abstract
Trajectory anomaly detection underpins applications from fraud detection to urban mobility analysis. Dense GPS methods preserve fine-grained evidence such as abnormal speeds and short-duration events, but their quadratic cost makes multi-month analysis intractable; consequently, no existing approach detects anomalies over multi-month dense GPS trajectories. The field instead relies on scalable sparse stay-point methods that discard this evidence, forcing separate architectures for each regime and preventing knowledge transfer. We argue this bottleneck is unnecessary: human trajectories, dense or sparse, share a natural two-dimensional cyclic structure along within-day and across-day axes. We therefore propose TITAnD (Trajectory Image Transformer for Anomaly Detection), which reformulates trajectory anomaly detection as a vision problem by representing trajectories as a Hyperspectral Trajectory Image (HTI): a day × time-of-day grid whose channels encode spatial, semantic, temporal, and kinematic information from either modality, unifying both under a single representation. Under this formulation, agent-level detection reduces to image classification and temporal localization to semantic segmentation. To model this representation, we introduce the Cyclic Factorized Transformer (CFT), which factorizes attention along the two temporal axes, encoding the cyclic inductive bias of human routines, while reducing attention cost by orders of magnitude and enabling dense multi-month anomaly detection for the first time. Empirically, TITAnD achieves the best AUC-PR across sparse and dense benchmarks, surpassing vision models like UNet while being 11–75× faster than the Transformer with comparable memory, demonstrating that vision reformulation and structure-aware modeling are jointly essential.
@article{rahman2026titand,
title = {Hyperspectral Trajectory Image for Multi-Month
Trajectory Anomaly Detection},
author = {Rahman, Md Awsafur and Gudavalli, Chandrakanth
and Prajapati, Hardik and Manjunath, B. S.},
journal = {arXiv preprint arXiv:2603.25255},
year = {2026}
}