Automatic scoring of lateral and sternal lying posture in grouped pigs using image processing and Support Vector Machine

Abstract The behaviour of animals provides information on their health, welfare and environmental situation. In different climatic conditions, pigs adopt different lying postures; at higher temperatures they lie laterally on their side with their limbs extended, while in lower temperatures they will adopt a sternal or belly lying posture. Machine vision has been widely used in recent years to monitor individual and group pig behaviours. So, the aim of this study was to determine whether a two-dimensional imaging system could be used for lateral and sternal lying posture detection in grouped pigs under commercial farm conditions. An image processing algorithm with Support Vector Machine (SVM) classifier was applied in this work. Pigs were monitored by top view RGB cameras and animals were extracted from their background using a background subtracting method. Based on the binary image properties, the boundaries and convex hull of each animal were found. In order to determine their lying posture, the area and perimeter of each boundary and convex hull were calculated in lateral and sternal lying postures as inputs for training of a linear SVM classifier. The trained SVM was then used to detect the target postures in binary images. By means of the image features and the classification technique, it was possible to automatically score the lateral and sternal lying posture in grouped pigs under commercial farm conditions with high accuracy of 94.4% for the classification and 94% for the scoring (detection) phases using two-dimensional images.

[1]  Heidi Mai-Lis Andersen,et al.  The ear skin temperature as an indicator of the thermal comfort of pigs , 2008 .

[2]  Tom Fawcett,et al.  An introduction to ROC analysis , 2006, Pattern Recognit. Lett..

[3]  Hongwei Xin,et al.  A real-time computer vision assessment and control of thermal comfort for group-housed pigs , 2008 .

[4]  Monique Thonnat,et al.  Description of object shapes by apparent boundary and convex hull , 1993, Pattern Recognit..

[5]  Yongwha Chung,et al.  Automatic Recognition of Aggressive Behavior in Pigs Using a Kinect Depth Sensor , 2016, Sensors.

[6]  B. Sturm,et al.  A new approach for categorizing pig lying behaviour based on a Delaunay triangulation method. , 2017, Animal : an international journal of animal bioscience.

[7]  Maysam Ghovanloo,et al.  An automated behavior analysis system for freely moving rodents using depth image , 2018, Medical & Biological Engineering & Computing.

[8]  Baoming Li,et al.  Using Floor Cooling as an Approach to improve the Thermal Environment in the Sleeping Area in an Open Pig House , 2006 .

[9]  Ashley I. Naimi,et al.  Stacked generalization: an introduction to super learning , 2017, bioRxiv.

[10]  Jay D. Harmon,et al.  Comparison of image feature extraction for classification of swine thermal comfort behavior , 1998 .

[11]  Y. Wang,et al.  Walk-through weighing of pigs using machine vision and an artificial neural network , 2008 .

[12]  Chen Chen,et al.  Image motion feature extraction for recognition of aggressive behaviors among group-housed pigs , 2017, Comput. Electron. Agric..

[13]  Lijun Qi,et al.  Crop-row detection algorithm based on Random Hough Transformation , 2011, Math. Comput. Model..

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

[15]  Jørgen Kongsro,et al.  Estimation of pig weight using a Microsoft Kinect prototype imaging system , 2014 .

[16]  Murat Kulahci,et al.  Pig herd monitoring and undesirable tripping and stepping prevention , 2015, Comput. Electron. Agric..

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

[18]  Ehsan Khoramshahi,et al.  Real-time recognition of sows in video: A supervised approach , 2014 .

[19]  M. Z. Abdullah,et al.  Shape and weight grading of mangoes using visible imaging , 2015, Comput. Electron. Agric..

[20]  Mohammad Hammoudeh,et al.  Information extraction from sensor networks using the Watershed transform algorithm , 2015, Inf. Fusion.

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

[22]  G. V. Putten,et al.  A comparative study of the well-being of piglets reared conventionally and in cages , 1976 .

[23]  M. Tagawa,et al.  Multi-panel assay of serum autoantibodies in colorectal cancer , 2018, International Journal of Clinical Oncology.

[24]  C. Bench,et al.  The automated analysis of clustering behaviour of piglets from thermal images in response to immune challenge by vaccination. , 2018, Animal : an international journal of animal bioscience.

[25]  W. S. Lee,et al.  Identification and determination of the number of immature green citrus fruit in a canopy under different ambient light conditions , 2014 .

[26]  Yongwha Chung,et al.  Depth-Based Detection of Standing-Pigs in Moving Noise Environments , 2017, Sensors.

[27]  M. A. Jayaram,et al.  Convex Hulls in Image Processing: A Scoping Review , 2016 .

[28]  Santosh Kumar Behera,et al.  Fast recognition and verification of 3D air signatures using convex hulls , 2018, Expert Syst. Appl..

[29]  I. Hulsegge,et al.  Lying characteristics as determinants for space requirements in pigs , 2003 .

[30]  Hans Spoolder,et al.  Thermal behaviour of growing pigs in response to high temperature and humidity , 2005 .

[31]  B. Sturm,et al.  Implementation of machine vision for detecting behaviour of cattle and pigs , 2017 .

[32]  Dinesh Kumar,et al.  Species specific approach to the development of web-based antimicrobial peptides prediction tool for cattle , 2015, Comput. Electron. Agric..