Multi-Object Tracking of Korean Cattle (Hanwoo) in High-Density Barns Using Multi-Temporal Window Repair (MTW-Repair)
Open Access
Abstract
Reliable individual tracking supports animal behavior monitoring in precision livestock farming. However, tracking cattle using a single camera in high-density barns is challenging because of frequent occlusion, scale variation, and irregular movement. This study presents a lightweight multi-object tracking framework for densely housed Hanwoo cattle, combining a Hanwoo-trained YOLOv8n detector with appearance-free BoT-SORT association. Frame sampling reduces the detection workload, while an offline Multi-Temporal Window Repair (MTW-Repair) procedure reconnects fragmented trajectories. The framework was evaluated using short annotated video clips and a continuous 215 min barn recording. In the short clips, appearance-free BoT-SORT outperformed ByteTrack while maintaining comparable throughput, and MTW-Repair reduced identity switches across all evaluated frame-sampling intervals. In the long recording, MTW-Repair reduced the total number of generated identities for both trackers. Manual verification of 50 randomly sampled ByteTrack merge events yielded a merge precision of 84.0%. Appearance-based re-identification offered only marginal accuracy gains at a higher computational cost. These findings support the potential of frame sampling and offline trajectory repair for computationally efficient cattle monitoring.Keywords
Funding Information
- Ministry of Agriculture, Food and Rural Affairs (MAFRA), the Ministry of Science and ICT (MSIT), and the Rural Development Administration (RS-2025-02305747)
This publication has 28 references indexed in Scilit:
- Review: Understanding cattle social behaviour in modern penned production systems with AI technology: Are we tracking welfare indicators?Animal, 2026
- Multi-camera fusion and bird-eye view location mapping for deep learning-based cattle behavior monitoringArtificial Intelligence in Agriculture, 2025
- Deep learning for visual animal monitoring (detection, tracking, pose estimation, and behavior classification): A comprehensive reviewSmart Agricultural Technology, 2025
- Universal bovine identification via depth data and deep metric learningComputers and Electronics in Agriculture, 2024
- Deep learning in multiple animal tracking: A surveyComputers and Electronics in Agriculture, 2024
- Deep learning-based multi-cattle tracking in crowded livestock farming using videoComputers and Electronics in Agriculture, 2023
- ByteTrack: Multi-object Tracking by Associating Every Detection Box2022
- Automation of video-based location tracking tool for dairy cows in their housing stalls using deep learningSmart Agricultural Technology, 2021
- HOTA: A Higher Order Metric for Evaluating Multi-object TrackingInternational Journal of Computer Vision, 2020
- Performance Measures and a Data Set for Multi-target, Multi-camera Tracking2016