Making sense of sensor data: detecting clinical mastitis in automatic milking systems

Farmers milking dairy cows are obliged to exclude milk with abnormal homogeneity or color for human consumption (e.g., Regulation (EC) No 853/2004), where most abnormal milk is caused by clinical mastitis (CM). With automatic milking (AM), farmers are no longer physically present during the milking process. AM systems use sensors in order to replace the visual monitoring of udder health. Sensor measurements are used by CM detection models as input data to produce mastitis alert lists. These lists report cows suspected of having CM as they deviate, according to the sensor information, from ‘normal’ for one reason or another. It is the responsibility of the dairy farmer to check listed cows visually to confirm CM. Most CM detection models use sensor information of the electrical conductivity as input data. Currently used CM detection models, however, can be improved in order to detect more CM cases and to decrease the number of cows listed on the mastitis list erroneously. The objective was to improve CM detection using sensor data from AM systems by exploring three routes: (1) applying new algorithms, (2) adding new sensor information, and (3) adding non-sensor information. This improved CM detection model should (1) detect CM at high levels of sensitivity (>70%) and specificity (>99%), (2) alert for CM preferably at the quarter milking where clinical signs are visible for the first time, or within a limited time period around this event, (3) be able to deal with field data, and (4) provide information about the CM causal pathogen in order to improve the decision making process regarding antibiotic treatment. Nine Dutch dairy farmers participated in a field study to collect sensor data and visual observations of CM. Sensor measurements were transformed to predictive variables, which were used as input data for the development of a CM detection model with decision tree induction. Detection performance of the developed model (sensitivity 40% at a specificity 99%) was higher compared with models currently used by AM systems. It got close to the required performance levels by increasing the time window in which the model was allowed to alert for a CM event (sensitivity 69.5%, specificity 99%). Sensor data also had potential to differentiate between Gram-positive and Gram-negative CM causal pathogen. Adding information from a new sensor (measuring somatic cell count (SCC)) to a CM detection model that uses sensor measurements of the electrical conductivity improved the detection of CM as well. Despite expectations, adding non-AM cow information (e.g., parity, SCC history, CM history) did not improve detection performance when added to a detection model based on sensor data. The next step in improving CM detection models is gaining insight in the needs of dairy farmers, obtaining international agreements on gold standard definitions, applied time windows, and data inclusion criteria, and collecting a data set from more than one commercial dairy farm where all quarter milkings are checked visually for CM.

[1]  J. Ross Quinlan,et al.  C4.5: Programs for Machine Learning , 1992 .

[2]  G. H. Kroeze,et al.  Description of a detection model for oestrus and diseases in dairy cattle based on time series analysis combined with a Kalman filter , 1999 .

[3]  G. H. Kroeze,et al.  Results of a multivariate approach to automated oestrus and mastitis detection , 1997 .

[4]  Tom M. Mitchell,et al.  Machine Learning and Data Mining , 2012 .

[5]  F. Skjøth,et al.  Visual appearance and CMT score of foremilk of individual quarters in relation to cell count of cows milked automatically , 2005, Journal of Dairy Research.

[6]  Henk Hogeveen,et al.  Detection of abnormal milk and mastitis using sencor measurements of automatic milking machines , 2007 .

[7]  M. Rasmussen,et al.  Visual scoring of milk mixed with blood , 2005, Journal of Dairy Research.

[8]  R. Veerkamp,et al.  Associations between pathogen-specific cases of clinical mastitis and somatic cell count patterns. , 2004, Journal of dairy science.

[9]  Toby Mottram,et al.  Automatic monitoring of the health and metabolic status of dairy cows , 1997 .

[10]  Taioun Kim,et al.  Inducing inference rules for the classification of bovine mastitis , 1999 .

[11]  R. M. de Mol,et al.  DETECTION OF ESTRUS AND MASTITIS: FIELD PERFORMANCE OF A MODEL , 2001 .

[12]  J. Hillerton,et al.  Detection of clinical mastitis by changes in electrical conductivity of foremilk before visible changes in milk. , 1996, Journal of dairy science.

[13]  J. Blum,et al.  Udder health and risk factors for subclinical mastitis in organic dairy farms in Switzerland. , 2000, Preventive veterinary medicine.

[14]  Alisa Rudnitskaya,et al.  Evaluation of a novel chemical sensor system to detect clinical mastitis in bovine milk. , 2007, Biosensors & bioelectronics.

