Skip to content
Faza.ID

Menu

All projects
  • Project
  • AI/ML
  • Web
  • Solo
  • 2024

Plant disease detection from leaf photos

Classical models versus CNNs on PlantVillage leaves, served through a web app with a low-confidence guard.

A leaf covered in disease spots

How it works

  1. 01Preprocessing and hand-made features for SVM and Random Forest
  2. 02MobileNet and ResNet fine-tuned on leaf images
  3. 03Model served from Google Cloud Functions behind an API
  4. 04Gradio app rejects predictions below 50% confidence

MobileNet macro-F1

On 3,943 test leaves; Random Forest 0.90 and SVM 0.88 on hand-made features.

The problem

Farmers need a quick read on leaf disease from a phone photo, and a wrong confident answer does harm.

My part

Built the full project: training, API, cloud deployment, and the Gradio web app.

What did not work

  • Hand-made features topped out at 0.88-0.90 macro-F1; CNNs reached 0.993.

Limitations

  • Trained on PlantVillage studio-style photos; field photos with clutter are harder.