Uncovering the Spatiotemporal Patterns of Collective Social Activity

Martin Jankowiak, Manuel Gomez-Rodriguez

Abstract

Social media users and microbloggers post about a wide variety of (off-line) collective social activities as they participate in them, ranging from concerts and sporting events to political rallies and civil protests. In this context, people who take part in the same collective social activity often post closely related content from nearby locations at similar times, resulting in distinctive spatiotemporal patterns. Can we automatically detect these patterns and thus provide insights into the associated activities? In this paper, we propose a modeling framework for clustering streaming spatiotemporal data, the Spatial Dirichlet Hawkes Process (SDHP), which allows us to automatically uncover a wide variety of spatiotemporal patterns of collective social activity from geolocated online traces. Moreover, we develop an efficient, online inference algorithm based on Sequential Monte Carlo that scales to millions of geolocated posts. Experiments on synthetic data and real data gathered from Twitter show that our framework can recover a wide variety of meaningful social activity patterns in terms of both content and spatiotemporal dynamics, that it yields interesting insights about these patterns, and that it can be used to estimate the location from where a tweet was posted.

Introduction

Social media serves as a digital mirror of physical reality. When individuals attend concerts, protests, or sporting events, they leave behind "digital breadcrumbs"—timestamped, geolocated posts containing specific text or media. However, extracting meaningful events from this massive stream of data is challenging due to three primary factors:

  1. Uncertainty: Posts are often scattered in time and space around an event (e.g., tweeting before, during, or after a concert from various spots near the stage).
  2. Heterogeneity: Activities occur at vastly different scales, from a three-hour concert to year-round tourist visits.
  3. Interleaving: Multiple activities often overlap in the same physical space, such as a specific press event occurring within a museum that remains open to the general public.

Existing models often fall short because they ignore spatial data, discretize time into arbitrary bins (losing precision), or fail to account for the "bursty" nature of social interactions.

Methodology: The Spatial Dirichlet Hawkes Process

The researchers introduced the Spatial Dirichlet Hawkes Process (SDHP), a nonparametric probabilistic framework designed to discover clusters (events) automatically as data flows in. The model integrates several key components:

  • Dirichlet Process: Facilitates an infinite number of potential clusters, allowing the model to adapt as new activities emerge.
  • Hawkes Process: Captures the temporal "self-excitation" of posts, where one post about an event increases the likelihood of subsequent posts, modeling natural "bursts."
  • Spatial Modeling: Employs a 2D Normal distribution to represent the geographic spread of an activity.
  • Content Modeling: Uses a Multinomial distribution to capture the specific vocabulary associated with an event (e.g., "music" and "stage" for a concert).
  • Sequential Monte Carlo (SMC): An efficient online inference algorithm that enables the model to process millions of posts sequentially rather than requiring the entire dataset at once.

Experimental Evaluation

The model was evaluated using both synthetic data and a massive Twitter NYC dataset containing approximately 12.5 million geolocated tweets from Manhattan in 2013. Specific focus was placed on Central Park to analyze localized activities like concerts at Rumsey Playfield and visits to the Metropolitan Museum of Art.

Key Results and Insights

The SDHP model demonstrated high accuracy and robustness across various tests. On synthetic data, it maintained high Normalized Mutual Information (NMI) even as the dataset scaled to hundreds of thousands of posts.

Accuracy and parameter estimation performance of the SDHP model.

Qualitatively, the model successfully identified distinct patterns in Central Park, such as the NYC Marathon, the "Strawberry Fields" memorial, and specific summer concert series. By considering time, space, and text simultaneously, the model could disentangle overlapping activities, such as separating general museum visitors from attendees of a specific press event within the same building.

Spatiotemporal patterns discovered in Central Park, NYC, showing distinct clusters for various social activities.

Furthermore, the inclusion of spatial data acted as a "force multiplier." When tweet content was sparse or vague, geographic information became significantly more valuable for correct activity identification. The SDHP also outperformed baseline models in predicting the hidden location of tweets across categories like Galleries, Parks, and Sports.

Conclusion and Future Work

While the SDHP provides a powerful framework for event detection, the current model assumes isotropic (circular) spatial clusters. Future work could incorporate more complex spatial distributions that follow the shapes of streets or buildings. Additionally, a hierarchical version of the model could identify "canonical" patterns (e.g., the general signature of a "traffic jam") that manifest at different times and locations. Extending the framework to include image or video data also remains a promising direction.

Summary updated

BibTeX
@inproceedings{jankowiak2017uncovering,
  author = {Martin Jankowiak and Manuel Gomez-Rodriguez},
  title = {{Uncovering the Spatiotemporal Patterns of Collective Social Activity}},
  booktitle = {SDM},
  year = {2017},
  url = {https://openreview.net/forum?id=boObxsr1oKJ},
}
Figure