Chen Junsheng, Fu Haoxuan, Lin Chuhan, Liu Xian, Wang Lijin, Lin Yaohua
Fujian Agriculture and Forestry University, Fuzhou, China.
Key Laboratory of Smart Agriculture and Forestry (Fujian Agriculture and Forestry University), Fujian Province University, Fuzhou, China.
Front Plant Sci. 2025 Feb 17;16:1483824. doi: 10.3389/fpls.2025.1483824. eCollection 2025.
Pears are one of the most widely consumed fruits, and their quality directly impacts consumer satisfaction. Surface defects, such as black spots and minor blemishes, are crucial indicators of pear quality, but it is still challenging to detect them due to the similarity in visual features. This study presents PearSurfaceDefects, a self-constructed dataset, containing 13,915 images across six categories, with 66,189 bounding box annotations. These images were captured using a custom-built image acquisition platform. A comprehensive novel benchmark of 27 state-of-the-art YOLO object detectors of seven versions Scaled-YOLOv4, YOLOR, YOLOv5, YOLOv6, YOLOv7, YOLOv8, and YOLOv9,has been established on the dataset. To further ensure the comprehensiveness of the evaluation, three advanced non YOLO object detection models, T-DETR, RT-DERTV2, and D-FINE, were also included. Through experiments, it was found that the detection accuracy of YOLOv4-P7 at mAP@0.5 reached 73.20%, and YOLOv5n and YOLOv6n also show great potential for real-time pear surface defect detection, and data augmentation can further improve the accuracy of pear surface defect detection. The pear surface defect detection dataset and software program code for model benchmarking in this study are both public, which will not only promote future research on pear surface defect detection and grading, but also provide valuable resources and reference for other fruit big data and similar research.
梨是消费最为广泛的水果之一,其品质直接影响消费者满意度。诸如黑斑和微小瑕疵等表面缺陷是梨品质的关键指标,但由于视觉特征相似,检测这些缺陷仍具有挑战性。本研究展示了PearSurfaceDefects,这是一个自建数据集,包含六类共13915张图像,带有66189个边界框标注。这些图像是使用定制的图像采集平台拍摄的。在该数据集上建立了一个全面的新型基准,涵盖七个版本的27个先进的YOLO目标检测器,即Scaled-YOLOv4、YOLOR、YOLOv5、YOLOv6、YOLOv7、YOLOv8和YOLOv9。为进一步确保评估的全面性,还纳入了三个先进的非YOLO目标检测模型,即T-DETR、RT-DERTV2和D-FINE。通过实验发现,YOLOv4-P7在mAP@0.5时的检测准确率达到73.20%,YOLOv5n和YOLOv6n在实时梨表面缺陷检测方面也显示出巨大潜力,并且数据增强可以进一步提高梨表面缺陷检测的准确率。本研究中用于模型基准测试的梨表面缺陷检测数据集和软件程序代码均为公开的,这不仅将推动未来梨表面缺陷检测与分级的研究,还将为其他水果大数据及类似研究提供有价值的资源和参考。