dbscan
dbscan
DBSCAN
Why DBSCAN over K-Means or Hierarchical
clustering?
• In the figure first two columns, it is clear that DBSCAN correctly
identifies clusters in circular and spiral patterns. Whereas, K-Means fails
because it forces clusters into spherical shapes.
• In third column, DBSCAN correctly identifies dense clusters while
marking noise points separately. Other side, K-Means incorrectly assigns
noise points to clusters.
• In forth column, well-separated dense clusters. Both DBSCAN and K-
Means perform well here.
• In fifth column, data are uniformly distributed. DBSCAN classifies
everything as one cluster (no clear separation). K-Means still assigns
multiple clusters based on distance.
When to use DBSCAN Clustering
• Use DBSCAN when:
• Clusters have irregular shapes (e.g., spirals, rings).
• Noise or outliers are present.
• Varying density is expected.