Fixing what we can
“So we send them more Ambri photos. Problem solved.” “Maybe. Let's find out.”
- Plan what to change in a dataset — and what you can't
- Train lopsided, then balanced
- Test both on the same photos, honestly
Fixing what we can
“So we send them more Ambri photos. Problem solved.” “Maybe. Let's find out.”
- Plan what to change in a dataset — and what you can't
- Train lopsided, then balanced
- Test both on the same photos, honestly
Story
Learn it
Once an audit finds a gap, you can often fix it by changing the dataset itself: CBSE calls this re-curating. Add examples of the thin class, remove wrong or duplicate ones, keep the classes balanced, retrain, and test on the same photos as before. Balancing usually helps, but it is not a cure: some failures come from a bad photo, from groups nobody collected, or from a question the model should never be asked.
Words to know
go back to the dataset and change what is in it: add, remove or correct examples.
about the same number of examples in each class.
the model's own percentage beside an answer. "Ambri 51%" means it is barely choosing; "Ambri 96%" means it is sure.
testing two models on exactly the same photos, in the same order.
saying what improved, by how much, and what is still broken.
Step by step: fixing a walnut model
- Audit: 40 photos of healthy walnut leaves, but only 8 with blotch.
- Plan: add 32 blotch photos; remove 3 blurry ones; write down what we can't fix (no photos from Gurez at all).
- Train the lopsided model first, and test it on 12 held-back photos: 7 right, many answers near 50% confidence.
- Re-curate: now 40 and 40. Retrain.
- Test the same 12, in the same order: 10 right, and higher confidence on the blotch leaves.
- Report honestly: "Balancing changed the score from 7 to 10 out of 12. The two still wrong were photographed at dusk in rain. We have no photos from Gurez, and more of our own photos cannot fix that."
What more data can fix: a thin class, or a light or background the model never saw. What it can't: a photo too blurred for a person to read either, or a decision that should not be automated.
Careful: balanced does not always mean 50/50; it means matching the world the tool serves. And reducing one measured gap is not "fixing the bias": the model can still fail people it has never been shown. Write down what you could not fix.
Your missions
leaf-photos/train-lopsided/ (30 Delicious, 6 Ambri) · leaf-photos/extra-ambri/ (24 more) · leaf-photos/test-12/ · confidence-log.odsPart A: Plan on paper first (5 min, in pairs)
Your mission
- 1
Three columns: What's wrong · What we'll change · What we can't change. At least two rows each — "no photos at all from Gurez" may belong in the third.
Part B: The lopsided model (6 min)
- 2
Classes Delicious and Ambri; upload
train-lopsided/(30 and 6). Train. - 3
Test all 12
test-12/photos. Record true variety · what it said · confidence %. Part C: Re-curate and retrain (8 min)
- 4
Predict: how many more will it get right after balancing? Add the 24
extra-ambri/photos so both classes have 30. Retrain.Only you can see this - 5
Test the same 12, in the same order. Count right answers for each model:
=COUNTIF(D2:D13;"right"). Part D: The honest paragraph (3 min)
- 6
"Balancing changed the score from ___ to ___." · "The photo it still gets wrong is ___, because ___." · "One thing more data couldn't fix is ___."
No laptop today?
Your teacher runs one model at the front while everyone records the same table. Parts A and D need no device — and they're what's assessed.
Debate it
Two months later, the leaf app works well on Delicious and Ambri — because the class sent photos. Nobody has ever sent a photo of an old Maharaji tree, and the app confidently calls every Maharaji leaf "Delicious".
Should the app say "I don't know"? Who decides when a model is allowed to admit that it cannot tell?
Check yourself · practice, not a test
In the app, students answer these one at a time and each answer is checked straight away. It's practice, never a mark — anything they miss comes back later for another go.
1.CBSE's word for going back and changing what is in the dataset is to ______ it.
2.The model answers "Ambri" with a confidence score of 51%. The best reading of that is:
- AIt is certain, because it chose Ambri
- BIt is barely choosing between two answers, so treat it as unreliable
- CIt is 51% accurate overall
- DThe photo is 51% Ambri and 49% Delicious
3.To compare two models fairly, you must test them on the same photos.
TrueFalse4.Which problems can adding more good data realistically fix? (choose all that apply)
- AA class with only 6 examples while another has 30
- BA model that has never seen a leaf photographed in shade
- CA photo so blurred that a person cannot identify it either
- DA variety grown in one district that the dataset ignores
5.Put the fairness fix in order:
- 1Plan what to add, remove or correct
- 2Audit the dataset and find the gap
- 3Test on the same photos and compare the confidence scores
- 4Re-curate the dataset
- 5Retrain the model
Balancing the data fixes a thin class, not a blurred photo. Say which one you fixed.
Typing practice
Skill: editing without the mouse (Term 2 focus, 6 min)
- On typing.com, do one paragraph or editing-practice lesson.
- Then practise in Writer: type a sentence, and use Ctrl+Z, Ctrl+Y, Home, End and Shift+arrow to fix it — no mouse. You will need these when you write your project report.
Written and designed by Faizan Ayoub. © 2026 Faizan Ayoub. All rights reserved.