This project explores the potential of deep learning in early detection and diagnosis of plant diseases—an essential step for preventing widespread crop damage and ensuring food security. Utilizing the integrated datasets from Plant Village and Plant Doc, the project features advanced object detection and instance segmentation models, including YOLOv8m, YOLOv8l, Faster-RCNN, RetinaNet, YOLOv8m-seg, YOLOv8l-seg, and Mask-RCNN. These models were assessed using precision, recall, and mean Average Precision (mAP), demonstrating deep learning's transformative capability in plant disease detection.
The final dataset consists of 3,234 images across 14 different classes of plant conditions:
- Tomato Septoria
- Corn Leaf Blight
- Squash Powdery Leaf
- Apple Healthy
- Tomato Bacterial Spot
- Tomato Healthy
- Apple Rust Leaf
- Apple Scab Leaf
- Grape Healthy
- Corn Rust Leaf
- Grape Black Rot
- Corn Gray Leaf Spot
- BellPepper Healthy
- BellPepper Leaf Spot
I used Roboflow to annotate the images needed for training the object detection and instance segmentation models.
- YOLO Format: YOLO models require annotations in YOLO format, which is a .txt file for each image specifying bounding boxes and class IDs normalized to image dimensions.
- COCO Format: Mask R-CNN and Faster RCNN are implemented using Detectron2. It requires annotations in COCO format, which includes JSON files detailing the images, annotations, and categories for instance segmentation and object detection.
For object detection:
- Bounding Boxes: Each image was annotated manually to include bounding boxes around the plant disease symptoms.
For instance segmentation: