Applied AI · Computer Vision
AgriDiagnose AI
AI-assisted plant health platform combining a 39-class MobileNetV2 model with a multilingual Flask application.
- Python
- TensorFlow
- MobileNetV2
- Flask
- PostgreSQL
- GitHub Actions

01
Overview
A full-stack machine-learning application for plant-leaf analysis with authentication, prediction history, dashboards, multilingual support and a REST API.
02
Dataset & Model
- Audited images
- 73,563
- Training
- 58,857
- Validation
- 7,362
- Internal test
- 7,344
- Classes
- 39
- Crops
- 14
Model flow
Preprocessing
Resize → float32 → /255.0
Confidence threshold
60%
03
Application Architecture
AI
TensorFlow · Keras · MobileNetV2 · OpenCV
Backend
Flask · Blueprints · SQLAlchemy · REST API
Data
SQLite development · PostgreSQL support
Engineering
pytest · Alembic · GitHub Actions · SHA-256
04
Evaluation
| Evaluation | Accuracy | Macro-F1 |
|---|---|---|
| Validation | 95.48% | 96.01% |
| Internal test | 95.44% | 95.92% |
| External PlantDoc subset | 41.41% | 45.79% |
The model performs strongly on the internal audited dataset, but the external PlantDoc subset reveals substantial domain shift. The external result is presented as evidence of the model’s current real-world limitation rather than hidden or treated as a tuning target.
05
External Domain Shift
Internal test performance is not field accuracy. The PlantDoc subset measures transfer to different image conditions and exposes a substantial generalization gap.
06
Application Features
Authentication, Top-3 predictions, history, dashboard, EN/FR/AR localization and Arabic RTL support connect the model to a usable application workflow.

07
Limitations
- 01Internal evaluation does not represent field accuracy.
- 02Treatment decisions require qualified local agricultural expertise.


08
Documentation
The repository contains the application, model workflow and evaluation documentation used for this case study.
View repository