Loading…
Advanced detection of foreign objects in fresh-cut vegetables using YOLOv5
The presence of foreign objects in fresh-cut vegetables has become a significant concern for the industry in recent years. Ensuring the safety of consumers and suppliers necessitates comprehensive precautionary measures. This study introduces a novel approach for detecting foreign objects in fresh-c...
Saved in:
Published in: | Food science & technology 2024-11, Vol.212, p.116989, Article 116989 |
---|---|
Main Authors: | , , , , , |
Format: | Article |
Language: | English |
Subjects: | |
Citations: | Items that this one cites |
Online Access: | Get full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Summary: | The presence of foreign objects in fresh-cut vegetables has become a significant concern for the industry in recent years. Ensuring the safety of consumers and suppliers necessitates comprehensive precautionary measures. This study introduces a novel approach for detecting foreign objects in fresh-cut vegetables using YOLOv5. The results indicate that YOLOv5s excels in identifying foreign objects with a high detection accuracy of 98.30%, a rapid inference time of 2.6 ms, and a compact model size of 13.3 MB. The model effectively identified foreign objects such as transparent and colored plastic, paper, wood, stone, insects, glass, and metal. Moreover, YOLOv5s accurately detected foreign objects with color similarities to green onions, which is particularly challenging due to their wide color variation. Hence, the foreign objects dataset was tested and generated 98.63% and 98.67% for cabbage and green onion, respectively. Additionally, YOLOv5s successfully detected small foreign objects (2–3 mm) in two types of fresh-cut vegetables. Despite its excellent performance, the YOLOv5s model struggles to identify foreign objects that overlap with vegetable samples. To address this issue, installing an automatic conveyor unit could facilitate continuous sample movement, while a feeder unit could reduce the possibility of overlap. This research demonstrates the feasibility of implementing the YOLOv5s, as a non-destructive technique for detecting foreign objects in fresh-cut vegetables. The findings contribute to the development of an accurate, fast, and efficient real-time inspection system, with potential applications in the fresh-cut vegetable industry to enhance product quality and safety.
•Introduced a novel approach using YOLOv5 for detecting foreign objects in fresh-cut vegetables.•YOLOv5s achieved a remarkable detection accuracy of 98.3%, with a rapid inference time of 2.6 ms and a compact model size of 13.3 MB.•YOLOv5s effectively detects diverse foreign objects, including transparent and colored plastics, paper, wood, stone, insects, glass, and metal.•YOLOv5 successfully identified challenging foreign objects with color similarities to green onions, achieving detection rates of 98.6% for cabbage and 98.7% for green onions.•Integrating automatic conveyors and feeder units effectively reduces the issue of overlapping objects. |
---|---|
ISSN: | 0023-6438 |
DOI: | 10.1016/j.lwt.2024.116989 |