# Clustering

> Putting things that are alike into groups. Nobody names the groups first.

**Field:** Artificial Intelligence  
**Category:** Machine Learning  
**Also known as:** Cluster Analysis

## Think of it like

Think of it like kids at a party. Soon they stand in small groups of friends.

## Definition

Clustering is the task of putting similar examples into groups without being told the groups first. The model looks at how close examples are to each other. Examples that are alike end up in the same group, called a cluster. There are no labels, so it is unsupervised. People then look at each cluster and decide what it means.

## Example

Lucy's music app clusters 2 million songs by sound. One cluster turns out to be calm piano music, which becomes a new playlist.

## Why it matters

It shows you groups you did not know were there, like new kinds of buyers or new kinds of faults.

## Common mistake

Mixing it up with classification. That sorts things into groups you named first. Clustering finds the groups itself.

## Three principles

- **No groups given.** The model finds them.
- **Alike sits together.** Groups by closeness.
- **People name them.** You decide what each means.

## Related terms

- [Unsupervised Learning](https://learn.benibix.com/term/ai/unsupervised-learning)
- [k-Means Clustering](https://learn.benibix.com/term/ai/k-means-clustering)
- [Classification (Machine Learning)](https://learn.benibix.com/term/ai/classification)
- [Anomaly Detection](https://learn.benibix.com/term/ai/anomaly-detection)

## Told apart from

- [Clustering vs Classification](https://learn.benibix.com/compare/clustering-vs-classification): Both put examples into groups, so people mix them up. The difference is who names the groups. In classification you name them first and give labelled examples. In clustering nobody names them, and the model finds groups that you then have to explain.

## Taught in

- [Clustering and PCA](https://learn.benibix.com/learn/ai-machine-learning/clustering-and-pca): Machine Learning, 11/18

![Grey dots on the left. On the right the same dots fall into three groups, each with a cross at its centre.](https://learn.benibix.com/diagrams/ml-clustering.svg)

---

Source: https://learn.benibix.com/term/ai/clustering
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
