DBSCAN (Density-Based Clustering)

Context: FIT3003_MOC · the density-based alternative to centroid-based k-means Clustering · run on normalised fact measures in Data Analytics for Data Warehousing

Quick Revision

  • 🎯 Objective: grow each cluster as a chain of dense neighbourhoods ➔ is discovered, not preset; sparse objects become outliers.
  • ⚠️ Key Constraint: the clustering is fixed by MaxDist (neighbourhood radius) and MinPts (objects needed to count as dense) — not by or starting seeds.

📝 Core

  • Idea ➔ a cluster is a region of tight proximity; chain neighbourhoods from one dense object to the next.
  • MaxDist ➔ radius of each object’s neighbourhood (the circles on slide 44).
  • MinPts ➔ minimum objects inside that radius for the neighbourhood to be dense.
  • Core point ➔ dense neighbourhood ➔ extends the chain (blue circles, B–G).
  • Border point ➔ reached from a core point but not dense itself ➔ joins the cluster, ends the chain (orange, A and H).
  • Outlier ➔ reached from no core point ➔ in no cluster (grey, I).
  • Same 17 patients (slide 45) ➔ k-means returns 3 compact ovals with every patient assigned; DBSCAN returns one long chain across the high-albumin band, two small groups, and the isolated point near as an outlier.

(the slides list the five elements without defining them; the core / border / outlier roles are read from the slide-44 circle colours)

⚖️ Core Decision Matrix

MethodGroups byPredefined Every object clustered?OutliersLong neighbourhood chains
k-means Clusteringcoverage around a centroidrequiredyesnevernever
DBSCANa specific distance range (MaxDist)not needednomay producemay produce

When It Flips: the number of groups is fixed by the business question ➔ k-means · the number is unknown, or isolated objects must be flagged rather than forced into a group ➔ DBSCAN.

⚠️ Common Mistakes

  • 💡 “Every object gets a cluster” ➔ true of k-means only; DBSCAN can leave objects as outliers.
  • 💡 Skipping normalisation ➔ MaxDist is one radius in every direction, so a wide-range measure (Glucose) swamps a narrow one (Albumin) exactly as in k-means.

🧠 Active Recall