A Fine-Grained Pig Behavior Recognition Method Based on an Improved YOLOv8n Network
Animals · 01.11.2026 · 16 (21) · 3449
DOI: 10.3390/ani16213449 ↗Kurz gefasst
Fachartikel in der Zeitschrift Animals, online erschienen am 01.11.2026. Verfasst von Jialin Gao und 3 weiteren Autor:innen. Beteiligte Einrichtung: School of Mechanical and Electrical Engineering, Hunan Agricultural University, Changsha 410128, China. Die Arbeit nennt 39 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: the National Key R&D Programme, the Hunan ProvincialScience and Technology Department of Major Project-Ten Major Technical ResearchProjects, the Postgraduate Scientific Research Innovation Project of Hunan Province.
Abstract (Originalsprache)
Accurate recognition of pig behavior is important for animal health monitoring and precision livestock farming. However, fine-grained behavior recognition in group-housed pigs is challenging because of individual occlusion, large posture variation, and subtle visual differences among similar behaviors. Here, an improved YOLOv8n-based model, EPP-YOLOv8n, was developed for fine-grained pig behavior recognition. An efficient multi-scale attention module was inserted after the spatial pyramid pooling-fast module (SPPF) to enhance behavior-related feature extraction. A behavior-factorized asymmetric head (BFA-Head) was designed with scale-adaptive mixed convolution to reduce detection-head complexity, while posture- and interaction-assisted supervision was incorporated to guide fine-grained feature learning. A partial-channel mixed convolution module (P5-selective PLC-Mix) was deployed within the Backbone P5 C2f module to reduce redundant computation, followed by task-aware structured pruning with recovery training for further model compression. On a dataset comprising 2713 images and 30,695 annotated instances after training-set augmentation, EPP-YOLOv8n achieved 98.13% precision, 94.50% recall, and 89.07% mean average precision at intersection over union (IoU) thresholds from 0.50 to 0.95 (mAP@0.5:0.95), representing increases of 2.05, 1.52, and 1.64 percentage points, respectively, over YOLOv8n. Parameter count and billion floating-point operations (GFLOPs) were reduced by 14.59% and 9.70%, respectively. These results indicate that the proposed model can improve fine-grained behavior recognition while reducing model complexity, supporting automated behavior monitoring in group-housed pigs.
Schlagwörter
Stichwörter der Autor:innen
Autor:innen und Institutionen
- School of Mechanical and Electrical Engineering, Hunan Agricultural University, Changsha 410128, China.
Förderung
- the National Key R&D Programme
- the Hunan ProvincialScience and Technology Department of Major Project-Ten Major Technical ResearchProjects
- the Postgraduate Scientific Research Innovation Project of Hunan Province
- National Key R&D Programme
- Hunan Provincial Science and Technology Department of Major Project-Ten Major Technical Research Projects
- Postgraduate Scientific Research Innovation Project of Hunan Province
Zitieren
APA
Gao, J., Wang, J., Jiang, P., & Tan, S. (2026). A Fine-Grained Pig Behavior Recognition Method Based on an Improved YOLOv8n Network. Animals, 16(21), 3449. https://doi.org/10.3390/ani16213449
Vancouver
Gao J, Wang J, Jiang P, Tan S. A Fine-Grained Pig Behavior Recognition Method Based on an Improved YOLOv8n Network. Animals. 2026;16(21):3449. doi:10.3390/ani16213449
BibTeX
@article{Gao2026,
author = {Gao, Jialin and Wang, Junhao and Jiang, Ping and Tan, Shaohui},
title = {A Fine-Grained Pig Behavior Recognition Method Based on an Improved YOLOv8n Network},
journal = {Animals},
year = {2026},
volume = {16},
number = {21},
pages = {3449},
doi = {10.3390/ani16213449}
}
EUVIMED