NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient and Effective Clustering Methods for Spatial Data Mining

Raymond T. Ng, Jiawei HanVLDB 1994

Introduction

In the mid-1990s, the rapid growth of spatial data from satellite imagery, medical scans, and video surveillance created a significant challenge: the "data rich, information poor" paradox. While terabytes of geographic data were being collected, the tools to automatically extract meaningful patterns were lacking. Raymond T. Ng and Jiawei Han addressed this in their 1994 paper by introducing CLARANS (Clustering Large Applications based on RANdomized Search), a landmark algorithm designed for efficiency and effectiveness in large-scale spatial databases.

The Limitations of Existing Clustering Methods

Traditional spatial data mining often relied on pre-defined "spatial concept hierarchies" (e.g., Street → Neighborhood → City). However, these hierarchies are not always available and can inadvertently mask natural patterns, such as clusters of high-value properties that follow geographical features like riverbanks rather than administrative boundaries.

Clustering offers a way to discover these hidden structures, but prior to CLARANS, the available algorithms faced significant trade-offs:

  1. PAM (Partitioning Around Medoids): While robust to outliers, PAM is computationally expensive with a complexity of $O(k(n-k)^2)$. This makes it impractical for datasets exceeding a few hundred objects.
  2. CLARA (Clustering LARge Applications): A sampling-based approach that improves speed by analyzing a fixed subset of data. However, its effectiveness is limited by the quality of the initial sample; if the sample is unrepresentative, the resulting clusters will be suboptimal.

CLARANS: Randomized Search for Optimal Clustering

The authors proposed CLARANS to bridge the gap between the robustness of PAM and the efficiency required for large datasets. CLARANS models the clustering problem as a search through a graph where each node represents a set of $k$ medoids.

Unlike PAM, which exhaustively examines every neighbor to find the steepest descent, CLARANS employs a randomized search strategy. It samples a neighbor and moves to it immediately if it represents an improvement. To avoid getting trapped in local minima, the algorithm performs multiple "runs," restarting from different random points to increase the probability of finding a global optimum.

Figure 1: Runtime comparison between PAM and CLARANS showing the exponential growth of PAM's computational cost compared to the efficiency of CLARANS.

Integrating Spatial and Non-Spatial Data

Beyond the algorithm itself, the paper introduces two frameworks for knowledge discovery:

  • Spatial Dominant (SD): Data is first clustered spatially using CLARANS. Then, non-spatial attributes (e.g., house price, age) within those clusters are generalized using tools like DBLEARN to describe the clusters' characteristics.
  • Non-Spatial Dominant (NSD): Data is first grouped by non-spatial attributes (e.g., "luxury homes"). CLARANS is then applied to these groups to determine if they form distinct geographic clusters.

Experimental Results and Insights

The authors evaluated CLARANS using synthetic benchmarks and a real-world case study involving 2,500 housing units in Vancouver.

Efficiency and Quality

Experimental results confirmed that CLARANS is significantly faster than PAM, with the performance gap widening as dataset size increases. More importantly, CLARANS consistently outperformed CLARA in terms of cluster quality.

Figure 2: Quality comparison showing that CLARANS achieves lower relative average distances compared to CLARA across various cluster counts (k).

As shown in Figure 2, the quality advantage of CLARANS becomes more pronounced as the number of clusters ($k$) increases. In some tests, CLARANS provided a 20-30% improvement in the average distance of objects to their medoids compared to CLARA.

Discovering "Natural" Clusters

A key contribution of the paper is the use of silhouette coefficients to determine the "natural" number of clusters ($k_{nat}$). This allows the system to automatically identify the most appropriate granularity for the data rather than forcing a user-defined value. In the Vancouver case study, the SD(CLARANS) approach successfully identified geographic clusters that corresponded to real-world features, such as expensive homes clustered near Queen Elizabeth Park or the western coastline.

Conclusion and Future Directions

CLARANS represented a major step forward in spatial data mining by providing a scalable, high-quality clustering method. By treating clustering as a dynamic search process, it allows researchers to discover hierarchies on the fly. While the original work focused on point data, it laid the groundwork for future research into more complex spatial objects and interleaved mining techniques that combine spatial and non-spatial generalization more fluidly.

Summary updated

BibTeX
@inproceedings{ng1994efficient,
  author = {Raymond T. Ng and Jiawei Han},
  title = {{Efficient and Effective Clustering Methods for Spatial Data Mining}},
  booktitle = {VLDB},
  year = {1994},
}
Figure