Efficient clustering of massive data with MapReduce

Sergej Fries, Erhard Rahm, Thomas SeidlRWTH 2015

Abstract

As the global volume of data continues to grow exponentially, the transition from model-driven to data-driven knowledge discovery has become essential. However, traditional unsupervised learning techniques, particularly cluster analysis, face significant scalability hurdles when applied to massive datasets. This paper presents a scalable framework for clustering in the MapReduce environment, focusing on density-based (DBSCAN) and projected clustering (P3C) algorithms. By introducing novel parallelization techniques such as bitcode-based similarity joins and star-graph shortcutting, we demonstrate the ability to process datasets containing up to one billion points while mitigating the statistical anomalies inherent in large-scale data analysis.

1. Introduction

The Information Age has shifted the paradigm of knowledge extraction toward the Knowledge Discovery in Databases (KDD) process. Unlike traditional model-driven approaches that rely on human-generated hypotheses, data-driven approaches allow patterns to emerge directly from the data. Cluster analysis is a cornerstone of this process, yet it is often computationally expensive. As datasets reach the terabyte scale, single-machine implementations of popular algorithms become untenable. This work explores the parallelization of these tasks using the MapReduce framework to achieve efficient, high-dimensional clustering at scale.

2. Addressing the Bottlenecks of Big Data

The author identifies two primary challenges that impede large-scale clustering:

  1. Computational Complexity: Algorithms like DBSCAN often require $O(n^2)$ distance computations, making them prohibitively slow for millions of data points.
  2. The Curse of Dimensionality: In high-dimensional spaces, traditional distance metrics lose their discriminative power. While projected clustering (identifying clusters in specific dimension subsets) addresses this, existing methods like P3C are not optimized for distributed environments or the statistical sensitivities of massive sample sizes.

3. Methodology

3.1 JBMR-DBSCAN: Join-Based MapReduce DBSCAN

To parallelize DBSCAN, the author decomposes the algorithm into a modular pipeline rather than attempting a direct iterative parallelization:

  • Similarity Self-Join (MR-DSJ & PHiDJ): A grid-based partitioning scheme is employed. To minimize the data replication common in grid approaches, a "bitcode" system was developed. This system assigns binary IDs to cells, allowing the framework to mathematically determine which reducer handles specific comparisons, effectively halving the communication overhead.
  • Connected Components (CC-MR): After identifying neighbors, the problem is treated as a graph search. The CC-MR algorithm utilizes a "star-graph" structure and "shortcuts" to reassign nodes to the root of a component (the node with the smallest ID) rapidly, converging in fewer iterations than previous state-of-the-art frameworks like Pegasus.

3.2 P3C+-MR: Boosted Projected Clustering

When adapting the P3C algorithm for MapReduce, the author observed that standard Poisson significance tests become overly sensitive on massive datasets, identifying negligible fluctuations as clusters. To solve this, the author introduced:

  • Effect Size (Cohen’s d): This statistical sanity check ensures that discovered clusters are practically meaningful, not just statistically significant.
  • P3C+-MR-Light: A streamlined variant that omits the Expectation-Maximization (EM) refinement step. Interestingly, this omission was found to improve results on massive data by preventing the "boundary blurring" that often occurs during refinement.

4. Experimental Evaluation

The proposed algorithms were evaluated using a variety of datasets, ranging from the 11-million-point NIST Minutiae fingerprint dataset to a synthetic "Extreme" dataset containing 1 billion 50-dimensional points (~0.2 TB).

4.1 Performance and Scalability

  • Speedup: The PHiDJ algorithm achieved an 8.4x speedup over standard join methods on 10D data by optimizing dimension splitting.
  • Convergence: CC-MR consistently outperformed competitors, finding connected components in approximately half the time required by the Pegasus framework.
  • Extreme Scaling: The P3C+-MR-Light algorithm successfully processed the 1-billion-point dataset in 72 minutes, a milestone for exact projected clustering methods.

4.2 Accuracy Improvements

On the high-dimensional Colon Cancer dataset (2000D), the enhancements in P3C+ (including redundancy filtering and effect size testing) improved clustering accuracy from 67% to 71% compared to the original P3C model.

5. Conclusion and Future Work

This research demonstrates that MapReduce can be leveraged to perform complex clustering tasks on a billion-point scale. The introduction of bitcode-based pruning and Cohen’s d for effect size provides a robust foundation for future big data mining. Future work will address the challenges of data skew in grid partitioning and the development of "steerable" algorithms that allow users to adjust parameters dynamically without re-executing the entire MapReduce pipeline. Additionally, as network hardware evolves, the trade-offs between communication and computation may favor the integration of GPU acceleration within the MapReduce nodes.

Summary updated

BibTeX
@inproceedings{fries2015efficient,
  author = {Sergej Fries and Erhard Rahm and Thomas Seidl},
  title = {{Efficient clustering of massive data with MapReduce}},
  booktitle = {RWTH},
  year = {2015},
}
Figure