Predicting mastitis in dairy cows using neural networks and generalized additive models: A comparison

Abstract The aim of this paper is to develop and compare methods for early detection of oncoming mastitis with automated recorded data. The data were collected at the Danish Cattle Research Center (Tjele, Denmark). As indicators of mastitis, electrical conductivity (EC), somatic cell scores (SCS), lactate dehydrogenase (LDH), and milk yield are considered. Each indicator is decomposed into a long-term, smoothed component, and a short-term, residual component, in order to distinguish long-term trends from short-term departures from these trends. We also study whether it is useful to derive a latent variable that combines residual components into a score to improve the model. To develop and verify the model, the data are randomly divided into training and validation data sets. To predict the occurrence of mastitis, neural network models (NNs) and generalized additive models (GAMs) are developed using the training set. Their performance is evaluated on the validation data set in terms of sensitivity and specificity. Overall, the performance of NNs and GAMs is similar, with neither method appearing to be decisively superior. NNs appear to be marginally better for high specificities. NNs model results in better classification with all indicators, using individual residuals rather than factor scores. When SCS is excluded, GAMs shows better classification result when milk yield is also excluded. In conclusion, the study shows that NNs and GAMs are similar in their ability to detect mastitis, a sensitivity of almost 75% observed for 80% of fixed specificity. Including SCS in the models improves their predictive ⩾5% ability.

[1]  T. Larsen,et al.  Estimating degree of mastitis from time-series measurements in milk: a test of a model based on lactate dehydrogenase measurements. , 2007, Journal of dairy science.

[2]  I. R. Korsgaard,et al.  Time-series models on somatic cell score improve detection of mastitis , 2008 .

[3]  Brian D. Ripley,et al.  Pattern Recognition and Neural Networks , 1996 .

[4]  T. Larsen,et al.  L-lactate dehydrogenase and N-acetyl-β-D-glucosaminidase activities in bovine milk as indicators of non-specific mastitis , 2006, Journal of Dairy Research.

[5]  Gene H. Golub,et al.  Missing value estimation for DNA microarray gene expression data: local least squares imputation , 2005, Bioinform..

[6]  Martin J. Green,et al.  On distinguishing cause and consequence: do high somatic cell counts lead to lower milk yield or does high milk yield lead to lower somatic cell count? , 2006, Preventive veterinary medicine.

[7]  R. Tibshirani,et al.  Generalized additive models for medical research , 1986, Statistical methods in medical research.

[8]  Henk Hogeveen,et al.  Economic aspects of mastitis: New developments , 2011, New Zealand veterinary journal.

[9]  N. Friggens,et al.  Quantifying degree of mastitis from common trends in a panel of indicators for mastitis in dairy cows. , 2010, Journal of dairy science.

[10]  P Løvendahl,et al.  Covariance among milking frequency, milk yield, and milk composition from automatically milked cows. , 2011, Journal of dairy science.

[11]  Chris Chatfield,et al.  The Analysis of Time Series: An Introduction , 1981 .

[12]  Dorothy T. Thayer,et al.  EM algorithms for ML factor analysis , 1982 .

[13]  C J Rutten,et al.  Invited review: sensors to support health management on dairy farms. , 2013, Journal of dairy science.

[14]  A. Brand,et al.  Application of a neural network to analyse on-line milking parlour data for the detection of clinical mastitis in dairy cows , 1995 .

[15]  H Hogeveen,et al.  Economic effects of bovine mastitis and mastitis management: A review , 2007, The Veterinary quarterly.

[16]  Schalm Ow,et al.  Effect of Deoxyribonuclease on the California Test for Mastitis , 1962 .

[17]  H Hogeveen,et al.  Electrical conductivity of milk: ability to predict mastitis status. , 2004, Journal of dairy science.

[18]  Henk Hogeveen,et al.  Mastitis in dairy production. Current knowledge and future solutions , 2005 .

[19]  P. Rousseeuw,et al.  Wiley Series in Probability and Mathematical Statistics , 2005 .

[20]  Herman Mollenhorst,et al.  Sensors and Clinical Mastitis—The Quest for the Perfect Alert , 2010, Italian National Conference on Sensors.

[21]  Joseph J. LaViola Double exponential smoothing: an alternative to Kalman filter-based predictive tracking , 2003 .

[22]  T. Larsen,et al.  A model for detection of individual cow mastitis based on an indicator measured in milk. , 2006, Journal of dairy science.