Crop and Animal Disease Diagnosis by Photo — When a Phone Camera Replaces a Vet Visit
How AI image diagnosis works, what it gets right and wrong, and how to use it responsibly for crop diseases, livestock skin conditions, and pest identificati...
Crop and Animal Disease Diagnosis by Photo — When a Phone Camera Replaces a Vet Visit
This is the IoT use case that requires no hardware at all. The smartphone you already own becomes the sensor. The AI in the cloud becomes the agronomist who looks at your photo and tells you what is wrong.
It is also the use case that needs the most honesty about its limits.
What it does
You see a leaf with yellow streaks. You see a chicken with strange feathers. You see a maize cob with discoloured kernels. You photograph it. The AI:
- Identifies the most likely disease, pest, or deficiency
- Suggests a treatment or course of action
- Tells you whether you should call a vet or agronomist In good conditions, the accuracy is high — 85–95% for common Kenyan crop diseases on maize, beans, tomatoes, kale, and bananas. For livestock skin conditions, eye discharge, and visible parasites, accuracy is similar.
For complex diseases (multiple deficiencies, mixed infections, anything internal) the accuracy drops to 50–70%. The AI is honest about uncertainty — a good system will say "I am not sure, this looks like either X or Y, take a clearer photo or call a vet."
What it gets right
| Crop disease | AI accuracy | Notes |
|---|---|---|
| Maize streak virus | 90%+ | Distinctive pattern |
| Cassava brown streak | 90%+ | Common, well-trained models |
| Tomato late blight | 85%+ | Easy to confuse with early blight in early stages |
| Bean rust | 80–90% | |
| Banana panama wilt | 80%+ | |
| Coffee berry disease | 85%+ | |
| Nutrient deficiencies (N, K) | 60–80% | Often confused with other stresses |
| Livestock condition | AI accuracy | Notes |
|---|---|---|
| Ringworm | 90%+ | Visual pattern is distinctive |
| Mastitis (visible) | 70–85% | Photo of udder or milk; AI cannot palpate |
| Lumpy skin disease | 80%+ | |
| Foot rot, advanced | 75% | Subtle early signs are missed |
| Coccidiosis in chickens | 60–70% | Diarrhoea photo is suggestive but not diagnostic |
| Newcastle disease | 50–70% | Internal — AI is making an educated guess from behaviour photos |
How to take a useful photo
The single biggest factor in diagnostic accuracy is the quality of the photo. A few rules:
- Good light. Natural daylight, no flash. Photograph mid-morning or mid-afternoon.
- Close enough to see detail. Phone cameras start losing detail beyond 30 cm. Get close — fill the frame with the leaf or affected area.
- In focus. Tap the screen on the spot you want sharp. Wait until the focus locks.
- Show context. One close-up of the symptom, one wider photo showing the whole plant or animal. The AI uses both.
- Show a reference for scale when relevant. A coin, a finger, a leaf. Helps the AI judge severity.
- Multiple angles for animals. One photo rarely tells the full story. A blurry, dark, distant photo will get a "I am not sure, please retake" response — which is the system protecting you from acting on a bad guess.
How the system works behind the scenes
You send the photo to your farm brain (or directly to a chat interface on your phone). The brain forwards it to the AI (Claude or another model) along with a structured prompt that asks for diagnosis, treatment, and confidence level.
The AI responds in Swahili or English with:
- The most likely diagnosis and the reasoning
- 1–3 alternative diagnoses to consider
- A treatment recommendation matched to common Kenyan agricultural inputs
- A confidence level (high / medium / low)
- A flag if veterinary or agronomist consultation is recommended This whole process takes 5–15 seconds. Data cost per query is small — typically under KES 1 in mobile data.
The honest limits
This technology has three categories of limit that you must keep in mind.
1. Internal diseases
Anything that cannot be seen from outside (gut parasites, mineral deficiencies with no visible symptom yet, early-stage infections) cannot be diagnosed from a photo. The AI may guess from secondary signs (poor coat condition, weight loss) but accuracy drops sharply.
2. Multiple co-occurring problems
A coffee plant with both leaf rust AND a nutrient deficiency may have its rust diagnosed but the deficiency missed. The AI is often single-answer focused. If something does not respond to the recommended treatment, send a fresh photo and ask "could this be more than one thing?"
3. Treatment recommendations
The AI knows the chemicals registered in Kenya as of its training data. It may not know the newest products, may not know about a recent product recall, and may not know what is in stock at your local agrovet. Always verify the recommended treatment with a local agrovet before buying.
The rule: treat AI diagnosis as a second opinion, not a vet replacement. For minor visible issues, it is usually right and saves you a trip. For anything serious, expensive, or persistent, get a human in the loop.
Useful workflows
Crop scouting routine
- Walk your fields weekly, looking for anything unusual.
- Photograph anything that looks new or different.
- Submit to AI for triage.
- Treat the obvious, escalate the unclear. This catches problems 1–2 weeks before they would have spread visibly across the field.
Vet visit prep
When you suspect something serious in livestock, take 5–10 photos from different angles before calling the vet. Submit them for AI triage to get a head start on understanding. When the vet arrives, you have already narrowed the possibilities and can describe the timeline better.
Pest identification
For unknown insects in your store or field, AI is excellent — usually identifies the species and tells you whether it is a pest or beneficial. Saves the "what is this thing" Google search.
Seedling diagnostics
Yellowing or stunted seedlings in a nursery are often a deficiency or watering issue. Daily photos of the worst-affected seedlings track improvement after intervention.
Cost — essentially zero
This is the cheapest IoT use case:
| Cost | Amount |
|---|---|
| Hardware | KES 0 (your existing phone) |
| AI query | KES 0–1 per query in mobile data |
| Setup | One evening to bookmark the right WhatsApp number or web page |
If you submit 5 queries a day, your annual data cost is under KES 1,000.
Toolkit and steps
What you need:
- A smartphone with a working camera
- A WhatsApp number or web page that accepts photo queries (provided through shira.farm when integrated; some open services exist independently)
Steps:
- Bookmark the diagnostic chat in your phone.
- Practice taking good photos for a week — on healthy plants too, to learn the camera.
- Submit a query whenever you see something unusual.
- Verify any chemical treatment with a local agrovet.
- Photograph the same problem 5–7 days after treatment to track recovery.
Time: Minutes per query, no recurring setup.
What to do next
This is the IoT use case to start with. There is no equipment to buy. No wiring to do. Just a new habit: photograph anything unusual on your farm, submit for diagnosis, act on the result.
If you also keep a record at shira.farm of which animals or plots were affected, what treatment you applied, and the response — over time you build a disease-and-treatment history specific to your farm. That history is valuable on its own: it shows you which diseases recur, which treatments worked here, and where in your fields the problems start.
See it in action
Tap this exact setup on our interactive visual guide — photorealistic farm scenes with clickable explainers showing what every device does, what it costs, and which Shira tier unlocks it.
Open the IoT Showcase