Automatic estimation of dairy cattle body condition score from depth image using ensemble model

Body condition scoring (BCS) gives a relative measure of subcutaneous body fat available as energy reserves in the dairy cow. It is an important management tool for maximising milk production and reproduction efficiency while reducing the incidence of metabolic and peripartum diseases. The feasibility of estimating the BCS by computer vision has been demonstrated in recent research. However, the techniques explored to date may be limited in dynamic backgrounds or in applications for an imbalanced dataset of cows' BCS, which is likely to be encountered in dairy farming. In this study, a dynamic background model (Gaussian Mixture Model, GMM) was used to separate the cow from the background. Then, a series of image processing algorithms were proposed for quantifying the indicators used in manual scoring, including global features and local features. Finally, an ensemble learning approach was used to model the imbalanced dataset. The results demonstrate that applying GMM on depth images can eliminate the difficulty of object detection caused by background changes. The image processing algorithms can automatically acquire valid images, locate regions of interest and extract image features without any manual intervention. In 5-fold cross-validation, the ensemble model achieved an average accuracy of 56% within 0.125-point deviation, 76% within 0.25-point deviations and 94% within 0.5-point deviations. Especially, the proposed method has a better predictive performance for cows with extreme body condition than is possible with the current state of the art.

[1]  P. E. Wagner,et al.  A Dairy Cow Body Condition Scoring System and Its Relationship to Selected Production Characteristics , 1982 .

[2]  Jonathan H. Connell,et al.  A Statistical Approach for Real-time Robust Background Subtrac tion and Shadow Detection , 2014 .

[3]  Melvyn L. Smith,et al.  Automated monitoring of dairy cow body condition, mobility and weight using a single 3D video capture device , 2018, Comput. Ind..

[4]  J M Bewley,et al.  Potential for estimation of body condition scores in dairy cattle from digital images. , 2008, Journal of dairy science.

[5]  J D Ferguson,et al.  Body condition assessment using digital images. , 2006, Journal of dairy science.

[6]  Eric Bauer,et al.  An Empirical Comparison of Voting Classification Algorithms: Bagging, Boosting, and Variants , 1999, Machine Learning.

[7]  F. Frances Yao,et al.  Finding the Convex Hull of a Simple Polygon , 1983, J. Algorithms.

[8]  Andrew W. Fitzgibbon,et al.  Direct Least Square Fitting of Ellipses , 1999, IEEE Trans. Pattern Anal. Mach. Intell..

[9]  D T Galligan,et al.  Principal descriptors of body condition score in Holstein cows. , 1994, Journal of dairy science.

[10]  Jack Sklansky,et al.  Finding the convex hull of a simple polygon , 1982, Pattern Recognit. Lett..

[11]  Yael Edan,et al.  Development of automatic body condition scoring using a low-cost 3-dimensional Kinect camera. , 2016, Journal of dairy science.

[12]  G. C. Guarnera,et al.  Objective estimation of body condition score by modeling cow body shape from digital images. , 2011, Journal of dairy science.

[13]  Lyndon Smith,et al.  Non-intrusive automated measurement of dairy cow body condition using 3D video , 2015 .

[14]  David Legland,et al.  Efficient N-Dimensional surface estimation using Crofton formula and run-length encoding , 2012, The Insight Journal.

[15]  W R Butler,et al.  Interrelationships between energy balance and postpartum reproductive function in dairy cattle. , 1989, Journal of dairy science.

[16]  P. Faverdin,et al.  Rear shape in 3 dimensions summarized by principal component analysis is a good predictor of body condition score in Holstein dairy cows. , 2015, Journal of dairy science.

[17]  Toru Tamaki,et al.  A preliminarily study for predicting body weight and milk properties in lactating Holstein cows using a three-dimensional camera system , 2015, Comput. Electron. Agric..

[18]  I Halachmi,et al.  Development of an automatic cow body condition scoring using body shape signature and Fourier descriptors. , 2013, Journal of dairy science.

[19]  J. Hillers,et al.  Relationships of body condition score to production variables in high producing Holstein dairy cattle. , 1993, Journal of dairy science.

[20]  Francisco Herrera,et al.  A Review on Ensembles for the Class Imbalance Problem: Bagging-, Boosting-, and Hybrid-Based Approaches , 2012, IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews).

[21]  Keiichi Abe,et al.  Topological structural analysis of digitized binary images by border following , 1985, Comput. Vis. Graph. Image Process..

[22]  Alejandro Zunino,et al.  Body condition estimation on cows from depth images using Convolutional Neural Networks , 2018, Comput. Electron. Agric..

[23]  P. Bühlmann,et al.  Boosting With the L2 Loss , 2003 .

[24]  Alípio Mário Jorge,et al.  Ensemble approaches for regression: A survey , 2012, CSUR.

[25]  Wolfgang Junge,et al.  Feasibility of automated body trait determination using the SR4K time-of-flight camera in cow barns , 2014, SpringerPlus.

[26]  Ilan Halachmi,et al.  Automatic assessment of dairy cattle body condition score using thermal imaging , 2013 .

[27]  Z. Zivkovic Improved adaptive Gaussian mixture model for background subtraction , 2004, ICPR 2004.