Practical Monitoring of Undergrown Pigs for IoT-Based Large-Scale Smart Farm

Taking care of individual pigs is important in the management of a group-housed pig farm. However, this is nearly impossible in a large-scale pig farm owing to the shortage of farm workers. Therefore, we propose an automatic monitoring method in this study to solve the management problem of a large-scale pig farm. Particularly, we aim to detect undergrown pigs in group-housed pig rooms by using deep-learning-based computer vision techniques. Because the typical deep learning techniques require a large computational overhead (i.e., Mask-R-CNN), fast and accurate detection of undergrown pigs on an IoT-based embedded device is very challenging. We first obtain the video monitoring data of group-housed pigs by using a top-view camera that is installed in the pig room, and then detect each moving pig by combining image processing and deep learning techniques. Gaussian Mixture Model is used to detect moving frames and moving objects. In embedded device implementations, by applying deep learning (i.e., TinyYOLO3) to a few frames only with a large number of pixel changes, embedded GPUs can be used efficiently, satisfying the real-time requirement. As a subsequent step, we check the acceptable conditions of the posture and separability from each video frame of the continuous video stream. Finally, to compute the relative size of each pig quickly and accurately, we develop image processing steps to complement the result of deep learning with minimum computational overhead. Furthermore, by pipelining the CPU and GPU steps of a continuous video stream, we can hide the additional image processing time. Based on the experimental results obtained from an embedded device, we confirm that the proposed method can automatically detect undergrown pigs in real-time, by working as an early warning system without any human inspection or measurement of actual weight by a farm worker.

[1]  Sang-Heon Lee,et al.  Improved Image Analysis Based System to Reliably Predict the Live Weight of Pigs on Farm: Preliminary Results , 2011 .

[2]  Ali Farhadi,et al.  You Only Look Once: Unified, Real-Time Object Detection , 2015, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[3]  Dehai Zhu,et al.  On-Barn Pig Weight Estimation Based on Body Measurements by Structure-from-Motion (SfM) , 2018, Sensors.

[4]  Hyun Yoe,et al.  Design and Implementation of ICT-Based System for Information Management of Livestock Farm , 2014 .

[5]  Nazar Khan,et al.  Machine Learning at the Network Edge: A Survey , 2019, ACM Comput. Surv..

[6]  Supachai Pathumnakul,et al.  An approach based on digital image analysis to estimate the live weights of pigs in farm environments , 2015, Comput. Electron. Agric..

[7]  Jiahua Wu,et al.  Extracting the three-dimensional shape of live pigs using stereo photogrammetry , 2004 .

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

[9]  Kijoon Chae,et al.  On-Device AI-Based Cognitive Detection of Bio-Modality Spoofing in Medical Cyber Physical System , 2019, IEEE Access.

[10]  Tami M. Brown-Brandl,et al.  Evaluation of a depth sensor for mass estimation of growing and finishing pigs , 2018, Biosystems Engineering.

[11]  Richard B. D’Eath,et al.  The Natural Behaviour of the Pig , 2009 .

[12]  Hong-Seok Kim,et al.  NNStreamer: Stream Processing Paradigm for Neural Networks, Toward Efficient Development and Execution of On-Device AI Applications , 2019, ArXiv.

[13]  Daihee Park,et al.  Acoustic Features for Pig Wasting Disease Detection , 2015 .

[14]  Erik Jørgensen,et al.  Determination of live weight of pigs from dimensions measured using image analysis , 1996 .

[15]  Ali Farhadi,et al.  YOLO9000: Better, Faster, Stronger , 2016, 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[16]  A. Wongsriworaphon,et al.  Image analysis for pig recognition based on size and weight , 2012, 2012 IEEE International Conference on Industrial Engineering and Engineering Management.

[17]  Soumendra Mohanty,et al.  Decentralized Autonomous Organizations = Blockchain + AI + IoT , 2018 .

[18]  Daniel Berckmans,et al.  Automatic weight estimation of individual pigs using image analysis , 2014 .

[19]  Ke Wang,et al.  Automated calculation of heart girth measurement in pigs using body surface point clouds , 2019, Comput. Electron. Agric..

[20]  Sijung Kim,et al.  Estimating pig weights from images without constraint on posture and illumination , 2018, Comput. Electron. Agric..

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

[22]  Yongwha Chung,et al.  Real-time processing for intelligent-surveillance applications , 2017, IEICE Electron. Express.

[23]  Daniel Berckmans,et al.  Weight Estimation of Pigs Using Top-View Image Processing , 2014, ICIAR.

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

[25]  Chen Shi,et al.  An approach of pig weight estimation using binocular stereo system based on LabVIEW , 2016, Comput. Electron. Agric..

[26]  Ross B. Girshick,et al.  Fast R-CNN , 2015, 1504.08083.

[27]  Andrea Pezzuolo,et al.  On-barn pig weight estimation based on body measurements by a Kinect v1 depth camera , 2018, Comput. Electron. Agric..

[28]  C. P. Schofield Evaluation of image analysis as a means of estimating the weight of pigs. , 1990 .

[29]  Daniel Berckmans,et al.  Extracting body surface dimensions from top-view images of pigs , 2018 .

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

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

[32]  Dries Berckmans,et al.  Precision livestock farming for pigs , 2017 .