Video-based cattle behaviour detection for digital twin development in precision dairy systems

Read full text
Authors: Shreya Rao, Eduardo Rosa Medina Garcia, Suresh Neethirajan
Cited by: 5
References: 36

Abstract

Digital twins in dairy systems require reliable behavioural inputs. We develop a video-based framework that detects and tracks individual cows and classifies seven behaviours under commercial barn conditions. From 4964 annotated clips, expanded to 9600 through targeted augmentation, we couple YOLOv11 detection with ByteTrack for identity persistence and evaluate SlowFast versus TimeSformer for behaviour recognition. TimeSformer achieved 85.0% overall accuracy (macro-F1 0.84) and real-time throughput of 22.6 fps on NVIDIA L4 hardware. Attention visualizations concentrated on anatomically relevant regions (head and muzzle for feeding and drinking; torso and limbs for postures), supporting biological interpretability. Structured outputs (cow ID, start-end times, durations, and confidence) enable downstream use in nutritional modelling and integration with 3D digital-twin visualization environments, establishing a robust behavioural perception and state-estimation component within a dairy digital-twin architecture. The pipeline delivers continuous, per-animal activity streams suitable for individualized nutrition, predictive health, and automated management, providing a practical foundation for scalable dairy digital twins.

Fields of Study & Subjects

Animal Behavior and Welfare Studies Effects of Environmental Stressors on Livestock Agriculture Sustainability and Environmental Impact

Publication details

Journal / source
npj Veterinary Sciences
Publisher
Springer Science and Business Media LLC
Volume
1
Issue
1
Pages
3–3
Publication date
26 March 2026
Language
EN