A review of mean-shift algorithms for clustering

Miguel Á. Carreira-PerpiñánarXiv 2015

TL;DR

This paper provides a comprehensive review of mean-shift algorithms for clustering, a powerful nonparametric approach that identifies clusters by finding modes (local maxima) in kernel density estimates. It delves into the theory, variations (blurring vs. non-blurring), extensions, and applications of mean-shift, offering a valuable resource for researchers and practitioners in the field.

What Problem Does This Paper Address?

The paper addresses the fundamental challenge of identifying natural groupings (clusters) within data. Traditional methods like K-means often struggle with complex, non-elliptical cluster shapes and require pre-specifying the number of clusters. The authors propose that by modeling data as samples from a probability density function, clusters can be naturally defined as regions of high density, specifically at the modes of this density. This approach offers a more flexible and model-agnostic way to discover clusters, especially when their shapes are intricate.

Methods

The core of the paper revolves around mean-shift algorithms. The fundamental idea is to iteratively move a point towards regions of higher density. This is achieved by calculating a "mean-shift vector" which is a weighted average of the data points, where closer points have higher weights. This process is repeated until the point converges to a local maximum (a mode) of the density.

The paper distinguishes between two main types:

  • Mean-shift (MS): This version directly finds the modes of the kernel density estimate (KDE). Each identified mode represents a cluster, and data points are assigned to the mode they converge to.
  • Blurring Mean-shift (BMS): This version iteratively smooths the entire dataset by applying the mean-shift update to every point. This process effectively blurs the data, causing points to collapse into clusters.

The paper also discusses:

  • Kernel Density Estimation (KDE): A nonparametric method to estimate the underlying probability density function of the data. The choice of kernel (e.g., Gaussian) and bandwidth (scale) are crucial parameters.
  • Theoretical Results: Properties of modes in Gaussian mixtures, convergence guarantees, and relationships with scale-space theory.
  • Extensions: Mean-shift is extended to handle tracking, manifold and graph data, and denoising.
  • Related Algorithms: Connections to spectral clustering, K-modes, and Laplacian K-modes are explored.
  • Acceleration Strategies: Techniques to speed up the computationally intensive mean-shift process.

Datasets

The paper does not introduce new datasets. Instead, it uses existing datasets to illustrate the algorithms' performance. Examples mentioned include:

  • Synthetic datasets: Used to demonstrate concepts like complex cluster shapes and manifold structures (e.g., spirals).
  • Image datasets: Specifically, the "cameraman" image and the MNIST dataset of handwritten digits are used to showcase applications in image segmentation and denoising.

Key Insights and Ideas

  • Density as the basis for clustering: The core idea that clusters can be naturally defined by the modes of a nonparametric density estimate is a powerful paradigm shift from model-based approaches.
  • Automatic cluster discovery: Mean-shift, by finding modes, automatically determines the number of clusters based on the data's structure and the chosen bandwidth, freeing the user from this often difficult task.
  • Modeling complex shapes: Unlike methods that assume elliptical clusters, mean-shift can effectively identify clusters with arbitrary, nonconvex shapes.
  • Bandwidth as a scale parameter: The bandwidth in KDE directly controls the scale at which clusters are detected, offering an intuitive way to explore different levels of granularity in the data.
  • Mean-shift as an EM algorithm: A significant theoretical insight is the connection between mean-shift and the Expectation-Maximization (EM) algorithm, providing convergence guarantees.
  • Manifold learning and denoising: Mean-shift's local smoothing property makes it applicable beyond clustering, enabling effective manifold denoising and learning.

Key Results

  • Effective clustering of complex shapes: The paper demonstrates successful clustering of datasets with intricate, non-elliptical cluster structures, as shown in Figure 1.
  • Image segmentation performance: Mean-shift and BMS are highlighted as highly effective for image segmentation, achieving good results on the "cameraman" image (Figure 5) and MNIST digits (Figure 7).
  • Denoising capabilities: BMS and its extension, Manifold Blurring Mean-Shift (MBMS), show strong performance in denoising images while preserving structure (Figure 3 and 4).
  • Theoretical convergence: For Gaussian kernels, mean-shift is shown to converge to modes, with convergence rates analyzed.
  • Acceleration benefits: Techniques like spatial discretization and connected-components merging significantly speed up mean-shift, making it more practical for large datasets.

Limitations and Future Work

  • Computational cost: The primary limitation of standard mean-shift is its quadratic complexity with respect to the number of data points, making it slow for large datasets. While acceleration strategies exist, they can introduce approximation errors.
  • High-dimensional data: Mean-shift can struggle in very high dimensions, where the number of modes can become unstable or the density estimation becomes unreliable. The paper suggests K-modes and Laplacian K-modes as alternatives for such scenarios.
  • Manifold distortion: Standard BMS can distort manifold structures during smoothing. MBMS addresses this by constraining motion to be locally orthogonal to the manifold.
  • Future Work: The authors suggest several promising research directions, including:
  • Understanding the geometry of Gaussian mixtures and their modes in high dimensions.
  • Developing extensions for directed graphs and learning optimal random-walk or Laplacian matrices for clustering.
  • Defining clusters based on "bumps" of a kernel density estimate rather than just modes.

Summary updated

Abstract

A natural way to characterize the cluster structure of a dataset is by finding regions containing a high density of data. This can be done in a nonparametric way with a kernel density estimate, whose modes and hence clusters can be found using mean-shift algorithms. We describe the theory and practice behind clustering based on kernel density estimates and mean-shift algorithms. We discuss the blurring and non-blurring versions of mean-shift; theoretical results about mean-shift algorithms and Gaussian mixtures; relations with scale-space theory, spectral clustering and other algorithms; extensions to tracking, to manifold and graph data, and to manifold denoising; K-modes and Laplacian K-modes algorithms; acceleration strategies for large datasets; and applications to image segmentation, manifold denoising and multivalued regression.
BibTeX
@misc{carreiraperpinan2015review,
  author = {Miguel Á. Carreira-Perpiñán},
  title = {{A review of mean-shift algorithms for clustering}},
  year = {2015},
  eprint = {1503.00687},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1503.00687},
}
Figure