Maize Lethal Necrosis PWA
Diploma Final Year Project at MUST — an offline Progressive Web Application for detecting Maize Lethal Necrosis (MLN) in the field using two-stage MobileNetV2 deep learning models running directly in the browser. Built collaboratively with @rehemathomas.

- MobileNetV2 Pipeline
- 2-Stage
- Offline Field Inference
- 100%
- Team Contributors
- 2
- Installable PWA
- Live
1. Problem
Smallholder farmers and agricultural extension officers in rural Tanzania often lack reliable mobile data when inspecting maize crops in the field, making cloud-only disease detection tools impractical.
2. My Role
Diploma Final Year Project — Core Application & AI Integration Engineer (built with @rehemathomas): implemented core application logic, page controllers, image preprocessor, TensorFlow.js model loader, and two-stage MobileNetV2 classifier integration while collaborating on UI pages and assets.
3. System Architecture
Running two-stage MobileNetV2 models directly in the browser via TensorFlow.js and caching all assets via a Service Worker allows instant field inference with zero server latency or data charges.
[ Mobile Camera / Leaf Photo ]
|
v Resize & tensor normalization
[ Client-Side Preprocessor ]
|
v Offline browser inference (TensorFlow.js)
[ Stage 1: Maize Check ] ---> [ Stage 2: MLN Classifier ]
|
v
[ Diagnosis + Local History ]4. Key Engineering Trade-Offs
Two-Stage Inference Pipeline
Added a Stage 1 leaf/maize validation model before Stage 2 disease classification so non-crop photos are rejected cleanly instead of returning misleading disease probabilities.
Client-Side TF.js over Cloud Inference API
Accepted a larger initial asset cache in exchange for 100% offline reliability in rural farming areas after first install.
5. Quality & Reliability
- On-Device Inference (Photos Never Leave Device)
- Two-Stage Input Validation Before Classification
- Service Worker Offline Asset Caching
- Clear Separation of Team Contributions in Git History
6. Lessons & Next Steps
- Clear module boundaries between UI stylesheets/pages and core ML inference controllers made team collaboration smooth.
- Next step: add quantized model weights to reduce initial install footprint on low-storage Android devices.