Abstract
Representing geographical locations as dense vectors, or "place embeddings," is crucial for urban computing tasks such as land-use classification and point-of-interest recommendation. However, a significant challenge exists in balancing spatial resolution with data density; high-resolution grids often suffer from data sparsity, especially in rural or low-traffic areas. This paper proposes a spatial hierarchical embedding method that leverages the inherent structure of geographical regions. By partitioning embedding vectors into slices corresponding to different spatial scales and applying hierarchical averaging, the model effectively regularizes sparse data. Experimental results on large-scale GPS datasets from Japan demonstrate that this hierarchical approach outperforms standard non-hierarchical models in both next-place prediction and land-use classification, particularly in data-sparse regions.
Introduction: The Resolution-Density Trade-off
In urban computing, place embeddings capture the functional "vibe" of a location based on human mobility patterns. While coarse-grained maps (e.g., 1km x 1km) provide dense data for robust learning, they lack the precision required for detailed urban planning. Conversely, fine-grained maps (e.g., 125m x 125m) offer high resolution but suffer from the "data sparsity" problem: many cells have too few recorded visits for standard machine learning models to learn meaningful representations. This often results in noisy embeddings that fail to capture the true characteristics of a location.
Methods: Spatial Hierarchical Embeddings
To overcome the sparsity challenge, the authors introduce Spatial Hierarchical Embeddings. Instead of treating each fine-grained grid cell as an independent entity, the model organizes them into a multi-level hierarchy (e.g., 125m cells nested within 1km neighborhoods, which are further nested within 10km regions).
Vector Slicing and Hierarchical Averaging
The core innovation lies in how these embeddings are structured and trained:
- Vector Slicing: A single 64-dimensional embedding vector for a specific place is partitioned into "slices." For instance, the first 12 dimensions might represent the 10km region, the next 20 represent the 1km neighborhood, and the final 32 represent the specific 125m cell.
- Hierarchical Averaging: During the training process, the model periodically averages the slices corresponding to the same parent region across all child cells. This ensures that all cells within a shared neighborhood maintain a consistent "neighborhood identity" in the relevant portion of their embedding vector.
This architecture acts as a structural regularizer. In data-rich urban centers, the fine-grained slice of the vector captures specific local details. In data-poor rural areas, the averaged "upstream" slices provide a stable contextual foundation, allowing the model to make informed inferences despite limited local observations.
Experimental Setup and Datasets
The methodology was validated using two primary datasets from Japan:
- Smartphone GPS Data: Anonymous trajectory data from over 1 million users across Kyoto, Fukuoka, and Okayama, provided by Yahoo Japan Corporation.
- Urban Land Use Mesh Data: Official government data categorizing 100m x 100m grids into 17 land-use categories, used as ground truth for validation.
The embeddings were learned using a 2-layer LSTM Recurrent Neural Network (RNN) optimized for next-place prediction.
Key Results
The hierarchical model (hier) was compared against a standard non-hierarchical baseline across several metrics:
- Next Place Prediction: The hierarchical approach consistently achieved lower log-perplexity (test loss). In Fukuoka, the loss was reduced from 8.0523 (baseline) to 7.8406 (hierarchical).
- Land Use Classification: The embeddings were tested on their ability to predict physical land use. The most significant gains were observed in Rural Places (the bottom 30% of visited areas). In Fukuoka, classification accuracy in these sparse regions jumped from 49.5% to 60.1%.
- Qualitative Analysis: Visualizations in Kyoto revealed that the hierarchical model could accurately identify narrow geographical features, such as rivers and specific industrial zones, which the baseline model often misclassified or ignored.
Discussion and Future Work
While the hierarchical approach provides a robust "safety net" for sparse data, the authors noted that performance can be sensitive to hyperparameter choices, such as the specific dimensions allocated to each hierarchical slice. Future research could explore dynamic place embeddings that incorporate temporal hierarchies (e.g., day vs. night functionality) and test the transferability of these spatial scales to different global urban environments.
Summary updated