# Supervised and Unsupervised ML

> Where a model gets its right answers. Supervised and unsupervised learning, and the two kinds that sit in between them.

**Course:** [Machine Learning](https://learn.benibix.com/learn/ai-machine-learning)  
**Time:** 12 min

**After this lesson you can:**

- Tell supervised from unsupervised learning
- Say when semi-supervised learning helps
- Explain how self-supervised learning makes its labels

## Where the right answers come from

Supervised learning learns from examples that come with the right answers. Unsupervised learning gets no answers at all. It looks for shape in the data by itself. Most machine learning in business is the first kind: spam filters, price guesses and loan checks. The second kind finds groups of shoppers, or odd payments that nobody tagged.

The question that sorts them is where the labels come from. In supervised learning, people supply them, which costs money. In unsupervised learning, there are none. Two more kinds sit in between: one uses only a few labels, and one makes its own.

Supervised learning is the easiest to check. You know the right answers for the test set, so you can count how often the model gets them. Its limit is the labels. Ten thousand labelled scans might cost a hospital weeks of doctors' time.

Unsupervised learning works on raw data, which is cheap and plentiful. It might split 10,000 shoppers into five groups. But it cannot tell you what each group means. A person has to look at the groups and decide, and some of them turn out to mean nothing.

Semi-supervised learning uses a few labelled rows and lots of unlabelled ones together. The labelled ones show what the answers look like. The rest show the shape of the data. With 200 scans marked by doctors and 20,000 unmarked, it often beats a model trained on the 200 alone.

Self-supervised learning makes its labels from the data itself. It hides part of an example and asks the model to guess it. The hidden part is the answer, so no person labels anything. BERT, from 2018, learned by guessing the 15% of word pieces hidden in its text. Chat models learn the same way, by guessing the next word.

People often think learning with no labels is better, since no one had to tag anything. It is not better, just different. If you know the answer you want and can get labels, use them. Learning from labels is nearly always the stronger choice.

## The four kinds side by side

| Kind | Where the labels come from | Example |
| --- | --- | --- |
| Supervised | People label every row | Spam or not spam |
| Unsupervised | No labels at all | Groups of shoppers |
| Semi-supervised | A few rows labelled, most not | 200 marked scans, 20,000 unmarked |
| Self-supervised | Hidden parts of the data itself | Guess the hidden word |

## Which one fits

1. **Supervised.** When you know the answer you want and can pay for labels.
2. **Unsupervised.** When you have no labels and want to see what groups are there.
3. **Semi-supervised.** When labels cost a lot and raw data is cheap.
4. **Self-supervised.** When you have a vast pile of raw text or photos, and want a model to learn its shape.

![Three panels asking where the right answers come from. Supervised: every example has a label. Unsupervised: there are no labels, so it finds the groups. Reinforcement: an agent acts in a world and gets back a reward that says how it did.](https://learn.benibix.com/diagrams/ml-learning-types.svg)

### Example: Emma learns from her orders

Emma has 50,000 past orders. Only 2,000 carry a tag saying whether the buyer came back.

She trains a supervised model on the 2,000 to guess who returns. She also runs an unsupervised one on all 50,000, and it finds a group of night-time buyers no one had noticed.

**Words in this lesson:** [Supervised Learning](https://learn.benibix.com/term/ai/supervised-learning), [Unsupervised Learning](https://learn.benibix.com/term/ai/unsupervised-learning), [Semi-Supervised Learning](https://learn.benibix.com/term/ai/semi-supervised-learning), [Self-Supervised Learning](https://learn.benibix.com/term/ai/self-supervised-learning)

> **The one thing to remember.** Supervised learning needs labels, and you can check its answers. Unsupervised learning needs none, and a person must judge what it found.

**Question:** How does self-supervised learning get its labels?

**Answer:** It hides part of the data and uses that part as the answer. It hides a word or a patch and guesses it. The real hidden part is the label, so a huge pile of raw data becomes training data for free.

---

Source: https://learn.benibix.com/learn/ai-machine-learning/supervised-and-unsupervised-ml
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-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
