Periodic Pattern Mining Based on GPS Trajectories

Xiaopeng Chen, Dianxi Shi, Banghui Zhao, Fan Liu2016

Abstract

With the rise of LBS (Location Based Service), lots of user recommendation system based on location trajectory analysis has emerged. Finding periodic behavior is essential to analysis user's activity. In order to solve the problems with trajectory outliers and human intervention in periodic parameters, we propose a three-stage framework called PPM (Periodic Pattern Mining) to detect periodic pattern based on people's trajectory. First of all, we preprocess the trajectory data to extract stay points. Secondly, the sequence of stay points are clustered to construct the important places. At the last stage, the movement sequence is transformed into a binary sequence. Then period of every binary sequence is detected by a probabilistic model. The experiment based on public mobile dataset shows that the proposed method can be used to mine people's periodic activity pattern effectively.

Introduction

While our smartphones generate a constant stream of GPS trajectories, turning those raw coordinates into meaningful insights about human behavior is difficult. Two major hurdles stand in the way:

  1. Data Quality: GPS signals are often "noisy" due to sensor errors or poor satellite reception in urban canyons, leading to trajectory outliers.
  2. Uncertainty and Sparseness: Data isn't always collected at a steady frequency, and users aren't always moving. Traditional mining methods often require "human intervention"—meaning a researcher has to manually tell the algorithm which time intervals to look for (e.g., "check for a 24-hour cycle").

The PPM (Periodic Pattern Mining) framework aims to automatically detect these periods without manual tuning, while remaining robust against the inherent messiness of real-world mobile data.

The PPM Framework

The proposed framework operates in three distinct phases, bridging the gap between raw mobile terminal data and server-side periodic activity detection.

System architecture of the PPM framework

1. Preprocessing and Stay Point Extraction

The system first filters raw GPS logs using velocity and acceleration thresholds (150km/h and 15m/s²) to scrub outliers. It then identifies "stay points"—geographic areas where a user remains for a significant duration (e.g., more than 15 minutes within a 200-meter radius).

2. Constructing Important Places

Since a single "place" (like an office) might generate slightly different GPS coordinates every time you visit, the authors use a density-based clustering algorithm (similar to OPTICS) to group stay points. Unlike K-means, this approach doesn't require knowing the number of clusters in advance and can handle irregularly shaped locations.

Conceptual model of stay points clustered into important places like Home, Gym, or Company

3. Probabilistic Period Detection

The movement history for each "important place" is converted into a binary sequence (1 if the user is there, 0 if they aren't). Instead of a simple Fourier transform, the researchers use a probabilistic model based on Bernoulli distributions. By applying the law of large numbers, the algorithm calculates the probability of various period candidates ($T$) and selects the one with the highest likelihood. This allows the system to find cycles automatically from the data itself.

Key Insights

  • Stay Points vs. Important Places: A key distinction is between a single visit (stay point) and a recurring destination (important place). Clustering turns raw coordinates into semantic locations.
  • Binary Simplification: Reducing complex 2D spatial movement into a 1D binary "here/not here" sequence transforms a difficult spatial problem into a manageable signal-processing problem.
  • Handling Sparseness: The probabilistic approach is specifically designed to handle "acquisition frequency uncertainty," making it robust for real-world mobile apps where battery saving might limit GPS polling.

Experimental Results

The researchers tested the PPM framework on the Geolife 1.2 dataset, specifically analyzing a user ("Tom") with over 400,000 GPS logs. The system successfully mapped his life into eight "important places" and identified their specific rhythms:

  • Place 1 (Beijing): Detected a 24-hour period, identifying it as his primary daily residence/work location.
  • Places 4-7 (Shanxi Province): Detected ~168-hour periods, revealing a weekly travel pattern.
  • Places 2-3 (Chengdu and Hangzhou): Detected ~720-hour periods, corresponding to monthly business trips.

The model accurately distinguished between daily habits and occasional (but periodic) travel without any prior knowledge of the user's schedule.

Conclusion

While the PPM framework effectively mines periodic patterns, it faces a computational complexity of $O(n^2)$ in worst-case scenarios, which may challenge real-time scaling for millions of users. Additionally, while it identifies "Important Places," it currently lacks automatic semantic labeling (e.g., "Office" vs "Gym"). Future work will focus on optimizing efficiency and exploring how these patterns can improve individual movement prediction.

Summary updated

BibTeX
@misc{chen2016periodic,
  author = {Xiaopeng Chen and Dianxi Shi and Banghui Zhao and Fan Liu},
  title = {{Periodic Pattern Mining Based on GPS Trajectories}},
  year = {2016},
  doi = {10.2991/isaeece-16.2016.36},
}
Figure