Number of Clusters in a Dataset: A Regularized K-means Approach

Behzad Kamgar-Parsi, Behrooz Kamgar-Parsi
5/29/2025
cs.LGcs.CV
benchmark-dataset

No confident code implementation found for this paper.

Abstract

Finding the number of meaningful clusters in an unlabeled dataset is important in many applications. Regularized k-means algorithm is a possible approach frequently used to find the correct number of distinct clusters in datasets.

Show full abstract

The most common formulation of the regularization function is the additive linear term $λk$, where $k$ is the number of clusters and $λ$ a positive coefficient. Currently, there are no principled guidelines for setting a value for the critical hyperparameter $λ$. In this paper, we derive rigorous bounds for $λ$ assuming clusters are {\em ideal}. Ideal clusters (defined as $d$-dimensional spheres with identical radii) are close proxies for k-means clusters ($d$-dimensional spherically symmetric distributions with identical standard deviations). Experiments show that the k-means algorithm with additive regularizer often yields multiple solutions. Thus, we also analyze k-means algorithm with multiplicative regularizer. The consensus among k-means solutions with additive and multiplicative regularizations reduces the ambiguity of multiple solutions in certain cases. We also present selected experiments that demonstrate performance of the regularized k-means algorithms as clusters deviate from the ideal assumption.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kamgarparsi2025number,
  title  = {Number of Clusters in a Dataset: A Regularized K-means Approach},
  author = {Behzad Kamgar-Parsi and Behrooz Kamgar-Parsi},
  year   = {2025},
  eprint = {2505.22991},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.22991v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.22991.svg)](https://codeofpaper.com/paper/2505.22991)

Discussion