AI Trainer โ Supervised Learning & Data Quality
๐ง Overview
AI Trainer puts you in the role of a data labeler training a neural network from scratch. You draw bounding boxes around objects, type labels, and watch as the AI learns—or fails—based on the quality of your data. This game illustrates the fundamental principle of machine learning: garbage in, garbage out.
๐ฎ How to Play
๐ The Workflow
- Draw a bounding box around the main object in each image
- Type the correct label (e.g., "cat", "dog", "chair")
- Submit — your label trains the neural network
- Watch the AI's confidence evolve in real-time
- Test phase — the AI predicts on unseen images
๐ฏ Goal
Achieve 90%+ test accuracy to win each level. Poor labeling leads to an unreliable AI.
๐ท๏ธ Labeling Mechanics
Correct Label โ
- Boosts AI confidence for that category (+15%)
- Green flash feedback
- AI becomes more reliable
Wrong Label โ
- Boosts confidence for the wrong category (+12%)
- Decreases confidence for the correct category (-8%)
- Adds to the mislabel log (fixable later)
- Red flash feedback
- AI becomes less reliable
๐ง Correction System
๐ Mislabels Are Costly to Fix
- After training, you can review mislabeled images
- Each correction costs double (requires two confirmations)
- Fixing mistakes is harder than getting it right the first time
Why This Matters
This mechanic illustrates a core ML concept:
Fixing bad data is more expensive than producing high-quality data from the start.
๐งฌ Neural Network Visualization
Real-time Feedback
- Input layer (left) โ receives image features
- Hidden layer (middle) โ processes patterns
- Output layer (right) โ shows category predictions
- Node glow โ indicates confidence levels
- Connection thickness โ represents learned weights
Confidence Bars
- Each category shows a percentage
- AI's prediction is the category with highest confidence
- Color coding: Green (high), Yellow (medium), Gray (low)
๐ Levels
| Level | Categories | Training Images | Test Images | Challenge |
|---|---|---|---|---|
| 1 | Cat, Dog, Chair | 8 | 2 | Basic labeling |
| 2 | Cat, Dog, Chair, Bird, Car | 10 | 3 | More categories, blurry images |
| 3 | Cat, Dog, Chair, Bird, Car | 10 | 4 | Adversarial images (occluders, similar distractors, size manipulation) |
๐ฏ Difficulty Mechanics
Level 2: Blurry Images
- Images have a blur filter applied
- Makes labeling harder—requires more careful attention
Level 3: Adversarial Examples
- Similar-looking distractors placed near the main object
- Occluders partially block the object
- Main object size reduced
- Color/hue shifts to confuse pattern recognition
๐ก Strategies
Beginner Tips
- Label carefully — one mistake costs more than one right answer
- Watch the confidence bars — see how your labels affect the AI
- Use the correction system only when necessary
- Pay attention to categories — don't confuse similar objects
Advanced Tactics
- Consistency matters — label similar objects with identical terms
- Clear bounding boxes — include the entire object, not parts
- Fix mislabels if you want to pass Level 3
- Quality over quantity — accurate labels beat many labels
๐ Educational Themes
"Garbage In, Garbage Out"
The game illustrates:
- Data quality is more important than data quantity
- Labeling errors compound—the AI learns wrong patterns
- Bias can be introduced through inconsistent labeling
- Correcting errors is harder than preventing them
Discussion Questions
- Why does data quality matter?
- How does bias enter AI systems?
- What is inter-rater reliability?
- Why is fixing mistakes harder than getting it right?
โจ Features
- Real-time neural network visualization — see learning happen
- Bounding box drawing — interactive labeling
- 3 difficulty levels with increasing complexity
- Mislabel correction system with double-cost mechanic
- Test phase — evaluate AI on unseen data
- Confidence tracking — real-time feedback on AI learning
- Adversarial examples — Level 3 includes tricky cases
- Teacher toolbox — discussion prompts and activity ideas
- Visual feedback — green/red flashes, confidence bars, glow effects
- Responsive design — works on desktop and tablet
๐ฎ Controls
| Action | Input |
|---|---|
| Draw bounding box | Click and drag on image |
| Type label | Text input field |
| Submit label | Click Submit or press Enter |
| Clear box | Click Clear Box or press Esc |
| Fix mislabels | Click Fix Mistakes (after testing) |
| Confirm correction | Submit twice (double-cost) |
๐ Win Conditions
Level 1
- Test accuracy โฅ 90% to advance to Level 2
- Accuracy < 70% โ Game Over (with option to fix mislabels)
Level 2
- Test accuracy โฅ 90% to advance to Level 3
- Accuracy < 70% โ Game Over
Level 3
- Test accuracy โฅ 90% โ Complete the game! ๐
- Accuracy < 70% โ Game Over
๐ Teacher Toolbox
๐ฌ Discussion Questions
- "Garbage in, garbage out" — Why does data quality matter?
- Bias in AI — What happens when training data doesn't represent reality?
- Inter-rater reliability — Why does consistency between labelers matter?
๐ Classroom Activity
Have students label the same set of images independently, then compare their labels. Discuss:
- Where did they disagree?
- Why did disagreements happen?
- How would these disagreements affect an AI trained on their labels?
๐ Core Lesson
Data quality is the foundation of AI. A model trained on inaccurate data will be inaccurate — and fixing bad data is harder than getting it right the first time.
๐ง Technical Details
- Pure HTML/CSS/JavaScript — No dependencies
- Canvas rendering — Neural network visualization
- Real-time confidence tracking
- Responsive design — Works on all screen sizes
- Touch support — Draw boxes on tablets
๐ซ Educational Value
Machine Learning Concepts
- Supervised learning — Labeled training data
- Neural networks — Input โ Hidden โ Output layers
- Confidence scores — AI uncertainty
- Data quality — Garbage in, garbage out
- Bias — From inconsistent labeling
- Adversarial examples — Data that confuses AI
Critical Thinking Skills
- Attention to detail — Careful labeling
- Consistency — Using same terms for same objects
- Consequence awareness — Understanding impact of errors
- System thinking — How data quality affects AI outcomes
| Published | 8 days ago |
| Status | Released |
| Platforms | HTML5 |
| Author | 2d creator |
| Genre | Educational |
| Tags | 2D, Simple, Singleplayer |
| AI Disclosure | AI Assisted, Code, Graphics, Sounds, Text |
Download
Download
AI Trainer โ Supervised Learning & Data Quality.html 65 kB

Leave a comment
Log in with itch.io to leave a comment.