Unsupervised Spatio-Temporal Embeddings for User and Location Modelling

Jing Yang, Carsten EickhoffarXiv 2017

In urban computing, traditional categorical labels like "Restaurant" or "Office" often fail to capture the temporal and functional nuances of city life. A "Restaurant" visited at 6:00 AM for breakfast serves a different functional role than one visited at midnight. To address this, Jing Yang and Carsten Eickhoff from ETH Zurich proposed a framework for Unsupervised Spatio-Temporal Embeddings, published in ACM Transactions on Information Systems.

Problem Statement

Existing location-based models frequently rely on coarse, discrete tags or supervised learning requiring extensive labeled data. These approaches are often task-specific, meaning a model trained for venue recommendation cannot easily be repurposed for urban planning or crime prediction. The challenge is to create a parsimonious, general-purpose, and unsupervised representation of urban activity purely from "digital breadcrumbs."

Methodology: From Check-ins to Vectors

The researchers treat user check-in sequences as a "language" of urban movement. Each check-in is decomposed into two distinct semantic components:

  1. Feature Words: A combination of venue category and a discretized timeslot (e.g., Cafeteria_Noon).
  2. Location Words: Unique identifiers for specific venues.
Figure 1: Decomposition of check-in sequences into feature and location word sequences.

Using a feed-forward neural network architecture inspired by Word2Vec, the model learns to predict a check-in based on its surrounding context. This "sliding window" approach ensures that venues visited in similar temporal or functional contexts are mapped to nearby points in a dense vector space.

Feature Fusion: The Power of Summation

A critical finding of the study was the method of combining feature and location vectors. While averaging is common in neural architectures, the authors found that element-wise summation preserved significantly more information.

Figure 4: Comparison between feature averaging and feature summation in vector space.

As illustrated in Figure 4, summation avoids the signal "dilution" inherent in averaging, leading to a 4–5% performance boost in downstream tasks. This fusion allows the model to capture the "Secret Sauce" of how specific locations interact with their temporal features.

Key Insights and Results

The model was validated using over 12 million Foursquare check-ins and NYC Open Data. Key findings include:

  • Semantic Discovery: The model identifies functional similarities between different labels, such as "Schools" and "Libraries," based on shared activity patterns rather than just label identity.
  • Recommendation Performance: The proposed Spatio-Temporal Embedding Similarity (STES) algorithm outperformed state-of-the-art baselines by up to 30% in top-k accuracy.
  • Urban Zoning and Crime Prediction: The embeddings successfully clustered NYC into dynamic functional zones (e.g., Residential vs. Nightlife) and achieved high F1-scores in predicting future crime rates based on neighborhood activity "vibes."
  • Cross-City Portability: Models trained on NYC data showed less than 3% generalization error when applied to cities like London or Chicago, indicating universal patterns in human urban behavior across similar cultures.

Conclusion

By moving beyond static labels to unsupervised embeddings, this research provides a flexible toolkit for urban analytics. While performance can vary with check-in density in different cultural contexts, the ability to port models across major global hubs opens new doors for scalable urban planning and public safety applications. Future work aims to integrate raw GPS coordinates and textual review data to further refine these digital representations of the city.

Summary updated

BibTeX
@misc{yang2017unsupervised,
  author = {Jing Yang and Carsten Eickhoff},
  title = {{Unsupervised Spatio-Temporal Embeddings for User and Location Modelling}},
  year = {2017},
  eprint = {1704.03507},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.03507},
}
Figure