Automatic scoring of postures in grouped pigs using depth image and CNN-SVM

被引:34
作者
Xu, Jinyang [1 ]
Zhou, Suyin [1 ]
Xu, Aijun [1 ]
Ye, Junhua [2 ]
Zhao, Ayong [3 ,4 ]
机构
[1] Zhejiang Agr & Forestry Univ, Sch Math & Comp Sci, Hangzhou 311300, Peoples R China
[2] Zhejiang Agr & Forestry Univ, Sch Environm & Resource Sci, Hangzhou 311300, Peoples R China
[3] Zhejiang Agr & Forestry Univ, Sch Anim Sci & Technol, Hangzhou 311300, Peoples R China
[4] Key Lab Appl Technol Green Ecol & Hlth Livestock, Hangzhou, Zhejiang, Peoples R China
关键词
Posture detection; Deep learning; CNN-SVM; Depth image; Image processing; THERMAL COMFORT; FEATURE-EXTRACTION; MACHINE VISION; BEHAVIOR; CLASSIFICATION; RECOGNITION; TEMPERATURE; LOCOMOTION; LANDRACE; DUROC;
D O I
10.1016/j.compag.2022.106746
中图分类号
S [农业科学];
学科分类号
09 ;
摘要
Animal posture is a manifestation of animal behavior, and an animal's behavior provides information about their health, welfare, and living environment. In recent years, machine vision and machine learning technologies have been widely used to detect individual or group behavior of pigs. The purpose of this study is to use machine vision and deep learning technologies to recognize and score multiple postures (standing, sitting, sternal recumbency, ventral recumbency and lateral recumbency) of pigs under commercial conditions based on depth images. In this study, the Azure Kinect DK depth camera with a top view was used to obtain the depth image of pigs, and the target pig image was obtained by GrabCut image segmentation and watershed segmentation of target object calibration. Then, based on the characteristics of the image, the convex hull, boundary, and the depth distance of the shoulder and the hip were obtained. The ratio of the convex hull perimeter to the boundary and the ratio of the convex hull area to the boundary, as well as the depth distance of the shoulder and the hip, and the depth distance ratio of the shoulder to the hip were obtained as the input of the Convolutional Neural Network-Support Vector Machine (CNN-SVM) classification model, and the model was trained and tested. In various classifier detection experiments, the performance of our pig posture classifier for standing posture and lateral recumbency posture was better, with the area under the receiver operating characteristic (AUC) values being 0.9969 and 0.9967, respectively. However, the performance of sitting posture, sternal recumbency posture and ventral recumbency posture classifier was slightly worse but still had good performance: AUC values were 0.9790, 0.9355 and 0.9795, respectively. The model in this article was used to detect the average postures of pigs in one day (taking the average for eight consecutive days), and it was found that the proportion of lying postures was higher than other postures (lying postures were 72%, standing postures were 20%, and sitting postures were 8%). The proportion of standing postures in the daytime was higher than that in the evening, and lying posture was the opposite. The proportion of the three lying postures also changes over time. This study compared the difference of posture recognition accuracy between the model in this paper (CNN-SVM), SVM and CNN; using the same training data and experimental data, the accuracy of posture recognition of the three models was 94.6368%, 92.2175% and 90.5396%, respectively. Therefore, the recognition accuracy of the model in this paper was improved greatly compared with CNN and SVM.
引用
收藏
页数:11
相关论文
共 50 条
[1]   Automatic visual detection of human behavior: A review from 2000 to 2014 [J].
Afsar, Palwasha ;
Cortez, Paulo ;
Santos, Henrique .
EXPERT SYSTEMS WITH APPLICATIONS, 2015, 42 (20) :6935-6956
[2]   Automated recognition of postures and drinking behaviour for the detection of compromised health in pigs [J].
Alameer, Ali ;
Kyriazakis, Ilias ;
Bacardit, Jaume .
SCIENTIFIC REPORTS, 2020, 10 (01)
[3]   The ear skin temperature as an indicator of the thermal comfort of pigs [J].
Andersen, Heidi Mai-Lis ;
Jorgensen, Erik ;
Dybkjaer, Lise ;
Jorgensen, Bente .
APPLIED ANIMAL BEHAVIOUR SCIENCE, 2008, 113 (1-3) :43-56
[4]   Fast recognition and verification of 3D air signatures using convex hulls [J].
Behera, Santosh Kumar ;
Dogra, Debi Prosad ;
Roy, Partha Pratim .
EXPERT SYSTEMS WITH APPLICATIONS, 2018, 100 :106-119
[5]   COMPARISON OF DUROC AND BRITISH LANDRACE PIGS FOR MEAT AND EATING QUALITY [J].
CAMERON, ND ;
WARRISS, PD ;
PORTER, SJ ;
ENSER, MB .
MEAT SCIENCE, 1990, 27 (03) :227-247
[6]   Automatic real-time monitoring of locomotion and posture behaviour of pregnant cows prior to calving using online image analysis [J].
Cangar, Oe ;
Leroy, T. ;
Guarino, M. ;
Vranken, E. ;
Fallon, R. ;
Lenehan, J. ;
Mee, J. ;
Berckmans, D. .
COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2008, 64 (01) :53-60
[7]   Growth hormone gene polymorphisms and growth performance traits in Duroc, Landrace and Tao-Yuan pigs [J].
Cheng, WTK ;
Lee, CH ;
Hung, CM ;
Chang, TJ ;
Chen, CM .
THERIOGENOLOGY, 2000, 54 (08) :1225-1237
[8]   P-CNN: Pose-based CNN Features for Action Recognition [J].
Cheron, Guilhem ;
Laptev, Ivan ;
Schmid, Cordelia .
2015 IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV), 2015, :3218-3226
[9]   The automated analysis of clustering behaviour of piglets from thermal images in response to immune challenge by vaccination [J].
Cook, N. J. ;
Bench, C. J. ;
Liu, T. ;
Chabot, B. ;
Schaefer, A. L. .
ANIMAL, 2018, 12 (01) :122-133
[10]   Lying characteristics as determinants for space requirements in pigs [J].
Ekkel, ED ;
Spoolder, HAM ;
Hulsegge, I ;
Hopster, H .
APPLIED ANIMAL BEHAVIOUR SCIENCE, 2003, 80 (01) :19-30