All projectsNEXT PROJECTUrban flood risk for Accra
PROJECT CARD · AGRICULTURE · MACHINE LEARNING · DEPLOYMENT
OnionGuard
AI-powered onion disease detection
0.944macro F1
In one line
A smartphone-based classifier that detects onion diseases, built by a University of Ghana Nkabom Honours team where Elvis was ML Lead (Nov 2025 – May 2026).
The problem
Crop disease detection has to work on a class-imbalanced dataset, on a phone, in the field. A model that says “healthy” every time can score high accuracy and catch no disease at all.
Tools and skills
PythonTensorFlow / TFLiteClass weightingBayesian LR schedulingFlutterFastAPIMongoDB Atlas
Key takeaways
- 6-class image dataset of 3,044 images, trained with a 3-stage progressive fine-tuning schedule.
- Macro F1 of 0.944 alongside 93.75% overall accuracy, reported together to avoid the accuracy-only trap. Establishes the first public ML benchmark on the TOM2024 dataset.
- Model quantized to Float16 TFLite (5.72 MB) for verified on-device inference.
- Deployed as a full production system with a human-in-the-loop correction pipeline for continuous retraining.