Developing Intelligent Models to Detect and Classify Cattle Behavior on Pasture.
Alyssa Lopez, Elysia Jimenez, Damian Valles, Merritt L Drewery
Department of Agricultural Sciences, Texas State University, San Marcos, TX 78666, USA. · Ingram School of Engineering, Texas State University, San Marcos, TX 78666, USA.
Key points
From the paper's conclusion- Groups (n = 2-7) of heterogeneous beef cattle were recorded on pasture with nine solar trail cameras.
Abstract
Cattle producers must balance animal welfare with productivity, but regular observation of animals in extensively managed operations is often impractical. Artificial intelligence (AI) integrated with computer vision offers an automated alternative, but few studies compare object detection architectures within the same dataset or focus on pastured cattle. Groups (n = 2-7) of heterogeneous beef cattle were recorded on pasture with nine solar trail cameras. Footage (~132 h) was curated in VideoLAN; annotated in Computer Vision Annotation Tool (CVAT) with bounding boxes and behavioral classes; and split 62/21/17% into training (24,508 frames), validation (8231 frames), and testing (6625 frames) sets. Four architectures were trained: Faster R-CNN (ResNet-50 FPN), Single Shot MultiBox Detector (SSD300, VGG-16), RetinaNet (ResNet-50 FPN with focal loss), and YOLOv8 nano (Ultralytics). With validation at 0.50 confidence and 0.50 IoU, Faster R-CNN achieved the highest overall F1 (0.79) and best per-class balance; RetinaNet was intermediate (peak F1 = 0.72); SSD300 saturated at F1 = 0.40; and YOLOv8 nano achieved some minority class recall at lower confidence. Each model detected the classes "grazing" and "hay feeding" accurately but confused cattle with the visually similar "normal" class. Datasets, checkpoints, and analysis scripts are provided to support further refinement of AI-enabled monitoring of extensive cattle systems.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Validating Foundation Models for Automated Cattle Detection.Sensors (Basel, Switzerland) · 2026
- Vision-Based Detection of Estrus-Related Interaction Behavior in Hanwoo Cattle Using Lightweight YOLO Models.Animals : an open access journal from MDPI · 2026
- UAV-Based Computer Vision for Cattle Detection and Feed Bunk Spatial AnalysisarXiv · 2026
- ASAS-NANP SYMPOSIUM: MATHEMATICAL MODELING IN ANIMAL NUTRITION: Data-efficient Computer Vision for Precision Livestock Farming.Journal of animal science · 2026
- AYOLO-26: An Attention-Enhanced YOLO Framework for Multi-Class Animal Detection in Smart AgricultureAgriculture · 2026
- SideCow-VSS: A Video Semantic Segmentation Dataset and Benchmark for Intelligent Monitoring of Dairy Cows Health in Smart Ranch EnvironmentsVeterinary Sciences · 2025