YOLOv8-BS: An integrated method for identifying stationary and moving behaviors of cattle with a newly developed dataset

IF 5.7 Q1 AGRICULTURAL ENGINEERING
Md Ishtiaq Ahmed , Huiping Cao , Andrés Ricardo Perea , Mehmet Emin Bakir , Huiying Chen , Santiago A. Utsumi
{"title":"YOLOv8-BS: An integrated method for identifying stationary and moving behaviors of cattle with a newly developed dataset","authors":"Md Ishtiaq Ahmed ,&nbsp;Huiping Cao ,&nbsp;Andrés Ricardo Perea ,&nbsp;Mehmet Emin Bakir ,&nbsp;Huiying Chen ,&nbsp;Santiago A. Utsumi","doi":"10.1016/j.atech.2025.101153","DOIUrl":null,"url":null,"abstract":"<div><div>Enhanced identification of cattle behavior can significantly improve animal welfare, support preventive health management, and optimize daily operations. Advances in computer vision (CV) and deep learning have shown great potential to enhance the robustness and sophistication of modern animal monitoring systems. This study introduces YOLOv8-Background Subtraction (YOLOv8-BS), a novel approach combining the CV model YOLOv8, a background subtraction module from OpenCV, and a behavior-counting component to classify four key behaviors in free roaming cattle: standing, feeding, resting (lying), and walking (moving). To train and evaluate the model, a new benchmark dataset of 92,592 labeled video frames, obtained from videos recorded from 11/2023 to 12/2023, with a balanced distribution of the targeted behaviors was curated. While the YOLOv8 model excelled in identifying stationary postures, it faced significant challenges when detecting animal motion. Conversely, the use of YOLOv8-BS, which applied OpenCV’s background subtraction model on YOLOv8, enhanced the detection of walking, with a 20 % increase in precision, a 13 % boost in recall and an 18 % improvement in F1 score compared to the YOLOv8. YOLOv8-BS achieved 89 % precision and 88 % recall for ‘standing’, 100 % precision and 90 % recall for ‘resting’, 86 % of precision and recall for ‘feeding’ and 74 % precision and 72 % recall for ‘walking’, respectively. Datasets curated for this study fill in the gaps of currently available datasets that primarily emphasize the detection of stationary behaviors of cattle in confined environments or one or a few specific behaviors within an individual video frame. This dataset is available online for research purposes.</div></div>","PeriodicalId":74813,"journal":{"name":"Smart agricultural technology","volume":"12 ","pages":"Article 101153"},"PeriodicalIF":5.7000,"publicationDate":"2025-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Smart agricultural technology","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2772375525003855","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURAL ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Enhanced identification of cattle behavior can significantly improve animal welfare, support preventive health management, and optimize daily operations. Advances in computer vision (CV) and deep learning have shown great potential to enhance the robustness and sophistication of modern animal monitoring systems. This study introduces YOLOv8-Background Subtraction (YOLOv8-BS), a novel approach combining the CV model YOLOv8, a background subtraction module from OpenCV, and a behavior-counting component to classify four key behaviors in free roaming cattle: standing, feeding, resting (lying), and walking (moving). To train and evaluate the model, a new benchmark dataset of 92,592 labeled video frames, obtained from videos recorded from 11/2023 to 12/2023, with a balanced distribution of the targeted behaviors was curated. While the YOLOv8 model excelled in identifying stationary postures, it faced significant challenges when detecting animal motion. Conversely, the use of YOLOv8-BS, which applied OpenCV’s background subtraction model on YOLOv8, enhanced the detection of walking, with a 20 % increase in precision, a 13 % boost in recall and an 18 % improvement in F1 score compared to the YOLOv8. YOLOv8-BS achieved 89 % precision and 88 % recall for ‘standing’, 100 % precision and 90 % recall for ‘resting’, 86 % of precision and recall for ‘feeding’ and 74 % precision and 72 % recall for ‘walking’, respectively. Datasets curated for this study fill in the gaps of currently available datasets that primarily emphasize the detection of stationary behaviors of cattle in confined environments or one or a few specific behaviors within an individual video frame. This dataset is available online for research purposes.

Abstract Image

YOLOv8-BS:基于新开发数据集的牛静止和运动行为识别集成方法
加强对牛行为的识别可以显著改善动物福利,支持预防性健康管理,并优化日常操作。计算机视觉(CV)和深度学习的进步在增强现代动物监测系统的稳健性和复杂性方面显示出巨大的潜力。本研究引入了一种新的方法YOLOv8- background Subtraction (YOLOv8- bs),该方法结合了CV模型YOLOv8、OpenCV中的背景减法模块和行为计数组件,对自由漫游牛的四种关键行为进行分类:站立、进食、休息(躺着)和行走(移动)。为了训练和评估该模型,我们编制了一个新的基准数据集,该数据集包含92,592个标记视频帧,这些视频帧来自2023年11月至2023年12月录制的视频,目标行为分布均衡。虽然YOLOv8模型在识别静止姿势方面表现出色,但在检测动物运动时却面临着重大挑战。相反,使用在YOLOv8上应用OpenCV的背景减法模型的YOLOv8- bs,与YOLOv8相比,增强了对行走的检测,精度提高了20%,召回率提高了13%,F1分数提高了18%。YOLOv8-BS对“站立”、“休息”、“喂食”、“行走”分别达到89%的准确率和88%的查全率、100%的准确率和90%的查全率、86%的准确率和查全率。为本研究整理的数据集填补了目前可用数据集的空白,这些数据集主要强调检测受限环境中牛的静止行为或单个视频帧内的一个或几个特定行为。该数据集可在线获取,用于研究目的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
4.20
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信