Using Longitudinal Data of Somatic Cell Counts and Milk Yield to Identify Mastitis-Resilient Cows

Bovine mastitis remains a significant concern for the dairy industry, affecting animal welfare, farm profitability, and milk quality. Despite genetic and non-genetic control efforts, its multi-pathogenic nature makes eradication challenging, highlighting the importance of mastitis resilient cows (animals that are minimally affected or recover quickly after a health challenge). Resilience is commonly quantified using resilience indicators (RIs) based on performance deviations from a hypothetical unperturbed trajectory (i.e., the expected performance in the absence of challenges). To date, RIs for dairy cows have been constructed exclusively from time-series performance data (e.g., milk yield). However, to breed for resilience to mastitis, it would be more useful to develop mastitis-specific indicators than general production-based ones. This study explores the use of daily records of somatic cell counts (SCC) and milk yield to identify and characterise potential perturbations associated with mastitis. Specifically, we evaluated alternative statistical approaches for estimating individuals’ unperturbed trajectories and assessed their consistency in detecting periods of systematic deviation. Data from the Swedish University of Agricultural Sciences cattle infrastructure, Gigacow, were used. The dataset includes daily records of milk yield and online SCC from 1,052 dairy cows across up to 7 lactations, from 6 Swedish dairy farms using automatic milking systems with online cell counters. Three methods were applied separately to the milk yield and SCC data: (i) weighted spline, where data points likely associated with perturbations were given lower weights (e.g., milk yield drops or SCC spikes); (ii) quantile regression (targeting the 0.7 quantile for milk yield and 0.3 quantile for SCC); and (iii) iterative polynomial regression, where large negative (milk yield) and large positive residuals (SCC) were progressively removed and the curve refitted to minimise the influence of perturbed observations. Deviations from the estimated trajectories were computed, and potential perturbations characterised. Preliminary findings suggest that quantile regression and weighted spline produce similar trajectories and identify comparable perturbations. In contrast, the iterative polynomial method generates a different trajectory and detects fewer perturbations, reflecting a conservative approach for identifying perturbations. These results can help determine the most appropriate method for detecting mastitisrelated perturbations and, ultimately, identify the most mastitis-resilient animals.

Publication Details

Journal
Edinburgh Research Explorer
Published
2025-11-24
Primary Topic
Milk Quality and Mastitis in Dairy Cows
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Using Longitudinal Data of Somatic Cell Counts and Milk Yield to Identify Mastitis-Resilient Cows

Edinburgh Research Explorer
Milk Quality and Mastitis in Dairy Cows
article

Using Longitudinal Data of Somatic Cell Counts and Milk Yield to Identify Mastitis-Resilient Cows

article en

Abstract

Bovine mastitis remains a significant concern for the dairy industry, affecting animal welfare, farm profitability, and milk quality. Despite genetic and non-genetic control efforts, its multi-pathogenic nature makes eradication challenging, highlighting the importance of mastitis resilient cows (animals that are minimally affected or recover quickly after a health challenge). Resilience is commonly quantified using resilience indicators (RIs) based on performance deviations from a hypothetical unperturbed trajectory (i.e., the expected performance in the absence of challenges). To date, RIs for dairy cows have been constructed exclusively from time-series performance data (e.g., milk yield). However, to breed for resilience to mastitis, it would be more useful to develop mastitis-specific indicators than general production-based ones. This study explores the use of daily records of somatic cell counts (SCC) and milk yield to identify and characterise potential perturbations associated with mastitis. Specifically, we evaluated alternative statistical approaches for estimating individuals’ unperturbed trajectories and assessed their consistency in detecting periods of systematic deviation. Data from the Swedish University of Agricultural Sciences cattle infrastructure, Gigacow, were used. The dataset includes daily records of milk yield and online SCC from 1,052 dairy cows across up to 7 lactations, from 6 Swedish dairy farms using automatic milking systems with online cell counters. Three methods were applied separately to the milk yield and SCC data: (i) weighted spline, where data points likely associated with perturbations were given lower weights (e.g., milk yield drops or SCC spikes); (ii) quantile regression (targeting the 0.7 quantile for milk yield and 0.3 quantile for SCC); and (iii) iterative polynomial regression, where large negative (milk yield) and large positive residuals (SCC) were progressively removed and the curve refitted to minimise the influence of perturbed observations. Deviations from the estimated trajectories were computed, and potential perturbations characterised. Preliminary findings suggest that quantile regression and weighted spline produce similar trajectories and identify comparable perturbations. In contrast, the iterative polynomial method generates a different trajectory and detects fewer perturbations, reflecting a conservative approach for identifying perturbations. These results can help determine the most appropriate method for detecting mastitisrelated perturbations and, ultimately, identify the most mastitis-resilient animals.

Edinburgh Research Explorer
Industry, innovation and infrastructure
Openalex Percentile: Top 31%
Milk Quality and Mastitis in Dairy Cows
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.