Automated detection of asymmetrical udders in dairy goats using a camera and deep-learning model YOLOv12
Journal of Dairy Science · 2026
DOI: 10.3168/jds.2025-27683 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Dairy Science, 2026. Verfasst von Kacper Libera und 5 weiteren Autor:innen. Beteiligte Einrichtung: Institute for Risk Assessment Sciences (IRAS), Department of Population Health Sciences, Faculty of Veterinary Medicine, Utrecht University, 3584 CM …. Hauptthemen laut MEDLINE: Mammary Glands, Animal, Deep Learning, Mastitis, Goat Diseases. Die Arbeit nennt 46 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Udder asymmetry is a clinical sign in dairy goats frequently linked to udder inflammation (mastitis). Therefore, goats identified with udder asymmetry should be examined and specifically checked for (past) mastitis. Ideally, all goats should be routinely monitored for udder asymmetry during milking. However, in many countries, dairy goat herds consist of hundreds to thousands of animals, which makes it practically impossible and too labor intensive to regularly examine all animals. Therefore, new automated solutions, including computer vision models, are highly desirable. In this study, we trained and validated a custom computer vision model to detect udder asymmetry in goats. To develop the model, 4,321 annotated goat backside udder images and 373 background images were collected during milking sessions on a dairy goat farm on 3 different days. The 3 ground truth labels for the goat udders—symmetrical, left asymmetry, and right asymmetry—were provided by 2 independent dairy goat veterinarians. The dataset was randomly split in 60% training, 20% validation, and 20% unseen test subsets. The model was trained for 300 epoch cycles including hyperparameter optimization for 300 iterations. The performance of our model (Udder_Asymmetry_Model) on the test dataset was satisfactory, with a mean average precision of 0.891 (mAP 50 , indicating detection success with 50% overlap between the predicted and actual udder area), and 0.766 (mAP 50–95 , the average performance across stricter localization requirements). Ninety-five percent CI were 0.869–0.912 and 0.747–0.789, respectively. In conclusion, the detection of udder asymmetry in dairy goats can be automated using a simple camera and our computer vision model. This solution can facilitate better udder health monitoring, ultimately leading to improvements in animal health, animal welfare, and milk quality.
Schlagwörter
MeSH-Schlagwörter (MEDLINE)
Stichwörter der Autor:innen
Autor:innen und Institutionen
- Institute for Risk Assessment Sciences (IRAS), Department of Population Health Sciences, Faculty of Veterinary Medicine, Utrecht University, 3584 CM Utrecht, the Netherlands. Electronic address: k.b.libera@uu.nl.
- Sustainable Ruminant Health, Department of Population Health Sciences, Faculty of Veterinary Medicine, Utrecht University, 3584 CL Utrecht, the Netherlands.
- Institute for Risk Assessment Sciences (IRAS), Department of Population Health Sciences, Faculty of Veterinary Medicine, Utrecht University, 3584 CM Utrecht, the Netherlands; Sustainable Ruminant Health, Department of P…
- Institute for Risk Assessment Sciences (IRAS), Department of Population Health Sciences, Faculty of Veterinary Medicine, Utrecht University, 3584 CM Utrecht, the Netherlands.
Zitieren
APA
Libera, K., Pals, M. A. M., de Geus, Y., Koop, G., Smit, L. A. M., & Bossers, A. (2026). Automated detection of asymmetrical udders in dairy goats using a camera and deep-learning model YOLOv12. Journal of Dairy Science. https://doi.org/10.3168/jds.2025-27683
Vancouver
Libera K, Pals MAM, de Geus Y, Koop G, Smit LAM, Bossers A. Automated detection of asymmetrical udders in dairy goats using a camera and deep-learning model YOLOv12. Journal of Dairy Science. 2026. doi:10.3168/jds.2025-27683
BibTeX
@article{Libera2026,
author = {Libera, Kacper and Pals, Maxime A M and de Geus, Yvette and Koop, Gerrit and Smit, Lidwien A M and Bossers, Alex},
title = {Automated detection of asymmetrical udders in dairy goats using a camera and deep-learning model YOLOv12},
journal = {Journal of Dairy Science},
year = {2026},
doi = {10.3168/jds.2025-27683}
}
EUVIMED