What you need

  • The example cards and the new pictures, printed from this page and cut out: one set for the board, or one for each group of three or four children.
  • The exit check, printed from this page: two to a sheet, cut in half, one half for each child.
  • Something to stick cards to the board, or the Show to class view on a screen in their place.
  • Pencils, and crayons if children colorcolour the cards in first. Each card names its colorcolour, so the lesson works in black and white.

What you need to know

Read What AI is and isn’t first: its part on why AI can be wrong is this lesson's main idea. Why AI gets things wrong says more about lopsided examples.

A machine that learns from examples can only find the patterns its examples hold. If every leaf it is shown is green and nothing else is, “green means leaf” fits every example, and the machine can use it. AI4K12’s draft for kindergarten to grade 2 puts the same case: if every “healthy” example is green, “what will the computer conclude about green gummy bears?”

The 2026 CSTA standards expect second graders to notice that “models can make more mistakes for some kinds of examples than others, especially when the training examples were mostly of one kind”. How the examples were collected is part of it: these were all picked in summer, when leaves are green.

Listen for

  • “The machine is silly. It’s broken.”

    The 2026 CSTA standards say that once children learn AI is trained on data people collect, “Mistakes are recognized as predictable consequences of gaps in training data.”

    Say: “It isn’t broken. It only had green leaves to learn from. What could we show it?”

  • “It should see that a red leaf is a leaf!”

    Among Finnish 5th and 6th graders, one of three mistaken ideas was AI as a machine with its knowledge built in (Mertala and Fagerlund, 2024).

    Say: “It only has the examples people gave it. Nobody showed it a red leaf.”

  • “It thinks the frog is a leaf.”

    About two-thirds of the children in the Edinburgh study thought smart speakers might think like a human (March 21, 202421 March 2024).

    Say: “It matched the colorcolour. Every leaf it was shown was green, so it guessed that green means leaf.”

  • “AI is bad. You can’t trust it.”

    Learners tend to hold “binary and unspecific views about the threats, dangers, and benefits of AI” (Bewersdorff and others, 2023).

    Say: “It got some right and some wrong. People can make it better with better examples, and we check what it says.”

The lesson, step by step

20 minutes. Read the lines in quotation marks as they are, or in your own words. Each step names its board in Show to class.

  1. 1. Meet the leaf machine 2 minutes

    Say
    “This machine sorts pictures into two groups: Leaf, and Not a leaf. People taught it with examples.”
    Say
    “A helper picked the examples in summer.”
    Do
    Show the first board, or draw two boxes on the board: Leaf and Not a leaf.
    Its board in Show to class
  2. 2. The examples it was given 3 minutes

    Do
    Put up the eight example cards, 1 to 8, in their two groups. Read each card’s colorcolour aloud. Keep the four Add later cards for step 5.
    Ask
    Look at the leaves. What colorcolour is every leaf? (Green.) Is anything in Not a leaf green? (No.)
    Its board in Show to class
  3. 3. Test the machine 5 minutes

    Do
    Show new pictures A to F, one at a time. The class says where each one really goes.
    Do
    Show what the machine said about each one. For each, ask: is the machine right?
    Ask
    How many did the machine get right? (2 of 6: the green leaf and the blue hat.)
    Its board in Show to class
  4. 4. Find the problem 3 minutes

    Ask
    Why did it put the green frog with the leaves? Why did it say the red leaf is not a leaf?
    Listen for
    Every leaf it was shown was green, and nothing else was green. So it sorted by colorcolour: green means leaf.
    Say
    “The examples were all of one kind. They were picked in summer, when leaves are green. The machine found a pattern, but not the one we wanted.”
    Its board in Show to class
  5. 5. Fix it with more examples 5 minutes

    Ask
    What examples could we give it, so that colorcolour can’t fool it? (Leaves that are not green, and green things that are not leaves.)
    Do
    Add the four Add later cards to the examples: the orange leaf and the red leaf go in Leaf, the green ball and the green mug in Not a leaf. Children can draw more examples on the blank cards.
    Ask
    Now what is the same about every leaf? (The shape: a stem, and lines called veins.)
    Do
    Show what the machine says now, taught again with the new examples. Count again. (6 of 6.)
    Its board in Show to class
  6. 6. Exit check 2 minutes

    Do
    Hand out the exit check. Read each question aloud; each child circles one answer.
    Listen for
    1. Yes, it can be wrong. 2. People taught it.
    Its board in Show to class

Lesson 3 of the four lessons for grades K–⁠2 (ages 5–⁠8)Years 1–⁠3, after Teach the sorting machine. Next: Talking speakers are not people.

