Liu Dihua, E-mail: liudihuaemail@163.com
Accurate localization of keypoints for animal body measurement is of great importance for intelligent livestock health monitoring and automated measurement systems. However, existing keypoint detection models often suffer from two major limitations: a large number of parameters which are unfavorable for deployment on edge devices, and insufficient localization accuracy in some lightweight models that fails to meet the precision requirements of body measurement tasks. To address these challenges, this paper proposes a lightweight keypoint detection model based on an improved YOLOv8-Pose architecture, which effectively enhances detection accuracy while maintaining real-time performance. In the proposed model, coordinate attention mechanisms are integrated into the shallow layers of the backbone network and before the three heads, enabling spatial coordinate information to be effectively embedded into channel attention. This design enhances the model ability to perceive the spatial distribution of keypoints, thereby improving the accuracy and stability of keypoint localization. In addition, a forced sharpening module is introduced in the shallow backbone to strengthen edge and contour features, facilitating a better balance between global semantic representation and local detail preservation. Furthermore, a high-resolution feature branch is incorporated to provide fine-grained spatial information to the three detection heads, compensating for the loss of spatial resolution in deeper feature maps. Experimental results demonstrate that the proposed model achieves a precision of 82.6%, a recall of 81.3%, and an mAP50-95 of 58.1% on complex horse keypoint detection tasks. Compared with YOLOv8-Pose, the proposed method achieves improvements of 21.0%, 39.2%, and 45.3% in precision, recall, and mAP50-95, respectively, exhibiting superior robustness and localization capability under complex poses and diverse environmental conditions. In terms of model complexity, the number of parameters increases from 3.361 M to 4.611 M, corresponding to an increase of approximately 37.2%, while the floating-point operations rises from 9.6×109 to 10.4×109, an increase of only 8.3%. Despite this limited computational overhead, the proposed model delivers substantial performance gains without significantly affecting inference speed. These results indicate that the proposed approach achieves a favorable trade-off between accuracy and efficiency by incurring a relatively small model cost for considerable performance improvement, demonstrating its strong potential for intelligent livestock farming and automated body measurement applications.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |