Problem
Leaf diseases spread quickly through a field. Catching them early from a simple phone photo could help farmers act before the damage spreads.
What I built
An image classifier trained on the PlantVillage dataset that labels leaves as healthy or diseased, with the disease type.
- A CNN trained from scratch as a baseline, compared against transfer learning with ResNet18 / EfficientNetB0.
- Grad-CAM explanations showing which part of the leaf drives each prediction.
- CI runs lint and tests on every push via GitHub Actions.
Architecture
PlantVillage images → data pipeline with class-imbalance checks → baseline CNN and transfer-learning models (ResNet18 / EfficientNetB0) → Grad-CAM heatmaps for explanation. Training runs on Kaggle GPU notebooks, and results are pulled back into the repo.
Status
In progress. The repo scaffolding, data pipeline, baseline model code and exploratory data analysis of PlantVillage are done; transfer learning, Grad-CAM and a small upload-a-photo demo are next.
Tech stack
- Deep learning: PyTorch, torchvision
- Evaluation: scikit-learn, matplotlib
- Engineering: pytest, GitHub Actions CI (lint + tests on every push)




