Teach the sorting machine
A 20-minute lesson on paper for grades K–2 (ages 5–8)Years 1–3. The class plays a sorting machine: children study fish cards a keeper has sorted, say the rule, then use it on new fish, one of them unlike any example.
- Grades K–2 (ages 5–8)Years 1–3
- 20 minutes
- On paper: no screens for children
What you need
- The example cards and the new cards, 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 for the exit check.
What you need to know
Read What AI is and isn’t first: this lesson acts out its main idea. A learning program finds a pattern in examples that people labeledlabelled, then uses it on new ones. Here, the class is the program.
Listen for
-
“The machine knew it already.”
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 had the examples the keeper gave it.”
-
“The machine is thinking.”
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 predicts: it makes a guess from the examples it has seen.”
-
“It taught itself.”
Even 11- and 12-year-olds hardly ever mention the examples a machine learns from: in one study, references to data in training AI were “practically nonexistent” (Mertala, Fagerlund and Calderon, 2022).
Say: “Who sorted the examples? The keeper did. People taught it.”
-
“The big ones go in the sun tank.”
Shape, size, tail and direction are a fair first guess. Each new fish looks like an example from the other tank, so only stripes and spots sort them all.
Say: “Is that true of every fish in the tank? Let’s check.”
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. Meet the sorting machine 2 minutes
- Say
- “Today our class is a sorting machine. A sorting machine is a tool that people make. It puts things into groups.”
- Say
- “A fish keeper has two tanks, the sun tank and the moon tank. The keeper sorted some fish. Our machine has to work out where new fish go.”
- Do
- Show the first board, or draw the two tanks on the board: a sun on one, a moon on the other.
-
2. Study the examples 5 minutes
- Do
- Put up the eight example cards in their two tanks, or give each group a set to sort by the sign on each card.
- Ask
- What is the same about all the fish in the sun tank? And in the moon tank?
- Listen for
- Shapes, sizes, tails, which way the fish swim, stripes, spots. For each idea, ask: is that true of every fish in the tank?
-
3. Say the rule 3 minutes
- Ask
- Can you say the rule in one sentence?
- Do
- Write it up: Fish with stripes go in the sun tank. Fish with spots go in the moon tank.
- Say
- “Nobody told us the rule. We found it in the examples. That is what a learning machine does.”
-
4. Test it on new fish 5 minutes
- Do
- Show new fish A to E, one at a time. The class says the tank, using only the rule.
- Ask
- Fish A looks just like fish 8. Why does it go in the other tank?
- Do
- Show the keeper’s answers, and count how many the machine got right.
-
5. A fish nobody showed it 3 minutes
- Do
- Show fish F. It has no stripes and no spots.
- Ask
- Which tank? What does our rule say?
- Say
- “The keeper puts fish F in the moon tank. None of our examples looked like F, so our machine had to guess. A machine like ours can be wrong.”
- Ask
- Who could help the machine get it right? (People, with more examples.)
-
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.
Lesson 2 of the four lessons for grades K–2 (ages 5–8)Years 1–3, after Is it AI?. Next: Only green examples.
Print the cards and the exit check
The same cards every time, so the script and the board can name each one. Print sends the sheets alone to the printer, not the rest of this page.
Prints 3 pages on US Letter.
- Can a sorting machine be wrong?yesno
- Who taught it?peopleit taught itself
- Can a sorting machine be wrong?yesno
- Who taught it?peopleit taught itself
What this lesson supports
Supports: CSTA EK- and E1-ALG-ML-02; AI4K12 3-A-ii (K–2)
- CSTA EK-ALG-ML-02: “Recognize attributes of objects to notice patterns and make decisions.”
- CSTA E1-ALG-ML-02: “Recognize that AI systems are technologies that use patterns in data to make decisions or generate new things.”
- AI4K12 3-A-ii (K–2): “Identify patterns in labeled data and determine the features that predict labels.”
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
Two published activities, credited here, not copied: AI4K12’s draft example for kindergartenYear 1 to grade 2, in which children learn which cartoon fish are “poisonous” or “not poisonous” from labeledlabelled pictures, and the Good-Monkey-Bad-Monkey game in AI Unplugged (Lindner and Seegerer), which splits picture cards into training cards and hidden test cards. The fish, the cards 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
- CSTA: 2026 CSTA PK–12 Computer Science Standards, 2026.
- CSTA: The chart of the 2026 standards tagged [AI].
- AI4K12: Big Idea 3, Learning: progression chart, working draft, version 0.1, November 19, 202019 November 2020.
- AI4K12: Grade band progression charts: drafts, open for public feedback.
- Lindner and Seegerer, FAU Erlangen-Nürnberg: AI Unplugged, English brochure (CC BY-NC 3.0).
- Mertala and Fagerlund: International Journal of Child-Computer Interaction: 195 Finnish 5th and 6th graders, 2024.
- Mertala, Fagerlund and Calderon: Computers and Education: Artificial Intelligence: the same 195 children, 2022.
- University of Edinburgh: News release on a study of 166 children aged 6 to 11 and smart speakers, March 21, 202421 March 2024.
Last checked: . The facts on this page come from these sources as they read that day.