Markov-modulated Marked Poisson Processes for Check-in Data

Jiangwei Pan, Vinayak Rao, Pankaj K. Agarwal, Alan E. GelfandICML 2016

Human mobility data, particularly from social media "check-ins" like Foursquare, presents a unique challenge for statisticians and data scientists. Unlike GPS traces that provide a steady, predictable stream of coordinates, check-ins are active, irregular, and highly bursty. A user might check in five times in two hours while visiting a new city, and then remain completely silent for three days.

Existing approaches to modeling this behavior often fall into two traps:

  1. Discrete-time models (HMMs): These force data into fixed time buckets (e.g., 1-hour intervals). This approach is either too coarse, losing valuable temporal resolution, or too fine, becoming computationally expensive due to the massive number of empty intervals.
  2. Topic models (LDA): These treat check-ins as a "bag-of-words," ignoring the sequential and temporal nature of movement. They fail to account for whether a check-in happened five minutes or five months after the previous one.

To address these shortcomings, researchers have developed a continuous-time probabilistic model that uses Markov Jump Processes (MJP) to capture the irregular nature of user check-in data, significantly outperforming traditional models in predicting future locations and detecting anomalous behavior.

The Marked Markov-Modulated Poisson Process

The core of the proposed solution is the marked Markov-modulated Poisson Process (mMMPP). This continuous-time model elegantly handles the bursty nature of check-ins without needing to "fill in" empty time slots. It treats the time between check-ins as informative data rather than a nuisance.

Illustration of a Markov-modulated Poisson Process, where latent state transitions dictate the rate of observed check-in events.

The model breaks down into two main components:

  • The Latent State: A user is always assumed to be in a latent state (e.g., "Visiting Chicago"). This state evolves according to a Markov Jump Process, meaning the user stays in a state for a random, exponentially distributed amount of time before jumping to another.
  • The Observations: While in a specific state, check-ins are generated by a Poisson Process with a state-specific rate. Each check-in has a "mark"—a geographical location modeled as a 2D Gaussian distribution.

Capturing User Heterogeneity

A critical innovation in this paper is the Preference-MJP. Standard models often assume all users follow the same global transition probabilities. However, to account for individual tastes, the researchers introduced a user-specific preference vector.

The transition rate from state $i$ to state $j$ for a specific user is modeled as the product of a global transition rate and the user's personal preference for the destination. This decoupling is powerful: it allows the model to learn that while New York City is globally popular, a specific user might have a much higher personal affinity for Seattle.

Comparison of global flows in the basic MJP versus the Preference-MJP, highlighting distinct individual user trajectories.

To make this continuous-time model computationally feasible, the authors bypass expensive matrix exponentiations using a clever MCMC scheme. By employing random discretization (Poisson thinning), they can utilize standard forward-filtering backward-sampling (FFBS) algorithms efficiently.

Experimental Validation and Results

The model was evaluated using a 2011 Foursquare check-in dataset containing nearly 9,000 users, focusing on movements within North America at both a national scale (50 major hubs) and a finer-grained state scale (30 hubs in Florida).

The Preference-MJP demonstrated substantial improvements over baselines:

  • Location Prediction: In a binary classification task predicting if a user will check in at a specific region within a given time window, the Preference-MJP achieved an AUC of 0.947. This vastly outperformed LDA (0.794) and various history-based heuristics.
  • Anomaly Detection: When tasked with identifying "scrambled" trajectories (where locations were artificially permuted), the model achieved an AUC of 0.864, whereas simpler grid-based frequency models struggled at 0.543.
  • Computational Efficiency: The MJP approach provided a vastly superior trade-off between training time and accuracy compared to discrete-time HMMs, which required increasingly smaller and more expensive time steps to match the MJP's performance.

Limitations and Future Directions

While highly effective, the current model requires the number of latent states (topics) to be specified in advance. Future iterations could utilize non-parametric Bayesian methods to learn the optimal number of states directly from the data. Additionally, the model currently relies purely on time and location; incorporating user demographics or social network ties could further refine predictions. Finally, automating the semantic labeling of identified hotspots (e.g., categorizing a state as "Work" or "Tourism") remains an exciting open direction for human mobility research.

Summary updated

BibTeX
@inproceedings{pan2016markov,
  author = {Jiangwei Pan and Vinayak Rao and Pankaj K. Agarwal and Alan E. Gelfand},
  title = {{Markov-modulated Marked Poisson Processes for Check-in Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
  url = {https://openreview.net/forum?id=rJ47oi-dZS},
}
Figure