AI in agriculture: orchards and saffron
Uncle lost part of his crop to scab last year. Now an AI claims it can spot scab before he can. What if it calls a healthy leaf sick?
- Train a scab spotter on real leaf photos
- Test it on leaves it has never seen
- Hunt down its mistakes — and say why
AI in agriculture: orchards and saffron
Uncle lost part of his crop to scab last year. Now an AI claims it can spot scab before he can. What if it calls a healthy leaf sick?
- Train a scab spotter on real leaf photos
- Test it on leaves it has never seen
- Hunt down its mistakes — and say why
Story
Learn it
Apples are one of the biggest parts of Kashmir's economy, so a disease like scab can hurt thousands of families. An AI that spots scab from a leaf photo is doing classification, healthy or scab, learned from many labelled photos. And in saffron fields, sensors collect the data that AI can learn from. But a model is only trustworthy once it has been tested on photos it never saw, and even then the grower checks.
Words to know
growing fruit, vegetables and flowers, like Kashmir's apples and saffron.
spotting a disease, such as scab, from a photo of a leaf.
the labelled photos the model learns from.
photos kept back to check the model, which it has never seen.
how many answers were right out of the total: right ÷ total.
how sure the model says it is, as a percentage. A confident answer can still be wrong.
a device that measures something, such as temperature, humidity (moisture in the air) or soil moisture.
Step by step: building a fair leaf checker
Using walnut leaves, healthy or blotch, as the example:
- Collect labelled photos: 40 healthy, 40 with blotch, checked by an expert.
- Train the model on most of them.
- Test on new photos: 10 it has never seen. It gets 8 right.
- Accuracy = 8 ÷ 10 = 80%.
- Check the mistakes and improve: both wrong photos were taken in shade. Add more shady photos to the training data and train again.
Sensor farming: in a saffron field, sensors record temperature, humidity and soil moisture through the day. AI can learn from that data to warn growers early, before a problem shows. Some projects even grow saffron indoors by copying Pampore's conditions.
Careful: more training photos do not always fix a model. They help only if they include the tricky cases, like leaves in shade, wet leaves or a different disease. And a sensor is not AI. A sensor measures; AI learns from what the sensors measured.
Your missions
leaf-photos/train/healthy/, leaf-photos/train/scab/, leaf-photos/test/ · LibreOffice Calc · scab-score.odsTrain
groups of 37 min- 1
Teachable Machine → Image Project → Standard image model.
- 2
Rename the classes
HealthyandScab. - 3
Upload the
train/healthyphotos into Healthy andtrain/scabinto Scab. - 4
Click Train Model. Keep the tab open.
Test
groups8 min- 5
Predict: how many test leaves will it get right? Then, in Preview, switch Input to File and drag in each
leaf-photos/test/photo.Only you can see this - 6
In
scab-score.ods, one row each: Photo · Model says · Confidence % · Real answer (teacher's sheet) · Right? - 7
Accuracy:
=COUNTIF(E2:E13;"Yes")/COUNTA(E2:E13).
Mistake hunt
groups3 min- 8
Find one photo it got wrong. Look closely. Why was it fooled? Write your idea in the last column.
⚠️ Don't save or upload the model. When you close the tab it's gone — that's fine.
No laptop today?
Human classifier. The teacher shows 10 printed leaf photos. Study 5 labelled training photos, then label the 5 test photos alone. Compare with the key and count the class's accuracy on the board.
Debate it
Your model marks a healthy leaf as scab. The farmer sprays chemicals he did not need. Another time it marks a scab leaf as healthy, and the disease spreads.
Which mistake is worse for the farmer? Why? Should the model be built to avoid one kind more than the other?
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.Telling healthy leaves from scab-spotted leaves is an example of…
- ARegression
- BClustering
- CClassification
- DSorting by size
2.To check a model fairly, you should test it on the same photos you trained it with.
TrueFalse3.A model got 18 out of 20 test photos right. Its accuracy is ______%.
4.Put the steps in order:
- 1Collect labelled photos
- 2Test on new photos
- 3Train the model
- 4Check the mistakes and improve
5.What can sensors in a saffron field measure? (choose all)
- ATemperature
- BSoil moisture
- CThe price of saffron in Delhi
- DHumidity
**An AI can spot disease from a leaf photo, if it is trained on good examples, tested on new ones, and checked by the grower.**
Typing practice
Skill: sentences with this unit's AI vocabulary, Term 2 (7 min)
- On typing.com, open the custom lesson your teacher has made with this unit's words .
- Words to master:
classificationtrainingtestingscabsensorhumidity - Then type:
The model learns from labelled photos of healthy and scab leaves.
- classification
- training
- testing
- scab
- sensor
- humidity
Written and designed by Faizan Ayoub. © 2026 Faizan Ayoub. All rights reserved.