PolyMinHash: Efficient Area-Based MinHashing of Polygons for Approximate Nearest Neighbor Search
Alima Subedi, Sankalpa Pokharel, Satish Puri
TL;DR
To address scalable polygon similarity search, the paper introduces PolyMinHash, a 2D polygon hashing scheme that yields short, similarity-preserving signatures by counting the number of random samples needed for a point to land inside a polygon, which corresponds to area-based Jaccard similarity $J(P,Q)$. The method centers polygons, builds a global bounding rectangle, and uses fixed seeds to generate $m$ samples per polygon, combining fast rejection tests with a final point-in-polygon check. Experiments on real-world GIS-style datasets show that PolyMinHash drastically reduces refinement candidates (up to 98% pruning) while maintaining competitive recall, demonstrating practical improvements for ANN in polygon databases. Overall, PolyMinHash extends MinHash to 2D polygon geometry, offering memory-efficient signatures and effective pruning for large-scale polygon similarity search.
Abstract
Similarity searches are a critical task in data mining. As data sets grow larger, exact nearest neighbor searches quickly become unfeasible, leading to the adoption of approximate nearest neighbor (ANN) searches. ANN has been studied for text data, images, and trajectories. However, there has been little effort to develop ANN systems for polygons in spatial database systems and geographic information systems. We present PolyMinHash, a system for approximate polygon similarity search that adapts MinHashing into a novel 2D polygon-hashing scheme to generate short, similarity-preserving signatures of input polygons. Minhash is generated by counting the number of randomly sampled points needed before the sampled point lands within the polygon's interior area, yielding hash values that preserve area-based Jaccard similarity. We present the tradeoff between search accuracy and runtime of our PolyMinHash system. Our hashing mechanism reduces the number of candidates to be processed in the query refinement phase by up to 98% compared to the number of candidates processed by the brute-force algorithm.
