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.

February 1, 2023 5 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 5 min read

Key points

  • What You'll Learn
  • Demystifying the Black Box
  • Setting Up Your AI Lab
  • Gathering Training Data
  • Training and Testing the Model

Article roadmap

What you will learn

  1. How to access and navigate Google's free Teachable Machine platform.

  2. Step-by-step instructions to train a custom image classifier using a webcam.

  3. How to troubleshoot and improve your model through iterative testing.

  4. Key concepts to discuss with your child to solidify their understanding of machine learning.

As an Executive, you understand that artificial intelligence is reshaping the global economy. For the next generation, understanding AI is not just an academic advantage, it is a foundational literacy. However, reading about algorithms or watching videos cannot replace the experience of building a working model. This guide shows you how to help your child, aged 8 to 16, build their first machine learning model in less than twenty minutes. Using a free tool developed by Google, your child will train an image classifier that can recognize different objects, hand gestures, or facial expressions through a standard computer webcam. This hands-on project demystifies how computers learn, moving your child from a passive consumer of technology to an active creator who understands the mechanics behind the screen.

Demystifying the Black Box

To most children, AI feels like magic. They interact with recommendation algorithms, voice assistants, and social media filters without understanding how they work. This lack of understanding can lead to either overestimating AI's intelligence or fearing it. By building a simple image classifier, your child will see that AI is actually a system of pattern recognition. They will learn that a computer does not 'know' what an object is in the human sense. Instead, it analyzes pixels, colors, and shapes to make a statistical guess based on the examples it has been shown. This realization is incredibly empowering and builds critical thinking skills that will serve them throughout their education.

Setting Up Your AI Lab

To complete this project, you do not need coding experience, paid subscriptions, or specialized hardware. You only need a computer with a webcam and an internet connection. Begin by opening your web browser and navigating to the official Google Teachable Machine website at https://teachablemachine.withgoogle.com/ . Once the page loads, click the 'Get Started' button. You will be presented with three project options: Image Project, Audio Project, and Pose Project. For this exercise, select 'Image Project' and then choose 'Standard Image Model'. This opens the workspace where your child will gather data, train the model, and test the results.

Gathering Training Data

The first step in machine learning is gathering data. Your child will train the computer to distinguish between two hand gestures, like a peace sign and a thumbs up.

  • Label the Classes: In the workspace, you will see two default boxes labeled 'Class 1' and 'Class 2'. Have your child rename these. For example, rename Class 1 to 'Thumbs Up' and Class 2 to 'Peace Sign'.
  • Record the Samples: Click the 'Webcam' button under the first class. Have your child hold up a thumbs up in front of the camera. Click and hold the 'Record' button to capture about 100 to 150 images. Encourage them to tilt their hand, move it closer and further from the camera, and shift their position slightly.
  • Record the Second Class: Repeat this process for the second class, capturing 100 to 150 images of the peace sign.

Explain to your child that they are acting as the teacher, providing the computer with the examples it needs to learn.

Training and Testing the Model

Once the data is recorded, click the 'Train Model' button. This process takes under thirty seconds. Warn your child not to close the browser tab while training. During this phase, the computer analyzes the images, looking for patterns that distinguish the thumbs up from the peace sign. It identifies edges, curves, and color distributions.

Once training is complete, the 'Preview' panel on the right will activate, showing a live feed from the webcam. Have your child test the model by making a thumbs up or a peace sign. They will see real-time percentage bars indicating how confident the model is in its prediction. If they make a thumbs up, the bar for 'Thumbs Up' should shoot up to nearly 100 percent.

Troubleshooting and Iterating

The most valuable learning occurs when the model makes a mistake. Have your child try to trick the model. What happens if they make a thumbs up but use their left hand instead of their right? What happens if they stand far back in the room?

If the model gets confused, explain that this is a data problem, not a computer error. To fix it, your child must add more diverse training data. They can record more images using their left hand or from different distances, then click 'Train Model' again. This iterative process of testing, identifying failures, and refining data is exactly how professional AI engineers build real-world applications.

Parent and Educator Sidebar

Core AI Concept: Supervised Learning Supervised learning is a type of machine learning where the computer is trained using labeled data. In this project, the labels were 'Thumbs Up' and 'Peace Sign', and the data was the webcam images. The computer learned to associate specific visual patterns with those labels.

Conversation Starters:

  • How do you think a self-driving car uses this technology to recognize stop signs and traffic lights?
  • Why is it important to show the computer many different examples of the same object from different angles and in different lighting?
  • What might happen if we only trained the computer with pictures of red apples, and then showed it a green apple? How would we fix that?

Action Steps Summary

  • Open your browser and go to https://teachablemachine.withgoogle.com/ to start a new Standard Image Project.
  • Define two distinct classes, such as 'Thumbs Up' and 'Peace Sign', and record 100 to 150 webcam images for each.
  • Click 'Train Model' and observe how the computer processes the visual data.
  • Test the model in the preview panel, try to trick it, and add more diverse images to improve its accuracy.

Encourage your child to explore further by adding a third class or trying the audio classifier next.

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.