{"id":297,"date":"2025-04-27T09:51:33","date_gmt":"2025-04-27T13:51:33","guid":{"rendered":"https:\/\/site.caes.uga.edu\/precisionpoultry\/?p=297"},"modified":"2025-04-27T09:51:34","modified_gmt":"2025-04-27T13:51:34","slug":"deep-learning-systems-for-automatic-egg-grading","status":"publish","type":"post","link":"https:\/\/site.caes.uga.edu\/precisionpoultry\/2025\/04\/deep-learning-systems-for-automatic-egg-grading\/","title":{"rendered":"Deep Learning Systems for Automatic Egg Grading"},"content":{"rendered":"\n<div data-wp-interactive=\"core\/file\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!state.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/PDF.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of PDF.\"><\/object><a id=\"wp-block-file--media-b27e628b-7717-4626-8b54-916ced6e047a\" href=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/PDF.pdf\">PDF<\/a><a href=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/PDF.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-b27e628b-7717-4626-8b54-916ced6e047a\">Download<\/a><\/div>\n\n\n\n<p>Defective eggs (eggs with abnormal exterior quality and size, Figure 1) can reduce the egg quality\/food safety and market value of laying hen production, especially in cage-free houses where floor eggs are more common. To improve egg quality, automated grading and defect detection systems have been developed using machine vision and image processing. Automated egg measurement systems are also used to sort eggs by weight, ensuring maximum market value. Previous studies primarily focused on using computer vision techniques for egg classification, but few have combined deep learning and machine vision techniques for joint egg classification and weighting.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"517\" src=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture1.jpg\" alt=\"\" class=\"wp-image-299\" srcset=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture1.jpg 842w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture1-300x184.jpg 300w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture1-768x472.jpg 768w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/figure>\n\n\n\n<p>Figure 1. Egg exterior quality and size.<\/p>\n\n\n\n<p>To address this gap, researchers at the University of Georgia\u2019s poultry science department developed a two-stage model based on real-time multitask detection (RTMDet) and random forest networks for predicting egg category and weight (Figure 2). The egg weight information was obtained by an egg imaging system (Figure 3) that is consisted of a camera; a tripod; a egg base; a computer; and a digital scale.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"380\" src=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture2-1024x380.jpg\" alt=\"\" class=\"wp-image-300\" srcset=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture2-1024x380.jpg 1024w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture2-300x111.jpg 300w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture2-768x285.jpg 768w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture2.jpg 1524w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Figure 2. The structure of egg classification based on RTMDet.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"453\" src=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture3.jpg\" alt=\"\" class=\"wp-image-301\" srcset=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture3.jpg 929w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture3-300x146.jpg 300w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture3-768x374.jpg 768w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/figure>\n\n\n\n<p>Figure 3. The egg imaging system for classifying eggs (a) and weighting eggs (b).<\/p>\n\n\n\n<p>The model uses convolutional neural network (CNN) and regression techniques to perform joint egg classification and weighing. RTMDet was used to sort and extract egg features for classification, and a Random Forest algorithm is used to predict egg weight based on the extracted features (major axis and minor axis). The new models can predict bloody eggs, cracked eggs, jumbo eggs, and different other defects (Figure 4) and eight weight (Figure 5).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"272\" src=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture4-1024x272.jpg\" alt=\"\" class=\"wp-image-302\" srcset=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture4-1024x272.jpg 1024w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture4-300x80.jpg 300w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture4-768x204.jpg 768w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture4-1536x409.jpg 1536w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture4.jpg 1800w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Figure 4. The flow of egg data processing.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"853\" height=\"568\" src=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture5.jpg\" alt=\"\" class=\"wp-image-303\" srcset=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture5.jpg 853w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture5-300x200.jpg 300w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2025\/04\/Picture5-768x511.jpg 768w\" sizes=\"auto, (max-width: 853px) 100vw, 853px\" \/><\/figure>\n\n\n\n<p>Figure 5. The egg has been classified as &#8216;Standard&#8217; and its predicted weight of 66.7 g.<\/p>\n\n\n\n<p>The results of the study showed that the best accuracy achieved was 94.8% and best R<sup>2<\/sup> is 96.0%. In addition, the model can be used to automatically exclude non-standard size eggs and eggs with exterior issues (e.g., calcium deposit, stains, and cracks). This detector is among the first models that perform the joint function of egg sorting and weighing eggs, and is capable of classifying them into different categories (i.e., crack, bloody, and non-standard size). By implementing the findings of this study, the egg producers can reduce costs and increase productivity, ultimately leading to enhanced egg quality and safe products for consumers.<\/p>\n\n\n\n<p><strong>Further reading<\/strong>:<\/p>\n\n\n\n<p>Yang, X., Bist, R. B., Subedi, S., &amp; Chai, L. (2023). A computer vision-based automatic system for egg grading and defect detection.&nbsp;<em>Animals<\/em>,&nbsp;<em>13<\/em>(14), 2354. <a href=\"https:\/\/doi.org\/10.3390\/ani13142354\"><strong>https:\/\/doi.org\/10.3390\/ani13142354<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Defective eggs (eggs with abnormal exterior quality and size, Figure 1) can reduce the egg quality\/food safety and market value of laying hen production, especially in cage-free houses where floor eggs are more common. To improve egg quality, automated grading and defect detection systems have been developed using machine vision and image processing. Automated egg [&hellip;]<\/p>\n","protected":false},"author":837,"featured_media":300,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4],"tags":[],"class_list":["post-297","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-poultry","category-precision-animal-production"],"_links":{"self":[{"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/posts\/297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/users\/837"}],"replies":[{"embeddable":true,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/comments?post=297"}],"version-history":[{"count":1,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/posts\/297\/revisions"}],"predecessor-version":[{"id":304,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/posts\/297\/revisions\/304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/media\/300"}],"wp:attachment":[{"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/media?parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/categories?post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/tags?post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}