Panoptic Segmentation of Individual Pigs for Posture Recognition

The behavioural research of pigs can be greatly simplified if automatic recognition systems are used. Especially systems based on computer vision have the advantage that they allow an evaluation without affecting the normal behaviour of the animals. In recent years, methods based on deep learning have been introduced and have shown pleasingly good results. Especially object and keypoint detectors have been used to detect the individual animals. Despite good results, bounding boxes and sparse keypoints do not trace the contours of the animals, resulting in a lot of information being lost. Therefore this work follows the relatively new definition of a panoptic segmentation and aims at the pixel accurate segmentation of the individual pigs. For this a framework of a neural network for semantic segmentation, different network heads and postprocessing methods is presented. With the resulting instance segmentation masks further information like the size or weight of the animals could be estimated. The method is tested on a specially created data set with 1000 hand-labeled images and achieves detection rates of around 95% (F1 Score) despite disturbances such as occlusions and dirty lenses.

[1]  Reinhard Koch,et al.  Model-based detection of pigs in images under sub-optimal conditions , 2018, Comput. Electron. Agric..

[2]  Ronan Collobert,et al.  Learning to Segment Object Candidates , 2015, NIPS.

[3]  Eric Psota,et al.  Multi-Pig Part Detection and Association with a Fully-Convolutional Network , 2019, Sensors.

[4]  Li Fei-Fei,et al.  ImageNet: A large-scale hierarchical image database , 2009, CVPR.

[5]  Yi Li,et al.  Fully Convolutional Instance-Aware Semantic Segmentation , 2016, 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[6]  Jon E. L. Day,et al.  A review of environmental enrichment for pigs housed in intensive housing systems , 2009 .

[7]  George Papandreou,et al.  Rethinking Atrous Convolution for Semantic Image Segmentation , 2017, ArXiv.

[8]  Eric Psota,et al.  Tracking of group-housed pigs using multi-ellipsoid expectation maximisation , 2018, IET Comput. Vis..

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

[10]  Richard S. Zemel,et al.  End-to-End Instance Segmentation with Recurrent Attention , 2016, 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[11]  Ali Farhadi,et al.  YOLOv3: An Incremental Improvement , 2018, ArXiv.

[12]  Kaiming He,et al.  Feature Pyramid Networks for Object Detection , 2016, 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

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

[14]  Thomas Brox,et al.  Pixel-Level Encoding and Depth Layering for Instance-Level Semantic Labeling , 2016, GCPR.

[15]  Ronan Collobert,et al.  Learning to Refine Object Segments , 2016, ECCV.

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

[17]  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 .

[18]  Jonathan Tompson,et al.  PersonLab: Person Pose Estimation and Instance Segmentation with a Bottom-Up, Part-Based, Geometric Embedding Model , 2018, ECCV.

[19]  Lei Zhang,et al.  Automatic individual pig detection and tracking in surveillance videos , 2018, ArXiv.

[20]  Eugenio Culurciello,et al.  LinkNet: Exploiting encoder representations for efficient semantic segmentation , 2017, 2017 IEEE Visual Communications and Image Processing (VCIP).

[21]  Trevor Darrell,et al.  Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation , 2013, 2014 IEEE Conference on Computer Vision and Pattern Recognition.

[22]  Wei Liu,et al.  SSD: Single Shot MultiBox Detector , 2015, ECCV.

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

[24]  Trevor Darrell,et al.  Fully Convolutional Networks for Semantic Segmentation , 2017, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[25]  Iasonas Kokkinos,et al.  DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs , 2016, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[26]  Thomas Brox,et al.  U-Net: Convolutional Networks for Biomedical Image Segmentation , 2015, MICCAI.

[27]  Leland McInnes,et al.  hdbscan: Hierarchical density based clustering , 2017, J. Open Source Softw..

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

[29]  Philip H. S. Torr,et al.  Recurrent Instance Segmentation , 2015, ECCV.

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

[31]  Andrew W. Fitzgibbon,et al.  A Buyer's Guide to Conic Fitting , 1995, BMVC.

[32]  Ricardo J. G. B. Campello,et al.  Density-Based Clustering Based on Hierarchical Density Estimates , 2013, PAKDD.

[33]  Jimmy Ba,et al.  Adam: A Method for Stochastic Optimization , 2014, ICLR.

[34]  Yaser Sheikh,et al.  OpenPose: Realtime Multi-Person 2D Pose Estimation Using Part Affinity Fields , 2018, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[35]  Ilias Kyriazakis,et al.  Early detection of health and welfare compromises through automated detection of behavioural changes in pigs , 2016, Veterinary journal.

[36]  Jian Sun,et al.  Deep Residual Learning for Image Recognition , 2015, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[37]  Jonathan Tompson,et al.  Towards Accurate Multi-person Pose Estimation in the Wild , 2017, 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[38]  Anne-Charlotte Olsson,et al.  Deep Learning and Machine Vision Approaches for Posture Detection of Individual Pigs , 2019, Sensors.

[39]  Yongwha Chung,et al.  A Kinect-Based Segmentation of Touching-Pigs for Real-Time Monitoring , 2018, Sensors.

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

[41]  Kaiming He,et al.  Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks , 2015, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[42]  Quoc V. Le,et al.  EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks , 2019, ICML.

[43]  Luc Van Gool,et al.  Semantic Instance Segmentation with a Discriminative Loss Function , 2017, ArXiv.

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

[45]  Xiang Zhang,et al.  OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks , 2013, ICLR.

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

[47]  Sergey Ioffe,et al.  Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning , 2016, AAAI.

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

[49]  Joachim Krieter,et al.  Influence of raw material on the occurrence of tail-biting in undocked pigs , 2016 .