AI-Based Cattle Disease Detection System for Ghanaian Farmers and Traders Final Year Project β University of Ghana, Department of Computer Science (2025/2026)
# π CattleCare AI
**AI-Based Cattle Disease Detection System for Ghanaian Farmers and Traders**
Final Year Project β University of Ghana, Department of Computer Science (2025/2026)
CattleCare AI helps smallholder farmers and cattle traders get an early, AI-assisted read on three common conditions β **Foot-and-Mouth Disease (FMD)**, **Lumpy Skin Disease (LSD)**, and **Healthy** β from a photo, a description of observed symptoms, or both. It is built around a Gemma 3 vision-language model fine-tuned specifically on Ghanaian cattle disease presentations, served through a Streamlit interface.
> β οΈ **Disclaimer:** This is a decision-support tool, not a replacement for veterinary diagnosis. Always consult a qualified veterinarian for confirmation and treatment.
---
## Features
- **Three ways to get a diagnosis:**
- π· Upload a photo of the animal
- π Describe symptoms (checkboxes + free text)
- π Both together, for the most accurate result
- **Input validation before diagnosis** β a lightweight classification layer checks that an uploaded photo actually shows cattle and that a symptom description is real and observable, rather than letting the model guess at chitchat, junk input, or irrelevant images.
- **Transparent source attribution** β the UI shows exactly which inputs (image / symptom description) were actually used for a given diagnosis.
- **Symmetric fallback logic** β a bad photo will not derail a real symptom description, and vice versa; the app automatically falls back to whichever input is actually usable.
- **Model comparison mode** β base model vs. fine-tuned model, side by side, on the same input.
- **Disease reference guide** β a built-in tab covering symptoms, spread, and recommended actions for each condition.
- **Emergency contacts** β direct numbers for the Ghana Veterinary Service and Animal Research Institute surfaced alongside every diagnosis.
---
## How It Works
```
βββββββββββββββββββββββ
Photo + Symptoms β Input Validation β gpt-4o β¦