Research on the Method of Counting Wheat Ears via Video Based on Improved YOLOv7 and DeepSort

被引:12
|
作者
Wu, Tianle [1 ]
Zhong, Suyang [1 ]
Chen, Hao [1 ]
Geng, Xia [1 ]
机构
[1] Shandong Agr Univ, Coll Informat Sci & Engn, Tai An 271018, Peoples R China
关键词
wheat-ear counting; improved YOLOv7; DeepSort; unmanned aerial vehicle (UAV);
D O I
10.3390/s23104880
中图分类号
O65 [分析化学];
学科分类号
070302 ; 081704 ;
摘要
The number of wheat ears in a field is an important parameter for accurately estimating wheat yield. In a large field, however, it is hard to conduct an automated and accurate counting of wheat ears because of their density and mutual overlay. Unlike the majority of the studies conducted on deep learning-based methods that usually count wheat ears via a collection of static images, this paper proposes a counting method based directly on a UAV video multi-objective tracking method and better counting efficiency results. Firstly, we optimized the YOLOv7 model because the basis of the multi-target tracking algorithm is target detection. Simultaneously, the omni-dimensional dynamic convolution (ODConv) design was applied to the network structure to significantly improve the feature-extraction capability of the model, strengthen the interaction between dimensions, and improve the performance of the detection model. Furthermore, the global context network (GCNet) and coordinate attention (CA) mechanisms were adopted in the backbone network to implement the effective utilization of wheat features. Secondly, this study improved the DeepSort multi-objective tracking algorithm by replacing the DeepSort feature extractor with a modified ResNet network structure to achieve a better extraction of wheat-ear-feature information, and the constructed dataset was then trained for the re-identification of wheat ears. Finally, the improved DeepSort algorithm was used to calculate the number of different IDs that appear in the video, and an improved method based on YOLOv7 and DeepSort algorithms was then created to calculate the number of wheat ears in large fields. The results show that the mean average precision (mAP) of the improved YOLOv7 detection model is 2.5% higher than that of the original YOLOv7 model, reaching 96.2%. The multiple-object tracking accuracy (MOTA) of the improved YOLOv7-DeepSort model reached 75.4%. By verifying the number of wheat ears captured by the UAV method, it can be determined that the average value of an L1 loss is 4.2 and the accuracy rate is between 95 and 98%; thus, detection and tracking methods can be effectively performed, and the efficient counting of wheat ears can be achieved according to the ID value in the video.
引用
收藏
页数:20
相关论文
共 50 条
  • [1] Research on Dynamic Pig Counting Method Based on Improved YOLOv7 Combined with DeepSORT
    Shao, Xiaobao
    Liu, Chengcheng
    Zhou, Zhixuan
    Xue, Wenjing
    Zhang, Guoye
    Liu, Jianyu
    Yan, Hongwen
    ANIMALS, 2024, 14 (08):
  • [2] Real-time detection and counting of wheat ears based on improved YOLOv7
    Li, Zanpeng
    Zhu, Yanjun
    Sui, Shunshun
    Zhao, Yonghao
    Liu, Ping
    Li, Xiang
    COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2024, 218
  • [3] Wearing Mask Pedestrian Tracking Based on Improved YOLOv7 and DeepSORT
    Zhao, Yuanlong
    Shan, Yugang
    Yuan, Jie
    Computer Engineering and Applications, 2023, 59 (06) : 221 - 230
  • [4] GrainNet: efficient detection and counting of wheat grains based on an improved YOLOv7 modeling
    Wang, Xin
    Li, Changchun
    Zhao, Chenyi
    Jiao, Yinghua
    Xiang, Hengmao
    Wu, Xifang
    Chai, Huabin
    PLANT METHODS, 2025, 21 (01)
  • [5] CCBA-NMS-YD: A Vehicle Pedestrian Detection and Tracking Method Based on Improved YOLOv7 and DeepSort
    Yuan, Zhenhao
    Wang, Zhiwen
    Zhang, Ruonan
    WORLD ELECTRIC VEHICLE JOURNAL, 2024, 15 (07):
  • [6] Improved YOLOv7 method for counting watermelons in UAV aerial videos
    Yin, Huijun
    Wang, Baoli
    Jing, Yunge
    Li, Juxia
    Wang, Pengling
    Quan, Gaoxiang
    Sun, Tingting
    Nongye Gongcheng Xuebao/Transactions of the Chinese Society of Agricultural Engineering, 2024, 40 (19): : 124 - 134
  • [7] On-Line Detection Method of Salted Egg Yolks with Impurities Based on Improved YOLOv7 Combined with DeepSORT
    Gong, Dongjun
    Zhao, Shida
    Wang, Shucai
    Li, Yuehui
    Ye, Yong
    Huo, Lianfei
    Bai, Zongchun
    FOODS, 2024, 13 (16)
  • [8] Research on Low Contrast Surface Defect Detection Method Based on Improved YOLOv7
    Chen, Shuang
    Li, Weipeng
    Yan, Xiang
    Liu, Wen
    Chen, Chao
    Liao, Jinwei
    Chen, Xu
    Shu, Jianqi
    IEEE ACCESS, 2024, 12 : 179997 - 180008
  • [9] Target detection and counting method for Acetes chinensis fishing vessels operation based on improved YOLOv7
    Sun Y.
    Chen J.
    Zhang S.
    Wang S.
    Xiong Y.
    Fan W.
    Nongye Gongcheng Xuebao/Transactions of the Chinese Society of Agricultural Engineering, 2023, 39 (10): : 151 - 162
  • [10] PBA-YOLOv7: An Object Detection Method Based on an Improved YOLOv7 Network
    Sun, Yang
    Li, Yi
    Li, Song
    Duan, Zehao
    Ning, Haonan
    Zhang, Yuhang
    APPLIED SCIENCES-BASEL, 2023, 13 (18):