Jingwen Li , Pengbo Zeng , Shuai Yue , Zhiyang Zheng , Lifeng Qin , Huaibo Song
{"title":"Automatic body condition scoring system for dairy cows in group state based on improved YOLOv5 and video analysis","authors":"Jingwen Li , Pengbo Zeng , Shuai Yue , Zhiyang Zheng , Lifeng Qin , Huaibo Song","doi":"10.1016/j.aiia.2025.01.010","DOIUrl":null,"url":null,"abstract":"<div><div>This study proposes an automated scoring system for cow body condition using improved YOLOv5 to assess the body condition distribution of herd cows, which significantly impacts herd productivity and feeding management. A dataset was created by capturing images of the cow's hindquarters using an image sensor at the entrance of the milking hall. This system enhances feature extraction ability by introducing dual path networks and convolutional block attention modules and improves efficiency by replacing some modules from the standard YOLOv5s with deep separable convolution to reduce parameters. Furthermore, the system employs an automatic detection and segmentation algorithm to achieve individual cow segmentation and body condition acquisition in the video. Subsequently, the system computes the body condition distribution of cows in a group state. The experimental findings demonstrate that the proposed model outperforms the original YOLOv5 network with higher accuracy and fewer computations and parameters. The precision, recall, and mean average precision of the model are 94.3 %, 92.5 %, and 91.8 %, respectively. The algorithm achieved an overall detection rate of 94.2 % for individual cow segmentation and body condition acquisition in the video, with a body condition scoring accuracy of 92.5 % among accurately detected cows and an overall body condition scoring accuracy of 87.1 % across the 10 video tests.</div></div>","PeriodicalId":52814,"journal":{"name":"Artificial Intelligence in Agriculture","volume":"15 2","pages":"Pages 350-362"},"PeriodicalIF":8.2000,"publicationDate":"2025-01-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Artificial Intelligence in Agriculture","FirstCategoryId":"1087","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2589721725000145","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
This study proposes an automated scoring system for cow body condition using improved YOLOv5 to assess the body condition distribution of herd cows, which significantly impacts herd productivity and feeding management. A dataset was created by capturing images of the cow's hindquarters using an image sensor at the entrance of the milking hall. This system enhances feature extraction ability by introducing dual path networks and convolutional block attention modules and improves efficiency by replacing some modules from the standard YOLOv5s with deep separable convolution to reduce parameters. Furthermore, the system employs an automatic detection and segmentation algorithm to achieve individual cow segmentation and body condition acquisition in the video. Subsequently, the system computes the body condition distribution of cows in a group state. The experimental findings demonstrate that the proposed model outperforms the original YOLOv5 network with higher accuracy and fewer computations and parameters. The precision, recall, and mean average precision of the model are 94.3 %, 92.5 %, and 91.8 %, respectively. The algorithm achieved an overall detection rate of 94.2 % for individual cow segmentation and body condition acquisition in the video, with a body condition scoring accuracy of 92.5 % among accurately detected cows and an overall body condition scoring accuracy of 87.1 % across the 10 video tests.