Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Vet. Sci.

Sec. Animal Behavior and Welfare

Volume 12 - 2025 | doi: 10.3389/fvets.2025.1675181

This article is part of the Research TopicTransforming Veterinary Medicine: Digital Tools and AI as Path to Sustainable Animal CareView all articles

Lameness Detection in Dairy Cows from Overhead View: High-Precision Keypoint Localization and Multi-Feature Fusion Classification

Provisionally accepted
Weijun  DuanWeijun Duan1Fang  WangFang Wang1Honghui  LiHonghui Li1*Na  LiuNa Liu2Xueliang  FuXueliang Fu1*
  • 1College of Computer and Information Engineering, Inner Mongolia Agricultural University, Hohhot, China
  • 2College of Animal Science, Inner Mongolia Agricultural University, Hohhot, China

The final, formatted version of the article will be published soon.

Detecting lameness in dairy cows from an overhead view can effectively avoid occlusion caused by the surrounding facilities or other cows' bodies. Furthermore, the detection equipment is suspended, allowing for parallel detection that does not interfere with the cows' natural behaviors or disrupt the operational order of the farm, thereby better meeting the application requirements of the production environment. However, existing overhead view lameness detection methods still encounter challenges regarding detection accuracy and model generalization capabilities due to the lack of distinct back movement characteristics associated with lameness and the individual variability in movement changes. To address these issues, this paper proposes a study on lameness detection in dairy cows based on RGB-D data from an overhead view. First, we propose a method for detecting key points on the backs of cows from an overhead view, which enhances the accuracy of keypoint localization in complex environments by modeling long-range feature relationships and optimizing the spatial structure of keypoints. Second, we design six lameness features and analyze the correlation in classifying sound, mild lameness, and severe lameness. Finally, we employ the Gini importance index from Random Forest to assess the significance of these features and introduce the PIMP correction method to establish an unbiased feature screening system, enabling accurate detection of lameness behaviors and their severity. The experimental results indicate that the PCK@0.02 and Average Precision (AP) of the keypoint detection network achieved 100.00% and 95.89%, respectively, significantly improving over the baseline model. Additionally, the analysis of lameness features reveals that back curvature, movement asymmetry index, back vertical oscillation, and head vertical oscillation demonstrate excellent discriminative performance in cow lameness classification when employing a multi-feature fusion method. Furthermore, the multi-feature fusion-based model attained a lameness detection accuracy of 91.00%. These research findings provide robust theoretical and technical support for cow health monitoring and intelligent farm management.

Keywords: dairy cows, Lameness detection, Overhead View, keypoint detection, rgb-d, multi-feature fusion classification

Received: 29 Jul 2025; Accepted: 28 Aug 2025.

Copyright: © 2025 Duan, Wang, Li, Liu and Fu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence:
Honghui Li, College of Computer and Information Engineering, Inner Mongolia Agricultural University, Hohhot, China
Xueliang Fu, College of Computer and Information Engineering, Inner Mongolia Agricultural University, Hohhot, China

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.