{"id":170,"date":"2023-11-19T10:58:07","date_gmt":"2023-11-19T15:58:07","guid":{"rendered":"https:\/\/site.caes.uga.edu\/precisionpoultry\/?p=170"},"modified":"2023-11-19T10:59:42","modified_gmt":"2023-11-19T15:59:42","slug":"detecting-broiler-chickens-with-an-innovated-deep-learning-model","status":"publish","type":"post","link":"https:\/\/site.caes.uga.edu\/precisionpoultry\/2023\/11\/detecting-broiler-chickens-with-an-innovated-deep-learning-model\/","title":{"rendered":"Detecting Broiler Chickens with an Innovated Deep Learning Model"},"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\/2023\/11\/PDF-1.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of PDF-1.\"><\/object><a id=\"wp-block-file--media-75d985be-be12-4158-ad1c-f992441f73cd\" href=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/PDF-1.pdf\">PDF-1<\/a><a href=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/PDF-1.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-75d985be-be12-4158-ad1c-f992441f73cd\">Download<\/a><\/div>\n\n\n\n<p><strong>Introduction<\/strong><\/p>\n\n\n\n<p>For commercial broiler production, about 20,000 \u2013 30,000 birds are raised in each confined house, which has caused growing public concerns on animal welfare. Currently, daily evaluation of broiler wellbeing and growth is conducted manually, which is labor intensive and subjective to human errors. Therefore, there is a need for an automatic tool to detect and analyze the behaviors of chickens and predict their welfare status. Deep learning technology has powerful feature representation capabilities, fast processing speed, and can resolve problems associated with external interferences. Thus, deep learning algorithms are appropriate models for developing an automatic, efficient and intelligent tool for precision animal farming. However, the size of the chicken and the sheer numbers that are raised in a single house pose challenges in applying deep learning techniques in monitoring individual chickens. In the current study, we integrated the convolutional block attention module (CBAM) into YOLOv5 to enhance the algorithm\u2019s ability to extract image features.<\/p>\n\n\n\n<p><strong>Methods<\/strong><\/p>\n\n\n\n<p>This study was conducted in an experimental broiler house at the Poultry Research Center of the University of Georgia, Athens, USA. High-definition cameras (PRO-1080MSFB, Swann Communications, Santa Fe Springs, CA) were mounted on the ceiling (2.5 m above floor) to capture video (15 frame\/s, 1440 pixels \u00d7 1080 pixels) from November 26, 2019 to January 14, 2020 (Guo et al., 2020 and 2021b). Two different litter types (fresh pine shavings and reused litter previously used to raise three flocks of broilers) were selected as application scenes for broiler detection. For the two litter scenes, 70 images were selected from d2, d9, d16, and d23, respectively, for a total of 560 images. In addition, to evaluate the detection performance of the model under multiple pens scenes, the image samples shown in Fig.1c were constructed, in which 70 images were selected for d16 and d23. Finally, a total of 700 images were obtained and randomly divided at a ratio of 5:2 into training and testing set, respectively. Figure 1 are examples of broiler images from different scenes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"711\" height=\"564\" src=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture1.jpg\" alt=\"\" class=\"wp-image-172\" srcset=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture1.jpg 711w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture1-300x238.jpg 300w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/figure>\n\n\n\n<p><strong>Fig. 1. Examples of broiler images from different scenes.<\/strong><\/p>\n\n\n\n<p><strong>Results<\/strong><\/p>\n\n\n\n<p>We used datasets consisting of broiler images at different ages, raised on two types of litter and multiple pens to test the applicability and effectiveness of YOLOv5-CBAM. The detection results of broiler with different models are shown in Table 1. From Table 1, the precision, recall, F1 and mAP@0.5 of YOLOv5-CBAM were 97.3%, 92.3%, 94.7% and 96.5%, which was higher than that of YOLOv5 (96.6%, 92.1%, 94.3% and 96.3%), Faster R-CNN (79.7%, 95.4%, 86.8% and 90.6%) and SSD (60.8%, 94.0%, 73.8% and 88.5%). The results show that the overall performance of the proposed YOLOv5-CBAM was the best. Adding the CBAM module to YOLOv5 network improved the performance of the broiler detection model. It also showed that the model YOLOv5-CBAM was suitable for the detection of broilers at different growth stages, in different litters type and multiple pens. In addition, the FPS of YOLOv5-CBAM was 55 Frame\/s, which was lower than YOLOv5 (62 Frame\/s), but higher than Faster R-CNN (2.6 Frame\/s) and SSD (3.1 Frame\/s).<\/p>\n\n\n\n<p><strong>Table 1. Performance comparison of different algorithms (%)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"256\" src=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Table-1.jpg\" alt=\"\" class=\"wp-image-173\" srcset=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Table-1.jpg 702w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Table-1-300x109.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<p>Figures 2 and 3 show detection results of broilers with YOLOv5 and YOLOv5-CBAM on fresh pine shaving floor and reused litter floor, respectively. The first column is the detection results of YOLOv5, the second column is the original images, and the third column is the detection results of YOLOv5-CBAM. <em>i<\/em> is the actual number of broilers, and <em>j<\/em> is the number of broilers detected broilers. The YOLOv5-CBAM detected broilers with a higher precision than YOLOv5, and in the case of crowded or small targets, it could still provide better detection results.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"853\" height=\"1024\" src=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture2-853x1024.jpg\" alt=\"\" class=\"wp-image-174\" srcset=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture2-853x1024.jpg 853w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture2-250x300.jpg 250w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture2-768x922.jpg 768w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture2-1280x1536.jpg 1280w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture2.jpg 1333w\" sizes=\"auto, (max-width: 853px) 100vw, 853px\" \/><\/figure>\n\n\n\n<p><strong>Fig. 2. Detection results using YOLOv5 and YOLOv5-CBAM in fresh pine shavings<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"658\" height=\"1024\" src=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture3-658x1024.jpg\" alt=\"\" class=\"wp-image-175\" srcset=\"https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture3-658x1024.jpg 658w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture3-193x300.jpg 193w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture3-768x1195.jpg 768w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture3-987x1536.jpg 987w, https:\/\/site.caes.uga.edu\/precisionpoultry\/files\/2023\/11\/Picture3.jpg 1028w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><\/figure>\n\n\n\n<p><strong>Fig. 3. Detection results using YOLOv5 and YOLOv5-CBAM in reused litter<\/strong>.<\/p>\n\n\n\n<p><strong>Summary<\/strong><\/p>\n\n\n\n<p>In this study, we developed a YOLOv5-CBAM-broiler model and tested its performance for tracking broilers on litter floor. The proposed model consisted of two parts: (1) basic YOLOv5 model for bird or broiler feature extraction and target detection; and (2) the convolutional block attention module (CBAM) to improve the feature extraction ability of the network and the problem of missed detection of occluded targets and small targets. A complex dataset of broiler chicken images at different ages, multiple pens and scenes (fresh litter versus reused litter) was constructed to evaluate the effectiveness of the new model. In addition, the model was compared to the Faster R-CNN, SSD and YOLOv5 models. The results demonstrate that the proposed approach achieved a precision of 97.3%, a recall of 92.3%, an F1 score of 94.7%, and an <a href=\"mailto:mAP@0.5\">mAP@0.5<\/a> of 96.5%, which outperformed Faster R-CNN, SSD and YOLOv5. In addition, comparing the detection effects in different scenes, the YOLOv5-CBAM model was still better than the comparison method. Overall, the proposed deep learning-based broiler detection approach can achieve real-time accurate and fast target detection and provide technical support for the management and monitoring of birds in commercial broiler houses.<\/p>\n\n\n\n<p>Further reading: <em>Guo, Y., S. E. Aggrey, X. Yang, A. Oladeinde, Y. Qiao, L. Chai. (2023) Detecting broiler chickens on litter floor with the YOLOv5-CBAM deep learning model. Artificial Intelligence in Agriculture,9: 36-45. <a href=\"https:\/\/doi.org\/10.1016\/j.aiia.2023.08.002\">https:\/\/doi.org\/10.1016\/j.aiia.2023.08.002<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction For commercial broiler production, about 20,000 \u2013 30,000 birds are raised in each confined house, which has caused growing public concerns on animal welfare. Currently, daily evaluation of broiler wellbeing and growth is conducted manually, which is labor intensive and subjective to human errors. Therefore, there is a need for an automatic tool to [&hellip;]<\/p>\n","protected":false},"author":837,"featured_media":174,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,5,4],"tags":[],"class_list":["post-170","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-poultry","category-poultry-monitoring","category-precision-animal-production"],"_links":{"self":[{"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/posts\/170","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=170"}],"version-history":[{"count":1,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":177,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/posts\/170\/revisions\/177"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/media\/174"}],"wp:attachment":[{"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/site.caes.uga.edu\/precisionpoultry\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}