Skip to content
All work

In progress

LeafGuard

Detects crop leaf diseases from a single photo, so plant health problems can be caught before they spread across a field.

  • Python
  • PyTorch
  • torchvision
  • scikit-learn
  • Grad-CAM
Grid of leaf photos labelled by crop and disease

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)

Next project

EdgeVision

Runs live YOLOv8 object detection on an Android phone's screen, streamed to a PC over USB, as a low-latency edge-AI pipeline.

Live YOLOv8 detections on a mirrored phone screen with confidence scores