Accurately predicting the calving time in cattle is essential for optimizing livestock management and ensuring animal welfare. Our research focuses on developing a robust system for calving cattle classification and calving time prediction, utilizing 12-h trajectory data for 20 cattle. Our system classifies cattle as abnormal (requiring human assistance) or normal (not requiring assistance) and predicts calving times based on their individual behaviors. We employed a tailored YOLOv8 model for efficient and precise cattle detection, effectively filtering out noise such as people and trucks. Our Customized Tracking Algorithm (CTA) maintains continuous identity tracking for each cow, enabling accurate re-identification even during occlusions. To minimize some ID switching errors over extended tracking periods, we integrated IDs optimization in the CTA utilizing Global IDs identification. We extracted and compared three total movement features for classifying cattle as abnormal or normal. For predicting calving times for each cow, we utilized and compared three cumulative movement features. Our system is fully automated, detecting and tracking all 20 cattle continuously for 12 h without manual assistance, and achieving an overall accuracy of 99%. By comparing three features derived from the trajectory tracking data for each point in a frame, we achieve 100%, 95%, 85% accuracy in classifying cattle as abnormal or normal and predict their calving times with a precision of within the next 6 h, within the next 9 h, within the next 8 h, respectively. Our system enables farmers to provide timely assistance, ensuring the health and safety of both the cow and the calf. Furthermore, it aids in optimizing resource allocation and enhancing overall farm efficiency, emphasizing the critical importance of calving time prediction in sustainable livestock farming.
Read full abstract