Hostname: page-component-6766d58669-tq7bh Total loading time: 0 Render date: 2026-05-17T10:28:19.675Z Has data issue: false hasContentIssue false

Modeling cow somatic cell count using sensor data as input to generalized additive models

Published online by Cambridge University Press:  04 September 2020

Dorota Anglart*
Affiliation:
DeLaval International AB, PO Box 39, se-147 21, Tumba, Sweden Department of Clinical Sciences, Swedish University of Agricultural Sciences, PO Box 7054, se-750 07, Uppsala, Sweden
Charlotte Hallén-Sandgren
Affiliation:
DeLaval International AB, PO Box 39, se-147 21, Tumba, Sweden
Patrik Waldmann
Affiliation:
Department of Animal Breeding and Genetics, Swedish University of Agricultural Sciences, PO Box 7023, se-750 07, Uppsala, Sweden
Martin Wiedemann
Affiliation:
DeLaval GmbH, Wilhelm-Bergner-Str. 5, Glinde21509, Germany
Ulf Emanuelson
Affiliation:
Department of Clinical Sciences, Swedish University of Agricultural Sciences, PO Box 7054, se-750 07, Uppsala, Sweden
*
Author for correspondence: Dorota Anglart, Email: dorota.anglart@delaval.com
Rights & Permissions [Opens in a new window]

Abstract

This research paper presents a study investigating if sensor data from an automatic milking rotary could be used to model cow somatic cell count (composite milk SCC: CMSCC). CMSCC is valuable for udder health monitoring and individual cow udder health surveillance could be improved by predicting CMSCC between routine samplings. Data regularly recorded in the automatic milking rotary, in one German dairy herd, were collected for analysis. The cows (Holstein-Friesian, n = 372) were milked twice daily and sampled once weekly in afternoon milkings for 8 weeks for CMSCC. From the potential independent variables, including quarter conductivity, milk flow, blood in milk, kick-offs, not milked quarters and incomplete milkings, new variables that combined quarter data were created. Past period records, i.e. lags, of up to seven days before the actual CMSCC sampling event were added in the dataset to investigate if they were of use in modeling the cell count. Univariable generalized additive models (GAM) were used to screen the data to select potential independent variables. Furthermore, several multivariable GAM were fitted in order to compare the importance of the potential independent variables and to explore how the model performance would be affected by using data from various number of days before the CMSCC sampling event. The result of the model selection showed that the best explanation of CMSCC was provided by the model incorporating all significant variables from the variable screening for the seven preceding days, including the day of the CMSCC sampling event. However, using data from only three days before the CMSCC sampling event is suggested to be sufficient to model CMSCC. Variables combining conductivity quarter data, together with quarter conductivity, are suggested to be important in describing CMSCC. We conclude that CMSCC can be modeled with a high degree of explanation using the information routinely recorded by the milking robot.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
Copyright © The Author(s), 2020. Published by Cambridge University Press on behalf of Hannah Dairy Research Foundation
Figure 0

Table 1. Possible independent variables used in model development, presented with definition of each variable and the corresponding past time-period records (milking session lag)

Figure 1

Table 2. Independent variables (P < 0.050) for model 1 and model 2

Figure 2

Fig. 1. The effect of quarter conductivity on composite milk somatic cell count one milking session before the composite milk somatic cell count sampling event, estimated by the screening model. The pointwise 95% confidence interval is shown by the dashed lines. The vertical lines on the x-axis show the individual quarter conductivity datapoints. The y-axis shows the composite milk somatic cell count transformed to a log10 scale (log10CMSCC). The smooths are expressed as deviations from the overall mean.

Figure 3

Fig. 2. The partial effects of the (a) mastitis detection index (MDi), (b) variance in conductivity between quarters (conductivity.var), (c) difference in conductivity between quarters (conductivity.diff), (d) maximum quarter conductivity (conductivity.max), one milking session before the composite milk somatic cell count sampling event, estimated by the screening model. The pointwise 95% confidence interval is shown by the dashed lines. The vertical lines on the x-axis show the individual MDi datapoints. The y-axis shows the composite milk somatic cell count.

Figure 4

Table 3. Performance of models using data from various time points before the composite milk somatic cell count (CMSCC) sampling event ranked according to lowest corrected Akaike information criterion (AIC)

Supplementary material: PDF

Anglart et al. supplementary material

Anglart et al. supplementary material

Download Anglart et al. supplementary material(PDF)
PDF 98.9 KB