Abstract
Urban SpatioTemporal Prediction (USTP) is a cornerstone of smart city management, yet traditional deep learning models often fail to account for the complex, non-Euclidean structural relationships inherent in urban environments. We present UUKG, the first open-source, unified Urban Knowledge Graph (UrbanKG) dataset. By integrating millions of data points from New York City and Chicago, UUKG captures spatial hierarchies and geographic cycles. Our evaluation demonstrates that incorporating these structural insights via non-Euclidean embeddings significantly improves prediction accuracy across diverse tasks, including traffic forecasting and crime prediction.
Introduction
Effective urban management relies on the ability to predict spatiotemporal patterns in traffic, mobility, and public safety. While modern deep learning models excel at identifying patterns in historical time-series data, they frequently lack the "structural common sense" required to understand urban geometry. For instance, a model might not inherently know that a specific Point of Interest (POI) is nested within a functional area, or that two administrative districts share a boundary.
Existing Urban Knowledge Graphs (UrbanKGs) designed to solve this are often task-specific and proprietary, limiting their utility for broader research. UUKG addresses these gaps by providing a unified, multi-relational heterogeneous graph that represents the city's complex semantics.
Methodology
The construction of UUKG follows a systematic three-stage framework designed to transform raw urban data into actionable knowledge embeddings.
Construction and Structural Analysis
The framework extracts entities such as Boroughs, Functional Areas, POIs, and Road Segments, defining 13 distinct relation types (e.g., "Locates at," "Nearby," "Belongs to"). Analysis of the resulting graph topology revealed two primary structural motifs: hierarchies (tree-like organizational structures) and cycles (loops formed by adjacent geographic areas).
Structure-Aware Embedding
To preserve these patterns, the authors moved beyond standard Euclidean embeddings. They utilized Hyperbolic space to represent hierarchical relationships and Spherical space to capture geographic cycles. By employing "Product Spaces"—a combination of these geometries—the model can preserve complex urban semantics in low-dimensional vectors that are more representative of real-world city structures.
Dataset Characteristics
The UUKG dataset encompasses two major metropolises, compiled from official government portals and OpenStreetMap:
- New York City (NYC): Approximately 236,000 entities and 930,000 triplets.
- Chicago (CHI): Approximately 140,000 entities and 564,000 triplets.
The dataset supports five downstream USTP tasks: Taxi service, Bike trip, Human mobility, Crime prediction, and 311 Service requests. This multi-task utility ensures that learned embeddings are task-agnostic and broadly applicable.
Experimental Results
Integrating UUKG embeddings into nine state-of-the-art spatiotemporal models yielded significant performance improvements:
- Predictive Accuracy: Performance gains ranged from 2% to 10% for urban flow tasks (taxi/bike) and 1% to 5% for event-based predictions (crime/311).
- Geometric Superiority: Non-Euclidean models (Hyperbolic and Spherical) consistently outperformed Euclidean baselines in link prediction, confirming that urban data is mathematically closer to a tree-like structure (hyperbolicity near zero) than a flat plane.
- Clustering: Visualizations confirmed that the UrbanKG effectively clustered similar urban entities, capturing the functional "pulse" of different city sectors.
Conclusion and Future Work
UUKG provides a robust foundation for structure-aware urban prediction. While currently focused on two major US cities, the framework is designed for scalability. Future research will explore the inclusion of multi-modal data, such as street-view imagery and textual user reviews, and investigate more sophisticated fusion techniques to further integrate knowledge graph embeddings with predictive deep learning architectures.
Summary updated