Submitted:
30 August 2024
Posted:
02 September 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Description of Horse Postures and Behaviors
2.2. Environmental Index
2.3. Data Acquisition
2.4. Dataset Construction
2.5. Model Implementation
2.5.1. SE-SlowFast Network
2.5.1.1. SlowFast Network
2.5.1.2. SE Module
2.5.2. YOLOX Network
2.6. Improved Loss Function
2.7. Data Enhancement
2.7.1. Video Data Enhancement
2.7.2. Image Data Enhancement
2.8. Model Evaluation Metrics
3. Experimentation and Results
3.1. Experiment Implementation Details
3.2. Performance Evaluation
3.2.1. Feature Learning of SE-SlowFast Network
3.2.2. Loss Function Comparison
3.2.3. Ablation Study
3.3. Recognition Effect
4. Discussion
4.1. The Design of the Recognition System
4.2. Comprehensive Deployment of Intelligent Camera Devices
4.3. Algorithm Optimization
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Brubaker, L.; Udell, M.A.R. Cognition and Learning in Horses (Equus caballus): What We Know and Why We Should Ask More. Behav. Process. 2016, 126, 121–131. [Google Scholar] [CrossRef] [PubMed]
- Danby, P.; Grajfoner, D. Human–Horse Tourism and Nature-Based Solutions: Exploring Psychological Well-Being Through Transformational Experiences. J. Hosp. Tour. Res. 2022, 46, 607–629. [Google Scholar] [CrossRef]
- Lesimple, C.; Reverchon-Billot, L.; Galloux, P.; Stomp, M.; Boichot, L.; Coste, C.; Henry, S.; Hausberger, M. Free Movement: A Key for Welfare Improvement in Sport Horses? Appl. Anim. Behav. Sci. 2020, 225, 104972. [Google Scholar] [CrossRef]
- Fogarty, E.S.; Swain, D.L.; Cronin, G.M.; Moraes, L.E.; Trotter, M. Behaviour Classification of Extensively Grazed Sheep Using Machine Learning. Comput. Electron. Agric. 2020, 169, 105175. [Google Scholar] [CrossRef]
- Price, E.; Langford, J.; Fawcett, T.W.; Wilson, A.J.; Croft, D.P. Classifying the Posture and Activity of Ewes and Lambs Using Accelerometers and Machine Learning on a Commercial Flock. Appl. Anim. Behav. Sci. 2022, 251, 105630. [Google Scholar] [CrossRef]
- Evans, C.A.; Trotter, M.G.; Manning, J.K. Sensor-Based Detection of Predator Influence on Livestock: A Case Study Exploring the Impacts of Wild Dogs (Canis familiaris) on Rangeland Sheep. Animals 2022, 12, 219. [Google Scholar] [CrossRef] [PubMed]
- Wu, Y.; Liu, M.; Peng, Z.; Liu, M.; Wang, M.; Peng, Y. Recognising Cattle Behaviour with Deep Residual Bidirectional LSTM Model Using a Wearable Movement Monitoring Collar. Agriculture 2022, 12, 1237. [Google Scholar] [CrossRef]
- Balasso, P.; Taccioli, C.; Serva, L.; Magrin, L.; Andrighetto, I.; Marchesini, G. Uncovering Patterns in Dairy Cow Behaviour: A Deep Learning Approach with Tri-Axial Accelerometer Data. Animals 2023, 13, 1886. [Google Scholar] [CrossRef]
- Scheurwater, J.; Jorritsma, R.; Nielen, M.; Heesterbeek, H.; van den Broek, J.; Aardema, H. The Effects of Cow Introductions on Milk Production and Behaviour of the Herd Measured with Sensors. J. Dairy Res. 2022, 88, 374–380. [Google Scholar] [CrossRef]
- Cheng, M.; Yuan, H.; Wang, Q.; Cai, Z.; Liu, Y.; Zhang, Y. Application of Deep Learning in Sheep Behavior Recognition and Influence Analysis of Training Data Characteristics on the Recognition Effect. Comput. Electron. Agric. 2022, 198, 107010. [Google Scholar] [CrossRef]
- Xu, Y.; Nie, J.; Cen, H.; Wen, B.; Liu, S.; Li, J.; Ge, J.; Yu, L.; Pu, Y.; Song, K.; Liu, Z.; Cai, Q. Spatio-Temporal-Based Identification of Aggressive Behavior in Group Sheep. Animals 2023, 13, 2636. [Google Scholar] [CrossRef] [PubMed]
- Zhao, H.; Mao, R.; Li, M.; Li, B.; Wang, M. SheepInst: A High-Performance Instance Segmentation of Sheep Images Based on Deep Learning. Animals 2023, 13, 1338. [Google Scholar] [CrossRef]
- Gu, Z.; Zhang, H.; He, Z.; Niu, K. A Two-Stage Recognition Method Based on Deep Learning for Sheep Behavior. Comput. Electron. Agric. 2023, 212, 108143. [Google Scholar] [CrossRef]
- Qiang, B.; Ronghua, G.; Chunjiang, Z. Multi-Scale Behavior Recognition Method for Dairy Cows Based on Improved YOLOV5s Network. Trans. Chin. Soc. Agric. Eng. 2022, 38, 163–172. [Google Scholar]
- Wang, R.; Gao, Z.; Li, Q.; Zhao, C.; Gao, R.; Zhang, H.; Li, S.; Feng, L. Detection Method of Cow Estrus Behavior in Natural Scenes Based on Improved YOLOv5. Agriculture 2022, 12, 1339. [Google Scholar] [CrossRef]
- Yu, Z.; Liu, Y.; Yu, S.; Wang, R.; Song, Z.; Yan, Y.; Li, F.; Wang, Z.; Tian, F. Automatic Detection Method of Dairy Cow Grazing Behaviour Based on YOLO Improved Model and Edge Computing. Sensors 2022, 22, 3271. [Google Scholar] [CrossRef]
- Shang, C.; Wu, F.; Wang, M.; Gao, Q. Cattle Behavior Recognition Based on Feature Fusion Under a Dual Attention Mechanism. J. Vis. Commun. Image R. 2022, 85, 103524. [Google Scholar] [CrossRef]
- Tu, S.; Zeng, Q.; Liang, Y.; Liu, X.; Huang, L.; Weng, S.; Huang, Q. Automated Behavior Recognition and Tracking of Group-Housed Pigs with an Improved DeepSORT Method. Agriculture 2022, 12, 1907. [Google Scholar] [CrossRef]
- Kim, J.; Moon, N. Dog Behavior Recognition Based on Multimodal Data from a Camera and Wearable Device. Appl. Sci. 2022, 12, 3199. [Google Scholar] [CrossRef]
- Zhou, H.; Li, Q.; Xie, Q. Individual Pig Identification Using Back Surface Point Clouds in 3D Vision. Sensors 2023, 23, 5156. [Google Scholar] [CrossRef]
- Chen, C.; Zhu, W.; Steibel, J.; Siegford, J.; Han, J.; Norton, T. Recognition of Grazing Behaviour of Pigs and Determination of Grazing Time of Each Pig by a Video-Based Deep Learning Method. Comput. Electron. Agric. 2020, 176, 105642. [Google Scholar] [CrossRef]
- Yu, R.; Choi, Y. OkeyDoggy3D: A Mobile Application for Recognizing Stress-Related Behaviors in Companion Dogs Based on Three-Dimensional Pose Estimation through Deep Learning. Appl. Sci. 2022, 12, 8057. [Google Scholar] [CrossRef]
- Ji, H.; Yu, J.; Lao, F.; Zhuang, Y.; Wen, Y.; Teng, G. Automatic Position Detection and Posture Recognition of Grouped Pigs Based on Deep Learning. Agriculture 2022, 12, 1314. [Google Scholar] [CrossRef]
- Chen, H.-Y.; Lin, C.-H.; Lai, J.-W.; Chan, Y.-K. Convolutional Neural Network-Based Automated System for Dog Tracking and Emotion Recognition in Video Surveillance. Appl. Sci. 2023, 13, 4596. [Google Scholar] [CrossRef]
- Ji, H.; Teng, G.; Yu, J.; Wen, Y.; Deng, H.; Zhuang, Y. Efficient Aggressive Behavior Recognition of Pigs Based on Temporal Shift Module. Animals 2023, 13, 2078. [Google Scholar] [CrossRef]
- Zhang, K.; Li, D.; Huang, J.; Chen, Y. Automated Video Behavior Recognition of Pigs Using Two-Stream Convolutional Networks. Sensors 2020, 20, 1085. [Google Scholar] [CrossRef]
- Feichtenhofer, C.; Fan, H.; Malik, J.; He, K. SlowFast Networks for Video Recognition. In Proceedings of the IEEE International Conference on Computer Vision; 2019. [Google Scholar]
- Lim Teik Chung, E.; Khairuddin, N.H.; Tengku Azizan, T.R.P.; Adamu, L. Sleeping Patterns of Horses in Selected Local Horse Stables in Malaysia. J. Vet. Behav. 2018, 26, 1–4. [Google Scholar] [CrossRef]
- Greening, L.; McBride, S. A Review of Horse Sleep: Implications for Horse Welfare. Front. Vet. Sci. 2022, 9, 916737. [Google Scholar] [CrossRef]
- Ellis, A.D.; Fell, M.; Luck, K.; Gill, L.; Owen, H.; Briars, H.; Barfoot, C.; Harris, P. Effect of Forage Presentation on Feed Intake Behaviour in Stabled Horses. Appl. Anim. Behav. Sci. 2015, 165, 88–94. [Google Scholar] [CrossRef]
- Seabra, J.C.; do Vale, M.M.; Spercoski, K.M.; Hess, T.; de Moura, P.P.V.; Dittrich, J.R. Time-Budget and Welfare Indicators of Stabled Horses in Three Different Stall Architectures: A Cross-Sectional Study. J. Equine Vet. Sci. 2023, 131, 104936. [Google Scholar] [CrossRef]
- Aviron, M.; Geers, R. Behavior of Horses on Pasture in Relation to Weather and Shelter: A Field Study in a Temperate Climate. J. Vet. Behav. 2015, 10, 561–568. [Google Scholar] [CrossRef]
- Liu, Y.; Cao, K.; Chen, X.; Li, J.; Xiong, T.; Du, X.; Bai, T.; Zheng, W.; Guo, L. Design and Implementation of a Horse Intelligent Breeding Big Data Platform. J. Agric. Big Data 2023, 5, 93–103. [Google Scholar]

















