Grazing Sheep Behaviour Recognition Based on Improved YOLOV5
- PMID: 37430666
- PMCID: PMC10223245
- DOI: 10.3390/s23104752
Grazing Sheep Behaviour Recognition Based on Improved YOLOV5
Abstract
Fundamental sheep behaviours, for instance, walking, standing, and lying, can be closely associated with their physiological health. However, monitoring sheep in grazing land is complex as limited range, varied weather, and diverse outdoor lighting conditions, with the need to accurately recognise sheep behaviour in free range situations, are critical problems that must be addressed. This study proposes an enhanced sheep behaviour recognition algorithm based on the You Only Look Once Version 5 (YOLOV5) model. The algorithm investigates the effect of different shooting methodologies on sheep behaviour recognition and the model's generalisation ability under different environmental conditions and, at the same time, provides an overview of the design for the real-time recognition system. The initial stage of the research involves the construction of sheep behaviour datasets using two shooting methods. Subsequently, the YOLOV5 model was executed, resulting in better performance on the corresponding datasets, with an average accuracy of over 90% for the three classifications. Next, cross-validation was employed to verify the model's generalisation ability, and the results indicated the handheld camera-trained model had better generalisation ability. Furthermore, the enhanced YOLOV5 model with the addition of an attention mechanism module before feature extraction results displayed a mAP@0.5 of 91.8% which represented an increase of 1.7%. Lastly, a cloud-based structure was proposed with the Real-Time Messaging Protocol (RTMP) to push the video stream for real-time behaviour recognition to apply the model in a practical situation. Conclusively, this study proposes an improved YOLOV5 algorithm for sheep behaviour recognition in pasture scenarios. The model can effectively detect sheep's daily behaviour for precision livestock management, promoting modern husbandry development.
Keywords: behaviour recognition; grazing sheep; improved YOLOV5; pasture.
Conflict of interest statement
The authors declare no conflict of interest.
Figures
References
-
- Nasirahmadi A., Edwards S.A., Sturm B. Implementation of machine vision for detecting behaviour of cattle and pigs. Livest. Sci. 2017;202:25–38. doi: 10.1016/j.livsci.2017.05.014. - DOI
-
- Pedersen L.J. Advances in Pig Welfare. Woodhead Publishing; Sawston, UK: 2018. Overview of commercial pig production systems and their main welfare challenges; pp. 3–25.
-
- Yang A., Huang H., Zheng B., Li S., Gan H., Chen C., Yang X., Xue Y. An automatic recognition framework for sow daily behaviours based on motion and image analyses. Biosyst. Eng. 2020;192:56–71. doi: 10.1016/j.biosystemseng.2020.01.016. - DOI
-
- Jiang M., Rao Y., Zhang J., Shen Y. Automatic behavior recognition of group-housed goats using deep learning. Comput. Electron. Agric. 2020;177:105706. doi: 10.1016/j.compag.2020.105706. - DOI
MeSH terms
Grants and funding
- 2020ZD0004/the Major Science and Technology Program of Inner Mongolia Autonomous Region
- 2021YFD1300503/the National Key Research and Development Program of China
- 2022BBF02021/the Key Research and Development Program of Ningxia Autonomous Region
- CAAS-ASTIP-2016-AII/the Science and Technology Innovation Project of the Chinese Academy of Agricultural Sciences
LinkOut - more resources
Full Text Sources
