Next Article in Journal
Complexation of Olive Protein with Soluble Dietary Fibers: A Way to Improve the Functional Properties of Proteins and Efficiently Utilize Olives
Previous Article in Journal
Consumer Values, Attitudes, and Behavior towards Plant-Based Alternatives
Previous Article in Special Issue
Non-Destructive Inspection of Physicochemical Indicators of Lettuce at Rosette Stage Based on Visible/Near-Infrared Spectroscopy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

On-Line Detection Method of Salted Egg Yolks with Impurities Based on Improved YOLOv7 Combined with DeepSORT

1
College of Engineering, Huazhong Agricultural University, Wuhan 430070, China
2
Wuhan Vocational College of Software and Engineering, Wuhan Open University, Wuhan 430205, China
3
Institute of Facilities and Equipment in Agriculture, Jiangsu Academy of Agricultural Sciences, Nanjing 210014, China
4
Key Laboratory of Protected Agriculture Engineering in the Middle and Lower Reaches of Yangtze River, Ministry of Agriculture and Rural Affairs, Nanjing 210014, China
*
Author to whom correspondence should be addressed.
Foods 2024, 13(16), 2562; https://doi.org/10.3390/foods13162562
Submission received: 29 July 2024 / Revised: 12 August 2024 / Accepted: 14 August 2024 / Published: 16 August 2024

Abstract

Salted duck egg yolk, a key ingredient in various specialty foods in China, frequently contains broken eggshell fragments embedded in the yolk due to high-speed shell-breaking processes, which pose significant food safety risks. This paper presents an online detection method, YOLOv7-SEY-DeepSORT (salted egg yolk, SEY), designed to integrate an enhanced YOLOv7 with DeepSORT for real-time and accurate identification of salted egg yolks with impurities on production lines. The proposed method utilizes YOLOv7 as the core network, incorporating multiple Coordinate Attention (CA) modules in its Neck section to enhance the extraction of subtle eggshell impurities. To address the impact of imbalanced sample proportions on detection accuracy, the Focal-EIoU loss function is employed, adaptively adjusting bounding box loss values to ensure precise localization of yolks with impurities in images. The backbone network is replaced with the lightweight MobileOne neural network to reduce model parameters and improve real-time detection performance. DeepSORT is used for matching and tracking yolk targets across frames, accommodating rotational variations. Experimental results demonstrate that YOLOv7-SEY-DeepSORT achieves a mean average precision (mAP) of 0.931, reflecting a 0.53% improvement over the original YOLOv7. The method also shows enhanced tracking performance, with Multiple Object Tracking Accuracy (MOTA) and Multiple Object Tracking Precision (MOTP) scores of 87.9% and 73.8%, respectively, representing increases of 17.0% and 9.8% over SORT and 2.9% and 4.7% over Tracktor. Overall, the proposed method balances high detection accuracy with real-time performance, surpassing other mainstream object detection methods in comprehensive performance. Thus, it provides a robust solution for the rapid and accurate detection of defective salted egg yolks and offers a technical foundation and reference for future research on the automated and safe processing of egg products.
Keywords: salted duck egg yolk; online processing; impurities; attention mechanism; object detection; tracking salted duck egg yolk; online processing; impurities; attention mechanism; object detection; tracking

Share and Cite

MDPI and ACS Style

Gong, D.; Zhao, S.; Wang, S.; Li, Y.; Ye, Y.; Huo, L.; Bai, Z. On-Line Detection Method of Salted Egg Yolks with Impurities Based on Improved YOLOv7 Combined with DeepSORT. Foods 2024, 13, 2562. https://doi.org/10.3390/foods13162562

AMA Style

Gong D, Zhao S, Wang S, Li Y, Ye Y, Huo L, Bai Z. On-Line Detection Method of Salted Egg Yolks with Impurities Based on Improved YOLOv7 Combined with DeepSORT. Foods. 2024; 13(16):2562. https://doi.org/10.3390/foods13162562

Chicago/Turabian Style

Gong, Dongjun, Shida Zhao, Shucai Wang, Yuehui Li, Yong Ye, Lianfei Huo, and Zongchun Bai. 2024. "On-Line Detection Method of Salted Egg Yolks with Impurities Based on Improved YOLOv7 Combined with DeepSORT" Foods 13, no. 16: 2562. https://doi.org/10.3390/foods13162562

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop