DBSCAN (Density-Based Spatial Clustering of Applications with Noise) groups points in dense regions and marks isolated points as noise.
How It Works
Two parameters:
- eps: the neighbourhood radius.
- min_samples: the number of points needed to form a dense region.
Points with enough neighbours are core points. Clusters grow from core points through their neighbours. Points that aren't reachable from any core point are noise.
Strengths
- Finds clusters of arbitrary shape.
- No need to specify the number of clusters.
- Identifies outliers naturally.
Limitations
- Struggles when clusters have very different densities.
- Sensitive to eps; a k-distance plot helps choose it.
- Less effective in high dimensions, where distances become less meaningful.
Variants
HDBSCAN extends the idea to varying densities and needs less tuning, making it a popular choice.
Uses
Geospatial clustering of locations, anomaly detection and grouping embeddings.