Abstract
The increasing ability to collect data from urban environments, coupled with a push towards openness by governments, has resulted in the availability of numerous spatio-temporal data sets covering diverse aspects of a city. Discovering relationships between these data sets can produce new insights by enabling domain experts to not only test but also generate hypotheses. However, discovering these relationships is difficult. First, a relationship between two data sets may occur only at certain locations and/or time periods. Second, the sheer number and size of the data sets, coupled with the diverse spatial and temporal scales at which the data is available, presents computational challenges on all fronts, from indexing and querying to analyzing them. Finally, it is non-trivial to differentiate between meaningful and spurious relationships. To address these challenges, we propose Data Polygamy, a scalable topology-based framework that allows users to query for statistically significant relationships between spatio-temporal data sets. We have performed an experimental evaluation using over 300 spatial-temporal urban data sets which shows that our approach is scalable and effective at identifying interesting relationships.
1. Introduction
Cities today are goldmines of spatio-temporal data, ranging from taxi GPS traces and 311 complaints to weather patterns and gas prices. However, finding relationships between these datasets is a "needle in a haystack" problem. Relationships are often localized in space and time, making global correlation coefficients like Pearson’s ineffective. Furthermore, the massive scale and heterogeneity of urban data—varying from kilobytes to terabytes and from seconds to months in resolution—create immense computational hurdles. Finally, the risk of spurious correlations is high; with thousands of attributes, many datasets will appear related purely by chance unless rigorous statistical tests are applied.
2. The Data Polygamy Framework
We propose a three-step pipeline implemented via MapReduce to identify statistically significant relationships across massive urban datasets. The core innovation is a shift from value-based comparison to feature-based topological analysis.
2.1 Topological Feature Identification
Instead of comparing raw values, the framework treats each data attribute as a "terrain." It uses Merge Trees to identify "salient features"—the peaks (maxima) and valleys (minima) of the data. To distinguish a meaningful peak from noise, we utilize Topological Persistence, which measures how "long-lived" a feature is as one sweeps through data values. As illustrated in Figure 5, automated thresholding (e.g., $f_1$ and $f_2$) allows the system to isolate distinct components of the data terrain that represent significant urban events.
2.2 Relationship Evaluation and Pruning
The framework evaluates relationships across a hierarchy of resolutions (e.g., from GPS coordinates to neighborhoods). We define two primary metrics: Relationship Strength ($\rho$), an F1-score based on feature overlap, and Relationship Score ($\tau$), which indicates the direction of the relationship. To ensure these links are not flukes, we use a "toroidal shift" restricted Monte Carlo test. Unlike standard shuffling, this method preserves the local spatial and temporal structure of the data, providing a rigorous bar for statistical significance.
3. Experimental Results
We evaluated the framework on two collections: a curated set of 9 high-value NYC datasets (including 780 million taxi trips) and a massive collection of over 300 datasets from the NYC Open Data portal.
3.1 Efficiency and Noise Reduction
The system is highly scalable, evaluating over 10,000 relationships per minute on a 20-node cluster. Crucially, it reduced the number of candidate relationships in the NYC Urban set by 98.6%, effectively pruning the noise of spurious correlations.
3.2 Key Discoveries
The framework successfully identified complex urban dynamics. For example, it linked significant drops in taxi activity to extreme wind speed features during Hurricanes Irene and Sandy, as shown in Figure 1. It also provided insights into the "taxi in the rain" phenomenon, suggesting that while precipitation increases earnings, extreme severity may cause drivers to stop working earlier than expected due to safety concerns.
4. Conclusion and Future Work
Data Polygamy provides a robust, scalable framework for uncovering event-driven relationships in urban data. By focusing on topology and preserving spatial-temporal structure during significance testing, it serves as a powerful hypothesis generator for domain experts. Future work will focus on extending the framework to categorical data and 3D spatial structures, such as noise levels at different building heights.
Summary updated