Graduate School of Engineering, University of Miyazaki, Miyazaki, 889-2192, Japan.
Organization for Learning and Student Development, University of Miyazaki, Miyazaki, 889-2192, Japan.
Sci Rep. 2024 Jun 14;14(1):13734. doi: 10.1038/s41598-024-64664-7.
Recent advancements in machine learning and deep learning have revolutionized various computer vision applications, including object detection, tracking, and classification. This research investigates the application of deep learning for cattle lameness detection in dairy farming. Our study employs image processing techniques and deep learning methods for cattle detection, tracking, and lameness classification. We utilize two powerful object detection algorithms: Mask-RCNN from Detectron2 and the popular YOLOv8. Their performance is compared to identify the most effective approach for this application. Bounding boxes are drawn around detected cattle to assign unique local IDs, enabling individual tracking and isolation throughout the video sequence. Additionally, mask regions generated by the chosen detection algorithm provide valuable data for feature extraction, which is crucial for subsequent lameness classification. The extracted cattle mask region values serve as the basis for feature extraction, capturing relevant information indicative of lameness. These features, combined with the local IDs assigned during tracking, are used to compute a lameness score for each cattle. We explore the efficacy of various established machine learning algorithms, such as Support Vector Machines (SVM), AdaBoost and so on, in analyzing the extracted lameness features. Evaluation of the proposed system was conducted across three key domains: detection, tracking, and lameness classification. Notably, the detection module employing Detectron2 achieved an impressive accuracy of 98.98%. Similarly, the tracking module attained a high accuracy of 99.50%. In lameness classification, AdaBoost emerged as the most effective algorithm, yielding the highest overall average accuracy (77.9%). Other established machine learning algorithms, including Decision Trees (DT), Support Vector Machines (SVM), and Random Forests, also demonstrated promising performance (DT: 75.32%, SVM: 75.20%, Random Forest: 74.9%). The presented approach demonstrates the successful implementation for cattle lameness detection. The proposed system has the potential to revolutionize dairy farm management by enabling early lameness detection and facilitating effective monitoring of cattle health. Our findings contribute valuable insights into the application of advanced computer vision methods for livestock health management.
最近,机器学习和深度学习的进步彻底改变了各种计算机视觉应用,包括目标检测、跟踪和分类。本研究探讨了深度学习在奶牛跛行检测中的应用。我们的研究采用图像处理技术和深度学习方法进行奶牛检测、跟踪和跛行分类。我们利用两种强大的目标检测算法:Detectron2 中的 Mask-RCNN 和流行的 YOLOv8。比较它们的性能,以确定此应用的最有效方法。检测到的奶牛周围绘制边界框,分配唯一的局部 ID,以便在整个视频序列中进行个体跟踪和隔离。此外,所选检测算法生成的掩模区域为特征提取提供了有价值的数据,这对于后续跛行分类至关重要。提取的奶牛掩模区域值作为特征提取的基础,捕获与跛行相关的信息。这些特征与跟踪过程中分配的局部 ID 一起,用于计算每头奶牛的跛行评分。我们探索了各种成熟的机器学习算法的效果,如支持向量机 (SVM)、AdaBoost 等,用于分析提取的跛行特征。在所提出的系统评估中,我们考察了三个关键领域:检测、跟踪和跛行分类。值得注意的是,使用 Detectron2 的检测模块实现了令人印象深刻的 98.98%的准确率。同样,跟踪模块也实现了 99.50%的高准确率。在跛行分类中,AdaBoost 是最有效的算法,产生了最高的总体平均准确率(77.9%)。其他成熟的机器学习算法,包括决策树 (DT)、支持向量机 (SVM) 和随机森林 (RF),也表现出了有前景的性能(DT:75.32%,SVM:75.20%,随机森林:74.9%)。所提出的方法证明了在奶牛跛行检测中的成功实现。该系统有可能通过实现早期跛行检测和有效监测奶牛健康,彻底改变奶牛场管理。我们的研究结果为先进计算机视觉方法在牲畜健康管理中的应用提供了有价值的见解。