Streaming Hierarchical Clustering Based on Point-Set Kernel

Xin Han, Ye Zhu, Kai Ming Ting, De‐Chuan Zhan, Gang Li

Abstract

Hierarchical clustering produces a cluster tree with different granularities, providing richer information than partitioning clustering. However, it often suffers from poor scalability and an inability to handle clusters of varying densities due to reliance on pairwise point-based similarity. This paper proposes StreaKHC, a novel efficient hierarchical clustering algorithm for massive streaming data. StreaKHC utilizes a scalable point-set kernel to measure similarity between existing clusters and new points in $O(1)$ time. It features an efficient mechanism to update the hierarchical structure in real-time. Empirical evaluations demonstrate that StreaKHC is more accurate and efficient than existing state-of-the-art hierarchical clustering algorithms.

Introduction

Hierarchical clustering is essential for data analysis, offering a multi-scale view of datasets through dendrograms. Despite its utility, traditional algorithms face significant hurdles in "Big Data" contexts. Most are computationally expensive ($O(n^2)$) and struggle with streaming environments where data arrives continuously and memory is limited. Furthermore, existing methods often fail to distinguish clusters with varying densities because they rely on fixed distance metrics. While incremental methods like PERCH attempt to address these issues, they often sacrifice tree quality for computational speed by forcing balanced structures.

Methodology

StreaKHC addresses these challenges through three primary technical innovations: the Isolation Kernel, constant-time point-set similarity, and an efficient top-down search strategy.

Isolation Kernel (IK)

Unlike standard kernels that are independent of data distribution, the Isolation Kernel is data-dependent. It partitions the space based on the local density of the data, making it naturally density-adaptive. This allows the algorithm to treat points in sparse regions differently than those in dense regions, effectively capturing complex data structures.

Isolation Kernel partitioning and density contour

Point-Set Similarity in $O(1)$

The core efficiency of StreaKHC stems from representing an entire cluster as a "kernel mean map" in a feature space. This representation allows the similarity between a new incoming point and a cluster of any size to be calculated via a simple dot product. This reduces the complexity from $O(n)$ to $O(1)$, enabling high-speed processing without the need for mini-batch approximations.

Tree Management and Update

When a new point arrives, StreaKHC performs a top-down search from the root, selecting the most similar child node at each level. This approach is significantly faster than bottom-up alternatives. Once a leaf is reached, the tree structure is updated to incorporate the new point while maintaining the hierarchy.

Hierarchical tree update mechanism for a new data point

To handle infinite streams, StreaKHC employs a pruning mechanism using a sliding window to remove the oldest points, ensuring memory usage remains bounded.

Evaluation and Results

The researchers evaluated StreaKHC against 17 datasets, including synthetic 2D distributions, UCI benchmarks, and large-scale image datasets like ImageNet-10 and CoverType (over 580,000 points).

  • Accuracy: StreaKHC achieved an average Dendrogram Purity of 0.73 across 13 small datasets, outperforming competitors like PERCH (0.61) and GRINCH-A (0.66).
  • Efficiency: Runtime tests showed StreaKHC to be consistently the fastest incremental algorithm. Its advantage over PERCH grew significantly as dataset sizes approached 100,000 points.
  • Scalability: StreaKHC successfully processed a synthetic dataset of 1.8 million points, a task where several baseline algorithms failed due to time or memory constraints.

Conclusion

StreaKHC represents a significant advancement in streaming hierarchical clustering. By combining the density-adaptive Isolation Kernel with $O(1)$ similarity calculations, it provides a scalable and accurate solution for real-time data analysis. Future work will focus on addressing "concept drift"—unforeseen changes in data distribution over time—and refining parameter tuning for the Isolation Kernel to enhance robustness across diverse streaming scenarios.

Summary updated

BibTeX
@inproceedings{han2022streaming,
  author = {Xin Han and Ye Zhu and Kai Ming Ting and De‐Chuan Zhan and Gang Li},
  title = {{Streaming Hierarchical Clustering Based on Point-Set Kernel}},
  booktitle = {Research},
  year = {2022},
  doi = {10.21203/rs.3.rs-1711503/v1},
}
Figure