Why DBSCAN Won Silhouette Score While Failing Every Ground-Truth Metric
Published on May 5, 2026
When you evaluate an unsupervised clustering algorithm without ground-truth labels, internal metrics like Silhouette Score, Davies-Bouldin Index, and Calinski-Harabasz Index are usually the first tools you reach for. They measure geometric compactness and separation directly from the feature space.
While benchmarking K-Means, Ward Agglomerative Clustering, and DBSCAN across both the Iris (150 x 4) and Wine (178 x 13) datasets, I ran into a pattern that is easy to miss if you only look at summary numbers: DBSCAN won Silhouette Score and Davies-Bouldin on both datasets, while losing every single ground-truth metric by a wide margin.
The Benchmark Numbers
All features were standardized with StandardScaler before clustering. For external metrics that require class alignment (Purity, Weighted Accuracy, Weighted F1), arbitrary cluster IDs were mapped to true labels using the Hungarian algorithm (scipy.optimize.linear_sum_assignment), leaving DBSCAN noise points (-1) unmapped.
| Dataset | Algorithm | Clusters | Noise | Silhouette ↑ | Davies-Bouldin ↓ | ARI ↑ | Weighted F1 ↑ |
|---|---|---|---|---|---|---|---|
| Iris | K-Means (k=3) |
3 | 0 | 0.4599 | 0.8336 | 0.6201 | 0.8332 |
| Iris | Agglomerative (Ward) | 3 | 0 | 0.4467 | 0.8035 | 0.6153 | 0.8194 |
| Iris | DBSCAN (eps=0.5) |
2 | 34 | 0.6559 | 0.4942 | 0.4421 | 0.6263 |
| Wine | K-Means (k=3) |
3 | 0 | 0.2849 | 1.3892 | 0.8975 | 0.9660 |
| Wine | Agglomerative (Ward) | 3 | 0 | 0.2774 | 1.4186 | 0.7899 | 0.9256 |
| Wine | DBSCAN (eps=2.3) |
2 | 42 | 0.3307 | 1.1815 | 0.3838 | 0.5789 |

Looking at the Silhouette bars alone, you might conclude that DBSCAN produced the cleanest partition on both datasets (0.66 vs 0.46 on Iris, 0.33 vs 0.28 on Wine). Looking at ARI, NMI, Purity, and Weighted F1 tells the exact opposite story.
Why This Happens
Two mechanisms combine to create this illusion:
- Dropping boundary points inflates geometric separation: Because Silhouette and Davies-Bouldin are typically computed over assigned (non-noise) points, marking 22.7% of Iris (34/150) and 23.6% of Wine (42/178) as noise (
-1) removes the messy boundary samples that drag down K-Means and Ward scores. What remains are tight, dense cores. - Merging overlapping classes looks geometrically cleaner: On Iris, Versicolor and Virginica overlap in standardized 4D space. DBSCAN merges them into a single dense cluster (
2clusters found instead of3). Separating one isolated class (Setosa) from one combined cluster produces a huge Silhouette gap, even though it fails to distinguish two of the three species.

The Second Gotcha: High Dimensions Compress Silhouette
There is a second subtle lesson hiding in the Wine row. On 13-dimensional Wine, K-Means recovered 96.63% of the true cultivar labels (ARI = 0.8975, Weighted F1 = 0.9660), yet its Silhouette score was only 0.2849.
In higher dimensions, Euclidean distances concentrate and pairwise distances between points become more uniform, naturally compressing Silhouette scores downward. Treating a Silhouette of 0.28 as "weak clustering" without checking dimensionality or external structure can lead you to discard an almost-perfect partition.
Practical Takeaways
- Never compare Silhouette across algorithms with different coverage: If one algorithm assigns 100% of points and another drops 20%+ as noise, always report noise percentage alongside any internal score.
- Pair internal metrics with visual diagnostics: A 2D PCA projection or Ward dendrogram immediately reveals whether a high Silhouette score comes from genuine structure or collapsed classes.
- Use Hungarian matching for cluster accuracy/F1: Cluster IDs are arbitrary permutations, so computing classification-style metrics requires solving
linear_sum_assignmenton the confusion matrix first.
Full reproducible code and CSV logs are available in the clustering-benchmarking repository.