A sheep dynamic counting scheme based on the fusion between an improved-sparrow-search YOLOv5x-ECA model and few-shot deepsort algorithm

被引:21
作者
Cao, Yuanyang [1 ]
Chen, Jian [1 ]
Zhang, Zichao [1 ,2 ,3 ,4 ,5 ,6 ]
机构
[1] China Agr Univ, Coll Engn, Beijing 100083, Peoples R China
[2] Minist Agr & Rural Affairs, Key Lab Smart Agr Technol Trop South China, Guangzhou 510642, Peoples R China
[3] Minist Nat Resources, Key Lab Urban Land Resources Monitoring & Simulat, Shenzhen 518000, Peoples R China
[4] MNR, Key Lab Spatial temporal Big Data Anal & Applicat, Shanghai 200063, Peoples R China
[5] Beihang Univ, State Key Lab Virtual Real Technol & Syst, Beijing 100191, Peoples R China
[6] Jiangsu Univ, Jiangsu Prov & Educ Minist Cosponsored Synergist I, Ctr Modern Agr Equipment, Zhenjiang 212013, Peoples R China
基金
中国国家自然科学基金;
关键词
YOLOv5x; DeepSort Algorithm; Sparrow Search Algorithm; Attention Mechanism; Sheep Dynamic Counting;
D O I
10.1016/j.compag.2023.107696
中图分类号
S [农业科学];
学科分类号
09 ;
摘要
In order to improve the accuracy of sheep counting and avoid the interference of mutual occlusion caused by different moving speed among sheep, the concept of fusion between the improved YOLOv5x model based on the attention mechanism and DeepSort algorithm is proposed. First, the ECA structure that is channel attention mechanism is used to optimize YOLOv5x model to strengthen the ability of capturing global information. Secondly, the sparrow search algorithm based on elite opposition-based learning strategy is used to optimize the learning rate of the detection model, so as to get the weight information of the optimal group to further improve the recognition rate of sheep. In the experiment, 800 high-resolution sheep images augmented by SRGAN network and data augmentation are used as model datasets, and the best weight information obtained by the YOLOv5x-ECA-SSA* model is used to accurately recognize sheep. According to the DeepSort algorithm, the recognized sheep are tracked, predicted and matched optimally. The experimental results show that the test precision of YOLOv5x*, YOLOv5x-ECA* and YOLOv5x-ECA-SSA* based on the SRGAN and data enhancement to train are respectively 95.74%, 96.50% and 97.10%. The error rate of each model combined with DeepSort algorithm to complete sheep dynamic counting is respectively 13%, 12% and 5%. Among them, the YOLOv5x-ECASSA* model has the highest mAP and best effect of sheep counting. The result can provide a new theorical method for realizing intelligent dynamic counting and tracking in the grazing process and provide a new technical application for intelligent animal husbandry.
引用
收藏
页数:17
相关论文
共 33 条
  • [1] Counting spikelets from infield wheat crop images using fully convolutional networks
    Alkhudaydi, Tahani
    De la Lglesia, Beatriz
    [J]. NEURAL COMPUTING & APPLICATIONS, 2022, 34 (20) : 17539 - 17560
  • [2] Development of improved sparrow search-based PI controller for power quality enhancement using UPQC integrated with medical devices
    Arulkumar, T.
    Chandrasekaran, N.
    [J]. ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2022, 116
  • [3] Bochkovskiy A., 2020, PREPRINT
  • [4] Chaofu Zhang, 2012, 2012 9th International Conference on Fuzzy Systems and Knowledge Discovery, P2706, DOI 10.1109/FSKD.2012.6234042
  • [5] Chen YQ, 2019, INT CONF COMP SCI ED, P335, DOI [10.1109/ICCSE.2019.8845527, 10.1109/iccse.2019.8845527]
  • [6] Rapid Image Reconstruction of Structured Illumination Microscopy Directly in the Spatial Domain
    Dan, Dan
    Wang, Zhaojun
    Zhou, Xing
    Lei, Ming
    Zhao, Tianyu
    Qian, Jia
    Yu, Xianghua
    Yan, Shaohui
    Min, Junwei
    Bianco, Piero
    Yao, Baoli
    [J]. IEEE PHOTONICS JOURNAL, 2021, 13 (01):
  • [7] Demiray M., 2021, SN Computer Science, V2, P48, DOI DOI 10.1007/S42979-020-00442-2
  • [8] A lightweight vehicles detection network model based on YOLOv5
    Dong, Xudong
    Yan, Shuai
    Duan, Chaoqun
    [J]. ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2022, 113
  • [9] Monocular Pedestrian Detection: Survey and Experiments
    Enzweiler, Markus
    Gavrila, Dariu M.
    [J]. IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2009, 31 (12) : 2179 - 2195
  • [10] [姜海燕 Jiang Haiyan], 2020, [农业机械学报, Transactions of the Chinese Society for Agricultural Machinery], V51, P152