Affiliation:
1. School of Mechanical Engineering, Jiangnan University, Wuxi 214122, China
2. Jiangsu Key Laboratory of Advanced Food Manufacturing Equipment and Technology, Wuxi 214122, China
Abstract
During the drying and processing of raisins, the presence of foreign matter such as fruit stems, branches, stones, and plastics is a common issue. To address this, we propose an enhanced real-time detection approach leveraging an improved YOLOv8 model. This novel method integrates the multi-head self-attention mechanism (MHSA) from BoTNet into YOLOv8’s backbone. In the model’s neck layer, selected C2f modules have been strategically replaced with RFAConv modules. The model also adopts an EIoU loss function in place of the original CIoU. Our experiments reveal that the refined YOLOv8 boasts a precision of 94.5%, a recall rate of 89.9%, and an F1-score of 0.921, with a mAP reaching 96.2% at the 0.5 IoU threshold and 81.5% across the 0.5–0.95 IoU range. For this model, comprising 13,177,692 parameters, the average time required for detecting each image on a GPU is 7.8 milliseconds. In contrast to several prevalent models of today, our enhanced model excels in mAP0.5 and demonstrates superiority in F1-score, parameter economy, computational efficiency, and speed. This study conclusively validates the capability of our improved YOLOv8 model to execute real-time foreign object detection on raisin production lines with high efficacy.
Funder
National Key R&D Program of China
National Natural Science Foundation of China
National Science Foundation for Young Scientists of China
Reference35 articles.
1. Global food security–Issues, challenges and technological solutions;Uysal;Trends Food Sci. Technol.,2018
2. Christensen, L.P. (2000). Raisin Production Manual, University of California, Division of Agriculture and Natural Resources.
3. Detection and prevention of foreign material in food: A review;Payne;Heliyon,2023
4. Near infrared analysis potential for grading raisin quality and moisture;Huxsoll;J. Food Sci.,1995
5. Basic Study on Grading of Chinese Dried Green Raisin Using Image Information;Satake;Nogyo Shisetsu (J. Soc. Agric. Struct. Jpn.),2003