Introduction to Machine Learning for SEO
- What is ML clustering?
- Marketing and SEO implementations of ML Clustering
- Practical: Clustering images based on color
Task Types
In shortAn unsupervised ML task that groups unlabelled data, such as keywords, pages or customers, by similarity so patterns emerge without predefined categories.
Clustering is the machine learning task of splitting an unlabelled dataset into groups of similar items. It is unsupervised: you do not tell the model what the groups should be, it finds them from the data. If classification is the task where you bring the categories, clustering is the one where you let the data suggest them.
The algorithm measures how similar data points are, using metrics such as Euclidean distance or cosine similarity, then groups the closest ones. Text first has to become numbers, through TF-IDF vectors or embeddings, before any clustering can happen. Algorithms differ in two main ways:
Because there are no labels, quality is judged by reading the clusters, by metrics such as the silhouette score, and by iterating on the number of clusters and the features.
You export 3,000 ranked keywords for a fashion retailer and embed them. Clustering groups them into themes such as summer clothes, maternity and festival wear without anyone defining those themes. Sized by search volume in a treemap, the clusters become a readable map of the market and a draft site structure.
Clustering also matters in AI search: query fan-out splits one question into sub-topics, and content that maps onto coherent, well-covered clusters is easier to recognise as the source for each one.