Journal of Animal Science and Technology
Korean Society of Animal Science and Technology

Automatic Identification and Analysis of Multi-Object Cattle Rumination Based on Computer Vision

Yueming Wang, Tiantian Chen*, Baoshan Li, Qi Li
1School of Information Engineering, Inner Mongolia University of Science and Technology,, Baotou 014010, China.
*Corresponding Author: Tiantian Chen, E-mail:

© Copyright 2022 Korean Society of Animal Science and Technology. This is an Open-Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License ( which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.

Received: Aug 19, 2022; Revised: Oct 16, 2022; Accepted: Oct 18, 2022

Published Online: Oct 21, 2022


Rumination in cattle is closely related to their health, which makes the automatic monitoring of rumination an important part of smart pasture operations. However, manual monitoring of cattle rumination is laborious and wearable sensors are often harmful to animals. Thus, we propose a computer vision-based method to automatically identify multi-object cattle rumination, and to calculate the rumination time and number of chews for each cow. The heads of the cattle in the video were initially tracked with a multi-object tracking algorithm, which combined the You Only Look Once (YOLO) algorithm with the Kernelized Correlation Filter (KCF). Images of the head of each cow were saved at a fixed size, and numbered. Then, a rumination recognition algorithm was constructed with parameters obtained using the frame difference method, and rumination time and number of chews were calculated. The rumination recognition algorithm was used to analyze the head image of each cow to automatically detect multi-object cattle rumination. To verify the feasibility of this method, the algorithm was tested on multi-object cattle rumination videos, and the results were compared with the results produced by human observation. The experimental results showed that the average error in rumination time was 5.902% and the average error in the number of chews was 8.126%. The rumination identification and calculation of rumination information only need to be performed by computers automatically with no manual intervention. It could provide a new contactless rumination identification method for multi-cattle, which provided technical support for smart pasture.

Keywords: Cattle; Rumination; YOLOv4; KCF; Frame difference