Abstract
Mining the underlying patterns in gigantic and complex data is of great importance to data analysts. In this paper, we propose a motion pattern approach to mine frequent behaviors in trajectory data. Motion patterns, defined by a set of highly similar flow vector groups in a spatial locality, have been shown to be very effective in extracting dominant motion behaviors in video sequences. Inspired by applications and properties of motion patterns, we have designed a framework that successfully solves the general task of trajectory clustering. Our proposed algorithm consists of four phases: flow vector computation, motion component extraction, motion component's reachability set creation, and motion pattern formation. For the first phase, we break down trajectories into flow vectors that indicate instantaneous movements. In the second phase, via a Kmeans clustering approach, we create motion components by clustering the flow vectors with respect to their location and velocity. Next, we create motion components' reachability set in terms of spatial proximity and motion similarity. Finally, for the fourth phase, we cluster motion components using agglomerative clustering with the weighted Jaccard distance between the motion components' signatures, a set created using path reachability. We have evaluated the effectiveness of our proposed method in an extensive set of experiments on diverse datasets. Further, we have shown how our proposed method handles difficulties in the general task of trajectory clustering that challenge the existing state-of-the-art methods.
Introduction
Analyzing trajectory data—from vehicle movements at intersections to hurricane paths and animal migrations—is a fundamental challenge in data science. Real-world movement is rarely uniform, presenting significant hurdles for traditional clustering methods. Existing approaches often struggle with three primary issues:
- Global vs. Local Behavior: Whole-path clustering often misses critical sub-behaviors or fails when paths are highly curved.
- Varying Density: Algorithms like TRACLUS require global parameters that often fail to balance dense and sparse regions, leading to lost or redundant clusters.
- Complex Topology: Spatially overlapping paths moving in different directions or merging/diverging are difficult to distinguish using standard similarity measures like Hausdorff distance or Dynamic Time Warping (DTW).
Methodology
The proposed framework employs a bottom-up approach to mine "motion patterns" through four distinct phases.
1. Flow Vector Computation
Trajectories are decomposed into instantaneous flow vectors $(x, y, u, v)$, capturing both spatial location and velocity.
2. Motion Component Extraction
Flow vectors are grouped using K-means clustering to form "motion components." These components represent local movement trends and serve to filter out noise from the raw data.
3. Reachability Set Creation
The algorithm establishes "reachability" between components. A component B is reachable from A if a particle moving through A would naturally arrive at B. An "unblocking" process is used to maintain connectivity even in sparse data regions.
4. Motion Pattern Formation
For each component, a "signature" is generated, consisting of all other components reachable from it. These signatures are compared using a Weighted Jaccard Distance (WJD), which accounts for varying component densities. Finally, agglomerative clustering groups these components into global motion patterns.
Experimental Results
The framework was evaluated across five diverse datasets: vehicle traffic at intersections (NGSIM Lankershim and Vehicle Motion Trajectory), hurricane tracks (HURDAT2), bird migrations (Swainson’s Hawks), and urban truck deliveries (Greek Trucks).
Key findings include:
- Robustness to Density: The method successfully handles varying densities simultaneously, avoiding the redundant clusters often produced by density-based methods like TRACLUS.
- Curvature and Direction: The model excels at modeling curved highway ramps as single patterns and correctly separates spatially overlapping trajectories moving in opposite directions.
- Temporal Analysis: By applying KL divergence to compare motion patterns over time, the authors could detect seasonal shifts in hurricane paths and other emerging trends.
Discussion and Conclusion
The motion pattern approach offers a robust solution for trajectory clustering by focusing on local-to-global logic and reachability-based signatures. While the framework involves several parameters (16 in total), they can be tuned in independent groups to suit specific data characteristics. Future work includes extending the flow vector approach to higher dimensions for feature evolution tracking and implementing automated change detection for real-time traffic or environmental monitoring.
Summary updated