Back to search

Iowa State University

Pose-based computer vision detection of lameness in dairy cattle

Abstract

dc:description.abstract

Lameness is a critical health and welfare issue for dairy cattle. Lame cows result in significant losses in farm economics and farm productivity while compromising the health and welfare of the animals. Several automated lameness detection models are available for farm animals, but they demonstrate limitations to robustness, accuracy, and generalizability in detecting lameness in real-world farm environments. This thesis investigates automated lameness scoring methods using Computer Vision (CV) and Machine Learning models (ML). Specifically, we focus on identifying optimal annotation tools, CV tools, and ML models to improve the accuracy of detection. Multiple different labeling solutions, such as DeepLabCut, COCO Annotator, Computer Vision Annotation Tool (CVAT), were explored to find the best tool for video annotation, data labelling, and team projects. Among the available pose estimation model platforms, YOLO (You Only Look Once) was selected because of its balance of speed, accuracy, and its potential to do real time detection. In addition, training and validation steps for YOLO models were relatively easier compared to R-CNN models for our specific application on cow lameness detection. A trained veterinary person went through the videos and gave them a lameness score based on the known gait and locomotion parameters. The YOLO model was trained and tuned using different standard methods such as mAP, F1 and IOU, which compare the model’s estimation of keypoints to the ground truth. Extracted keypoints were transformed into gait and locomotion parameters commonly used in lameness detection. Then various ML models were used to connect these parameters to the visual lameness score. In the context of pose estimation and lameness detection for dairy cattle, we further describe the overall workflow comprising different methods for model development and discuss the results by comparing the model accuracy with the ground truth data. We discuss different real-world farm situations that challenges CV models, such as occlusions, multi-body obstructions, and different lighting conditions. Our approach addresses these challenges with reasonably better performance compared to conventional computer vision models. Lastly, we discuss our results in comparison to the published literature on cattle lameness detection, highlighting the novelty of our approaches and future challenges to be addressed for developing a farm-ready application tool. This research contributes to the advancement of automated lameness detection through the optimization of model training and real-world performance data.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
thesis
Discipline thesis:degree_discipline
Computer engineering
Department dc:contributor.department
Department of Electrical and Computer Engineering
Grantor
Iowa State University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Wagner, John Henry
Advisors dc:contributor.advisor
  • Pandey, Santosh
  • Shearer, Jan
  • Daniels, Thomas
ORCID dc:identifier.orcid

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Iowa State University
Base URL
dr.lib.iastate.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Wagner, John Henry. Pose-based computer vision detection of lameness in dairy cattle. thesis thesis, Iowa State University, 2025. https://doi.org/10.31274/td-20251215-227