Android mobile application designed to assist West African farmers in detecting and managing crop pests. The app uses a fine-tuned MobileNet model that runs directly on the device, enabling offline pest identification and localized pest control recommendations for low-connectivity environments.
# MkulimaGuard: On-Device Crop Pest Detection and Management App for West African Farmers.
## π Overview
Crop pests remain one of the biggest challenges facing small-scale farmers in West Africa, causing significant yield losses and threatening food security. Many farmers lack access to reliable pest identification tools or internet connectivity needed for online solutions.
**MkulimaGuard** is an Android mobile app designed to assist farmers in detecting and managing crop pests directly from their smartphones. The app uses an **on-device fine-tuned MobileNet model** for image recognition, providing **localized pest control advice** β even in **offline environments**.
### π§° Technologies Used
- **React Native / Kotlin** for mobile development
- **TensorFlow Lite / MobileNet** for on-device image recognition
- **Local LLM** for generating natural-language pest control advice
- **SQLite / AsyncStorage** for local data management
---
## π Features
- πΈ **Real-time pest detection** using the device camera
- π§ **On-device MobileNet model** (no internet required)
- π **Localized pest information** and control methods
- π¬ **Multilingual support** β English, Hausa, Yoruba, French
- βοΈ **Lightweight design** optimized for low-end Android devices
- π **Low power and data usage** to suit rural connectivity conditions
---
## π§ Model
The MobileNet model was **fine-tuned** on a curated pest image dataset to recognize common crop pests found across West Africa.
### π Dataset
- **Source:** PlantVillage and locally collected pest datasets
- **Classes:** Fall Armyworm, Aphids, Stem Borers, Whiteflies, and others
- **Format:** 224Γ224 pixel RGB images
### π Performance
- Model size: ~14 MB (TensorFlow Lite)
- Accuracy: 92% on validation set
- Latency: < 300ms per inference on mid-range Android devices
### π§© Conversion
The trained TensorFlow model was converted to **TensorFlow Lite (.tflite)** for mobile inference and integrated into the Android app for **offline pest detecti β¦