Draw and Classify
Draw shapes on a canvas, train a classifier with your own examples, then test it — watching exactly how the AI extracts features and matches your drawing!
How Shape Classification Works
Draw Examples
The classifier needs labelled training examples — multiple drawings of each shape.
Extract Features
Each drawing is converted into numbers: pixel density, aspect ratio, symmetry, and more.
Nearest Neighbour
For a new drawing, find the most similar training example by comparing feature vectors.
Predict Label
The new drawing gets the same label as its closest training neighbour — that's the prediction!
Step 1 — Draw Training Examples
0 examples📚 Training Examples
• Draw 3+ examples per shape
• Vary size and position
• Draw shapes with one stroke
• More examples = better accuracy!
Step 2 — Your Training Dataset
Step 3 — Test Your Classifier
🧪 Test Results
Step 4 — Feature Extraction Visualised
Shape Classifier Badge!
You built a drawing classifier from scratch using feature extraction!
Optional. Stays on this device only — not sent to WhizzStep.
Key Concepts Mastered
📚 Learning Examples
Labelled examples the AI learns from. More examples → better generalisation to new, unseen inputs.
🔢 Numbers from Images
Converting raw pixels into meaningful numbers: density, symmetry, aspect ratio. These are the AI's "observations".
📐 The Fingerprint
An array of numbers that describes one drawing. Similar shapes have similar feature vectors.
📏 Nearest Neighbour
Find the training example closest in feature space. Classify the new input as its label. Simple but effective!
🔢 The Famous Dataset
60,000 handwritten digit images (0–9) that trained the first CNNs. The "hello world" of computer vision.
🌐 Unseen Examples
How well the model performs on drawings it has never seen. More varied training data = better generalisation.
About this lab
Learning objective: Draw a simple shape or digit and watch a simplified classifier guess what it is.
What this simplifies: The recognition model is small and trained on limited examples; accuracy is intentionally imperfect.
Privacy: No learner input leaves the device.
Teacher prompt: Ask the class why this simulation might mislead someone who takes it too literally.
Reflect: What is one thing this activity showed you that you did not expect?
← Back to all Labs