Many modern datasets—images, media streams, biomedical omics—are better modeled as probability distributions than as points in Euclidean space. Clustering such distribution-valued data typically requires fixing the number of clusters in advance, and standard heuristics like silhouette score or the Davies-Bouldin Index often struggle when clusters are unevenly separated, heteroscedastic, heavy-tailed, or contaminated by outliers. A new arXiv preprint from Chenqin Xu and Yisha Yao proposes Relative Wasserstein Spatial Depth (RWSD) as a selection criterion for the optimal number of clusters in Wasserstein space.

RWSD works by measuring the depth of each distribution inside its assigned cluster and comparing that with its depth in competing clusters; a good partition should make each point clearly deeper in its own cluster than elsewhere. The authors pair the criterion with Wasserstein K-means and with a newly proposed K-medians variant, and they establish consistency of the estimated cluster centers and of the selected number of clusters under suitable assumptions. They also derive an error rate for two-stage sampling and characterize how robust RWSD is under any fixed partition.

In extensive simulations, RWSD picks the intended number of clusters in settings where silhouette score and the Davies-Bouldin Index often fail. Demonstrations on MNIST images and flow cytometry data illustrate its practical value. The authors note a caveat: when a cluster is not geodesically convex and lacks a meaningful depth center, RWSD can fail. The paper is available on arXiv under the identifier 2610.09153.