Animal FeedPrecision Livestock Farming and AIAnimal Welfare Assessment and LabelingAnimal Health

Toward intelligent pig farming: Advancing health and welfare monitoring through computer vision–based behavioral analysis

By November 23, 2026No Comments

Document type: scientific review published in Computers and Electronics in Agriculture

Authors: Eddiemar B. Lagua, Hong-Seok Mun, Md Sharifuzzaman, Md Kamrul Hasan, Ahsan Mehtab, Jin-Gu Kang, Hae-Rang Park, Young-Hwa Kim, Chul-Ju Yang

Abstract in French (translation): Toward Smart Swine Farming: Advancing Health and Welfare Monitoring Through Computer Vision-Based Behavioral Analysis
Modern swine farming is increasingly moving toward “smart” agricultural systems that incorporate cutting-edge technologies such as artificial intelligence for precision management. Computer vision using cameras has emerged as a promising contactless detection tool for monitoring the health and welfare of pigs through behavioral analysis, given the close link between behavioral patterns and physiological status. Following a PRISMA-compliant search, 45 studies were selected for a critical review of behavioral analysis of pigs using computer vision, focusing on detectable behavioral indicators, imaging configurations, model architectures, post-processing strategies, and deployment constraints. The results show that posture and feeding behaviors are the most mature targets for monitoring, as they are visually distinctive, biologically informative, and compatible with lightweight object detection pipelines. In contrast, aggression, biting, interaction with enrichment elements, suckling, and individual activity metrics require more advanced temporal modeling, segmentation, or multi-object tracking, which increases the annotation burden, computational cost, and vulnerability to occlusion and misidentification errors. Recent pig-specific adaptations to YOLO models, transformer-inspired models, and segmentation and tracking models have improved performance through attention mechanisms, multi-scale feature fusion, occlusion-aware regression, lightweight convolution, and detector-tracker coupling. However, the high accuracies reported often reflect controlled datasets rather than robustness in commercial settings. Major challenges include limited validation across multiple deployments, inconsistent annotation and post-processing rules, insufficient anomaly detection thresholds, poor long-term identity preservation, and hardware constraints for edge deployment. Future efforts should prioritize the development of standardized benchmarks, biologically grounded behavioral metrics, explainable and domain-adaptable artificial intelligence, and edge-ready architectures that convert model outputs into interpretable management alerts. This review provides a deployment-oriented framework for advancing computer vision, from experimental behavioral recognition toward scalable behavioral monitoring and intelligent decision support in swine production systems.

Preview: Modern pig production is increasingly moving toward smart and intelligent farming systems, integrating advanced technologies such as artificial intelligence for precision management. Camera-based computer vision has emerged as a promising non-contact sensing tool for monitoring pig health and welfare through behavioral analysis, given the strong association between behavioral patterns and physiological status. Following a PRISMA-based search, 45 studies were included for critical synthesis on computer vision-based behavioral analysis in pigs, with emphasis on detectable behavioral indicators, imaging configurations, model architectures, post-processing strategies, and deployment constraints. Findings show that posture and nutritive behaviors are the most mature targets for monitoring because they are visually distinctive, biologically informative, and compatible with lightweight object-detection pipelines. In contrast, aggression, biting, enrichment interaction, suckling, and individual activity metrics require stronger temporal modeling, segmentation, or multi-object tracking, which increases annotation burden, computational cost, and susceptibility to occlusion and identity errors. Recent pig-specific modifications to YOLO, transformer-inspired, segmentation, and tracking models have improved performance through attention mechanisms, multi-scale feature fusion, occlusion-aware regression, lightweight convolution, and detector-tracker coupling. However, high reported accuracies often reflect controlled datasets rather than commercial robustness. Critical barriers include limited multi-farm validation, inconsistent annotation and post-processing rules, insufficient anomaly-detection thresholds, weak long-term identity preservation, and hardware constraints for edge deployment. Future efforts should prioritize developing standardized benchmarks, biologically grounded behavioral metrics, explainable and domain-adaptive artificial intelligence, and edge-ready architectures that convert model outputs into interpretable management alerts. This review provides a deployment-oriented framework for advancing computer vision from experimental behavior recognition toward scalable behavioral monitoring and intelligent decision support in pig production systems.

 

Logo of Computers and electronics in agriculture
From the Computers and Electronics in Agriculture website