B2 · How Artificial Intelligence Works: Data and Learning

Unsupervised Learning

Unsupervised learning is machine learning from data that has no labels. Instead of predicting answers, the model finds structure in the data by itself, such as groups of similar items, a task called clustering.

8 min Beginner Jump to the activity

What you need: Nothing. This page starts from the beginning, with no programming and no formulas.

Definition

Can a shop group its customers without knowing anything about them?

Unsupervised learning is machine learning from data that has no labels. Instead of predicting answers, the model finds structure in the data by itself, such as groups of similar items, a task called clustering.

In simple words

Pour a box of mixed buttons on a table and sort them into piles by colour and size. Nobody told you the piles; you found them. In the activity, the computer does this with shop customers: it notices that some visit often and spend little, others rarely visit but spend a lot, and groups them.

Why it matters

Labels are expensive: someone has to write the right answer for every example. Unsupervised learning finds patterns without them. Shops use it to understand customers, music apps to group similar songs, and banks to spot unusual activity.

How it works

  1. Decide how many groups to look for.
  2. Place a centre for each group.
  3. Each item joins the nearest centre.
  4. Each centre moves to the middle of its items.
  5. Repeat until nothing changes. The groups are found.

Try it yourself

Group mystery customers by similarity

Choose how many groups, place the centres, then step through the rounds until the groups settle.

Common mistakes

  • Expecting the computer to name the groups. People interpret them.
  • Thinking there is one correct number of groups. Different choices show different patterns.
  • Mixing it up with supervised learning. No labels are given here.

Check yourself

Question 1

1. What does unsupervised learning work with?

Question 2

2. Finding groups of similar items is called…

Question 3

3. Who names the groups the computer finds?

Summary

  • Unsupervised learning finds patterns in data with no labels.
  • Clustering groups similar items together.
  • People interpret what the groups mean.

Finished reading?