Home / For kids / A2

A2 Teach a Machine

How do we teach a machine by showing it examples?

Stage
Builders, ages 7 to 9
Lessons
6
You make
A trained classifier and a fairness note

Before you start. You can do these on your own. Ask a grown-up when the page says so.

You don’t need a computer tool for these lessons. You will build a paper “machine” from cards, which works the same way. The Try page has a digital machine too.

Safety rules · Teacher and parent version of this course

Your lessons

Open a lesson. Tick the boxes as you go. Do one lesson at a time.

Lesson 1: What Is AI?About 30 minutes
  1. Get ready
  2. Do it
  3. Check yourself
  4. Show a grown-up

Get ready

You need:

  • Paper
  • Pencil

Do it, step by step

Real AI test (with a grown-up): Ask it to explain AI

Optional, and a grown-up runs it. Under 13, the grown-up types and reads, and you direct and check. Read the AI lab guide first. About 15 minutes.

Why we do this. You wrote your own “AI is…”. Let’s see how a machine explains it, and who explains it better.

Prompt 1: Explain AI

Explain what AI is in three short sentences, in simple words for a primary school child.

Prompt 2: AI and a calculator

Is AI the same as a calculator? What is different? Answer in three short sentences.

Change only made-up parts in [brackets]. Never add a name, school, address, photo or anything private.

What to look for

  • Does it say AI learns from examples?
  • Is your sentence clearer than its sentence? Or the other way round?
  • Does it say anything you do not understand?

Write it down

Tool, prompt, what it said, what you checked, and whether it was right, wrong or not sure. Record sheet

Think about it. Write a new “AI is…” sentence using the best parts of both.

Check yourself

Is a calculator AI?

Open the answer

No. It follows fixed rules. It does not learn from examples.

Is a spelling suggestion that gets better from lots of people’s typing AI?

Open the answer

Yes, that part learns patterns from lots of examples.

Show a grown-up

Tell a grown-up your “AI is…” sentence and ask them what they think.

Next: Lesson 2

Lesson 2: Examples Teach MachinesAbout 35 minutes
  1. Get ready
  2. Do it
  3. Check yourself
  4. Show a grown-up

Get ready

You need:

  • 10 small pieces of paper
  • Crayons or pencil

Do it, step by step

Real AI test (with a grown-up): More examples, better answers?

Optional, and a grown-up runs it. Under 13, the grown-up types and reads, and you direct and check. Read the AI lab guide first. About 20 minutes.

Why we do this. You saw that more examples help your paper machine. Do examples help a real AI?

Prompt 1: No examples

Sort these into “healthy snack” or “treat”: yoghurt with sprinkles, banana, cake. One line each.

Prompt 2: With examples

Here are examples. Apple = healthy snack. Carrot = healthy snack. Chocolate bar = treat. Crisps = treat. Now sort these: yoghurt with sprinkles, banana, cake. One line each.

Prompt 3: Your own tricky one

Add one tricky example of your own, such as muesli bar. Say which group it is in and why. Then ask the AI to sort a new tricky item.

Change only made-up parts in [brackets]. Never add a name, school, address, photo or anything private.

What to look for

  • Did the answers change when you added examples?
  • Which items does it disagree with you about?
  • Is there a right answer for the tricky ones?

Write it down

Tool, prompt, what it said, what you checked, and whether it was right, wrong or not sure. Record sheet

Think about it. What do examples do? Why are tricky examples interesting?

Check yourself

What happened when you only had one example?

Open the answer

You mostly had to guess. Few examples means more mistakes.

What happened with confusing examples?

Open the answer

They are harder for a machine, too. Examples that could be in two groups confuse it.

Show a grown-up

Show a grown-up your memory pile and explain why more examples helped.

Next: Lesson 3

Lesson 3: Train a Picture SorterAbout 40 minutes
  1. Get ready
  2. Do it
  3. Check yourself
  4. Show a grown-up

Get ready

You need:

  • 16 small pieces of paper
  • Pencil or pens
  • A timer (optional)

Do it, step by step

Try the digital machine

Real AI test (with a grown-up): A picture sorter in words

Optional, and a grown-up runs it. Under 13, the grown-up types and reads, and you direct and check. Read the AI lab guide first. About 25 minutes.

Why we do this. A real AI cannot see your paper drawings. But you can describe them in words and test it against your paper machine.

Prompt 1: Teach it

Here are examples. Round things: ball, sun, wheel. Square things: window, box, picture frame. Now sort these into “round” or “square”, one word each: [DESCRIBE 6 OF YOUR TEST CARDS IN A FEW WORDS EACH, FOR EXAMPLE “a wobbly circle with a smiley face”].

Change only made-up parts in [brackets]. Never add a name, school, address, photo or anything private.

What to look for

  • Write its answers next to the answers from your paper machine.
  • Tally: how many right out of 6 for the AI? For your paper machine?
  • Which cards confused each one?

Write it down

Tool, prompt, what it said, what you checked, and whether it was right, wrong or not sure. Record sheet

Think about it. Which was better, the AI or your paper machine? Why do you think that is?

