Stressor-Specific Anomaly Detection System in Group-Housed Growing Pigs Through Combined Computer Vision-Machine Learning Framework: A Pilot Study

This study proposed a multi-class anomaly detection framework for group-housed pigs by integrating computer vision and machine learning. Nine classification algorithms were trained to identify five pig conditions—normal, heat stress, poor ventilation, infection, and recovery—using 10 combinations of feeding, drinking, and posture variables. The analysis revealed distinct behavioral patterns across stress conditions. Linear Discriminant Analysis (LDA) using all feeding and drinking variables achieved strong performance, with precision, recall, F1-score, and accuracy of 96.2% (95% confidence interval: 89.5–100%), 96.0% (91.5–100%), 96.0% (89.8–100%), and 96.0% (91.6–100%), respectively, and an AUC of 98.7% (88.2–95.5%). However, Random Forest and XGBoost trained on feeding and drinking variables achieved perfect classification on unseen data. With the present dataset, results indicate that feeding and drinking behaviors alone are sufficient for robust anomaly detection when paired with appropriate classifiers. Overall, this pilot study demonstrated that stressor-specific anomaly detection based on behavioral data is feasible and offers a practical, scalable approach for early stress detection, improved health and welfare monitoring, and more efficient precision livestock management. Future studies should utilize larger and more diverse datasets to further validate and strengthen the generalizability of the proposed framework.

Authors

Institutions

Publication Details

Journal
AI
Published
2026-05-22
DOI
https://doi.org/10.3390/ai7060184
Primary Topic
Animal Behavior and Welfare Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Stressor-Specific Anomaly Detection System in Group-Housed Growing Pigs Through Combined Computer Vision-Machine Learning Framework: A Pilot Study

MMI Hasan, Ahsan Mehtab, Hong-Seok Mun, Jin-Gu Kang et al.
AI
Animal Behavior and Welfare Studies
article

Stressor-Specific Anomaly Detection System in Group-Housed Growing Pigs Through Combined Computer Vision-Machine Learning Framework: A Pilot Study

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

Abstract

This study proposed a multi-class anomaly detection framework for group-housed pigs by integrating computer vision and machine learning. Nine classification algorithms were trained to identify five pig conditions—normal, heat stress, poor ventilation, infection, and recovery—using 10 combinations of feeding, drinking, and posture variables. The analysis revealed distinct behavioral patterns across stress conditions. Linear Discriminant Analysis (LDA) using all feeding and drinking variables achieved strong performance, with precision, recall, F1-score, and accuracy of 96.2% (95% confidence interval: 89.5–100%), 96.0% (91.5–100%), 96.0% (89.8–100%), and 96.0% (91.6–100%), respectively, and an AUC of 98.7% (88.2–95.5%). However, Random Forest and XGBoost trained on feeding and drinking variables achieved perfect classification on unseen data. With the present dataset, results indicate that feeding and drinking behaviors alone are sufficient for robust anomaly detection when paired with appropriate classifiers. Overall, this pilot study demonstrated that stressor-specific anomaly detection based on behavioral data is feasible and offers a practical, scalable approach for early stress detection, improved health and welfare monitoring, and more efficient precision livestock management. Future studies should utilize larger and more diverse datasets to further validate and strengthen the generalizability of the proposed framework.

AIVol. 7(6)
Chonnam National University (KR), Gopalganj Science and Technology University (BD), Sylhet Agricultural University (BD), Sunchon National University (KR)
Reduced inequalities
Openalex Percentile: Top 4%
Animal Behavior and Welfare Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.