Lightweight Domestic Pig Behavior Detection Based on YOLOv8
The prevalence and magnitude of extensive domestic pig breeding in China are rising, and behavioral assessment of these pigs is essential for enhancing production efficiency. The existing behavior identification technique for domestic pigs is computationally intensive, making it challenging to use o...
Saved in:
| Main Authors: | , , |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
MDPI AG
2025-06-01
|
| Series: | Applied Sciences |
| Subjects: | |
| Online Access: | https://www.mdpi.com/2076-3417/15/11/6340 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1850129802006102016 |
|---|---|
| author | Kaining Zhang Yu Zhang Hongli Xu |
| author_facet | Kaining Zhang Yu Zhang Hongli Xu |
| author_sort | Kaining Zhang |
| collection | DOAJ |
| description | The prevalence and magnitude of extensive domestic pig breeding in China are rising, and behavioral assessment of these pigs is essential for enhancing production efficiency. The existing behavior identification technique for domestic pigs is computationally intensive, making it challenging to use on edge devices. This study introduces a lightweight method for identifying domestic pig behavior, YOLOv8-PigLite, derived from YOLOv8. Initially, a novel two-branch bottleneck module is developed within the C2f module, incorporating average pooling and deep convolution (DWConv) in one branch, while the other branch utilizes maximum pooling and DWConv to augment multi-scale feature representation. Subsequently, a Grouped Convolution module is integrated into the convolution framework, followed by incorporating the SE module to diminish the recognition error rate further. Ultimately, we implement BiFPN in the neck network to replace the original FPN, which streamlines the neck network and enhances its feature-processing capabilities. The test findings indicated that, in comparison to the original YOLOv8n model, the precision, recall, and mean average precision at 50% remain constant, while the parameters and floating-point computations are diminished by 59.80% and 39.50%, respectively. Additionally, the FPS has increased by 32.61%, and the model’s generalizability has been validated on public datasets. |
| format | Article |
| id | doaj-art-c3e4023f0b76412e985f4a072a05424f |
| institution | OA Journals |
| issn | 2076-3417 |
| language | English |
| publishDate | 2025-06-01 |
| publisher | MDPI AG |
| record_format | Article |
| series | Applied Sciences |
| spelling | doaj-art-c3e4023f0b76412e985f4a072a05424f2025-08-20T02:32:52ZengMDPI AGApplied Sciences2076-34172025-06-011511634010.3390/app15116340Lightweight Domestic Pig Behavior Detection Based on YOLOv8Kaining Zhang0Yu Zhang1Hongli Xu2School of Information Science and Engineering, Shandong Agricultural University, Tai’an 271018, ChinaSchool of Information Science and Engineering, Shandong Agricultural University, Tai’an 271018, ChinaSchool of Information Science and Engineering, Shandong Agricultural University, Tai’an 271018, ChinaThe prevalence and magnitude of extensive domestic pig breeding in China are rising, and behavioral assessment of these pigs is essential for enhancing production efficiency. The existing behavior identification technique for domestic pigs is computationally intensive, making it challenging to use on edge devices. This study introduces a lightweight method for identifying domestic pig behavior, YOLOv8-PigLite, derived from YOLOv8. Initially, a novel two-branch bottleneck module is developed within the C2f module, incorporating average pooling and deep convolution (DWConv) in one branch, while the other branch utilizes maximum pooling and DWConv to augment multi-scale feature representation. Subsequently, a Grouped Convolution module is integrated into the convolution framework, followed by incorporating the SE module to diminish the recognition error rate further. Ultimately, we implement BiFPN in the neck network to replace the original FPN, which streamlines the neck network and enhances its feature-processing capabilities. The test findings indicated that, in comparison to the original YOLOv8n model, the precision, recall, and mean average precision at 50% remain constant, while the parameters and floating-point computations are diminished by 59.80% and 39.50%, respectively. Additionally, the FPS has increased by 32.61%, and the model’s generalizability has been validated on public datasets.https://www.mdpi.com/2076-3417/15/11/6340domestic pigbehavioral recognitionYOLOv8nDWConvlightweighting |
| spellingShingle | Kaining Zhang Yu Zhang Hongli Xu Lightweight Domestic Pig Behavior Detection Based on YOLOv8 Applied Sciences domestic pig behavioral recognition YOLOv8n DWConv lightweighting |
| title | Lightweight Domestic Pig Behavior Detection Based on YOLOv8 |
| title_full | Lightweight Domestic Pig Behavior Detection Based on YOLOv8 |
| title_fullStr | Lightweight Domestic Pig Behavior Detection Based on YOLOv8 |
| title_full_unstemmed | Lightweight Domestic Pig Behavior Detection Based on YOLOv8 |
| title_short | Lightweight Domestic Pig Behavior Detection Based on YOLOv8 |
| title_sort | lightweight domestic pig behavior detection based on yolov8 |
| topic | domestic pig behavioral recognition YOLOv8n DWConv lightweighting |
| url | https://www.mdpi.com/2076-3417/15/11/6340 |
| work_keys_str_mv | AT kainingzhang lightweightdomesticpigbehaviordetectionbasedonyolov8 AT yuzhang lightweightdomesticpigbehaviordetectionbasedonyolov8 AT honglixu lightweightdomesticpigbehaviordetectionbasedonyolov8 |