Pairwise Spatiotemporal Partial Trajectory Matching for Co-movement Analysis
Maria Cardei, Sabit Ahmed, Gretchen Chapman, Afsaneh Doryab
TL;DR
This work introduces a novel framework for pairwise spatiotemporal partial trajectory matching that converts city-scale GPS data into time-windowed trajectory images and uses a Siamese network to detect co-movement. By imposing overlap checks and operating on layered temporal views, the method provides interpretable, partial trajectory matching and enables analysis of co-walking routines. Evaluated on a 5-week, 126-participant co-walking study, the approach achieves up to F1 ≈ 0.73 and demonstrates superior performance to traditional time-series baselines at the cost of higher computational load. The technique offers practical value for social-behavior research, urban planning, and health monitoring by revealing when and how often paired individuals share movement patterns, while also highlighting privacy considerations and avenues for efficiency improvements.
Abstract
Spatiotemporal pairwise movement analysis involves identifying shared geographic-based behaviors between individuals within specific time frames. Traditionally, this task relies on sequence modeling and behavior analysis techniques applied to tabular or video-based data, but these methods often lack interpretability and struggle to capture partial matching. In this paper, we propose a novel method for pairwise spatiotemporal partial trajectory matching that transforms tabular spatiotemporal data into interpretable trajectory images based on specified time windows, allowing for partial trajectory analysis. This approach includes localization of trajectories, checking for spatial overlap, and pairwise matching using a Siamese Neural Network. We evaluate our method on a co-walking classification task, demonstrating its effectiveness in a novel co-behavior identification application. Our model surpasses established methods, achieving an F1-score up to 0.73. Additionally, we explore the method's utility for pair routine pattern analysis in real-world scenarios, providing insights into the frequency, timing, and duration of shared behaviors. This approach offers a powerful, interpretable framework for spatiotemporal behavior analysis, with potential applications in social behavior research, urban planning, and healthcare.
