食品科学2025,Vol.46Issue(22):1-12,12.DOI:10.7506/spkx1002-6630-20250415-117
苹果在线分级的多尺度轻量化改进YOLOv8表面缺陷检测模型
Improved YOLOv8 Model with Multi-scale Lightweight for Surface Defect Detection in Online Apple Grading
摘要
Abstract
To address the problems of limited computational resources and large-scale variations in surface defects encountered in apple grading in orchards,an improved machine vision-based model for apple surface defect recognition was developed using You Only Look Once version 8(YOLOv8),increasing the detection efficiency of apple surface defects and simultaneously ensuring the accuracy of the detection.A machine vision system was built in our laboratory to capture 5 500 images of Fuji apples,showing pedicel and calyx characteristics,six common surface defects(black spots,rot,mechanical damage,sunburn,brown spots,and cracks),and one type of environmental debris,which were annotated on the images.The replicated ghost next(RepGhostNeXt)and efficient quality-aware feature pyramid network(EffQAFPN)algorithm structures were introduced to improve the backbone feature extraction network and feature pyramid of the YOLOv8 model.Subsequently,five models were trained and compared:YOLOv8,YOLOv8n,YOLOv8+EffQAFPN,YOLOv8+RepGhostNeXt,and YOLOv8+EffQAFPN+RepGhostNeXt.The focus was placed on comparing the accuracy and efficiency of the models in apple surface defect detection.Experimental results indicated that the YOLOv8+EffQAFPN+RepGhostNeXt model exhibited the best overall detection performance with an overall recognition accuracy of 94.9%and an average frame rate of 7.81 frames per second(FPS).The model demonstrated efficient apple surface defect detection under limited computational resources,providing technical support for efficient and convenient apple grading in orchards.关键词
机器视觉/苹果表面缺陷/YOLOv8/缺陷检测Key words
machine vision/apple surface defects/You Only Look Once version 8/defect detection分类
计算机与自动化引用本文复制引用
郭志明,肖海迪,王陈,孙婵骏,江水泉,邹小波..苹果在线分级的多尺度轻量化改进YOLOv8表面缺陷检测模型[J].食品科学,2025,46(22):1-12,12.基金项目
"十四五"国家重点研发计划课题(2024YFD2101105) (2024YFD2101105)
国家自然科学基金面上项目(32472431) (32472431)
江苏省重点研发计划重点项目(BE2022363) (BE2022363)