An Integrated Goat Head Detection and Automatic Counting Method Based on Deep Learning

被引:7
作者
Zhang, Yu [1 ]
Yu, Chengjun [1 ]
Liu, Hui [1 ]
Chen, Xiaoyan [1 ,2 ]
Lei, Yujie [1 ]
Pang, Tao [3 ]
Zhang, Jie [1 ,2 ]
机构
[1] Sichuan Agr Univ, Coll Informat Engn, Yaan 625000, Peoples R China
[2] Sichuan Key Lab Agr Informat Engn, Yaan 625000, Peoples R China
[3] Sichuan Agr Univ, Coll Mech & Elect Engn, Yaan 625000, Peoples R China
来源
ANIMALS | 2022年 / 12卷 / 14期
关键词
precision farming; object detection; object tracking; automatic counting; deep learning; computer vision;
D O I
10.3390/ani12141810
中图分类号
S8 [畜牧、 动物医学、狩猎、蚕、蜂];
学科分类号
0905 ;
摘要
Simple Summary To achieve precision and intelligence in farming, automatic recognition and counting of goats are important and fundamental parts of the process of large-scale goat farming. Currently, many farms with low modernization use manual counting, which has the obvious shortcomings of low efficiency and difficulty in avoiding duplication and omissions due to the large population base and frequent counting needs of goats. In order to solve this problem in the farming process, an efficient and accurate goat counting method is urgently needed. In this study, we address the above problem by constructing an integrated deep learning model for automatic detection and counting of goats based on computer vision technology with the Chengdu Ma goat as the research object. It is worth noting that we have improved the model using a series of advanced and effective strategies to enhance the performance of the model. Experiments show that our method can achieve accurate automatic counting of goats in a practical breeding environment. The method is beneficial to the regionalized management of goat barns and can be applied to different goat species with high practicality. Goat farming is one of the pillar industries for sustainable development of national economies in some countries and plays an active role in social and economic development. In order to realize the precision and intelligence of goat breeding, this paper describes an integrated goat detection and counting method based on deep learning. First, we constructed a new dataset of video images of goats for the object tracking task. Then, we took YOLOv5 as the baseline of the object detector and improved it using a series of advanced methods, including: using RandAugment to explore suitable data augmentation strategies in a real goat barn environment, using AF-FPN to improve the network's ability to represent multi-scale objects, and using the Dynamic Head framework to unify the attention mechanism with the detector's heads to improve its performance. The improved detector achieved 92.19% mAP, a significant improvement compared to the 84.26% mAP of the original YOLOv5. In addition, we also input the information obtained by the detector into DeepSORT for goat tracking and counting. The average overlap rate of our proposed method is 89.69%, which is significantly higher than the 82.78% of the original combination of YOLOv5 and DeepSORT. In order to avoid double counting as much as possible, goats were counted using the single-line counting based on the results of goat head tracking, which can support practical applications.
引用
收藏
页数:17
相关论文
共 32 条
  • [1] [Anonymous], 2018, P IEEE C COMPUTER VI
  • [2] Bewley A, 2016, IEEE IMAGE PROC, P3464, DOI 10.1109/ICIP.2016.7533003
  • [3] Bochkovskiy A., 2020, ARXIV 200410934
  • [4] Automated aerial animal detection when spatial resolution conditions are varied
    Brown, Jasper
    Qiao, Yongliang
    Clark, Cameron
    Lomax, Sabrina
    Rafique, Khalid
    Sukkarieh, Salah
    [J]. COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2022, 193
  • [5] Randaugment: Practical automated data augmentation with a reduced search space
    Cubuk, Ekin D.
    Zoph, Barret
    Shlens, Jonathon
    Le, Quoc, V
    [J]. 2020 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS (CVPRW 2020), 2020, : 3008 - 3017
  • [6] Dai X., 2021, CVPR, P7373
  • [7] Deep Residual Learning for Image Recognition
    He, Kaiming
    Zhang, Xiangyu
    Ren, Shaoqing
    Sun, Jian
    [J]. 2016 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2016, : 770 - 778
  • [8] Center clustering network improves piglet counting under occlusion
    Huang, Endai
    Mao, Axiu
    Gan, Haiming
    Ceballos, Maria Camila
    Parsons, Thomas D.
    Xue, Yueju
    Liu, Kai
    [J]. COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2021, 189
  • [9] Deep Learning-Based Cow Tail Detection and Tracking for Precision Livestock Farming
    Huang, Xiaoping
    Hu, Zelin
    Qiao, Yongliang
    Sukkarieh, Salah
    [J]. IEEE-ASME TRANSACTIONS ON MECHATRONICS, 2023, 28 (03) : 1213 - 1221
  • [10] Automatic counting and positioning of slaughter pigs within the pen using a convolutional neural network and video images
    Jensen, Dan Borge
    Pedersen, Lene Juul
    [J]. COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2021, 188