PH PROMPTHACKER.AI

Build a Teachable Machine Image Classifier With Your Kid

Kids create a hands-on AI project: Build a Teachable Machine Image Classifier With Your Kid. A parent or educator helps them build, test, and explain what the AI tool gets right and wrong.

December 6, 2023 4 min read
Quick Scan

What matters today

Kids create a hands-on AI project: Build a Teachable Machine Image Classifier With Your Kid. A parent or educator helps them build, test, and explain what the AI tool gets right and wrong.

Format KIDS GUIDE
Audience Executives using AI at work
Time 4 min read

Key points

  • What You Will Learn
  • Choosing Your Project: The Healthy Snack Classifier
  • Step-by-Step Guide to Building the Model
  • Troubleshooting and Edge Cases
  • Parent & Educator Sidebar

Introduce your child to the fundamentals of machine learning by building a custom, web-based image recognition model in thirty minutes.

Article roadmap

What you will learn

  1. How to navigate Google's free, no-code Teachable Machine platform.

  2. The process of gathering and labeling training data using a standard computer webcam.

  3. How to train, test, and troubleshoot a custom machine learning model.

  4. Key concepts of supervised learning to discuss with your child during the project.

Children today are surrounded by artificial intelligence, from video recommendation algorithms to voice assistants. However, most children only interact with AI as passive consumers. To prepare them for a technology-driven future, they need to understand how these systems actually work. The best way to demystify AI is to have them build a functional model themselves. By using a free, web-based tool, you can help your child train a computer to recognize real-world objects in real time.

This hands-on project is designed for children aged 8 to 16 and requires no coding experience, no paid subscriptions, and no specialized hardware. All you need is a computer with a webcam and an internet connection. Together, you will build an image classifier that can distinguish between different objects, such as a healthy snack versus a sweet treat, or different hand gestures. This exercise provides a clear, tangible demonstration of how computers learn from data.

Choosing Your Project: The Healthy Snack Classifier

Before opening the software, decide on a fun classification task. A highly engaging and visual project is the "Healthy Snack versus Sweet Treat" classifier. Gather two distinct items from your kitchen: an apple or banana to represent the healthy snack, and a cookie or candy bar to represent the sweet treat. This simple setup makes it easy for the webcam to capture clear, contrasting visual data.

Step-by-Step Guide to Building the Model

Follow these steps with your child to build, train, and test your custom image classifier:

  • Access the Platform: Open a web browser on your computer and navigate directly to the Google Teachable Machine website. Click on the "Get Started" button, then select "Image Project" followed by "Standard Image Model."
  • Create and Label Your Classes: You will see two default boxes labeled "Class 1" and "Class 2." Have your child rename "Class 1" to "Healthy Snack" and "Class 2" to "Sweet Treat." These labels represent the categories the computer will try to identify.
  • Gather Training Data: Click the "Webcam" button under the "Healthy Snack" class. Hold the apple or banana in front of the camera. Have your child click and hold the "Hold to Record" button. Move the fruit around slightly, tilting it and bringing it closer or further away to capture about 100 to 150 different image samples. Repeat this exact process for the "Sweet Treat" class using the cookie or candy bar.
  • Train the Model: Click the "Train Model" button in the middle column. Instruct your child to leave the browser tab open and untouched while the computer processes the images. This step takes about ten to thirty seconds as the algorithm analyzes the visual patterns in the training data.
  • Test and Iterate: Once training is complete, the "Preview" column on the right will activate your webcam. Hold up the apple. The progress bar for "Healthy Snack" should jump to nearly 100 percent. Now, hold up the cookie and watch the "Sweet Treat" bar rise.

Troubleshooting and Edge Cases

If the model gets confused, this is a perfect learning opportunity. Try holding up a completely different object, like a pen, or holding the snack in a way that covers it with your hand. When the model makes a mistake, explain to your child that the computer only knows what we have taught it. To fix the errors, you can record more diverse images (for example, holding the objects with different hands or in different lighting) and retrain the model.

Parent & Educator Sidebar

Core AI Concept: Supervised Learning This project demonstrates supervised learning, a type of machine learning where the computer learns from labeled training data. The computer does not actually know what an "apple" or a "cookie" is. Instead, it looks for patterns of pixels, colors, and shapes in the training images and associates those patterns with the labels we provided.

Conversation Starters for Your Kid:

  • "How do you think the computer tells the difference between the apple and the cookie? Is it looking at the color, the shape, or something else?"
  • "What would happen if we tried to show the computer an orange? Which category do you think it would guess, and why?"
  • "How do you think self driving cars use this kind of technology when they are driving down a busy street?"

Action Steps Summary

  • Gather Materials: Find a computer with a working webcam and select two distinct household items to classify.
  • Launch the Tool: Go to the Google Teachable Machine website and start a standard image project.
  • Record and Train: Capture 100 to 150 webcam images for each item, then click "Train Model."
  • Discuss and Iterate: Test the model with your child, discuss the core concepts in the sidebar, and try to trick the model to see how it responds.

Want more practical AI workflows designed specifically for busy business leaders?

Bottom line

The point of Build a Teachable Machine Image Classifier With Your Kid is not a perfect final project. It is helping kids see how examples, labels, and feedback shape an AI system, then asking better questions about the tools around them.

About the author

Pierre Bradshaw Founder, PromptHacker.ai

Pierre has spent 25+ years building practical learning and growth systems, with machine-learning work dating back to 2012. PromptHacker kids projects focus on real creation, safety, and AI literacy.

Email us
Free weekly briefing

Three deep dives. Four useful moves. One email worth opening.

PromptHacker turns the AI firehose into practical next steps for work, health, family, and everything time keeps trying to steal.