[15]  Satu Pyörälä,et al.  Accuracy and reliability of mastitis detection with electrical conductivity and milk colour measurement in automatic milking , 2006 .

[16]  J. McLean,et al.  Milk colour analysis as a tool for the detection of abnormal milk. , 2002 .

[17]  C.J.A.M. de Koning,et al.  Milk quality on farms with an automatic milking system , 2004 .

[18]  D. Pietersma,et al.  Decision-tree induction to interpret lactation curves , 2002 .

[19]  H. Hogeveen Mastitis therapy and control : automatic on-line detection of abnormal milk , 1973 .

[20]  H Hogeveen,et al.  Sensors and management support in high-technology milking. , 2003, Journal of animal science.

[21]  C Kamphuis,et al.  Genetic parameters for claw disorders in Dutch dairy cattle and correlations with conformation traits. , 2005, Journal of dairy science.

[22]  D. McClish Analyzing a Portion of the ROC Curve , 1989, Medical decision making : an international journal of the Society for Medical Decision Making.

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

[24]  Joachim Krieter,et al.  Mastitis detection in dairy cows by application of fuzzy logic , 2006 .

[25]  J. Hillerton,et al.  Comparison of treatment of mastitis by oxytocin or antibiotics following detection according to changes in milk electrical conductivity prior to visible signs. , 1999, Journal of dairy science.

[26]  W Ouweltjes,et al.  Detection model for mastitis in cows milked in an automatic milking system. , 2001, Preventive veterinary medicine.

[27]  J. Ross Quinlan,et al.  Induction of Decision Trees , 1986, Machine Learning.

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

[29]  H. Allore,et al.  Cow- and quarter-level risk factors for Streptococcus uberis and Staphylococcus aureus mastitis. , 2001, Journal of dairy science.

[30]  L. Glickman,et al.  Accuracy of clinicians in predicting the bacterial cause of clinical bovine mastitis. , 1986, The Canadian veterinary journal = La revue veterinaire canadienne.

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

[32]  Lloyd A. Smith,et al.  An investigation into the use of machine learning for determining oestrus in cows , 1996 .

[33]  Douglas J. Reinemann,et al.  Online Milk Sensing Issues for Automatic Milking , 2004 .

[34]  M. Rasmussen,et al.  Visual scoring of clots in foremilk , 2005, Journal of Dairy Research.

[35]  S D Walter,et al.  The partial area under the summary ROC curve , 2005, Statistics in medicine.

[36]  H. Seegers,et al.  Accuracy of the detection of intramammary infection using quarter somatic cell count when taking parity and stage of lactation of the dairy cow into account , 2002 .

[37]  L. Green,et al.  The association between quarter somatic-cell counts and clinical mastitis in three British dairy herds. , 2003, Preventive veterinary medicine.

[38]  Cândida Ferreira Decision Tree Induction , 2006 .

[39]  P. van’t Veer,et al.  Fish consumption, n-3 fatty acids, and colorectal cancer: a meta-analysis of prospective cohort studies. , 2007, American journal of epidemiology.

[40]  P. H. Hogewerf,et al.  The efficacy of in-line measurement of quarter milk electrical conductivity, milk yield and milk temperature for the detection of clinical and subclinical mastitis , 1992 .

[41]  Yoav Freund,et al.  Experiments with a New Boosting Algorithm , 1996, ICML.

[42]  Jago Jg,et al.  Remote automatic selection of cows for milking in a pasture-based automatic milking system , 2004 .

[43]  M. Nielen,et al.  Electrical conductivity of milk: measurement, modifiers, and meta analysis of mastitis detection performance. , 1992, Journal of dairy science.

[44]  Ian H. Witten,et al.  Data mining: practical machine learning tools and techniques, 3rd Edition , 1999 .

[45]  R M de Mol,et al.  Application of fuzzy logic in automated cow status monitoring. , 2001, Journal of dairy science.

[46]  Martin J. Green,et al.  Somatic cell count distributions during lactation predict clinical mastitis. , 2004, Journal of dairy science.

[47]  Methods for estimating areas under receiver-operating characteristic curves: illustration with somatic-cell scores in subclinical intramammary infections. , 1999, Preventive veterinary medicine.

[48]  G. A. Mein,et al.  An on-line somatic cell count sensor. , 2004 .

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

[50]  H. Seegers,et al.  Quarter milk somatic cell count in infected dairy cows: a meta-analysis. , 2002, Veterinary research.