Check yourself

What is the machine’s “training”?

Open the answer

Showing it labelled examples to remember (your memory pile).

How can the machine guess a card it has never seen?

Open the answer

It finds the example in its memory that looks most like the new one, and copies the label.

Show a grown-up

Ask a grown-up to try to confuse your machine with a drawing that is half round and half square. What does it say?

Next: Lesson 4

Lesson 4: Test ItAbout 35 minutes
  1. Get ready
  2. Do it
  3. Check yourself
  4. Show a grown-up

Get ready

You need:

  • Your cards from Lesson 3
  • Paper
  • Pencil

Do it, step by step

Real AI test (with a grown-up): Quiz the machine

Optional, and a grown-up runs it. Under 13, the grown-up types and reads, and you direct and check. Read the AI lab guide first. About 30 minutes.

Why we do this. You tested your machine with a tally chart. Now test a real AI the same way.

Prompt 1: Your quiz

Write 10 questions where YOU know the answers, such as: How many sides does a triangle have? What is the biggest planet? What is the opposite of “hot”? Ask them one at a time and ask for a short answer.

Prompt 2: Two tricky ones

Which is heavier: a kilogram of feathers or a kilogram of bricks? How many times does the letter “r” appear in the word “strawberry”? (They may or may not trip it up. Find out.)

Prompt 3: Ask again

Ask one of the tricky questions a second time.

Change only made-up parts in [brackets]. Never add a name, school, address, photo or anything private.

What to look for

  • Make a tally chart: RIGHT and WRONG.
  • Work out: “It got __ right out of 12.”
  • Did the tricky ones fool it? Did it give the same answer twice?

Write it down

Tool, prompt, what it said, what you checked, and whether it was right, wrong or not sure. Record sheet

Think about it. Would you trust it for everything? What would you check?

Check yourself

Why do we test on new cards, not the ones in the memory pile?

Open the answer

Cards in the memory pile are already known, so they always look right. New cards show how well the machine works on things it has not seen.

How did you make it better?

Open the answer

By adding better examples of the kind it got wrong.

Show a grown-up

Show a grown-up your two tally charts and say which one is better and why.

Next: Lesson 5

Lesson 5: When Examples Are UnfairAbout 35 minutes
  1. Get ready
  2. Do it
  3. Check yourself
  4. Show a grown-up

Get ready

You need:

  • Paper
  • Red, green and yellow crayons
  • Pencil

Do it, step by step

See unfairness on the Try page

Real AI test (with a grown-up): Who is missing?

Optional, and a grown-up runs it. Under 13, the grown-up types and reads, and you direct and check. Read the AI lab guide first. About 20 minutes.

Why we do this. Unfair examples leave people out. See what a machine’s “examples” look like.

Prompt 1: List 1

Name 5 famous scientists.

Prompt 2: List 2

Now name 5 more, from different parts of the world.

Change only made-up parts in [brackets]. Never add a name, school, address, photo or anything private.

What to look for

  • Tally list 1: how many are women? Where are they from?
  • Who is missing from list 1?
  • Did list 2 fix the gaps? Did you have to ask for it?

Write it down

Tool, prompt, what it said, what you checked, and whether it was right, wrong or not sure. Record sheet

Think about it. Why might the first list look the way it does? Think about the examples the machine learned from.

Check yourself

What does “unfair” mean for a machine?

Open the answer

It works well for some things and badly for others, because its examples left some out.

How do you fix it?

Open the answer

Add examples of the things that were missing, then test again.

Show a grown-up

Read your fairness note to a grown-up.

Next: Lesson 6

Lesson 6: Show and ShareAbout 40 minutes
  1. Get ready
  2. Do it
  3. Check yourself
  4. Show a grown-up

Get ready

You need:

  • Everything from Lessons 3 to 5
  • A big sheet of paper
  • A grown-up (for sharing)

Do it, step by step

Real AI test (with a grown-up): Find holes in your machine

Optional, and a grown-up runs it. Under 13, the grown-up types and reads, and you direct and check. Read the AI lab guide first. About 20 minutes.

Why we do this. Your fairness note says where your paper machine might fail. Let’s see whether a real AI can find more.

Prompt 1: What could go wrong?

A child made a paper machine that sorts drawings into round things and square things by copying the most similar example card it has seen. What could go wrong with it? Give 3 short ideas.

Change only made-up parts in [brackets]. Never add a name, school, address, photo or anything private.

What to look for

  • Which of its ideas are the same as yours?
  • Did it find something you missed?
  • Is any of its advice wrong or silly?

Write it down

Tool, prompt, what it said, what you checked, and whether it was right, wrong or not sure. Record sheet

Think about it. Add the best ideas to your fairness note, and cross out any you disagree with. You are the maker.

Check yourself

What is one thing your machine does well?

Open the answer

Whatever you found in your tests. A real answer is better than a perfect one.

What is one way it might fail?

Open the answer

For example: a drawing unlike any in the memory pile, or a card that is half one thing, half another.

Show a grown-up

Ask them: “Has a machine ever got something wrong for you?” Talk about it.