EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Automated dairy cattle body condition score using side-view images and deep learning

Lei Yao, Fanrong Kong, Weinan Hong, Jin Liu, Xinwei Li, ZiPei Fan, Lin Lei

Journal of Dairy Science · 2026

DOI: 10.3168/jds.2025-27759 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Dairy Science, 2026. Verfasst von Lei Yao und 6 weiteren Autor:innen. Beteiligte Einrichtung: College of Artificial Intelligence, Jilin University, Changchun, 130012, China. Hauptthemen laut MEDLINE: Deep Learning, Body Composition, Image Processing, Computer-Assisted, Dairying. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 24 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Department of Science and Technology of Jilin Province, National Key Research and Development Program of China.

AbstractSchlagwörterBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Body condition score is key to assessing the health, productivity, and energy balance of dairy cows. However, traditional manual methods are time-intensive, dependent on evaluator experience, and prone to subjective biases, limiting large-scale, frequent monitoring. In smallholder settings, where regular BCS monitoring and nutrition advisory support are unavailable, rationing often focuses on intake targets, overlooking body condition feedback, resulting in overconditioned cows, particularly during the periparturient period. This increases the risk of metabolic disorders such as ketosis from excessive lipid mobilization. Here, we developed and validated a fully automated regression-based BCS system from side-view images. Given a single on-farm photograph, the system automatically detects and crops the bovine region of interest, preserves the aspect ratio, and applies resizing and padding to the target resolution. The cropped image is then fed into a deep image regression model, estimating the continuous BCS and creating an automated evaluation. We validated the system using 3,208 side-view images of 211 Holstein cows from a commercial herd, capturing a range of real-world scenes and lighting conditions. To ensure reliable ground truth, 3 trained assessors independently scored the cows, with an intraclass correlation coefficient of 0.92 at the cow level before consensus fusion. The method employs a 2-stage design: first, a You Only Look Once version 11 model pretrained on the COCO dataset detects and crops the image with a mean average precision of 99.5%, minimizing background interference and standardizing inputs; second, a side-view image regression model predicts the BCS. To ensure unbiased evaluation, we performed a stratified 5-fold cow-level cross-validation, ensuring images of the same cow appeared exclusively in either the training or validation sets. Comparisons of multiple backbones identified ConvNeXt-Tiny as the optimal model, achieving a mean absolute error of 0.41 and a Pearson correlation coefficient of 0.62. These results indicate that the model's prediction error falls within the typical range of interassessor variability. Explainable artificial intelligence techniques revealed the model focuses on key anatomical regions used by human raters, such as tailhead, hooks, pins, and ribs. This suggests the model learned biologically relevant features, not background artifacts or irrelevant signals. This system is noninvasive, cost-effective, and infrastructure-light. A single side-view image suffices for initial screening, enabling both herd-level monitoring and individual follow-up, facilitating early detection of negative energy balance and timely nutritional intervention. To ensure reproducibility and support edge deployment, all inference scripts, model weights, and logs are archived. Extreme BCS cases are rare in large-scale operations, but future work will expand the dataset, perform external validation across farms, and assess uncertainty thresholds to enhance robustness. In conclusion, this study introduces a proof-of-concept automated side-view BCS regression system with multiexpert consensus labeling, a deployable pipeline, and explainability-based validation, offering potential technical support for precision dairy farming and improving animal welfare.

Schlagwörter

MeSH-Schlagwörter (MEDLINE)

Deep LearningBody CompositionImage Processing, Computer-AssistedDairyingAnimalsCattleFemale

Stichwörter der Autor:innen

body condition scorecomputer visiondairy cattleprecision dairy farming

Autor:innen und Institutionen

  • College of Artificial Intelligence, Jilin University, Changchun, 130012, China.
  • State Key Laboratory for Diagnosis and Treatment of Severe Zoonotic Infectious Diseases, Key Laboratory for Zoonosis Research of the Ministry of Education, and College of Veterinary Medicine, Jilin University, Changchun…
  • College of Software, Jilin University, Changchun, 130012, China.
  • College of Artificial Intelligence, Jilin University, Changchun, 130012, China. Electronic address: fanzipei@jlu.edu.cn.

Förderung

  • Department of Science and Technology of Jilin Province
  • National Key Research and Development Program of China

Zitieren

APA

Yao, L., Kong, F., Hong, W., Liu, J., Li, X., Fan, Z., & Lei, L. (2026). Automated dairy cattle body condition score using side-view images and deep learning. Journal of Dairy Science. https://doi.org/10.3168/jds.2025-27759

Vancouver

Yao L, Kong F, Hong W, Liu J, Li X, Fan Z, et al. Automated dairy cattle body condition score using side-view images and deep learning. Journal of Dairy Science. 2026. doi:10.3168/jds.2025-27759

BibTeX
@article{Yao2026,
  author = {Yao, Lei and Kong, Fanrong and Hong, Weinan and Liu, Jin and Li, Xinwei and Fan, ZiPei and Lei, Lin},
  title = {Automated dairy cattle body condition score using side-view images and deep learning},
  journal = {Journal of Dairy Science},
  year = {2026},
  doi = {10.3168/jds.2025-27759}
}
Kostenlos starten →