Contactless lameness detection based on pose estimation in dairy cows using a lightweight 1D-CNN architecture
Kerim Kürşat Çevik, Emre Dandıl, Mustafa Boğa, Hüseyin Umut Yüksel, Güray Tonguç
Key points
From the paper's conclusion- We propose a contactless pipeline comprising YOLOv8 detection and tracking, DeepLabCut SuperAnimal-Quadruped pose estimation, and a lightweight one-dimensional convolutional neural network (1D-CNN).
Abstract
Background Lameness in dairy cows is a major welfare and economic problem, and video-based pose estimation is a promising route to automated detection. Reported accuracies are hard to compare, however, because the quality of the extracted skeletons and the way overlapping gait sequences are divided into training and test data are rarely examined. We propose a contactless pipeline comprising YOLOv8 detection and tracking, DeepLabCut SuperAnimal-Quadruped pose estimation, and a lightweight one-dimensional convolutional neural network (1D-CNN). We used this pipeline to quantify the effects of pose estimation quality, background isolation, and evaluation protocol. Results Skeleton sequences were obtained from 1156 standard-cropped and 648 background-isolated walking clips from 105 farm videos. Randomly splitting overlapping 64-frame sequences yielded accuracies of up to 90.1%. However, 98.9% of the test clips also contributed sequences to training. Using clip-grouped cross-validation, the same pipeline performed close to chance (area under the curve [AUC] 0.57–0.60). Replacing DeepLabCut v2.3 with v3.0 reduced the proportion of missing or low-confidence keypoints from 0.92 to 0.31 in a pilot of 20 clips. With revised pre-processing and training, this updated pipeline increased the clip-level AUC to 0.696 (standard cropping) and 0.778 (background isolation) under clip-grouped cross-validation. Holding out entire videos produced a similar estimate (AUC 0.781). However, on the 226 clips present in both datasets with identical labels, the two pre-processing strategies did not differ (AUC: 0.839 vs. 0.822; difference: −0.017, 95% CI −0.075 to 0.048). Therefore, the apparent benefit of background isolation in the unpaired comparison reflected differences in clip selection. The 1D-CNN (185,538 parameters; classification time 0.31 ms per sequence on an ARM CPU) performed similarly to GRU and TCN models, and back arching and head position were the most discriminative gait descriptors (univariate AUC 0.71 and 0.61). Conclusions The quality of pose estimation and the grouped evaluation protocol had a far greater influence on the reported performance than the classifier architecture or background isolation. Random splits of overlapping gait windows should be avoided, and pre-processing strategies should be compared on identical clips. Before such systems can be validated for on-farm use, larger datasets with individually identified animals and repeated, standardized locomotion scoring are needed.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Cattle lameness detection using depth image and deep learningScientific Reports · 2026
- Automated dairy cattle lameness assessment using a 38-keypoint whole-body YOLOv8 pose framework.Veterinary world · 2026
- Direct video-based spatiotemporal deep learning for cattle lameness detectionScientific Reports · 2025
- Occlusion-Robust Cattle Pose Estimation for Precision Livestock Monitoring Using Hierarchical Locality Refinement.Animals : an open access journal from MDPI · 2026
- Automated analysis of feline posture using deep learning and geometric modelingFrontiers in Veterinary Science · 2026
- Hooves, Sensors, and Signals: Precision Approaches to Automated Lameness Detection in Dairy Cattle.Animals : an open access journal from MDPI · 2026