Automatic recognition of lactating sow postures from depth images by deep learning detector

Abstract The behaviors of livestock on farms are the primary representatives of animal welfare, health conditions and social interactions. Measuring behavior quantitatively in an automatic detection system on computer vision provides valuable behavioral information in an efficient and noninvasive way compared with manual observations or sensing techniques. Lactating sow postures, which are the crucial indicator of maternal evaluation, provide fundamental information for studying the maternal behavioral characteristics and regularities. We introduce a detector, Faster R-CNN, on deep learning framework to identify five postures (standing, sitting, sternal recumbency, ventral recumbency and lateral recumbency) and obtain sows accurate location in loose pens. The detection system consists of a Kinect v2 sensor that acquires depth images and a program that identifies sow postures and locates its bounding-boxes. The depth images of testing dataset of a sow were acquired at 5 frames per second in 24 h on the 15th day of postpartum, and training dataset were collected by some different sows. Since the identification performance from RGB images are impacted by the color and illumination variations caused by in-situ heat lamp and day-night cycle, we show that the automatic detection from depth images could avoid disturbances of the light. We find that the sow spent greater amount of time in recumbency (92.9% at night and 84.1% during the daytime) as compared with standing (0.4% at night and 10.5% during the daytime) and sitting (0.55% at night and 3.4% during the daytime). Statistically, the sow’s activity level is non-uniform in 24-h of a day, and her preferred lying positions is accordant with the pen’s floor design. The posture’s change frequency and average duration are presented. From the estimated general manner of posture change, we find that the sow takes more time in descending body than ascending, which could be a favorable indication of maternal ability with a slow-motion falling to avoid crushing piglets.

[1]  Gudrun Illmann,et al.  Maternal behaviour of domestic sows and crosses between domestic sows and wild boar , 1999 .

[2]  Donald M. Broom,et al.  Factors affecting posture-changing in loose-housed and confined gestating sows , 1996 .

[3]  Patrick C. H. Morel,et al.  Observations of sows and piglets housed in farrowing pens with temporary crating or farrowing crates on a commercial farm , 2016 .

[4]  Lotta Rydhmer,et al.  Genetic analysis of on-farm tests of maternal behaviour in sows , 2003 .

[5]  J. Hurnik,et al.  Peripartum sows in three farrowing crates: posture patterns and behavioural activities , 1998 .

[6]  John Joseph Valletta,et al.  Applications of machine learning in animal behaviour studies , 2017, Animal Behaviour.

[7]  Jana Abhijit Kinect for Windows SDK Programming Guide , 2012 .

[8]  Knut Egil Bøe,et al.  Crushing of piglets by the mother sow (Sus scrofa) - purely accidental or a poor mother? , 2005 .

[9]  Stefano Viazzi,et al.  Image feature extraction for classification of aggressive interactions among pigs , 2014 .

[10]  Bert Driessen,et al.  The association between sow and piglet behavior , 2014 .

[11]  T. Leroy,et al.  Automatic real-time monitoring of locomotion and posture behaviour of pregnant cows prior to calving using online image analysis , 2008 .

[12]  Uwe Richter,et al.  Using machine vision for investigation of changes in pig group lying patterns , 2015, Comput. Electron. Agric..

[13]  Kai Liu,et al.  Automatic recognition of lactating sow behaviors through depth image processing , 2016, Comput. Electron. Agric..

[14]  Geoffrey E. Hinton,et al.  Deep Learning , 2015, Nature.

[15]  Guy Lapalme,et al.  A systematic analysis of performance measures for classification tasks , 2009, Inf. Process. Manag..

[16]  D Berckmans,et al.  Analysis of individual classification of lameness using automatic measurement of back posture in dairy cattle. , 2013, Journal of dairy science.

[17]  Daniel Berckmans,et al.  Analysis of aggressive behaviours of pigs by automatic video recordings , 2013 .

[18]  David Fraser,et al.  Sow body movements that crush piglets: a comparison between two types of farrowing accommodation , 1996 .

[19]  Rony Geers,et al.  The effects of environmental enrichment on the behaviour of suckling piglets and lactating sows: A review , 2012 .

[20]  Sandra A. Edwards,et al.  Automatic detection of mounting behaviours among pigs using image analysis , 2016, Comput. Electron. Agric..

[21]  D. Broom,et al.  Invited review: piglet mortality: management solutions. , 2013, Journal of animal science.

[22]  Daniel Berckmans,et al.  Automated video analysis of pig activity at pen level highly correlates to human observations of behavioural activities , 2014 .

[23]  Wei Li,et al.  Validity of the Microsoft Kinect sensor for assessment of normal walking patterns in pigs , 2015, Comput. Electron. Agric..

[24]  D. Berckmans,et al.  Precision livestock farming technologies for welfare management in intensive livestock systems. , 2014, Revue scientifique et technique.

[25]  Shiquan Cui,et al.  A comparison of postural changes and maternal responsiveness during early lactation in Landrace and Minpig sows , 2011 .

[26]  Greg Bishop-Hurley,et al.  Dynamic cattle behavioural classification using supervised ensemble classifiers , 2015, Comput. Electron. Agric..

[27]  Didier Stricker,et al.  Comparison of Kinect V1 and V2 Depth Images in Terms of Accuracy and Precision , 2016, ACCV Workshops.

[28]  Rob Fergus,et al.  Visualizing and Understanding Convolutional Networks , 2013, ECCV.

[29]  Joachim Krieter,et al.  Characterisation of sows' postures and posture changes with regard to crushing piglets , 2009 .

[30]  Petr Císar,et al.  Automated multiple fish tracking in three-Dimension using a Structured Light Sensor , 2016, Comput. Electron. Agric..

[31]  Lene Juul Pedersen,et al.  Lying down and rolling behaviour in sows in relation to piglet crushing , 2005 .

[32]  David M. W. Powers,et al.  Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlation , 2011, ArXiv.

[33]  Neethu M. Sasi,et al.  Contrast Limited Adaptive Histogram Equalization for Qualitative Enhancement of Myocardial Perfusion Images , 2013 .

[34]  Claudia Bahr,et al.  Automatic monitoring of pig locomotion using image analysis , 2014 .

[35]  Paulo Cortez,et al.  Automatic visual detection of human behavior: A review from 2000 to 2014 , 2015, Expert Syst. Appl..