Why start with sorting
The chatbot is the AI children see, and it is the hardest one to explain. Underneath every AI system that matters to a child’s life (the one that tags faces in photos, the one that recommends videos, the one that decides which post they see) is a simpler idea: a machine shown many labelled examples learns to sort new ones. That idea is teachable at 8. It is also true, and it scales up: the chatbot is a sorter too, choosing the most likely next word from a very large pile.
So the first unit for younger children is sorting, and it needs no electricity.
The game
Materials: forty small pictures cut from magazines or drawn: twenty cats, twenty dogs, clearly labelled on the back. Two boxes. A screen (a large book standing up) and a volunteer to be the machine.
Training. The class shows the machine one picture at a time, saying the label. “Cat.” “Dog.” The machine looks and puts it in the box. Twenty pictures. The machine is allowed to notice anything (ears, size, tail, whiskers) but not to ask questions. This is important: the machine learns only from what it is shown.
Testing. New pictures, no label on the front. The machine sorts. The class checks the back. Most are right. Then the fox.
The fox. The machine puts it in the dog box, and the class laughs, and that is the lesson. Ask: why did it do that? Someone will say: because it never saw a fox. Ask: what would fix it? Someone will say: show it foxes. Ask: and then a wolf? A raccoon? Now they have the idea that a machine knows only the kinds of thing it was shown, and that the world has more kinds than any training pile.
Twenty-five minutes, and they have machine learning, the training set, the test set, and the out-of-distribution error: without any of those words.
The second round: what it was learning
Run it again with a trick. All the training cats are on a white background; all the dogs on grass. Then test with a cat on grass. The machine, if the volunteer is honest about what they noticed, puts it with the dogs.
This is the most important lesson in the unit and it is the one adults miss. The machine did not learn “cat”. It learned “white background”. It sorted perfectly and it had learned the wrong thing, and nobody could tell until a picture broke the pattern. Real systems do exactly this (a famous case learned to spot huskies by the snow behind them) and a 9-year-old who has seen it happen with a book and forty pictures will remember it when they are 19 and reading about a hiring algorithm.
Words to give them, and words to withhold
Give them: examples, pattern, mistake, “it only knows what it was shown”. Withhold: algorithm, neural network, probability. There is time for those. The concept is what matters, and the words come easily later once the concept is there.
The free follow-up if a laptop appears
Google’s Teachable Machine is free, runs in a browser, and does the sorting game for real: children show a webcam twenty pictures of one thing and twenty of another, press train, and then test it with new objects. It sorts. It fails on the fox. It fails on the background. Everything they learned with the boxes happens on screen in ten minutes, and it is one of the few AI tools built for a classroom.
It needs a laptop with a camera and a connection. If the school has one such laptop, one demonstration at the front, after the paper version, is the right order: the paper version is the lesson and the screen is the confirmation. Many schools have neither, and the paper version is complete on its own.
Connecting it to their lives
End with a question: where have you seen a machine sort things? Photos on a phone that find faces. Videos suggested after the one you watched. The spam folder. Each is a sorter trained on examples, each makes mistakes at the edges, and each was trained by somebody on a pile that somebody chose. “Who chose the pile?” is the question that turns a mechanism lesson into a citizenship one, and 10-year-olds ask it unprompted once the game has been played.
The honest limit
Sorting is the right first model and it is not the whole of AI. A child who has only the sorting model will, at 12, meet a chatbot and be puzzled by how a sorter writes a poem. The bridge is the prediction activity, and the progression lesson placed it at 11 to 13. Sorting first, prediction second. Both are true, and the second builds on the first.
Every lesson here is open. Your progress is recorded once you pass the AI at Work exam.
Check your understanding
In the sorting game, a class trains a “machine” (a student behind a screen) with twenty pictures of cats and dogs, then tests it. It sorts a fox as a dog. What is the teaching point, and what would fix the machine?
Pick the one you would defend. Your answer stays private.
Stuck on something?Ask Asha, your AI tutor