Estrus Behavior Recognition of Dairy Cows Based on Improved YOLO v3 Model

被引:0
作者
Wang S. [1 ,2 ]
He D. [1 ,2 ]
机构
[1] College of Mechanical and Electronic Engineering, Northwest A&F University, Yangling
[2] Key Laboratory of Agricultural Internet of Things, Ministry of Agriculture and Rural Affairs, Yangling
来源
Nongye Jixie Xuebao/Transactions of the Chinese Society for Agricultural Machinery | 2021年 / 52卷 / 07期
关键词
Anchor optimization; Dairy cow estrus; DenseBlock; Loss function optimization; Mounting behavior; YOLO v3;
D O I
10.6041/j.issn.1000-1298.2021.07.014
中图分类号
学科分类号
摘要
Aiming to improve the detection accuracy and speed of estrus behavior of dairy cows in a complex scene, a method of recognizing estrus behavior of dairy cows based on improved YOLO v3 model was proposed. To solve the problem of the cows' size was inconsistent with the size of the object in the COCO dataset, which caused the original anchors were not applicable, new anchors were obtained by clustering new data sets and optimized by using linear expansion. As cows with a big size, the small difference between individuals and associations between behaviors, which was difficult to distinguish, a DenseBlock structure was introduced to the feature extraction network of YOLO v3 model to improve its detection performance on the large objects. Considered that the original bounding box loss function of YOLO v3 model was not invariant to the object scale, the FIoU and the center distance Dc of two boxes were used as the measuring method, and a new bounding box loss function was proposed to make it scale-invariant. Totally 50 images were extracted each from 96 video mounting behavior clips of dairy cows, according to the uncertainty position of cows' mounting behavior in the active area and the character of the light changing of the active area, horizontally flipped, rotated ±15° and random brightness enhancement (decrease) were applied on them for data augmentation. The augmented data was divided into three parts as training sets, validation sets, and test sets, training sets and validation sets were used to train the improved model and the best training model was chosen as dairy cow estrus behavior recognition model with the indicators F1, mAP, accuracy rate P, and recall rate R. The experiment on test sets showed that the accuracy rate of the model was 99.15%, the recall rate was 97.62%, and the processing speed reached 31 f/s, which could accurately and real-time identify cows' estrus behavior in a complex breeding environment under all weather. The research could also provide a reference for other large livestock behavior recognition. © 2021, Chinese Society of Agricultural Machinery. All right reserved.
引用
收藏
页码:141 / 150
页数:9
相关论文
共 27 条
  • [1] HE Dongjian, LIU Dong, ZHAO Kaixuan, Review of perceiving animal information and behavior in precision livestock farming, Transactions of the Chinese Society for Agricultural Machinery, 47, 5, pp. 231-244, (2016)
  • [2] Del FRESNO M, MACCHI A, MARTI Z, Et al., Application of color image segmentation to estrusc detection, Journal of Visualization, 9, 2, pp. 171-178, (2006)
  • [3] TSAI D, HUANG C., A motion and image analysis method for automatic detection of estrus and mating behavior in cattle, Computers and Electronics in Agriculture, 104, pp. 25-31, (2014)
  • [4] BRUYERE P, HETREAU T, PONSART C, Et al., Can video cameras replace visual estrus detection in dairy cows?, Theriogenology, 77, 3, pp. 525-530, (2012)
  • [5] CHUNG Y, CHOI D, CHOI H, Et al., Automated detection of cattle mounting using side-view camera, KSII Trans. Internet Inf. Syst, 9, 8, pp. 3151-3168, (2015)
  • [6] BRUNASSI L D, MOURA D J, NAAS I D, Et al., Improving detection of dairy cow estrus using fuzzy logic, Sci. Agric, 67, 5, pp. 503-509, (2010)
  • [7] ZHANG Ziru, Research on detection method of cow estrus information based on video analysis, (2018)
  • [8] GU Jingqiu, WANG Zhihai, GAO Ronghua, Et al., Recognition method of cow behavior based on combination of image and activities, Transactions of the Chinese Society for Agricultural Machinery, 48, 6, pp. 145-151, (2017)
  • [9] JIANG B, WU Q, YIN X, Et al., FLYOLOv3 deep learning for key parts of dairy cow body detection, Computers and Electronics in Agriculture, 166, (2019)
  • [10] ZHANG K, LI D, HUANG J, Et al., Automated video behavior recognition of pigs using two-stream convolutional networks, Sensors, 20, 4, (2020)