Identifying mounting behaviour in boars using deep learning-based instance segmentation and binary classification - a pilot study.
Harry Aricibasi, Jessica Bode, Renée Bergeron, Dan Tulpan
Department of Animal Biosciences, University of Guelph, Guelph, ON, Canada.
Key points
From the paper's conclusion- Among the five evaluated binary classification algorithms, Support Vector Machine (SVM) was selected based on its superior performance. The hybrid system achieved a balanced accuracy and F1-score of 95% with the clip-based split, rising to 99% with the frame-based split and falling to 74% with the day-based split.
Abstract
INTRODUCTION: Mounting behaviour in group-housed pigs poses significant welfare and productivity challenges, often resulting in injuries and stress. To address this issue, we developed a novel computer vision-based approach for the automatic detection of mounting behaviour in pigs. METHODS: The pilot study was conducted on eight boars, aged 4-5 months and weighing between 60 and 90 kg, housed in two groups of four. Continuous video footage was collected over a 1-week period using an overhead camera, resulting in 766 2-s video clips. The proposed hybrid approach integrates Mask Region-based Convolutional Neural Network (Mask R-CNN) instance segmentation with a binary classifier. To evaluate the model's performance under varying data conditions, the dataset was divided into training, validation, and testing sets using three data grouping scenarios: by frame, by clip, and by day. RESULTS: Among the five evaluated binary classification algorithms, Support Vector Machine (SVM) was selected based on its superior performance. The hybrid system achieved a balanced accuracy and F1-score of 95% with the clip-based split, rising to 99% with the frame-based split and falling to 74% with the day-based split. DISCUSSION: Under pilot conditions, the system offers a feasible proof-of-concept for continuous monitoring of mounting behaviour in group-housed pigs, operating at a processing rate of five frames per second. This capability offers strong potential for supporting early intervention and proactive welfare management, subject to future multi-site validation. Moving forward, future research will focus on integrating individual animal tracking and conducting larger-scale studies to further explore the system's scalability and enhance its performance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Monitoring of Sows’ Standing Reflex During Estrus Based on Machine VisionAgriculture · 2026
- SideCow-VSS: A Video Semantic Segmentation Dataset and Benchmark for Intelligent Monitoring of Dairy Cows Health in Smart Ranch EnvironmentsVeterinary Sciences · 2025
- Stressor-Specific Anomaly Detection System in Group-Housed Growing Pigs Through Combined Computer Vision-Machine Learning Framework: A Pilot StudyAI · 2026
- Feeding behavior recognition of group-housed pigs based on pose estimation and keypoint features discriminationComputers and Electronics in Agriculture · 2025
- A Lightweight Real-Time Vision Framework for Low-Disturbance Veterinary Management and Behavioral Welfare Assessment in Captive Forest Musk Deer.Veterinary sciences · 2026
- Vision-Based Detection of Estrus-Related Interaction Behavior in Hanwoo Cattle Using Lightweight YOLO Models.Animals : an open access journal from MDPI · 2026