Related Experiment Video
Updated: Feb 8, 2026

A Step-by-Step Implementation of DeepBehavior, Deep Learning Toolbox for Automated Behavior Analysis
Published on: February 6, 2020
Automated detection of asymmetrical udders in dairy goats using a camera and deep-learning model YOLOv12
Kacper Libera1, Maxime A M Pals2, Yvette de Geus3
1Institute for Risk Assessment Sciences (IRAS), Department of Population Health Sciences, Faculty of Veterinary Medicine, Utrecht University, 3584 CM Utrecht, the Netherlands.
Abstract:
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 (mAP50, indicating detection success with 50% overlap between the predicted and actual udder area), and 0.766 (mAP50-95, the average performance across stricter localization requirements). The 95% 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.
Related Concept Videos
Rotation of Asymmetric Top
The relationship between the angular momentum of any rigid body and its angular velocity, both of which are vectors, involves the moment of inertia. The moment of inertia is a scalar quantity only for spherically symmetric...
Asymmetric Lipid Bilayer
Reduction of Alkenes: Asymmetric Catalytic Hydrogenation
The metal catalyst used can be either heterogeneous or homogeneous. When hydrogenation of an alkene generates a chiral center, a pair of enantiomeric products is expected to form. However, an enantiomeric excess of one of the products can be facilitated using an enantioselective reaction or an...
Avoidance Learning and Learned Helplessness
Avoidance learning occurs when an organism learns that a specific behavior can prevent an unpleasant outcome. For example, a student who receives a bad grade may start studying harder to avoid future poor grades. This behavior persists even when the negative outcome is no longer present. Avoidance learning is powerful because it maintains behavior in the absence of the...
Associative Learning
Classical conditioning, also known...
Purposive Learning

