TL;DR
This paper introduces DBMSTClu, a novel clustering algorithm that efficiently discovers arbitrarily shaped clusters in large datasets, even under severe memory constraints. It achieves this by leveraging a space-efficient approximation of a Minimum Spanning Tree (MST) derived from a "sketch" of the data's dissimilarity graph, outperforming existing methods in both speed and memory usage.
What Problem Does This Paper Address?
Clustering, the task of grouping similar data points, is fundamental to data mining. However, many real-world applications, especially on resource-limited devices like mobile phones, face significant challenges:
- Memory Constraints: Traditional methods often require storing the entire dissimilarity graph, which can grow quadratically with the number of data points ($O(N^2)$ space), making it infeasible for large datasets.
- Arbitrary Cluster Shapes: Algorithms like k-means struggle with non-convex or irregularly shaped clusters. While some methods can handle these shapes, they often require careful parameter tuning.
- Parameter Sensitivity: Many powerful clustering algorithms, like DBSCAN, are highly sensitive to parameter choices, making them difficult to use effectively without extensive experimentation.
- Scalability: Existing methods that can handle complex shapes or large datasets often have prohibitive time or space complexities.
This paper aims to bridge this gap by developing a clustering algorithm that is space-efficient, parameter-free, and capable of identifying arbitrarily shaped clusters.
Methods
DBMSTClu introduces a two-pronged approach:
- Space-Efficient MST Approximation (Sketching): Instead of building the full dissimilarity graph, the authors employ a dynamic streaming model with linear sketching techniques. This allows them to process the data in a single pass and construct a compact "sketch" of the graph's edge weights. This sketch requires only $O(N \text{ polylog}(N))$ space, a significant improvement over $O(N^2)$. From this sketch, an approximate Minimum Spanning Tree (MST) of the dissimilarity graph is recovered. The MST is crucial because its structure inherently captures the relationships between data points, making it suitable for identifying clusters.
- DBMSTClu Algorithm: This algorithm operates directly on the approximate MST. It's a density-based, non-parametric, divisive clustering method.
- Divisive: It starts with a single cluster containing all data points and iteratively splits clusters.
- Non-parametric: It does not require the user to specify the number of clusters beforehand.
- Density-Based: It implicitly uses density information captured by the MST's edge weights.
- Criterion-Based Cutting: The algorithm iteratively cuts edges in the MST to form new clusters. The decision of which edge to cut is guided by a "Validity Index" for clusters and a "Density-Based Validity Index" for the overall partition. These indices measure cluster separation and dispersion, aiming to maximize the quality of the resulting partition. The algorithm stops when no further cuts improve the partition's validity index.
The key novelty lies in using the MST structure for clustering and the innovative sketching technique to obtain this MST under strict memory constraints.
Datasets
The paper evaluates DBMSTClu on:
-
Synthetic Datasets:
- Noisy Circles
- Noisy Moons
- Three Blobs (generated from Gaussian distributions) These datasets are used to test the algorithm's ability to handle non-convex shapes and noise, and to compare its performance against other methods.
-
Real-World Dataset:
- Mushroom Dataset: A dataset of 8124 records with 22 categorical attributes, used to test the algorithm on a larger, more complex real-world problem.
No new benchmarks were introduced; existing synthetic and real-world datasets were used for evaluation.
Key Insights and Ideas
- MST as a Clustering Backbone: The paper demonstrates that an MST, even an approximate one, provides a powerful underlying structure for identifying arbitrarily shaped clusters. By cutting edges in the MST, one can naturally partition the data.
- Sketching for Memory Efficiency: The use of graph sketching is a critical innovation, enabling the recovery of an MST from streaming data with significantly reduced memory requirements ($O(N \text{ polylog}(N))$ vs. $O(N^2)$). This opens up clustering for massive datasets that were previously intractable.
- Parameter-Free Clustering: DBMSTClu's ability to automatically determine the number of clusters and their shapes without user-defined parameters is a significant advantage over many existing methods.
- Robustness to Approximate MST: The experiments show that using an approximate MST derived from sketching does not significantly degrade clustering quality compared to using an exact MST.
- Detecting Outliers/Noise: The algorithm's approach to cutting edges and its validity indices naturally lead to the identification of points that might be considered outliers or noise.
Key Results
- Space Efficiency: DBMSTClu achieves $O(N)$ space complexity for the clustering phase itself, with the sketching phase requiring $O(N \text{ polylog}(N))$ space. This is a substantial improvement over $O(N^2)$ methods.
- Time Efficiency: The algorithm runs in $O(NK)$ time, where $N$ is the number of data points and $K$ is the number of clusters. This is linear in $N$ for a fixed number of clusters.
- Performance on Synthetic Data: DBMSTClu successfully recovers clusters from noisy circles and moons datasets, outperforming SEMST and performing comparably to DBSCAN, but without requiring parameter tuning. It also correctly identifies clusters in the three-blob dataset.
- Performance on Real Data: For the mushroom dataset, DBMSTClu achieved a DBCVI of 0.75 and a silhouette coefficient of 0.47, demonstrating its effectiveness on a large, real-world dataset.
- Scalability: Experiments show linear time complexity with respect to the number of data points ($N$), successfully clustering datasets with up to 1 million nodes.
Limitations and Future Work
- Approximation Quality: While experiments show robustness, the quality of the clustering is dependent on the quality of the approximate MST obtained from sketching.
- Fully Online Setting: The authors suggest extending the MST recovery and clustering algorithm to a fully online setting, allowing for dynamic updates to the clustering partition as new data arrives.
- Privacy: The information loss during sketching could potentially be leveraged to enhance data privacy, which is proposed as a future research direction.
- Parameter Tuning for Other Methods: While DBMSTClu is parameter-free, the paper notes that other methods (like DBSCAN) can achieve comparable results with careful parameter tuning, implying that parameter-free operation is a key differentiator.
Summary updated