NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

U*F Clustering: A New Performant “Cluster-Mining” Method Based On Segmentation of Self-Organizing Maps

Fabien Moutarde, Alfred Ultsch2005

TL;DR

This paper introduces UF clustering, a novel method that automatically segments Self-Organizing Maps (SOMs) using a "flood-fill" approach on a specially designed U-matrix. U*F consistently achieves good clustering results across various challenging datasets, outperforming traditional algorithms like K-means, single-linkage, and Ward, especially in its robustness and lack of need for pre-defined cluster counts.

What Problem Does This Paper Address?

Clustering, the task of grouping similar data points, is a fundamental problem in data mining and machine learning. While many algorithms exist, they often struggle with datasets that have complex structures, such as non-spherical clusters, varying densities, or overlapping boundaries. Traditional methods like K-means, for instance, are biased towards spherical clusters and require the user to specify the number of clusters beforehand. Self-Organizing Maps (SOMs) offer a way to visualize high-dimensional data in a 2D space, preserving topological relationships, which can aid in understanding cluster structures. However, extracting these clusters from a trained SOM often requires further processing, and existing methods can be computationally expensive or lack robustness. This paper aims to provide a more robust, automated, and efficient clustering method that leverages the visualization capabilities of SOMs without requiring prior knowledge of the number of clusters.

Methods

The core of the UF clustering method lies in its novel approach to segmenting a trained Self-Organizing Map (SOM). Instead of directly clustering the SOM's weight vectors, UF operates on a derived representation called the U*-matrix.

Here's a breakdown of the key techniques:

  • Self-Organizing Maps (SOMs): The paper starts with a trained SOM, which is a neural network that projects high-dimensional data onto a low-dimensional (typically 2D) grid while preserving topological relationships.
  • U-matrix: This is a visualization tool for SOMs that displays the average distance between a neuron's weight vector and its neighbors on the map. High values in the U-matrix typically indicate boundaries between clusters, while low values suggest neurons within the same cluster.
  • U*-matrix: This is an enhancement of the U-matrix. It incorporates density information from the input data. The idea is that in dense regions, U-matrix values primarily represent within-cluster distances (which should be low), while in sparser regions, they represent between-cluster distances (which should be high). The U*-matrix is designed to better highlight cluster boundaries by adjusting U-matrix values based on local data density.
  • Flood-fill Segmentation: The UF method applies an automated "flood-fill" algorithm to the U-matrix. This algorithm starts from a point and "grows" a region as long as the U*-matrix values remain below a certain threshold.
  • Automated Thresholding: A key innovation is the automated determination of the flood-fill threshold. Instead of manually setting it, the algorithm analyzes the growth rate of the filled region with respect to the threshold. It identifies a point where the region size suddenly increases dramatically, indicating an "overflow" into a neighboring region, and uses this as the optimal threshold. This process is visualized by plotting the number of pixels filled against the threshold value, looking for a sharp gradient.

The UF variant also allows for applying the flood-fill segmentation directly to the U-matrix, which is useful for datasets with discrete-valued components where computing the U-matrix is problematic.

Datasets

The paper evaluates the U*F clustering method on several artificial datasets:

  • Atom: A 3D dataset with two clusters of different densities and shapes, not separable by a hyperplane.
  • WingNut: Two symmetric data subsets with overlapping points and a gap between them.
  • Lsun: Three 2D clusters with inter-cluster distances comparable to intra-cluster distances.
  • TwoDiamonds: Two clusters of points distributed within squares that nearly touch, posing a challenge for distance-based methods.
  • ChainLink: Two intertwined toroidal clusters, difficult to separate by linear or quadratic manifolds.
  • Dermatology Dataset: A real-world dataset with 358 examples and 34 dimensions, with most components being discrete-valued. This dataset was used to test the U*F variant.

The paper does not introduce new benchmark datasets but uses existing ones to demonstrate the performance of U*F against standard algorithms.

Key Insights and Ideas

  • Robustness through U*-matrix: The U*-matrix's ability to incorporate density information is crucial. It helps to distinguish between within-cluster distances and between-cluster distances, leading to more accurate boundary detection, especially in datasets with varying densities.
  • "Cluster-Mining" Capability: A significant advantage of UF is that it does not require the user to specify the number of clusters beforehand. The automated segmentation process naturally identifies the number of distinct regions in the U-matrix, making it a true "cluster-mining" tool.
  • Consistent Performance: Unlike many standard algorithms that perform exceptionally well on some datasets but poorly on others, U*F demonstrates consistently good results across a wide range of challenging scenarios. This reliability is a major selling point.
  • Computational Efficiency: The segmentation phase of U*F is computationally efficient, with a complexity related to the number of SOM units, which is significantly better than applying standard clustering algorithms to SOM prototypes, often resulting in O(n² log n) complexity.
  • Handling of "Unclassified" Examples: U*F's tendency to leave some examples "unclassified" rather than assigning them to the wrong cluster is presented as a strength. This avoids misclassification errors, which can be more detrimental than having some data points not assigned to any cluster.

Key Results

  • Perfect Cluster Identification: U*F achieved perfect cluster identification on the "Atom" dataset, as evidenced by a confusion matrix showing no misclassifications.
  • Near-Perfect Results: On the "Lsun" dataset, U*F was nearly perfect, correctly identifying 3 clusters with only a few examples left unclassified.
  • Robustness Against Standard Algorithms: In comparisons, U*F consistently avoided mixing examples from different true clusters, a problem encountered by single-linkage, Ward, and K-means algorithms on various datasets.
  • Accurate Cluster Count: For datasets like "WingNut," U*F correctly identified the number of clusters (2) automatically, even though a significant proportion of examples were left unclassified.
  • U*F Variant Performance: The U*F variant, applied directly to the U-matrix, showed good results on the "Dermatology" dataset, correctly handling discrete-valued components and avoiding misclassifications, although it merged two actual categories.

Limitations and Future Work

  • Discrete Data Handling: A primary limitation acknowledged is that building the U-matrix is not well-suited for datasets with discrete-valued components, as it requires local density estimation in the input space. The UF variant (using only the U-matrix) offers a workaround for such cases.
  • Unclassified Examples: While presented as a strength, the tendency for U*F to leave a significant proportion of examples unclassified might be a drawback in applications where every data point must be assigned to a cluster. This is particularly noticeable on datasets like "WingNut" and "TwoDiamonds."
  • Future Work: The authors suggest that more extensive testing on various real-world datasets is needed to confirm the method's efficiency. They also propose investigating its performance on datasets where clusters are not well-separated but form denser regions, and comparing UF's results with those obtained from applying classical clustering methods to SOM prototypes. Further research could also explore how to better handle the "unclassified" examples or refine the U-matrix computation for discrete data.

Summary updated

BibTeX
@misc{moutarde2005u,
  author = {Fabien Moutarde and Alfred Ultsch},
  title = {{U*F Clustering: A New Performant “Cluster-Mining” Method Based On Segmentation of Self-Organizing Maps}},
  year = {2005},
}
Figure