Detection and tracking of oestrus dairy cows based on improved YOLOv8n and TransT models

IF 4.4 1区 农林科学 Q1 AGRICULTURAL ENGINEERING Biosystems Engineering Pub Date : 2025-03-01 DOI:10.1016/j.biosystemseng.2025.02.005
Zheng Wang , Hongxing Deng , Shujin Zhang , Xingshi Xu , Yuchen Wen , Huaibo Song
{"title":"Detection and tracking of oestrus dairy cows based on improved YOLOv8n and TransT models","authors":"Zheng Wang ,&nbsp;Hongxing Deng ,&nbsp;Shujin Zhang ,&nbsp;Xingshi Xu ,&nbsp;Yuchen Wen ,&nbsp;Huaibo Song","doi":"10.1016/j.biosystemseng.2025.02.005","DOIUrl":null,"url":null,"abstract":"<div><div>Real-time monitoring of oestrus cows in dairy farming is labour-intensive and time-consuming. To achieve accurate detection and real-time positioning of oestrus cows in natural scenes, a model named YOLO-TransT, integrating the improved YOLOv8n and Transformer Tracking (TransT) models, was proposed for oestrus cow detection and tracking. Firstly, the Context Augmentation Module (CAM) was incorporated into YOLOv8n to enhance the model's focus on the oestrus cow by associating with mounting behaviour; Secondly, the Squeeze-and-Excitation (SE) module was introduced to boost the network's learning ability and suppress redundant features; Thirdly, the improved YOLOv8n and TransT were integrated to obtain the YOLO-TransT model, which realised the detection and tracking of oestrus cow; Finally, based on YOLO-TransT, a cow oestrus monitoring and warning system was designed. The experimental results showed that in the detection part of the YOLO-TransT, the improved YOLOv8n achieved a 92.60% Average Precision of oestrus (AP<sub>oestrus</sub>), 92.00% F1-score, with 3.14 M parameters, 9.70 G Floating-point Operations (FLOPs), and a 7.0 ms/frame detection speed. Compared to the original YOLOv8n, the improved YOLOv8n had increased AP<sub>oestrus</sub> by 4.10% and F1-score by 3.25%, while keeping the parameters, FLOPs, and detection speed essentially unchanged; In the tracking part, the TransT model had a tracking success rate of 70.3%, a precision value of 85.5%, and an Area under Curve (AUC) value of 71.4%. In conclusion, the YOLO-TransT could accurately detect and track oestrus cows in natural scenes, laying the foundation for intelligent livestock breeding. The dataset and code were released on GitHub (<span><span>https://github.com/XingshiXu/ZhengWang_YOLO-TransT</span><svg><path></path></svg></span>).</div></div>","PeriodicalId":9173,"journal":{"name":"Biosystems Engineering","volume":"252 ","pages":"Pages 61-76"},"PeriodicalIF":4.4000,"publicationDate":"2025-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Biosystems Engineering","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1537511025000315","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURAL ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Real-time monitoring of oestrus cows in dairy farming is labour-intensive and time-consuming. To achieve accurate detection and real-time positioning of oestrus cows in natural scenes, a model named YOLO-TransT, integrating the improved YOLOv8n and Transformer Tracking (TransT) models, was proposed for oestrus cow detection and tracking. Firstly, the Context Augmentation Module (CAM) was incorporated into YOLOv8n to enhance the model's focus on the oestrus cow by associating with mounting behaviour; Secondly, the Squeeze-and-Excitation (SE) module was introduced to boost the network's learning ability and suppress redundant features; Thirdly, the improved YOLOv8n and TransT were integrated to obtain the YOLO-TransT model, which realised the detection and tracking of oestrus cow; Finally, based on YOLO-TransT, a cow oestrus monitoring and warning system was designed. The experimental results showed that in the detection part of the YOLO-TransT, the improved YOLOv8n achieved a 92.60% Average Precision of oestrus (APoestrus), 92.00% F1-score, with 3.14 M parameters, 9.70 G Floating-point Operations (FLOPs), and a 7.0 ms/frame detection speed. Compared to the original YOLOv8n, the improved YOLOv8n had increased APoestrus by 4.10% and F1-score by 3.25%, while keeping the parameters, FLOPs, and detection speed essentially unchanged; In the tracking part, the TransT model had a tracking success rate of 70.3%, a precision value of 85.5%, and an Area under Curve (AUC) value of 71.4%. In conclusion, the YOLO-TransT could accurately detect and track oestrus cows in natural scenes, laying the foundation for intelligent livestock breeding. The dataset and code were released on GitHub (https://github.com/XingshiXu/ZhengWang_YOLO-TransT).
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于改进的 YOLOv8n 和 TransT 模型的发情奶牛检测与跟踪
对奶牛养殖中的发情奶牛进行实时监测需要耗费大量人力和时间。为了实现自然场景中发情奶牛的精确检测和实时定位,我们提出了一个名为 YOLO-TransT 的模型,该模型集成了改进的 YOLOv8n 和 Transformer Tracking(TransT)模型,用于发情奶牛的检测和跟踪。首先,在 YOLOv8n 中加入了情境增强模块(Context Augmentation Module,CAM),通过与上马行为相关联来增强模型对发情母牛的关注;其次,引入了挤压和激发模块(Squeeze-and-Excitation,SE),以增强网络的学习能力并抑制冗余特征;第三,将改进后的 YOLOv8n 与 TransT 集成,得到 YOLO-TransT 模型,实现了发情母牛的检测和跟踪;最后,基于 YOLO-TransT 设计了母牛发情监测预警系统。实验结果表明,在 YOLO-TransT 的检测部分,改进后的 YOLOv8n 的发情平均精度(APoestrus)为 92.60%,F1 分数为 92.00%,参数为 3.14 M,浮点运算次数(FLOP)为 9.70 G,检测速度为 7.0 ms/帧。与原始 YOLOv8n 相比,改进后的 YOLOv8n 在保持参数、FLOP 和检测速度基本不变的情况下,APoestrus 提高了 4.10%,F1-score 提高了 3.25%;在跟踪部分,TransT 模型的跟踪成功率为 70.3%,精确度值为 85.5%,曲线下面积(AUC)值为 71.4%。总之,YOLO-TransT 可以准确检测和跟踪自然场景中的发情母牛,为智能牲畜饲养奠定了基础。数据集和代码已在 GitHub 上发布(https://github.com/XingshiXu/ZhengWang_YOLO-TransT)。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Biosystems Engineering
Biosystems Engineering 农林科学-农业工程
CiteScore
10.60
自引率
7.80%
发文量
239
审稿时长
53 days
期刊介绍: Biosystems Engineering publishes research in engineering and the physical sciences that represent advances in understanding or modelling of the performance of biological systems for sustainable developments in land use and the environment, agriculture and amenity, bioproduction processes and the food chain. The subject matter of the journal reflects the wide range and interdisciplinary nature of research in engineering for biological systems.
期刊最新文献
Editorial Board Mechanism of rice bran removal at individual grain and population levels in abrasive rice mill Citrus fruit diameter estimation in the field using monocular camera Detection and tracking of oestrus dairy cows based on improved YOLOv8n and TransT models Early detection of downy mildew in vineyards using deep neural networks for semantic segmentation
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1