Behavior classification of cows fitted with motion collars: Decomposing multi-class classification into a set of binary problems

Precision management systems for livestock offer the potential to monitor and manage animals on an individual basis. A key component of these sensor based systems are the analytical models that automatically translate sensor data into different behavioral categories. A new methodology was proposed for multi-class behavior modeling based upon the “one-vs-all” framework. This methodology differs from the standard approach to behavior classification where a single classifier is trained to discriminate between multiple behaviors. Instead a set of binary classifiers are trained to each discriminate one of the behavior classes against a combined class of all the remaining behaviors. The confidence scores from the set of binary classifiers are then combined to generate a behavioral estimate. The performance of this new modeling approach is validated across a study involving 24 Holstein-Friesian dairy cows that were each fitted with an Inertial Measurement Unit (IMU) on a collar upon their neck. Five general classes of cow behavior grazing, walking, ruminating, resting and “Other” were classified. Binary time series classifiers were tailored to each of the five behaviors through training and validation of each model across a range of configurations including nine window sizes, five classifiers and a feature selection process of 84 candidate input features. Results revealed that the proposed model classified grazing behavior with an extremely high classification accuracy (F-score of 0.98), whilst ruminating and resting behaviors were also classified with a high accuracy (F-scores of 0.87 and 0.85, respectively), and walking was classified with a lower accuracy (F-score of 0.73). The proposed model offered a 5% performance improvement over standard multi-class time series classifiers that was attributed to the “one-vs-all” framework training a classifier for each behavior independently; this created diversity in the behavior model. The feature selection process used in developing each of the binary classifiers found that features representing the motion intensity and pitch of the cow’s head were most important to each of behavior’s classification. Whilst a minor performance improvement was obtained using the proposed methodology, it is suggested that further performance improvements could be obtained by increasing the diversity of the classifier’s inputs. Diversity could be created by fusing the data of other sensors that can be fitted to the cows i.e. GPS tracking unit, pressure sensor and microphone.

[1]  Peter I. Corke,et al.  Transforming Agriculture through Pervasive Wireless Sensor Networks , 2007, IEEE Pervasive Computing.

[2]  David Talkin,et al.  A Robust Algorithm for Pitch Tracking ( RAPT ) , 2005 .

[3]  J. Jaśkowski,et al.  Behaviour of lame cows: a review. , 2018 .

[4]  Greg P. Timms,et al.  Bag of Class Posteriors, a new multivariate time series classifier applied to animal behaviour identification , 2015, Expert Syst. Appl..

[5]  Manuel K. Schneider,et al.  Inferring Behavioral States of Grazing Livestock from High-Frequency Position Data Alone , 2014, PloS one.

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

[7]  Herbert H. T. Prins,et al.  Deriving Animal Behaviour from High-Frequency GPS: Tracking Cows in Open and Forested Habitat , 2015, PloS one.

[8]  Eugene D. Ungar,et al.  Classifying cattle jaw movements: Comparing IGER Behaviour Recorder and acoustic techniques , 2006 .

[9]  K. Matsui,et al.  A method for quantification of jaw movements suitable for use on free-ranging cattle , 1991 .

[10]  Lars Relund Nielsen,et al.  Quantifying walking and standing behaviour of dairy cows using a moving average based on output from an accelerometer. , 2010 .

[11]  Leo Breiman,et al.  Classification and Regression Trees , 1984 .

[12]  Nikunj C. Oza,et al.  Online Ensemble Learning , 2000, AAAI/IAAI.

[13]  Remy Delagarde,et al.  Development of an automatic bitemeter for grazing cattle , 1999 .

[14]  Amit Gutman Inference of Animal Activity From GPS Collar Data on Free-Ranging Cattle , 2005 .

[15]  Robert J. Kilgour,et al.  In pursuit of "normal": A review of the behaviour of cattle at pasture , 2012 .

[16]  Greg Bishop-Hurley,et al.  Behavioral classification of data from collars containing motion sensors in grazing cattle , 2015, Comput. Electron. Agric..

[17]  Y Ueda,et al.  Technical note: the use of a physical activity monitor to estimate the eating time of cows in pasture. , 2011, Journal of dairy science.

[18]  M. Kolehmainen,et al.  Cow behaviour pattern recognition using a three-dimensional accelerometer and support vector machines , 2009 .

[19]  D. Weary,et al.  Technical note: Validation of a system for monitoring rumination in dairy cows. , 2009, Journal of dairy science.

[20]  Ryan M. Rifkin,et al.  In Defense of One-Vs-All Classification , 2004, J. Mach. Learn. Res..

[21]  D M Weary,et al.  Board-invited review: Using behavior to predict and identify ill health in animals. , 2009, Journal of animal science.

[22]  John G. Proakis,et al.  Digital Signal Processing: Principles, Algorithms, and Applications , 1992 .

[23]  L A González,et al.  Pain mitigation after band castration of beef calves and its effects on performance, behavior, Escherichia coli, and salivary cortisol. , 2010, Journal of animal science.

[24]  Cécile Cornou,et al.  Estimation of grass intake on pasture for dairy cows using tightly and loosely mounted di- and tri-axial accelerometers combined with bite count , 2013 .

[25]  Carrick Detweiler,et al.  Characterising the Spatial and Temporal Activities of Free-Ranging Cows from GPS Data , 2012 .

[26]  Ueli Braun,et al.  Evaluation of eating and rumination behaviour in cows using a noseband pressure sensor , 2013, BMC Veterinary Research.

[27]  Ying Guo,et al.  Using accelerometer, high sample rate GPS and magnetometer data to develop a cattle movement and behaviour model , 2009 .

[28]  John Platt,et al.  Probabilistic Outputs for Support vector Machines and Comparisons to Regularized Likelihood Methods , 1999 .

[29]  David G. Renter,et al.  Evaluation of three-dimensional accelerometers to monitor and classify behavior patterns in cattle , 2009 .

[30]  Gavin Brown,et al.  Ensemble Learning , 2010, Encyclopedia of Machine Learning and Data Mining.