Equipment Needed
- Windows PC with Chrome or Edge browser
- Microsoft Paint
- A folder on the desktop called TM_Lesson1
Key Vocabulary
Starter Activity (5 minutes)
Think about it: How do you know the difference between a circle and a triangle? Write down 2 differences below.
Discussion points: Link to how computers need to "learn" these differences from examples rather than being told rules. Ask: "Could you write exact rules that always work?" — this leads to why ML is useful.
Main Tasks
Part A: Create Your Training Images
-
Create a folder on your desktop called
TM_Lesson1. Inside it, create two folders:CirclesandTriangles. - Open Microsoft Paint from the Start menu.
- Draw a circle using the shape tool. Use a white background and black outline. Make the circle fill most of the canvas.
-
Save the image as
circle_01.pngin yourCirclesfolder. Use File > Save As > PNG. - Draw at least 10 different circles. Make each one slightly different — change the size, thickness, or position. Save each one with a different number (circle_02, circle_03, etc.).
-
Now draw at least 10 triangles in the same way. Save them as
triangle_01.png,triangle_02.png, etc. in yourTrianglesfolder.
Tip: Circulate and check students are varying their drawings. Common issue: students draw identical shapes — remind them variation helps the model learn. Aim for 10–15 per class minimum. Faster students can draw 20+.
Part B: Build Your Model on Teachable Machine
- Open your browser and go to teachablemachine.withgoogle.com. Click "Get Started".
- Click "Image Project", then choose "Standard image model".
- You will see two classes: Class 1 and Class 2. Rename Class 1 to Circle and Class 2 to Triangle.
-
Under Circle, click "Upload" and then "Choose images from your files". Navigate to your
Circlesfolder and select all your circle images. - Do the same for Triangle — upload all your triangle images.
- Click the big "Train Model" button. Wait for training to finish (do not switch tabs!).
- Once trained, the Preview panel will appear on the right. Click "Choose images from your files" in the preview and test with one of your images. Does the model get it right?
Part C: Record Your Results
Test your model with 5 images (mix of circles and triangles). Record the results below:
| Test Image | Actual Shape | Model's Prediction | Confidence (%) | Correct? (Yes/No) |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Common Mistakes & Quick Fixes
- Model won't train: Make sure you uploaded images to both classes and you have at least 8 images per class.
- All predictions are wrong: Check you didn't mix up your folders (circles in the circle class, triangles in triangle).
- Low confidence scores: Try adding more training images with more variety.
- Training gets stuck: Don't switch tabs while training. If it freezes, refresh the page and re-upload.
Challenge / Stretch Task
Draw 5 "tricky" images — shapes that are hard to classify (e.g. a very rough circle, a rounded triangle, or a shape that's half-way between). Test them with your model. What happens? Write your findings below.
Exit Ticket
Expected answers:
- Machine learning is when a computer learns from examples/data instead of being given rules.
- Circle and Triangle.
- So the model can learn what different circles/triangles look like — more variety = better at recognising new ones.