Development of an Intelligent Inspection System Based on YOLOv7 for Real-Time Detection of Foreign Materials in Fresh-Cut Vegetables
Ensuring food safety in fresh-cut vegetables is essential due to the frequent presence of foreign material (FM) that threatens consumer health and product quality. This study presents a real-time FM detection system developed using the YOLO object detection framework to accurately identify diverse FM types in cabbage and green onions. A custom dataset of 14 FM categories—covering various shapes, sizes, and colors—was used to train six YOLO variants. Among them, YOLOv7x demonstrated the highest overall accuracy, effectively detecting challenging objects such as transparent plastic, small stones, and insects. The system, integrated with a conveyor-based inspection setup and a Python graphical interface, maintained stable and high detection accuracy confirming its robustness for real-time inspection. These results validate the developed system as an alternative intelligent quality-control layer for continuous, automated inspection in fresh-cut vegetable processing lines, and establish a solid foundation for future robotic-based removal systems aimed at fully automated food safety assurance.
Authors
- Hangi Kim (ORCID: https://orcid.org/0000-0002-2985-5446)
- Hary Kurniawan (ORCID: https://orcid.org/0000-0002-8509-7600)
- Byoung–Kwan Cho (ORCID: https://orcid.org/0000-0002-8397-9853)
- Muhammad Akbar Andi Arief (ORCID: https://orcid.org/0009-0003-7457-4859)
- Braja Manggala (ORCID: https://orcid.org/0000-0003-3301-0785)
- Moon S. Kim
- Insuck Baek (ORCID: https://orcid.org/0000-0003-1044-349X)
- Sang-Jun Lee (ORCID: https://orcid.org/0009-0009-1580-7732)
Institutions
- Agricultural Research Service (US)
- United States Department of Agriculture (US)
- Universitas Gadjah Mada (ID)
- University of Mataram (ID)
- Chungnam National University (KR)
Publication Details
- Journal
- Agriculture
- Published
- 2025-11-04
- DOI
- https://doi.org/10.3390/agriculture15212297
- Citations
- 3
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 5.25