| Label | Description |
|---|---|
| Standing | Standing、Crouching or Lying still, without entering a state of rest or engaging in sleep-related behaviors |
| Crouching | |
| Lying | |
| Standing, Grazing | Grazing in a standing |
| Standing, Sleeping | Sleeping in standing、crouching or lying |
| Crouching, Sleeping | |
| Lying, Sleeping |
| Loss Functions | postures | Behaviors | mAP (IOU=0.5) |
||||
| Standing | Crouching | Lying | Sleeping | Grazing | |||
| BCE_F_Combined Loss | =2 | 0.9126 | 0.8724 | 0.9145 | 0.9188 | 0.9621 | 0.9161 |
| =3 | 0.9121 | 0.8915 | 0.9089 | 0.9051 | 0.9745 | 0.9182 | |
| =4 | 0.9245 | 0.8843 | 0.8957 | 0.9298 | 0.9822 | 0.9233 | |
| CW_F_Combined Loss | =2 | 0.9273 | 0.9187 | 0.9258 | 0.9356 | 0.9877 | 0.9390 |
| =3 | 0.9156 | 0.8834 | 0.9102 | 0.9213 | 0.9544 | 0.9170 | |
| =4 | 0.9135 | 0.8525 | 0.9012 | 0.9124 | 0.9725 | 0.9104 | |
| Backbone Network | SE Module at the Front of the Slow Path | SE Module at the End of the Slow Path | Accuracy of postures and Behaviors Recognition | ||||
| Standing | Crouching | Lying | Sleeping | Grazing | |||
| SlowFast | × | × | 0.8945 | 0.9051 | 0.8829 | 0.9011 | 0.9247 |
| √ | × | 0.9023 | 0.9122 | 0.8754 | 0.9123 | 0.9189 | |
| × | √ | 0.9273 | 0.9187 | 0.9258 | 0.9356 | 0.9877 | |
| Method | Horse Detection Time | Spatio-Temporal Action Detection Time |
|---|---|---|
| FasterRCNN+ SE-SlowFast | 35s | 12.5s |
| YOLOv3 + SE-SlowFast | 13s | 11s |
| YOLOX + SE-SlowFast | 12.5s | 10s |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).