The lesson’s cards are the ones on the board, the same every time, so the script can name each one. Each card says its colorcolour in words, so the cards work printed in black and white. Print sends the sheets alone to the printer, not the rest of this page.

Which cards

The lesson’s cards are the ones on the board. A new set keeps the eight examples and changes the new pictures and the cards to add, for running the lesson again; it has a sheet number and its own key.

What to print

The cards: the 8 examples and 4 cards to add later, then 6 new pictures and 6 blank cards for new examples. The exit check prints two to a page, to cut in half.

Paper
Type a sheet’s number to get it back.

Prints 3 pages on US Letter.

Example cards
The machine's examples, and four to add later. Each card says its color. Cut on the dashed lines.
1
greenLeaf
2
redNot a leaf
3
greenLeaf
4
yellowNot a leaf
5
greenLeaf
6
blueNot a leaf
7
greenLeaf
8
brownNot a leaf
GAdd later
orangeLeaf or not a leaf?
HAdd later
greenLeaf or not a leaf?
IAdd later
redLeaf or not a leaf?
JAdd later
greenLeaf or not a leaf?
sheetbrook.comPage 1 of 3
New pictures
New pictures to test the machine, and cards to draw new examples on. Cut on the dashed lines.
A
redLeaf or not a leaf?
B
greenLeaf or not a leaf?
C
yellowLeaf or not a leaf?
D
greenLeaf or not a leaf?
E
blueLeaf or not a leaf?
F
brownLeaf or not a leaf?
Draw a leaf that is not green.
Draw a leaf that is not green.
Draw a leaf that is not green.
Draw something green that is not a leaf.
Draw something green that is not a leaf.
Draw something green that is not a leaf.
sheetbrook.comPage 2 of 3
Exit check
Two to a page: cut along the dashed line. Read each question aloud.
Name
Only green examples
This machine was shown only green leaves.
  1. Can it be wrong?yesno
  2. Who taught it?peopleit taught itself
Circle one answer to each question.
Name
Only green examples
This machine was shown only green leaves.
  1. Can it be wrong?yesno
  2. Who taught it?peopleit taught itself
Circle one answer to each question.
sheetbrook.comPage 3 of 3

What this lesson supports

Supports: CSTA E2-ALG-ML-02, E2-DAT-IM-10; AI4K12 3-C-iii (K–2)

  • CSTA E2-ALG-ML-02: “Examine how data is used to train a machine learning model.”
  • CSTA E2-ALG-ML-02, from its boundary statement: “Students should notice that models can make more mistakes for some kinds of examples than others, especially when the training examples were mostly of one kind”
  • CSTA E2-DAT-IM-10: “Distinguish between data collection approaches, including those that may lead to inaccurate or biased data.”
  • AI4K12 3-C-iii (K–2): “Examine a labeled dataset and identify problems in the data that could lead a computer to make incorrect predictions.”

AI4K12’s grade-band charts are drafts, open for public feedback and dated 2020 to 2022: this lesson supports those draft guidelines, which are not a standard.

Where the idea comes from

AI4K12’s draft explains its objective for kindergarten to grade 2 with this case: if every “healthy” example is green, “what will the computer conclude about green gummy bears?” This lesson keeps the idea, credited here, not copied, with leaves in place of food, so that no food is called healthy or unhealthy. Fixing the machine by adding examples follows AI4K12’s draft for grades 3 to 5: “If the results on new inputs are unsatisfactory, additional training may be required to improve the accuracy.” The pictures, the drawings and the script were made for SheetBrook.

Tried in class

Not yet. Once it has been tried with a class, this page will say what happened. The research behind it found no published study of a lesson on paper like this one with children this young.

Sources

  1. CSTA: 2026 CSTA PK–⁠12 Computer Science Standards, 2026.
  2. CSTA: The chart of the 2026 standards tagged [AI].
  3. AI4K12: Big Idea 3, Learning: progression chart, working draft, version 0.1, November 19, 202019 November 2020.
  4. AI4K12: Grade band progression charts: drafts, open for public feedback.
  5. Mertala and Fagerlund: International Journal of Child-Computer Interaction: 195 Finnish 5th and 6th graders, 2024.
  6. University of Edinburgh: News release on a study of 166 children aged 6 to 11 and smart speakers, March 21, 202421 March 2024.
  7. Bewersdorff, Zhai, Roberts and Nerdel: Computers and Education: Artificial Intelligence: a review of 25 studies of what learners believe about AI, 2023.

Last checked: . The facts on this page come from these sources as they read that day.