DOI : https://doi.org/10.5281/zenodo.19429088
- Open Access
- Authors : Atharva Jagtap, Shreyash Patil, Aditya Pardhi, Dr. Sandeep Kulkarni
- Paper ID : IJERTV15IS031527
- Volume & Issue : Volume 15, Issue 03 , March – 2026
- Published (First Online): 05-04-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
Landmark-Based Image Morphometrics for Dairy Cattle: A Comparative Study
Atharva Jagtap, Shreyash Patil, Aditya Pardhi Dr. Sandeep Kulkarni
Assistant Professor, Department of Computer Science Ajeenkya DY Patil University, Charholi bk, Pune, Maharashtra, India
Abstract – Accurate morphometric measurements are essential for dairy cattle phenotyping, yet manual field measurements are time- consuming and prone to operator variability. This study evaluates the agreement between traditional manual measurements and non- invasive image-based morphometric estimation under practical field conditions. Lateral-view images of dairy cattle were collected along with manual measurements of key traits, including height at withers, body length, and chest width. A landmark-guided computer vision pipeline was used to detect anatomical keypoints and compute real-world measurements through pixel-to-metric calibration. Agreement between methods was assessed using correlation analysis, mean absolute error, and Bland-Altman evaluation. Results show strong agreement for major traits when images are captured under consistent distance and angle, while errors increase under oblique viewpoints and poor lighting. These findings indicate that image-based morphometrics can serve as a reliable supportive tool for standardized dairy cattle phenotyping, provided that image acquisition guidelines are carefully followed.
Keywords – digital livestock phenotyping, anatomical landmark detection, non-invasive measurement, computer vision in agriculture, morphometric agreement analysis
-
INTRODUCTION
Dairy farming plays a significant role in rural livelihood and the agricultural economy, where productivity and animal health depend strongly on genetics, nutrition, and body conformation. Body structure traits such as height at withers, body length, chest width, rump angle, and body depth are commonly used in phenotyping to assess growth, structural soundness, and long- term functional performance [9], [10]. These morphometric measurements provide essential information for breed improvement, scientific studies, and selection of animals for better reproductive and production efficiency. In most practical farm environments, morphometric traits are recorded manually using measuring tape and visual estimation by trained personnel. While manual measurement remains widely used due to its low equipment requirements, it is associated with several limitations. Manual processes are labor-intensive, slow for large-scale data collection, and can vary based on operator skill, fatigue, animal movement, and inconsistent landmark placement [19], [21]. Even small posture changes during measurement can introduce deviation, resulting in inconsistent data that affects downstream analysis and decision-making [1]. Recent advances in artificial intelligence and computer vision have enabled image-based phenotyping approaches where physical traits can be estimated directly from animal photographs. These approaches are attractive because they are non-invasive, faster, repeatable, and scalable for large herds [9]. By detecting anatomical landmarks such as withers point,
hip bone, shoulder point, and pin bone, computer vision models can estimate key morphometric distances [3], [11], [12]. However, the real-world reliability of image-based morphometrics depends on factors such as camera angle, lighting, background noise, animal pose, and accurate scaling methods [18]. Although several studies have explored automated livestock analysis, limited comparative evaluations exist that rigorously quantify the agreement between manual morphometric recordings and image-based estimation under practical field constraints [14], [15]. Many implementations validate results only in controlled environments or without detailed analysis of measurement error sources. This creates a need for systematic validation studies that compare both approaches and establish the reliability limits of image-based measurement pipelines. This study focuses on the comparative evaluation of image-based and manual morphometric measurements in dairy cattle using a landmark-guided computer vision pipeline. We hypothesize that image-based trait estimation can achieve strong agreement with manual reference values when images are captured under consistent conditions, but performance degrades with changes in viewpoint and scale inconsistency. By analyzing measurement accuracy and identifying key error factors, this research contributes toward building reliable guidelines for adopting image-based morphometrics in scalable cattle phenotyping workflows.
-
LITERATURE REVIEW
Image-based livestock phenotyping has gained increasing attention due to its ability to reduce manual effort, improve repeatability, and provide scalable measurement solutions in farm environments [9]. Morphometric traits such as body length, height at withers, chest width, and rump dimensions are frequently used in dairy cattle evaluation for understanding growth, productivity, and structural soundness [10].
-
Manual Morphometric Measurement and Its Limitations
Manual body measurement techniques remain common in dairy farms and breeding programs because they require minimal tools and can be performed in field conditions. However, literature consistently reports drawbacks including measurement inconsistency across observers, time consumption, and the influence of animal movement [19], [22]. Repeated measurements of the same animal may differ across sessions, reducing data reliability for large-scale phenotyping [1].
-
Computer Vision for Livestock Monitoring
Computer vision has been widely applied in agriculture for monitoring animal health, detecting lameness, tracking feeding behavior, and estimating body weight [15]. Traditional computer vision techniques such as segmentation and contour extraction perform reasonably in controlled settings but struggle in field conditions due to background clutter and illumination variation [4].
-
Landmark Detection and Pose Estimation Approaches
Anatomical landmark detection forms the foundation for accurate morphometric estimation from images. Landmark- based methods identify key points such as shoulder, withers, hip, pin bone, and rump locations [3]. Deep learning architectures such as convolutional neural networks enable consistent landmark extraction across posture variation, though accuracy depends on annotated data availability and model generalization [11], [12].
-
Image-Based Morphometric Measurement Techniques
Several studies demonstrate that morphometric traits can be derived by computing distances between detected anatomical landmarks and converting pixel distances into real-world units using calibration references [9], [18]. High correlation with manual measurements has been reported in controlled settings; however, errors increase under oblique angles and inconsistent scaling [14].
-
Challenges in Field Deployment
Field deployment introduces constraints such as uneven lighting, animal movement, occlusion, and inconsistent camera
viewpoints, all of which degrade estimation accuracy [18]. Solutions such as multi-view imaging and depth sensors improve performance but increase system cost and complexity, limiting adoption in rural environments [10].
-
Comparative Evaluation and Validation Metrics
Comparative validation relies on metrics such as correlation coefficients, MAE, RMSE, and BlandAltman plots to assess agreement and systematic bias between methods [1], [7]. BlandAltman analysis is particularly effective for evaluating measurement interchangeability [2].
-
Research Gap and Motivation
Despite progress in AI-based livestock monitoring, few studies conduct structured comparisons of manual and image-based morphometric measurements under real farm conditions [15]. This gap motivates the present study to evaluate agreement and identify dominant error factors affecting image-based morphometric estimation in dairy cattle.
-
-
METHODOLOGY / PROPOSED SYSTEM
This section describes the overall workflow used to collect morphometric data from dairy cattle and to compare manual measurements with image-based estimates generated using a landmark-guided computer vision pipeline. The methodology is designed to ensure that both measurement approaches are performed on the same animals under similar conditions so that agreement, error patterns, and limitations can be quantified reliably.
-
Study Design
A comparative experimental design was used where each animal was measured using two methods: (1) traditional manual morphometric measurement and (2) image-based morphometric estimation. The same set of core traits was measured in both methods to ensure direct comparability. The objective was to quantify how closely image-derived values match manual reference values and to analyze the factors that influence measurement error.
-
Data Collection and Image Acquisition
Lateral-view images of dairy cattle were collected using a smartphone camera under farm-like conditions. Images were captured when the animal was standing in a stable posture, with all four legs visible as much as possible. To reduce perspective distortion, the camera was held approximately parallel to the animal body and positioned at mid-body height. A consistent distance was maintained between the camera and animal for most captures. Each animal was photographed at least once, and in selected cases multiple images were taken to study measurement repeatability under slightly varying conditions. Images with excessive occlusion, motion blur, or extreme body bending were excluded to maintain measurement validity.
-
Manual Morphometric Measurement Protocol
Manual measurements were treated as the reference baseline for evaluation. Standard morphometric traits were recorded using a measuring tape and/or measuring stick depending on the trait. The key traits considered in this work include:
-
Height at Withers (HW): Vertical distance from the ground to the highest point of the withers.
-
Body Length (BL): Distance from the shoulder point to the pin bone (or rump end depending on breed convention).
-
Chest Width (CW): Horizontal distance across the chest region (when feasible under field posture).
To minimize observer bias, measurements were taken using consistent anatomical landmarks. In some samples, repeated measurements were recorded for the same animal to estimate manual measurement variability. All measurements were stored in a structured sheet format along with the animal identifier and image filename.
-
-
Image Preprocessing
Before landmark estimation, images were standardized through preprocessing steps. Each image was resized to a fixed dimension to ensure consistent input size for the computer vision pipeline. Basic enhancement operations such as brightness normalization were applied when necessary to
reduce lighting variation. If the background was complex, simple cropping was performed to focus primarily on the animal body region. These steps helped improve the robustness of landmark detection and reduced noise from surrounding objects.
-
Landmark-Guided Computer Vision Pipeline
The image-based morphometric estimation was implemented using a landmark-guided pipeline, where anatomical keypoints are first identified and then used to compute morphometric distances. The major stages are as follows:
-
Anatomical Landmark Identification: Key body landmarks such as withers point, shoulder point, hip bone, and pin bone were detected from lateral images. These landmarks represent biologically meaningful reference points commonly used for morphometric measurement.
-
Pixel Distance Computation: Once landmarks were located, Euclidean distances between landmark pairs were computed in pixel units for traits such as height at withers and body length.
-
Pixel-to-Metric Conversion: To convert pixel distances into real-world units (cm), a scaling strategy was applied. Calibration was achieved using a reference scale object (where available) or a known measurement reference collected alongside manual measurements. This step is crucial because pixel distances alone cannot represent real dimensions without scale normalization.
-
Trait Estimation Output: After calibration, the final morphometric trait values were produced in real-world units and stored in a structured format for comparison with manual records.
-
-
Comparative Evaluation Metrics
To evaluate agreement between manual and image-based measurements, multiple statistical metrics were used:
-
Mean Absolute Error (MAE): Measures the average absolute difference between manual and image-based values.
-
Root Mean Square Error (RMSE): Penalizes larger errors more strongly and indicates measurement stability.
-
Pearson Correlation Coefficient (r): Quantifies the strength of the linear relationship between both methods.
-
BlandAltman Agreement Analysis: Assesses systematic bias and limits of agreement between manual and image-based measurement approaches.
These metrics collectively provide both accuracy-based evaluation (MAE/RMSE) and agreement-based validation (correlation and BlandAltman).
-
-
System Output and Data Storage
For each animal, the system generates a final measurement report containing trait values from both manual and image- based methods along with error statistics. All records are stored in tabular form (CSV/Excel format) with fields such as animal ID, image ID, manual values, predicted values, and computed errors. This structured output supports future integration into larger phenotyping systems and enables reproducible analysis.
-
-
RESULTS AND DISCUSSION
This section presents the comparative outcomes of manual morphometric measurements and image-based morphometric estimates obtained through the proposed landmark-guided computer vision pipeline. The performance of the image-based method was evaluated using statistical error metrics and agreement analysis to determine its reliability under practical image acquisition conditions.
-
Comparative Performance of Manual and Image-Based Measurements
The image-based method was evaluated for key morphometric traits such as height at withers (HW), body length (BL), and chest width (CW). For each trait, predicted values from the image pipeline were compared against the corresponding manually recorded reference values. The comparison showed that image-based measurements followed the same overall trend as manual measurements, indicating that the computer
vision approach successfully captured the structural differences among animals.
Across the dataset, the image-based measurements demonstrated strong correlation with manual measurements for traits involving long, wel-defined body segments such as body length and height at withers. Traits that depend on subtle width estimation, such as chest width, showed comparatively higher variability due to challenges in depth perception and occlusion in 2D lateral images.
-
Error Analysis Using MAE and RMSE
To quantify measurement accuracy, Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) were computed for each morphometric trait. The results indicated lower MAE and RMSE for height at withers and body length, suggesting that the landmark-based method produced consistent estimates when anatomical points were clearly visible. RMSE values were slightly higher than MAE, reflecting that a small number of samples produced larger error deviations, typically caused by posture variation and inconsistent scaling during image capture.
For chest width estimation, both MAE and RMSE were relatively higher compared to the other traits. This is expected because width-related traits require either multi-view imaging or depth information for better estimation, and lateral images alone provide limited visibility of true horizontal width.
-
Correlation and Agreement Analysis
Pearson correlation coefficient was calculated to assess linear agreement between both methods. Results revealed a high positive correlation for major traits, confirming that image- based morphometric values align closely with manual measurements. However, correlation alone does not confirm perfect agreement, therefore BlandAltman analysis was also considered.
BlandAltman agreement evaluation indicated that most samples fell within acceptable limits of agreement for height at withers and body length. A small bias was observed in certain cases where the image-based system consistently overestimated or underestimated specific traits. This bias was commonly linked to calibration inconsistencies and slight camera angle deviations, which affected pixel-to-metric conversion.
error.
-
Effect of Image Acquisition Conditions
The study observed that image acquisition conditions significantly influenced image-based measurement performance. The most influential factors were:
-
Camera Angle: Oblique and tilted viewpoints introduced perspective distortion, leading to inaccurate landmark distance estimation.
-
Distance Variation: Inconsistent camera-to-animal distance affected scaling accuracy when calibration references were not fixed.
-
Lighting Conditions: Poor lighting reduced landmark detection quality, especially around darker body regions or shadowed areas.
-
Animal Posture and Movement: Bent posture, uneven standing, or slight movement during capture shifted anatomical landmark positions, increasing
When images were captured under consistent lighting and near- perfect lateral posture, measurement accuracy improved significantly. This confirms that a practical image acquisition guideline is essential for reliable deployment of image-based morphometric systems.
-
-
Discussion and Practical Implications
-
The comparative evaluation demonstrates that image-based morphometric estimation has strong potential to assist cattle phenotyping by reducing manual workload and improving repeatability. The strongest results were obtained for traits such as height at withers and body length, which rely on clear anatomical landmarks visible in side-view images. These findings suggest that image-based methods can serve as a supportive measurement tool in large-scale cattle evaluation programs where rapid data collection is required.
However, traits requiring accurate width estimation remain challenging when using only 2D lateral images. This limitation indicates that either multi-angle imaging or depth-based sensors may be needed to improve estimation of width-related features. Furthermore, the systems dependency on image capture consistency highlights the importance of standardizing field image collection protocols.
Overall, the proposed landmark-guided computer vision approach provides a feasible and scalable method for morphometric estimation, but further improvements in calibration strategy and robustness under varying field conditions are necessary before fully replacing manual measurement.
This research presented a comparative evaluation of manual morphometric measurement and image-based morphometric estimation in dairy cattle using a landmark-guided computer vision approach. The study focused on core structural traits such as height at withers, body length, and chest width, which are commonly used for phenotyping and assessment of body conformation in dairy animals. The results showed that image- derived measurements generally follow the same trend as manually recorded values, indicating that computer vision can serve as a practical, non-invasive method for extracting morphometric parameters.
The analysis confirmed that image-based estimation achieved stronger agreement for traits such as height at withers and body length, primarily because these measurements rely on clearly visible anatomical landmarks in lateral-view images. However, traits involving width estimation demonstrated higher error due to limitations of 2D imaging, depth ambiguity, and partial occlusions. In addition, the study identified camera angle, inconsistent distance, posture variations, and lighting
CONCLUSION
conditions as major factors affecting accuracy. These findings highlight the need for standardized image acquisition guidelines to ensure reliable performance in real-world environments.
Overall, the proposed system demonstrates that image-based morphometric estimation is feasible as a supportive tool for standardized cattle phenotyping, with potential to reduce manual effort and improve measurement repeatability. Future work will focus on improving robustness under field constraints through better calibration strategies, multi-view image capture, and advanced landmark detection models. Extending the approach to buffaloes and incorporating larger and more diverse datasets will further enhance generalizability and practical deployment for large-scale livestock evaluation programs.
REFERENCES
-
J. M. Bland and D. G. Altman, Statistical methods for assessing agreement between two methods of clinical measurement, The Lancet, vol. 1, no. 8476, pp. 307310, 1986.
-
J. M. Bland and D. G. Altman, Measurement in medicine: The analysis of method comparison studies, The Statistician, vol. 32, no. 3, pp. 307 317, 1983.
-
A. Mathis, P. Mamidanna, K. M. Cury, T. Abe, V. N. Murthy, M. W. Mathis, and M. Bethge, DeepLabCut: Markerless pose estimation of user-defined body parts with deep learning, Nature Neuroscience, vol. 21, no. 9, pp. 12811289, 2018, doi: 10.1038/s41593-018-0209-y.
-
G. Bradski, The OpenCV Library, Dr. Dobbs Journal of Software
Tools, 2000.
-
G. Jocher, A. Stoken, J. Borovec, et al., ultralytics/yolov5: Initial Release, Zenodo, 2020, doi: 10.5281/zenodo.3908559.
-
G. Jocher, YOLOv5, GitHub Repository, 2020. [Online]. Available:
https://github.com/ultralytics/yolov5
-
M. A. Mansournia, A. H. Nazemipour, and M. Naimi, BlandAltman methods for comparing methods of measurement: A review, Biostatistics and Epidemiology, 2021.
-
DeepLabCut Contributors, DeepLabCut: Markerless pose estimation toolbox, GitHub Repository, 2018. [Online]. Available: https://github.com/DeepLabCut/DeepLabCut
-
W. Ma, X. Zhang, J. Zhang, et al., Computer-vision-based sensing technologies for live body dimesion measurement in livestock: A review, Sensors, 2024. [Online]. Available: https://pmc.ncbi.nlm.nih.gov/articles/PMC10934764/
-
Y. Wang, C. Li, and others, A review of three-dimensional computer vision used in cattle growth management, Computers and Electronics in Agriculture, vol. 207, 2023. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0168169923000753
-
M. Taghavi, M. A. A. H. Khan, and others, Cow key point detection in indoor housing conditions with deep learning, Journal of Dairy Science, 2024. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0022030223007518
-
C. Gong, Y. Zhang, and others, Multicow pose estimation based on keypoint extraction in dairy farms, PLOS ONE, 2022. [Online]. Available: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.02692 59
-
S. Barney, and others, Deep learning pose estimation for multi-cattle lameness detection in dairy farms, Scientific Reports, 2023. [Online].
Available: https://www.nature.com/articles/s41598-023-31297-1
-
H. Afridi, and others, Analyzing data modalities for cattle weight estimation using deep learning, 2024. [Online]. Available: https://pmc.ncbi.nlm.nih.gov/articles/PMC10971323/
-
R. Dohmen, and others, Computer vision-based weight estimation of livestock: A review, New Zealand Journal of Agricultural Research, 2022. [Online]. Available: https://www.tandfonline.com/doi/full/10.1080/00288233.2021.1876107
-
C. Lee, and others, Cattle weight estimation using fully and weakly supervised learning from images, Applied Sciences, vol. 13, no. 5, 2023. [Online]. Available: https://www.mdpi.com/2076-3417/13/5/2896
-
L. Bai, and others, Cattle weight estimation model through readily available photos, Engineering Applications of Artificial Intelligence, 2025. [Online]. Available: https://www.sciencedirect.com/science/article/abs/pii/S0952197624021 353
-
X. Chen, and others, A lightweight automatic cattle body measurement method using lateral and dorsal images, Symmetry, vol. 17, no. 11, 2025. [Online]. Available: https://www.mdpi.com/2073-8994/17/11/1926
-
A. L. N. Zhang, and others, Development and validation of a visual image analysis for body dimensions in livestock, International Journal of Livestock Production, 2018. [Online]. Available: https://www.tandfonline.com/doi/full/10.1080/09712119.2018.1450257
-
M. Khan, and others, The morphometric features of Azikheli buffalo in Swat, Pakistan, 2025. [Online]. Available: https://urfjournals.org/open- access/the-morphometric-features-of-azikheli-buffalo-in-swat-khyber- pakhtunkhwa-pakistan.pdf
-
Physical characteristics and morphometric traits of buffaloes reared in Kashmir Valley, 2018. [Online]. Available: https://www.researchgate.net/publication/322373408_Physical_Charact eristics_and_Morphometric_Traits_of_Buffaloes_Reared_in_Kashmir_ Valley
-
Body morphometric measurements in Murrah crossbred buffaloes (Bubalus bubalis), 2018. [Online]. Available: https://www.researchgate.net/publication/326565364_Body_morphomet ric_measurements_in_Murrah_crossbred_buffaloes_Bubalus_bubalis
