[Paper Review] Apple Defect Detection Using Deep Learning Based Object Detection For Better Post Harvest Handling
This paper proposes a YOLOv3-based deep learning model for real-time apple defect detection to improve post-harvest quality control. By training on a custom dataset of 452 apple images (226 healthy, 226 defective), the model achieves 74.7% mAP@0.3IOU, outperforming SSD in detecting defects due to its multi-scale feature extraction and residual blocks, enabling faster, more accurate sorting for farmers.
The inclusion of Computer Vision and Deep Learning technologies in Agriculture aims to increase the harvest quality, and productivity of farmers. During postharvest, the export market and quality evaluation are affected by assorting of fruits and vegetables. In particular, apples are susceptible to a wide range of defects that can occur during harvesting or/and during the post-harvesting period. This paper aims to help farmers with post-harvest handling by exploring if recent computer vision and deep learning methods such as the YOLOv3 (Redmon & Farhadi (2018)) can help in detecting healthy apples from apples with defects.
Motivation & Objective
- To address labor-intensive and inconsistent manual post-harvest apple sorting by automating defect detection.
- To evaluate the performance of YOLOv3 as an object detection solution for apple defects, treating it as an object detection task rather than image classification.
- To improve productivity and export readiness by enabling accurate, real-time detection of healthy and defective apples.
- To compare YOLOv3 and SSD-based detectors on a custom apple defect dataset using mAP and AP metrics.
Proposed method
- Trained a YOLOv3 model using transfer learning from a COCO-pretrained checkpoint on a custom dataset of 452 apple images (226 healthy, 226 defective).
- Employed data augmentation via image-to-image translation techniques in future work, though not applied in this study.
- Used non-max suppression to filter overlapping bounding box predictions during inference.
- Applied multi-scale prediction via feature maps at three different scales to detect small defects.
- Utilized residual blocks with skip connections to enhance feature learning and improve detection of fine details like small lesions.
- Evaluated performance using IOU thresholding, precision, recall, AP, and mAP across multiple IOU thresholds (0.3, 0.5, 0.7).
Experimental results
Research questions
- RQ1Can YOLOv3 outperform SSD in detecting apple defects when applied as an object detection task?
- RQ2How does the multi-scale architecture of YOLOv3 improve detection of small defects compared to SSD?
- RQ3What is the impact of residual blocks on detecting subtle apple defects in a real-world post-harvest setting?
- RQ4How do IOU thresholds affect precision and recall in apple defect detection using deep learning models?
- RQ5To what extent can transfer learning from COCO improve performance on a small, domain-specific apple defect dataset?
Key findings
- YOLOv3 achieved 74.7% mAP@0.3IOU, significantly outperforming the SSD-based model at 69.97% mAP@0.3IOU.
- On defective apple detection, YOLOv3 achieved 69.09% AP@0.3IOU, compared to 59.51% for SSD, indicating superior defect localization.
- The YOLOv3 model showed higher precision and recall for defective apples due to better handling of small lesions via its multi-scale feature extraction.
- YOLOv3 maintained strong performance on healthy apple detection (80.78% AP@0.3IOU), with only a slight edge over SSD (80.42% AP@0.3IOU).
- The SSD-based model produced more false positives on defective apples, particularly for small lesions, reducing its overall mAP.
- The residual blocks in YOLOv3’s architecture contributed to improved detection of fine-grained defects, as confirmed by visual results in Figure 3.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.