Efficient and Effective Clustering Methods for Spatial Data Mining
R. NgJiawei Han
R. NgJiawei Han
CLARANS (Clustering Large Applications based on RANdomized Search) is a -medoid clustering algorithm that searches for optimal medoids by exploring the graph of medoid sets via randomized local search.
CLARANS performs numlocal independent local searches. In each search, it samples up to maxneighbor random neighbors of the current medoid configuration. If a neighbor provides a lower total distance cost, it transitions immediately to that neighbor and resets the neighbor counter. If maxneighbor consecutive random neighbors fail to improve the objective, the current node is declared a local minimum. After completing numlocal local searches, CLARANS returns the best local minimum found.
The problem of finding medoids from a dataset of objects is modeled as searching for a minimum-cost node in an undirected graph :
In this framework, the standard PAM algorithm searches by exhaustively evaluating all neighbors at each step and moving in the direction of steepest descent. CLARA restricts the search to a fixed subgraph induced by an initial random sample . In contrast, CLARANS dynamically samples neighbors on the full graph without restricting the search to a static subgraph.
When evaluating a neighbor node in formed by replacing an active medoid with a non-medoid object , the total cost change is given by: where is the cost contribution for object , categorized into four mutually exclusive cases based on whether is currently assigned to and its distance to the second-nearest medoid relative to candidate medoid :
Case 1: is currently assigned to medoid , and . Object reassings to :
Case 2: is currently assigned to medoid , and . Object reassigns to :
Case 3: is currently assigned to a medoid other than (with closest medoid ), and . Object remains assigned to :
Case 4: is currently assigned to a medoid other than (with closest medoid ), and . Object reassigns to :
SD(CLARANS) is a spatial-dominant data mining algorithm that first partitions spatial data into natural clusters and then characterizes the non-spatial attributes of each discovered cluster.
By executing spatial clustering directly on the coordinates before applying non-spatial concept hierarchies, SD(CLARANS) dynamically determines spatial boundaries without requiring predefined spatial concept hierarchies.
NSD(CLARANS) is a non-spatial dominant data mining algorithm that groups data by generalized non-spatial attribute values first and subsequently discovers spatial clusters within each group.
Merging intersecting spatial clusters in the final step combines non-spatial classes that occupy identical or contiguous geographic regions.
To automatically determine the natural number of clusters and filter spatial noise/outliers, a silhouette-based heuristic is applied:
A cluster with silhouette width is classified as a strong cluster, as a reasonable cluster, as weak or artificial, and as lacking cluster structure.
CLARANS requires two user-defined parameters: numlocal (the number of local minima to discover) and maxneighbor (the number of random neighbors evaluated before concluding that a current node is a local minimum).
The established default heuristic setting for CLARANS is: where is the total number of objects and is the specified number of medoids/clusters.
Higher values of maxneighbor cause CLARANS to behave more similarly to exhaustive PAM at the cost of increased runtime per local search, whereas lower values find local minima more quickly but may require a higher numlocal to discover a high-quality minimum.
When allocated equal execution time, CLARANS consistently achieves higher clustering quality (lower average dissimilarity) than CLARA across datasets with and cluster counts :
On small synthetic datasets with objects and clusters, CLARANS and PAM find clusterings of identical quality (identical average distance to medoids). However, CLARANS achieves significantly lower execution time:
The runtime divergence increases rapidly with due to PAM's per-iteration complexity of , compared to CLARANS's randomized sampling of at most maxneighbor neighbors per step.
Coverage note — Omitted the high-level qualitative discussion in Section 6 regarding hypothetical integration with multi-thematic GIS maps and line-type data, as these are future research suggestions rather than concrete contributions of the paper.
@article{ng1994efficient,
title = {Efficient and Effective Clustering Methods for Spatial Data Mining},
author = {Ng, Raymond T. and Han, Jiawei},
year = {1994},
journal = {Very Large Data Bases},
pages = {144-155},
url = {http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.13.4395}
}This paper is available from its original source. Click below to access the PDF.
Open PDF