← AI Foundations

Why does AI make mistakes?

Break a fruit sorter on purpose with a wrong label and with missing examples, then fix it.

Last lesson you taught a fruit sorter with labelled examples. Today you will break it on purpose. Finding out how a model goes wrong is one of the best ways to understand it.

The sorter is a simple teaching model, not a neural network. It looks at the examples closest to a new fruit and copies their label.

How this lesson works: Engage, Explore, Explain, Elaborate, Evaluate
Extra examplesYour teacher may tell you which.
EngageCommit to a prediction before you test anything. A wrong guess is fine: it shows you what to look for.

Engage: What could go wrong?

The sorter's program works perfectly. Can it still give a wrong answer?

ExploreTry it on the board and compare what happens with your prediction.

Explore: Fool the sorter

In the board's pretend world, every long fruit is a banana and every round fruit is an apple. The board tells you when the sorter is right or wrong.

Use Swap label to give some examples the wrong answer. Then test a yellow, long fruit. Rows with a wrong label turn pink.

Need a hint?

Before a hint: what kind of stuck is this? Try a strategy first

Which examples are closest to a yellow, long fruit?

Another hint

Press Swap label on the yellow, long examples, then test a yellow, long fruit.

Press Restore original examples, so every label is correct. Now use Remove to take examples away. Can you make the sorter wrong, or unsure, without any wrong labels?

Need a hint?

Before a hint: what kind of stuck is this? Try a strategy first

Press Restore original examples first, so every label is correct. Which kind of fruit has only one example?

Another hint

Remove the yellow, round apple, then test a yellow, round fruit.

Put the examples right again. Test the fruit it got wrong. Is it right now?

Need a hint?

Before a hint: what kind of stuck is this? Try a strategy first

Press Restore original examples, then test the same fruit again.

Try it yourselfYour edits are saved in this browser.

Make the sorter call a yellow, long fruit an apple.

Use the board. This ticks when you get there.

With every label correct, make the sorter get a fruit wrong or unsure.

Use the board. This ticks when you get there.

Fix the sorter so it gets a fruit right that it got wrong.

Use the board. This ticks when you get there.

ExplainPut a name to what you saw, and why it works.

Explain: Two kinds of mistake

A model can go wrong in at least two ways.

In both cases, the program worked. The examples were the problem.

Which kind of mistake was this?

Which kind of mistake was this?

Use one of your own board tests as an example.

You swapped two banana labels to 'apple'. Now the sorter calls a yellow, long fruit an apple. What caused the mistake?

You removed the only yellow, round example. Every label is still correct. Now a yellow, round fruit is called a banana. What caused it?

Elaborate Extra · typicalUse the idea in a new situation.

Elaborate: More examples, fewer mistakes?

Swap two banana labels to apple, so the sorter calls a yellow, long fruit an apple. Then add three more correct yellow, long banana examples. Test again. Did more correct examples outvote the wrong ones?

Press Restore original examples. Remove the yellow, round apple and add three more yellow, long bananas. Test a yellow, round fruit. Did more examples help this time?

Wider investigation: a real fruit can be green and long: an unripe banana. What extra clue, or what kind of example, would help? Would it guarantee the right answer?

Try it yourselfYour edits are saved in this browser.

ElaborateUse the idea in a new situation.

Elaborate: When the missing group is people

A school tries a made-up reading app that listens to students read aloud. It learned from thousands of recordings, but almost all of them were adults. It works well for teachers. It often mishears Year 7 students.

This is your sorter's missing examples mistake. This time the missing group is people.

When a model works worse for a group because that group was missing or rare in its examples, we call it bias. The program can be fine. The examples are not.

Sort each idea.

The app's program has no bug. Why does it mishear Year 7 students more than adults?

Would this help the app work for Year 7 students?

Add many recordings of Year 7 voices
Add even more adult voices
Test how well it works for each age group before using it
Ask Year 7 students to speak like adults
Run it on a faster computer

EvaluateLook back at your first ideas and what changed.

Evaluate: What would you check?

Without the board, write: The sorter got it wrong when … because … . To fix it, I would … .

A photo app labels a photo of a black swan as 'goose'. Every training label was checked by experts. What is the most likely cause?

EvaluateLook back at your first ideas and what changed.

Learning with AI: when the answer is wrong

When an AI assistant gives you a wrong answer, it isn't always because it is "broken". It may have learned from wrong examples, or seen few examples like your question. So ask: Is my question unusual? Could it have learned this wrong? Then check with a source you trust.

Now you can
Next lesson6. How do models combine clues?Explore how colour and shape influence an inspectable weighted decision.
For teachers

Students break a working fruit sorter on purpose, once with a wrong label and once by removing examples, then fix it and explain what went wrong. About 30 minutes.

Open the teacher guide: answers, solutions, slides and a worksheet.

Students will be able to

Before class

Bias step (18 Oct 2026): the reading app is made up, so the lesson makes no statistical claim. It names bias as a consequence of generalising from missing examples (a technical idea first; the planned Who Does AI Affect? course takes up fairness and who is affected). Keep discussion on examples and testing, not on judging any real group's speech. Last lesson students taught the sorter. This lesson they break it. The board's mistakes mode adds a Swap label button and three challenges (wrong label, missing examples, fix it); each ticks when a test shows it. In the board's pretend world every long fruit is a banana and every round fruit is an apple, so the board can say "right" or "wrong". Real fruit is messier: say so. The sorter copies the label of its nearest examples. It is a transparent teaching model, not a neural network. No account or online tool is needed.

Running the lesson

  1. Engage: ask what could make a sorter wrong before anyone touches the board.
  2. Explore: let students find their own way to fool it; collect the different ways on the board.
  3. Explain: sort the ways into 'wrong labels' and 'missing examples'; ask which one a bigger dataset would not fix.
  4. Elaborate: connect to real systems: labels are often made by people, quickly, and some kinds of case are missing.

The hard part (on purpose)

Students may think a model that is wrong must be broken or badly programmed. Here the program is fine: the examples are the problem.

When students get stuck

Stretch and support

Stretch: Find the fewest changes that fool the sorter. Why does removing one example sometimes make no difference?

Support: Do the wrong-label challenge together first, then let students try the missing-examples one.

Where it leads

Unit 2, lesson 3 shows how a model can weigh several clues at once.