Typical behavior recognition of herd pigs based on improved frame difference and deep learning

被引:0
作者
Zeng F. [1 ]
Zhu J. [1 ]
Wang H. [1 ]
Jia N. [1 ]
Zhao Y. [1 ]
Zhao W. [1 ]
Li B. [1 ]
机构
[1] Intelligent Equipment Research Center, Beijing Academy of Agriculture and Forestry Sciences
[2] 2. National Research Center of Intelligent Equipment for Agriculture
来源
Nongye Gongcheng Xuebao/Transactions of the Chinese Society of Agricultural Engineering | 2022年 / 38卷 / 15期
关键词
deep learning; herd pigs; posture detection; recognition;
D O I
10.11975/j.issn.1002-6819.2022.15.018
中图分类号
学科分类号
摘要
Typical behavior of herd pigs is one of the most important indicators to evaluate the adaptability of pigs to the environment. This study aims to improve the accuracy and efficiency of herd behavior recognition. A novel recognition system was proposed for the typical behavior of herd pigs (such as eating, lying, standing, and fighting) using an improved frame differential-deep learning. The video image data was collected from two pens of group-fed Landrace pigs. A total of 18 Landrace pigs aged 50~115 days were selected with nine pigs per pen. 1117 video frames were collected. Then, a total of 4468 images were obtained after image enhancement as the dataset. Firstly, five models of typical deep learning (including Faster-RNN, SSD, Retinanet, Detection Transformer, and YOLOv5) were selected for posture detection. An optimal model of posture was determined after the comparative analysis. Secondly, a pixel feature extraction was implemented on the pig activity to promote the traditional frame differential approach, such as, the slow motion pigs were easy to miss the detection, and more holes were detected in the pigs. Finally, the Proportion of Fighting Activities (PFA) and Proportion of Fighting Behavior (PFB) were used to optimize the pig fighting behavior in the recognition model. An optimal behavior model was determined during this time. The result showed that the average accuracy of YOLOv5 reached 93.80% for the typical posture detection of group-reared pigs. Among them, the model size was 14.40 MB, and the detection speed was 32.00 f/s, indicating that the detection speed fully met the demand for real-time posture detection. Once the Intersection over Union (IoU) threshold was set as 0.50, the mean average accuracy of YOLOv5 increased by 1.10, 3.23, 4.15, and 21.20 percentage points, respectively, and the model size was reduced by 87.31%, 85.09%, 90.15%, and 97.10%, respectively, compared with the Faster-RNN, SSD, Retinanet, and Detection Transformer models. Meanwhile, the original frame difference was expanded from the frame difference of 2, to 4 after experimental analysis. The improved frame difference was utilized to effectively eliminate the fine holes that were produced by the slow-moving pigs and background interference, such as lighting, as well as the outstandingly retained pixel characteristics of vigorous movement activities, when the pigs were fighting. The better performance of detection was achieved close to the actual movement targets. The pig eating, lying, and standing behaviors were directly discriminated by the single-frame posture images of pigs. Furthermore, 100 video frames containing fighting behavior (frame speed of 30 f/s, duration of 5~60s) and video frames without fighting behavior were selected to verify the accuracy of the pig fighting behavior recognition. The reason was that the pig fighting behavior was a continuous process. The test results showed that the best average value of typical behavior recognition accuracy was 94.45%, when the two optimized indexes of PFA and PFB were set as 10% and 40%, respectively. Therefore, the high accuracy, small model size, and fast recognition can provide technical support and strong reference for the accurate and efficient identification of typical behaviors of herd pigs in group breeding. © 2022 Chinese Society of Agricultural Engineering. All rights reserved.
引用
收藏
页码:170 / 178
页数:8
相关论文
共 32 条
[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]  
Li Dan, Chen Yifei, Li Xingjian, Et al., Research advance on computer vision in behavioral analysis of pigs, Journal of Agricultural Science and Technology, 21, 7, pp. 59-69, (2019)
[3]  
Chen C, Zhu W, Norton T., Behaviour recognition of pigs and cattle: Journey from computer vision to deep learning, Computers and Electronics in Agriculture, 187, (2021)
[4]  
Nilsson M, Herlin A H, Ardo H, Et al., Development of automatic surveillance of animal behaviour and welfare using image analysis and machine learned segmentation technique, Animal, 9, 11, pp. 1859-1865, (2015)
[5]  
Wang Kaiying, Zhao Xiaoyang, He Yong, Review on noninvasive monitoring technology of poultry behavior and physiological information, Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 33, 20, pp. 197-209, (2017)
[6]  
Liu Longshen, Shen Mingxia, Yao Wen, Et al., Acquisition and analysis of sows’ behavior before farrowing based on acceleration sensor, Transactions of the Chinese Society for Agricultural Machinery, 44, 3, pp. 192-196, (2013)
[7]  
Yan Li, Shen Mingxia, Yao Wen, Et al., Recognition method of lactating sows’ posture based on sensor MPU6050, Transactions of the Chinese Society for Agricultural Machinery, 46, 5, pp. 279-285, (2015)
[8]  
Hao Fuming, Abnormal Behavior Monitoring of Pigs Based on Micro Inertial Sensor, (2018)
[9]  
Zhang Feiyu, Wang Meili, Wang Zhengchao, Construction of the animal skeletons keypoint detection model based on transformer and scale fusion, Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 37, 23, pp. 179-185, (2021)
[10]  
Shi Hong, Shen Mingxia, Liu Longshen, Et al., Study on recognition method of lactating sows’ posture based on Kinect, Journal of Nanjing Agricultural University, 42, 1, pp. 177-183, (2019)