1. SMEA-YOLOv8n: A Sheep Facial Expression Recognition Method Based on an Improved YOLOv8n Model.
- Author
-
Yu, Wenbo, Yang, Xiang, Liu, Yongqi, Xuan, Chuanzhong, Xie, Ruoya, and Wang, Chuanjiu
- Subjects
- *
HEALTH of sheep , *FACIAL expression , *ANIMAL welfare , *SHEEP , *FACIAL pain - Abstract
Simple Summary: Sheep often show signs of pain through their facial expressions, making these cues essential for monitoring their health and well-being. Quickly and accurately detecting these expressions is vital for effective pain management and preventing the spread of disease. However, existing detection methods can be slow, inaccurate, or unreliable, especially in challenging conditions like poor lighting or when sheep are partially hidden. To address these issues, we developed a new computer algorithm that automatically recognizes sheep facial expressions associated with pain. Our approach improves upon existing models by more precisely focusing on key facial features and filtering out irrelevant background information. In our tests, the algorithm showed significant improvements in accuracy, more reliably identifying normal and abnormal expressions compared to previous methods. This advancement allows farmers and veterinarians to monitor sheep health more effectively in real time, enabling quicker interventions when animals are in discomfort. Overall, our work provides a practical tool to enhance animal welfare by ensuring sheep receive timely and appropriate care. Sheep facial expressions are valuable indicators of their pain levels, playing a critical role in monitoring their health and welfare. In response to challenges such as missed detections, false positives, and low recognition accuracy in sheep facial expression recognition, this paper introduces an enhanced algorithm based on YOLOv8n, referred to as SimAM-MobileViTAttention-EfficiCIoU-AA2_SPPF-YOLOv8n (SMEA-YOLOv8n). Firstly, the proposed method integrates the parameter-free Similarity-Aware Attention Mechanism (SimAM) and MobileViTAttention modules into the CSP Bottleneck with 2 Convolutions(C2f) module of the neck network, aiming to enhance the model's feature representation and fusion capabilities in complex environments while mitigating the interference of irrelevant background features. Additionally, the EfficiCIoU loss function replaces the original Complete IoU(CIoU) loss function, thereby improving bounding box localization accuracy and accelerating model convergence. Furthermore, the Spatial Pyramid Pooling-Fast (SPPF) module in the backbone network is refined with the addition of two global average pooling layers, strengthening the extraction of sheep facial expression features and bolstering the model's core feature fusion capacity. Experimental results reveal that the proposed method achieves a mAP@0.5 of 92.5%, a Recall of 91%, a Precision of 86%, and an F1-score of 88.0%, reflecting improvements of 4.5%, 9.1%, 2.8%, and 6.0%, respectively, compared to the baseline model. Notably, the mAP@0.5 for normal and abnormal sheep facial expressions increased by 3.7% and 5.3%, respectively, demonstrating the method's effectiveness in enhancing recognition accuracy under complex environmental conditions. [ABSTRACT FROM AUTHOR]
- Published
- 2024
- Full Text
- View/download PDF