Hour of AI: test an AI that finishes your doodle
Lesson: https://mtoons.lp-data.cloud/hour-of-ai
Looking for an Hour of AI activity, or an Hour of Code animation lesson? In this 45–60 minute lesson, pupils start a doodle, watch SketchRNN guess the next strokes, then test how its guesses change. No coding, account or email is needed. Use it during Computer Science Education Week or any time you teach about AI.
For the teacher
Learning goal
Pupils can describe a model as something that learned patterns from examples, explain a next-stroke guess, and use repeated trials as evidence of variation and limitations. They distinguish choosing a category from the AI recognising an animal.
Upper primary and lower secondary; teacher adapted. Suggested ages 8–14 with teacher support; adapt to your class.
What you need
- A recent browser on a computer or Chromebook, internet access to load the studio, libraries and model, and a mouse or trackpad. Test the school network and one guided cat before class.
- On tablets, use a finger or stylus and the bottom toolbar buttons F (draw), D (sketch), Z (AI finish) and ↶ (undo). A keyboard is useful for the optional animation extension; number-key replay needs one. Choose ping-pong to keep an animation playing without replay keys.
- One device per pupil or pair, and a printed worksheet or paper for predictions. No installation, sound, names or email addresses are required.
- For a no-device warm-up, partners take turns finishing each other’s paper doodles. The AI experiment itself needs an online browser; this is not a fully unplugged or guaranteed offline lesson.
Timing: 45 minutes, or a full hour with the extension
- 5 min Warm-up: a partner guesses the next line of a paper doodle. Can more than one ending make sense?
- 10 min Demonstrate the guided cat, then let pairs make the first preview.
- 15 min Keep the start fixed; predict and record three previews. Try the misleading start.
- 10 min Choose another animal and keep a finished drawing.
- 5 min Discuss evidence and complete the worksheet (45-minute stopping point).
- 15 min Optional: animate or share, reflect and award the certificate (60 minutes total).
How this AI works, for teachers
SketchRNN learned patterns in human doodles from Google’s Quick, Draw! dataset. For each step it uses the strokes so far to estimate possible next pen movements, including when to lift or stop the pen. It samples a possible movement and repeats. Random choices allow different endings from the same start; they do not guarantee every ending is different.
The pupil chooses a category such as cat or owl. This tool does not identify the animal or understand a pupil’s intention. A misleading outline can expose the limits of the selected model. Pupils are testing an already trained model, not training a new one with their drawings.
The model files are served by mtoons from /models/sketchrnn/. The AI computation runs in the pupil’s browser; the AI finish does not upload the drawing. No account, name or email is needed. The browser still makes network requests to load the site, libraries and models, and the guide sends anonymous daily step counters. Site visits may be counted. “No drawing upload” does not mean “no network traffic”.
Sources: Google Magenta’s SketchRNN explanation and the Quick, Draw! dataset.
Pupil instructions: make a next-stroke guess
- Open the guided cat. Use Start the activity. It opens in a new tab. In a fresh guest browser the guide starts in draw mode with the sketch tool ready. If it finds existing work, read its choice before continuing on top of it. If previously dismissed, use the guided AI drawing pill to reopen it.
- Draw the start. Copy the guide’s picture in one held stroke: up one side of a head, two pointy ears, down the other side. Leave room below it. Let go; the studio closes and fills the shape. A mistake? Use ↶ undo, then redraw.
- Ask for a guess. With the stroke selected, tap Z in the bottom toolbar. In “AI finish as…” tap cat. Wait for the grey preview to finish. Predict what will appear before you tap. Do not keep it yet: this is trial 1.



