Model-based detection of pigs in images under sub-optimal conditions

Abstract The automatic detection of pigs in camera images from within the barn helps scientists and farmers to detect abnormal behaviour or problematic housing conditions and to investigate the causes. An established method for determining the position of pigs is the binary segmentation of the image and the subsequent modeling of the individual animals. Many studies are based on elliptical models because they sufficiently reproduce the positions of the pigs with a few parameters. However, the existing methods for adapting the ellipses require an almost perfect segmentation as they depend on the clear delimitation of individual animals. Although the animals are usually visually distinct from the background, a uniform segmentation is not always feasible. Due to occlusions, dirt or shadows in the barn, incomplete or faulty segmentation can occur even with advanced segmentation techniques. So this paper introduces a novel method for adapting the ellipses, which is not based on the edges of the segmentation but looks at all segmented pixels. This makes it easier to compensate minor errors in segmentation and helps to process images even under sub-optimal conditions, such as poor lighting or unfavourable camera positioning.

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

[2]  Daniel Berckmans,et al.  Automatic Identification of Marked Pigs in a Pen Using Image Pattern Recognition , 2013, MDA.

[3]  Gong Zhang,et al.  Separation of Touching Grain Kernels in an Image by Ellipse Fitting Algorithm , 2005 .

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

[5]  Daniel Berckmans,et al.  The automatic monitoring of pigs water use by cameras , 2013 .

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

[7]  Weixing Zhu,et al.  Foreground detection of group-housed pigs based on the combination of Mixture of Gaussians using prediction mechanism and threshold segmentation , 2014 .

[8]  Günter Rote,et al.  Computing the Minimum Hausdorff Distance Between Two Point Sets on a Line Under Translation , 1991, Inf. Process. Lett..

[9]  N. Otsu A threshold selection method from gray level histograms , 1979 .

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

[11]  Torben Gregersen,et al.  Original papers: Development of a real-time computer vision system for tracking loose-housed pigs , 2011 .

[12]  Nikolaus Hansen,et al.  Benchmarking a BI-population CMA-ES on the BBOB-2009 function testbed , 2009, GECCO '09.

[13]  Nikolaus Hansen,et al.  Completely Derandomized Self-Adaptation in Evolution Strategies , 2001, Evolutionary Computation.

[14]  Sandra A. Edwards,et al.  Using automated image analysis in pig behavioural research: Assessment of the influence of enrichment substrate provision on lying behaviour , 2017 .

[15]  Nigel J. B. McFarlane,et al.  Segmentation and tracking of piglets in images , 1995, Machine Vision and Applications.