Objective dairy cow mobility analysis and scoring system using computer vision–based keypoint detection technique from top-view 2-dimensional videos

IF 4.4 1区 农林科学 Q1 AGRICULTURE, DAIRY & ANIMAL SCIENCE Journal of Dairy Science Pub Date : 2025-04-01 Epub Date: 2024-12-18 DOI:10.3168/jds.2024-25545
Shogo Higaki , Guilherme L. Menezes , Rafael E.P. Ferreira , Ariana Negreiro , Victor E. Cabrera , João R.R. Dórea
{"title":"Objective dairy cow mobility analysis and scoring system using computer vision–based keypoint detection technique from top-view 2-dimensional videos","authors":"Shogo Higaki ,&nbsp;Guilherme L. Menezes ,&nbsp;Rafael E.P. Ferreira ,&nbsp;Ariana Negreiro ,&nbsp;Victor E. Cabrera ,&nbsp;João R.R. Dórea","doi":"10.3168/jds.2024-25545","DOIUrl":null,"url":null,"abstract":"<div><div>The objective of this study was to assess the applicability of a computer vision-based keypoint detection technique to extract mobility variables associated with mobility scores from top-view 2-dimensional (2D) videos of dairy cows. In addition, the study determined the potential of a machine learning classification model to predict mobility scores based on the newly extracted mobility variables. A dataset of 256 video clips of individual cows was collected, with each clip recorded from a top-view perspective while the cows were walking. The cows were visually assessed using a 4-level mobility scoring system, comprising score 0 (good mobility: 78 cows), score 1 (imperfect mobility: 71 cows), score 2 (impaired mobility: 87 cows), and score 3 (severely impaired mobility: 20 cows). The video clips were analyzed using a keypoint detection model capable of detecting 10 keypoints (i.e., head, neck, withers, back, hip ridge, tail head, left and right hooks, and left and right pins). From the time-series XY-coordinate data of the keypoints, 25 mobility variables were extracted, including lateral movements of keypoints (10 variables), coefficients of variation of keypoint speeds (10 variables), walking speed (1 variable), and standard deviation of keypoint angles (4 variables: neck angle, withers angle, back angle, and hip angle). Due to the limited number of cows classified as score 3, they were combined with score 2 cows into a single class. Subsequently, a 3-level mobility score classification model (score 0, 1, and 2 + 3) was developed using the random forest algorithm, based on the extracted mobility variables. The model's performance was evaluated using the repeated holdout method, where the dataset was randomly divided into 80% for training and 20% for testing, repeated 10 times. The model's overall 3-class classification performance achieved a weighted kappa coefficient of 0.72 and an area under the curve of the receiver operating characteristic curve of 0.89. Based on the variable importance analysis conducted over the cross-validation, back lateral movement, withers lateral movement, walking speed, and tail head lateral movement were identified as crucial for predicting mobility scores. These findings indicate that the computer vision-based keypoint detection technique is effective for extracting mobility variables relevant to mobility scores from top-view 2D videos, and the machine learning classification model based on the newly extracted variables has the potential for objective mobility scoring in dairy cows.</div></div>","PeriodicalId":354,"journal":{"name":"Journal of Dairy Science","volume":"108 4","pages":"Pages 3942-3955"},"PeriodicalIF":4.4000,"publicationDate":"2025-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Dairy Science","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0022030224013882","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2024/12/18 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"AGRICULTURE, DAIRY & ANIMAL SCIENCE","Score":null,"Total":0}
引用次数: 0

Abstract

The objective of this study was to assess the applicability of a computer vision-based keypoint detection technique to extract mobility variables associated with mobility scores from top-view 2-dimensional (2D) videos of dairy cows. In addition, the study determined the potential of a machine learning classification model to predict mobility scores based on the newly extracted mobility variables. A dataset of 256 video clips of individual cows was collected, with each clip recorded from a top-view perspective while the cows were walking. The cows were visually assessed using a 4-level mobility scoring system, comprising score 0 (good mobility: 78 cows), score 1 (imperfect mobility: 71 cows), score 2 (impaired mobility: 87 cows), and score 3 (severely impaired mobility: 20 cows). The video clips were analyzed using a keypoint detection model capable of detecting 10 keypoints (i.e., head, neck, withers, back, hip ridge, tail head, left and right hooks, and left and right pins). From the time-series XY-coordinate data of the keypoints, 25 mobility variables were extracted, including lateral movements of keypoints (10 variables), coefficients of variation of keypoint speeds (10 variables), walking speed (1 variable), and standard deviation of keypoint angles (4 variables: neck angle, withers angle, back angle, and hip angle). Due to the limited number of cows classified as score 3, they were combined with score 2 cows into a single class. Subsequently, a 3-level mobility score classification model (score 0, 1, and 2 + 3) was developed using the random forest algorithm, based on the extracted mobility variables. The model's performance was evaluated using the repeated holdout method, where the dataset was randomly divided into 80% for training and 20% for testing, repeated 10 times. The model's overall 3-class classification performance achieved a weighted kappa coefficient of 0.72 and an area under the curve of the receiver operating characteristic curve of 0.89. Based on the variable importance analysis conducted over the cross-validation, back lateral movement, withers lateral movement, walking speed, and tail head lateral movement were identified as crucial for predicting mobility scores. These findings indicate that the computer vision-based keypoint detection technique is effective for extracting mobility variables relevant to mobility scores from top-view 2D videos, and the machine learning classification model based on the newly extracted variables has the potential for objective mobility scoring in dairy cows.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
目的利用基于计算机视觉的二维俯视图视频关键点检测技术,建立奶牛移动能力分析与评分系统。
本研究的目的是评估基于计算机视觉的关键点检测技术的适用性,以从奶牛的俯视二维(2D)视频中提取与流动性评分相关的流动性变量。此外,该研究还确定了机器学习分类模型根据新提取的流动性变量预测流动性评分的潜力。研究人员收集了 256 个奶牛视频片段的数据集,每个片段都是奶牛行走时从俯视角度拍摄的。采用 4 级行动能力评分系统对奶牛进行目测评估,包括 0 分(行动能力良好:78 头奶牛)、1 分(行动能力不佳:71 头奶牛)、2 分(行动能力受损:87 头奶牛)和 3 分(行动能力严重受损:20 头奶牛)。视频片段使用关键点检测模型进行分析,该模型可检测 10 个关键点(即头部、颈部、腰部、背部、臀脊、尾部、左右钩和左右针)。从关键点的时间序列 XY 坐标数据中提取了 25 个移动变量,包括关键点的横向移动(10 个变量)、关键点速度的变异系数(10 个变量)、行走速度(1 个变量)和关键点角度的标准偏差(4 个变量:颈角、腰角、背角和臀角)。由于被划分为 3 级的奶牛数量有限,因此将它们与 2 级奶牛合并为一个级别。随后,根据提取的活动度变量,使用随机森林算法建立了 3 级活动度评分分类模型(评分 0、1 和 2 + 3)。该模型的性能评估采用了重复保持法,即将数据集随机分为 80% 用于训练,20% 用于测试,重复 10 次。该模型的整体三类分类性能达到了 0.72 的加权卡帕系数和 0.89 的接收者工作特征曲线下面积。根据交叉验证进行的变量重要性分析,背部横向移动、腰部横向移动、行走速度和尾部横向移动被认为是预测行动能力得分的关键因素。这些研究结果表明,基于计算机视觉的关键点检测技术能够有效地从顶视二维视频中提取与移动性评分相关的移动性变量,而基于新提取变量的机器学习分类模型则有望用于奶牛的客观移动性评分。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Journal of Dairy Science
Journal of Dairy Science 农林科学-奶制品与动物科学
CiteScore
7.90
自引率
17.10%
发文量
784
审稿时长
4.2 months
期刊介绍: The official journal of the American Dairy Science Association®, Journal of Dairy Science® (JDS) is the leading peer-reviewed general dairy research journal in the world. JDS readers represent education, industry, and government agencies in more than 70 countries with interests in biochemistry, breeding, economics, engineering, environment, food science, genetics, microbiology, nutrition, pathology, physiology, processing, public health, quality assurance, and sanitation.
期刊最新文献
Machine learning to understand relationships between farm practices and milk fatty acids across diverse European dairy farms. Decoding early-lactation energy balance in dairy cows using blood co-expression networks and candidate markers. Effects of Temperature Treatments on Protein Structural Modifications and Aggregation Behavior in Fermented Milks Heated after Culturing. Viable but Non-Culturable State in Staphylococcus aureus: A Potential Implication for Food Safety in the Context of Bovine Mastitis. Novel supplemental guidelines for Zn, Cu, and Mn, in bovines, by integrating net requirements, native dietary occurrence, and the boundaries of homeostatic regulation.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1