Experiment: test the AI
- Same start, three guesses. Record trial 1. In the guide tap Try another for trial 2, then again for trial 3, waiting each time for the preview to stop. Do not redraw or keep between trials: only the AI preview changes. Record similarities as well as differences. Results can look alike; a different result is possible, not promised. If it adds nothing, record that too. After trial 3, tap Keep this cat (or Try another first if there is nothing to keep).
- A start that “lies”. Tap Keep drawing to close the guide. Use F for draw mode if needed and D for sketch. In empty canvas space draw one long fish-like outline with two pointed cat ears on its top, all in one stroke. With this new stroke selected, tap Z and choose cat again. Write your prediction first. Record whether the result looks cat-like, fish-like, mixed or unclear. This tests a conflicting input, not animal recognition: you still chose the cat model. Tap cat again for another preview; Enter keeps it, Esc drops it (a second Esc closes the panel).
- Choose another animal. Open one of the animal guides below. It may ask to continue on top of the drawing already saved in this browser. Follow its start-shape picture, open Z, choose that animal’s chip, and keep a preview. Compare it with your cat trials.
Optional extension
- Animate: follow the linked two-pose animation lesson with W “animate A → B”. Allow extra time: the full animation lesson takes 20–30 minutes. Try a simple shape first.
- Share only if your teacher agrees: after keeping a drawing, use Share a link in the guide or share in the top bar. Read the explanation, then Publish to upload a public copy for 30 days without an account. Avoid names and personal details in the artwork. Stop sharing works from the browser that published; downloaded copies cannot be recalled.
Follow the two-pose animation lesson.
Discussion questions
- Where did the AI learn doodles? How might the examples people drew affect what it can finish?
- What stayed the same across three trials? What changed? Why can the same start have more than one ending?
- Did the misleading start “fool” the AI? What can you conclude when you chose the cat category yourself?
- Is the finished drawing yours, the AI’s, or both? Explain your view; this is a discussion about creative contribution, not a legal ownership ruling.
- What did it get wrong? What extra trial would help you test your explanation?
Keeping your drawing
- Guest drawings stay in this browser and profile on this device. Clearing site data or closing a private window can remove them; shared school computers may clear them at logout.
- Use picture in the top bar to download a PNG without an account or drawing upload. Publishing a guest share link is optional and uploads a public copy; keep classroom results local unless sharing is approved.
Frequently asked questions
Do pupils need accounts?
No. The lesson, guided drawing, worksheet, picture download and guest share links work without an account. Pupils do not need to enter a name or email. Names on the printed certificate are handwritten and never collected by this page.
Does it work on tablets and Chromebooks?
Use a recent browser and test school network access first. Chromebooks can use their keyboard and trackpad. Tablets have F, D, Z and undo buttons in the bottom toolbar and accept finger or stylus drawing. The optional animation lesson uses number keys to replay; without a keyboard choose ping-pong to keep it playing.
Is any data sent?
AI finish runs locally and does not upload the drawing. The browser downloads the site, libraries and model; the guide sends anonymous step counters and site visits may be counted. Optional Publish explicitly uploads a public drawing copy for a guest share link. This is not a claim of school privacy certification: check your school’s rules.
What ages is this lesson for?
Suggested planning range: upper primary and lower secondary (roughly ages 8–14), with teacher adaptation and support. This is not a tested age rating. Younger pupils may dictate observations to a partner; older pupils can discuss sampling and training-data limits. Teachers should check suitability and school policy before use.
Student worksheet: test a next-stroke guess
https://mtoons.lp-data.cloud/hour-of-ai
Keep this sheet on paper. No name needs to be entered online.
- Open https://mtoons.lp-data.cloud/studio?guide=ai-cat&utm_source=hour-of-ai&utm_medium=lesson. Draw the cat start. Tap Z, then cat.
- Predict before each preview. Record it, then tap Try another twice, keeping the start unchanged.
- Keep one cat. Tap Keep drawing, then draw a fish outline with cat ears. Tap Z, then cat. Predict and observe.
| Start shape / trial | What I predicted | What the AI drew |
|---|---|---|
| Cat start — try 1 | ||
| Same cat start — try 2 | ||
| Same cat start — try 3 | ||
| Fish outline + cat ears, cat model |
What stayed the same? What changed?
One mistake the AI made, and a new test I would try:
Finish this sentence: the AI learned patterns from…
mtoons · Hour of AI
I trained my eye on AI
This certificate celebrates
Name (write by hand):
for predicting, testing three next-stroke guesses, spotting differences and asking what an AI gets wrong.
I tested an already trained AI. I did not train a new model.
Date:
https://mtoons.lp-data.cloud/hour-of-ai · Free · No login · In your browser