Introduction to Machine Learning for SEO
- Practical: Customer Segmentation with ML
- Marketing and SEO implementations of ML Clustering
- What is ML clustering?
ML Models & Algorithms
In shortDensity-based clustering that groups closely packed points, finds the number of clusters itself and labels isolated points as noise.
DBSCAN (Density-Based Spatial Clustering of Applications with Noise) is an unsupervised clustering algorithm that treats clusters as dense regions of data separated by sparser areas. Unlike K-means, you do not tell it how many clusters to find, and it leaves points that do not belong anywhere unassigned as noise, which makes it useful for anomaly detection.
DBSCAN, published by Ester and colleagues in 1996, uses two settings:
Core points that are within reach of each other are chained into the same cluster. Points near a core point join its cluster as border points. Anything else is labelled noise (in scikit-learn, cluster -1). Because clusters grow by chaining, they can take any shape, unlike the round clusters K-means produces.
You cluster 5,000 customers by recency, frequency, order value and product categories. K-means would push every customer into one of your chosen number of segments. DBSCAN finds four dense groups, such as frequent small-basket buyers and occasional big spenders, and marks 3% of customers as noise. Those outliers are often the most interesting: wholesale buyers, fraud or data errors.