Abstract
Spatial co-location pattern mining refers to the task of discovering the group of objects or events that co-occur at many places. Extracting these patterns from spatial data is very difficult due to the complexity of spatial data types, spatial relationships, and spatial auto-correlation. These patterns have applications in domains including public safety, geo-marketing, crime prediction and ecology. Prior work focused on using the spatial join. While these approaches provide state-of-the-art results, they are very expensive to compute due to the multiway spatial join and scaling them to real-world datasets is an open problem. We address these limitations by formulating the co-location pattern discovery as a clique enumeration problem over a neighborhood graph (which is materialized using a distributed graph database). We propose three new traversal based algorithms, namely $CliqueEnum_G$, $CliqueEnum_K$ and $CliqueExtend$. We provide the empirical evidence for the effectiveness of our proposed algorithms by evaluating them for a large real-life dataset. The three algorithms allow for a trade-off between time and memory requirements and support interactive data analysis without having to recompute all the intermediate results. These attributes make our algorithms applicable to a wide range of use cases for different data sizes.
Introduction
In spatial data mining, "co-location patterns" represent sets of features—such as different types of crimes or specific plant species—that reside in close proximity to one another. Traditionally, discovering these patterns has relied on multiway spatial joins within relational databases. However, these traditional methods suffer from significant computational overhead, often referred to as "join pain." They are difficult to scale to massive datasets and remain rigid; for instance, changing a distance threshold often necessitates a complete re-computation from scratch. This research aims to solve these bottlenecks by reimagining spatial proximity as a graph problem, enabling more efficient traversal and parallel processing.
Methodology
Neighborhood Graph Formulation
The core of the proposed approach is modeling spatial data as a Neighborhood Graph. In this model, each vertex represents a specific instance of a feature (e.g., a specific crime incident at a given coordinate). An edge is established between two vertices if they fall within a predefined distance threshold ($R_\delta$). Under this formulation, finding a co-location pattern of size $k$ is equivalent to identifying a clique (a fully connected subgraph) of size $k$ within the neighborhood graph.
Proposed Algorithms
To navigate this graph-based structure, the authors implemented a distributed stack using Titan (graph database), Cassandra (back-end), and MongoDB (key-value store for intermediate results). Three traversal-based algorithms were introduced:
- CliqueEnumG: A pure traversal-based approach that validates candidate cliques by traversing the graph edges directly.
- CliqueEnumK: A hybrid approach that validates size-$k$ candidates by referencing previously discovered size-($k-1$) cliques stored in the key-value store.
- CliqueExtend: An optimized version that generates size-$k$ candidates by extending size-($k-1$) cliques and performing a single edge look-up for validation. This algorithm offers the best performance by leveraging a memory-speed tradeoff.
Experimental Evaluation
Dataset and Setup
The approach was evaluated using a real-world City of Chicago crime dataset containing 30,000 incidents across 33 distinct crime types. This dataset serves as a benchmark for spatial mining, where patterns like {Murder, Narcotics, Theft} provide critical insights for public safety.
Key Results
The experiments demonstrated that graph traversal is significantly more efficient than traditional relational joins or geo-range queries. As the number of vertices ($N$) increased, the proposed algorithms showed superior scalability. Specifically, CliqueExtend outperformed the others; at $N=30,000$, it completed the task in approximately 392 seconds, whereas CliqueEnumK required over 12,000 seconds.
Furthermore, the graph-based approach supports faster incremental updates. When the distance threshold was adjusted (e.g., from 0.4km to 0.5km), the update time was roughly 3x faster than creating a new graph from scratch (111s vs 313s). The results also indicated that higher prevalence thresholds significantly reduce runtime by pruning the search space earlier.
Conclusion
By shifting the perspective of spatial co-location mining from relational joins to graph-based clique enumeration, this work achieves significant improvements in scalability and flexibility. While CliqueExtend requires more storage for intermediate results, its speed makes it ideal for large-scale applications. Future work will explore optimizing key-value store look-ups and extending the framework to handle more complex spatial relationships, such as negative correlations.
Summary updated