Deep learning and image processing for high-throughput udder phenotyping in dairy cows

<h2>ABSTRACT</h2> Udder conformation is a crucial phenotype in dairy cows as it relates to their health and productivity, particularly in Automated Milking Systems (AMS). As such, this project aims to (1) develop an automated pipeline that extracts udder phenotypes from depth images and (2) evaluate the association between those traits and production performance. We recorded depth videos from the udders of 150 lactating Holstein cows at a farm with AMS and generated reports containing the production records of the cows' corresponding lactation. We trained, validated, and tested convolutional neural networks (CNNs) for classification, segmentation, and keypoint detection using images from a subset of the AMS cows (n = 50) and an existing data set (n = 63). The pipeline integrates CNNs with Watershed segmentation and image processing tools to select frames that portray the udder, segment the udder region (Intersection over Union, IoU=0.93 ± 0.035), locate the teats (Normalized Euclidean distance, NED=0.061 ± 0.06), divide the udder into its quarters, perform quality control, and extract phenotypes. These phenotypes include udder and quarter circularity, eccentricity, surface area, and ventral volume, as well as teat length and distance between teats. Using the pipeline, we extracted udder phenotypes all AMS cows with good images and predictions (n = 138). We evaluated the association between the udder phenotypes and production performance using Pearson correlations and linear mixed models. Udders and quarters with lager area were associated with higher milk yields (r = 0.55). Similarly, cows with increased parity were associated with larger udder perimeter (r = 0.72), longer teats (r = 0.31), and larger distance between teats (r = 0.48). This pipeline is suitable for high-throughput udder phenotyping, which is relevant for breeding, health, management, and welfare.

Authors

Institutions

Publication Details

Journal
Journal of Dairy Science
Published
2026-04-01
DOI
https://doi.org/10.3168/jds.2025-28008
Primary Topic
Milk Quality and Mastitis in Dairy Cows
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Deep learning and image processing for high-throughput udder phenotyping in dairy cows

Maria Elisa Montes, Laura L. Hernandez, Douglas J. Reinemann, Joao R.R. Dorea et al.
Journal of Dairy Science
Milk Quality and Mastitis in Dairy Cows
article

Deep learning and image processing for high-throughput udder phenotyping in dairy cows

Maria Elisa Montes, Laura L. Hernandez, Douglas J. Reinemann, Joao R.R. Dorea, Guilherme.L. Menezes
article en

Abstract

<h2>ABSTRACT</h2> Udder conformation is a crucial phenotype in dairy cows as it relates to their health and productivity, particularly in Automated Milking Systems (AMS). As such, this project aims to (1) develop an automated pipeline that extracts udder phenotypes from depth images and (2) evaluate the association between those traits and production performance. We recorded depth videos from the udders of 150 lactating Holstein cows at a farm with AMS and generated reports containing the production records of the cows' corresponding lactation. We trained, validated, and tested convolutional neural networks (CNNs) for classification, segmentation, and keypoint detection using images from a subset of the AMS cows (n = 50) and an existing data set (n = 63). The pipeline integrates CNNs with Watershed segmentation and image processing tools to select frames that portray the udder, segment the udder region (Intersection over Union, IoU=0.93 ± 0.035), locate the teats (Normalized Euclidean distance, NED=0.061 ± 0.06), divide the udder into its quarters, perform quality control, and extract phenotypes. These phenotypes include udder and quarter circularity, eccentricity, surface area, and ventral volume, as well as teat length and distance between teats. Using the pipeline, we extracted udder phenotypes all AMS cows with good images and predictions (n = 138). We evaluated the association between the udder phenotypes and production performance using Pearson correlations and linear mixed models. Udders and quarters with lager area were associated with higher milk yields (r = 0.55). Similarly, cows with increased parity were associated with larger udder perimeter (r = 0.72), longer teats (r = 0.31), and larger distance between teats (r = 0.48). This pipeline is suitable for high-throughput udder phenotyping, which is relevant for breeding, health, management, and welfare.

Journal of Dairy Science
University of Wisconsin–Madison (US)
National Institute of Food and Agriculture
Zero hunger
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.