Contactless lameness detection based on pose estimation in dairy cows using a lightweight 1D-CNN architecture

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.

Authors

Publication Details

Journal
BMC Veterinary Research
Published
2026-11-27
DOI
https://doi.org/10.1186/s12917-026-06102-6
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Contactless lameness detection based on pose estimation in dairy cows using a lightweight 1D-CNN architecture

Emre Dandıl, Mustafa Boğa, Kerim Kürşat Çevi̇k, Güray Tonguç et al.
BMC Veterinary Research
Smart Agriculture and AI
article

Contactless lameness detection based on pose estimation in dairy cows using a lightweight 1D-CNN architecture

Emre Dandıl, Mustafa Boğa, Kerim Kürşat Çevi̇k, Güray Tonguç, Hüseyin Umut Yüksel
article en

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.

BMC Veterinary Research
Smart Agriculture and AI
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.

Laika access coming soon