journal article·2024-07-12Open access

Detection of Threats to Farm Animals Using Deep Learning Models: A Comparative Study

Adem Korkmaz, Mehmet Tevfik Agdas, Selahattin Kosunalp, Teodor Iliev, Ivaylo Stoyanov

Applied Sciences· Volume 14· Issue 14

Abstract

The increasing global population and environmental changes pose significant challenges to food security and sustainable agricultural practices. To overcome these challenges, protecting farm animals and effectively detecting potential environmental threats is critical for economic and ecological sustainability. In this context, the current study examined the animal detection capabilities and efficiency of advanced deep learning models, such as YOLOv8, Yolo-NAS, and Fast-RNN, across a dataset of 2462 images encompassing various animal species that could pose a risk to farm animals. After converting the images into a standardized format, they were divided into three sets for training, validation, and testing, and each model was evaluated on this dataset during the analysis process. The findings indicated that the YOLOv8 model demonstrated superior performance, with 93% precision, 85.2% recall, and 93.1% mAP50 values, while Yolo-NAS was particularly noteworthy for its high recall value, indicating a remarkable detection ability. The Fast-RNN model also offered significant efficiency with balanced performance. The results reveal the considerable potential of deep learning-based object detection technologies in protecting farm animals and enhancing farm security. Additionally, this study provides valuable insights for future model optimization and customization research.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Food Supply Chain Traceability · Smart Agriculture and AI · Identification and Quantification in Food

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Technologies, Gönen Vocational School, Bandırma Onyedi Eylül University, 10200 Bandırma, Türkiye

Department of Computer Technologies, Cemisgezek Vocational School, Munzur University, 62600 Tunceli, Türkiye

Department of Telecommunications, University of Ruse, 7017 Ruse, Bulgaria

Department of Electrical Power Engineering, University of Ruse, 7017 Ruse, Bulgaria

Funding

European Union-Next Generation EU

References (41)

Show source-provided references
1. Neethirajan, S. (2020). The role of sensors, big data and machine learning in modern animal farming. Sens. Bio-Sens. Res., 29.10.1016/j.sbsr.2020.100367 ↗
2. Climate change and livestock: Impacts, adaptation, and mitigation10.1016/j.crm.2017.02.001 ↗
3. Global food demand and the sustainable intensification of agriculture10.1073/pnas.1116437108 ↗
4. Livestock and livestock product trends by 2050: Review
5. Symposium review: Considerations for the future of dairy cattle housing: An animal welfare perspective10.3168/jds.2019-17804 ↗
6. Is there a farm labor shortage?10.1093/ajae/aas090 ↗
7. Li, G., Huang, Y., Chen, Z., Chesser, G.D., Purswell, J.L., Linhoss, J., and Zhao, Y. (2021). Practices and applications of convolutional neural network-based computer vision systems in animal farming: A review. Sensors, 21.10.3390/s21041492 ↗
8. Woodroffe, R., Thirgood, S., and Rabinowitz, A. (2005). The impact of human–wildlife conflict on human lives and livelihoods. People and Wildlife, Conflict or Co-Existence? Conservation Biology, Cambridge University Press.10.1017/CBO9780511614774 ↗
9. Szeliski, R. (2022). Computer Vision: Algorithms and Applications, Springer International Publishing.10.1007/978-3-030-34372-9 ↗
10. Murphy, K.P. (2012). Machine Learning: A Probabilistic Perspective, MIT Press.
11. Deep learning-based automatic helmet detection system in construction site cameras10.17798/bitlisfen.1297952 ↗
12. Fernandes, A.F.A., Dórea, J.R.R., and de Magalhães Rosa, G.J. (2020). Image Analysis and Computer Vision Applications in Animal Sciences: An Overview. Front. Vet. Sci., 7.10.3389/fvets.2020.551269 ↗
13. A machine vision system to detect and count laying hens in battery cages10.1017/S1751731120001676 ↗
14. Individual identification of dairy cows based on convolutional neural networks10.1007/s11042-019-7344-7 ↗
15. Barbedo, J.G.A., Koenigkan, L.V., Santos, T.T., and Santos, P.M. (2019). A study on the detection of cattle in UAV images using deep learning. Sensors, 19.10.20944/preprints201912.0089.v1 ↗
16. Automatically identifying, counting, and describing wild animals in camera-trap images with deep learning10.1073/pnas.1719367115 ↗
17. Dairy goat detection based on Faster R-CNN from surveillance video10.1016/j.compag.2018.09.030 ↗
18. Cattle detection and counting in UAV images based on convolutional neural networks10.1080/01431161.2019.1624858 ↗
19. Andrew, W., Greatwood, C., and Burghardt, T. (2017, January 22–29). Visual localisation and individual identification of holstein friesian cattle via deep learning. Proceedings of the IEEE International Conference on Computer Vision Workshops, Venice, Italy.10.1109/ICCVW.2017.336 ↗
20. Health evaluation and dangerous reptile detection using a novel framework powered by the YOLO algorithm to design high-content cellular imaging systems
21. COCO2017 (2024, March 15). Ultralytics. Available online: https://hub.ultralytics.com/datasets/0lzxgXNASUdmbODKYDnq.
22. Detectiondanimaux (2024, March 15). Animal Detection Dataset, Roboflow Universe. Available online: https://universe.roboflow.com/detectiondanimaux/animal_detection-7wyeu.
23. Antoreepjana (2024, March 15). Animals Detection Images Dataset. Available online: https://www.kaggle.com/datasets/antoreepjana/animals-detection-images-dataset.
24. Jocher, G., Chaurasia, A., and Qiu, J. (2024, March 15). YOLO by Ultralytics (Version 8.0.0) [Computer Software]. Available online: https://github.com/ultralytics/ultralytics.
25. Hussain, M. (2023). YOLO-v1 to YOLO-v8, the rise of YOLO and its complementary nature toward digital manufacturing and industrial defect detection. Machines, 11.10.3390/machines11070677 ↗
26. Jacob, S.F. (2024, March 15). What is YOLOv8? The Ultimate Guide. Roboflow Blog. Available online: https://blog.roboflow.com/whats-new-in-yolov8/.
27. Afonso, M.H.F., Teixeira, E.H., Cruz, M.R., Aquino, G.P., and Vilas Boas, E.C. (2023, January 9–12). Vehicle and plate detection for intelligent transport systems: Performance evaluation of models YOLOv5 and YOLOv8. Proceedings of the 2023 IEEE International Conference on Computing (ICOCO), Langkawi, Malaysia.10.1109/ICOCO59262.2023.10397996 ↗
28. Athar, A., Luiten, J., Hermans, A., Ramanan, D., and Leibe, B. (2022, January 18–24). Hodor: High-level object descriptors for object re-segmentation in video learned from static images. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.00303 ↗
29. Zhang, Y., and Jiao, R. (2023). Towards Segment Anything Model (SAM) for medical image segmentation: A survey. arXiv.10.2139/ssrn.4495221 ↗
30. Khvedchenya, E., and Sahota, H. (2024, April 12). Yolo-Nas by Deci Achieves State-of-the-Art Performance on Object Detection Using Neural Architecture Search. Available online: https://deci.ai/blog/yolo-nas-object-detection-foundation-model/.
31. (2024, February 10). Available online: https://github.com/Deci-AI/super-gradients/blob/master/YOLONAS.md.
32. Kusupati, A., Singh, M., Bhatia, K., Kumar, A., Jain, P., and Varma, M. (2018). Fastgrnn: A fast, accurate, stable and tiny kilobyte sized gated recurrent neural network. Advances in Neural Information Processing Systems, MIT Press.
33. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
34. Yadav, K., Yadav, M., and Saini, S. (2022, January 22–24). Stock market predictions using FastRNN-based model. Proceedings of the Seventh International Conference on Mathematics and Computing, Athens, Greece.10.1007/978-981-16-6890-6_33 ↗
35. Schütz, A.K., Schöler, V., Krause, E.T., Fischer, M., Müller, T., Freuling, C.M., and Lentz, H.H. (2021). Application of YOLOv4 for detection and Motion monitoring of red Foxes. Animals, 11.10.3390/ani11061723 ↗
36. Intelligent System Utilizing HOG and CNN for Thermal Image-Based Detection of Wild Animals in Nocturnal Periods for Vehicle Safety10.1080/08839514.2022.2031825 ↗
37. Zhang, M., Gao, F., Yang, W., and Zhang, H. (2023). Real-Time Target Detection System for Animals Based on Self-Attention Improvement and Feature Extraction Optimization. Appl. Sci., 13.10.3390/app13063987 ↗
38. Maity, R., Jivthesh, M.R., Maitra, P.S., Sanjeevi, G., Gaushik, M.R., NB, S.S., and Menon, K.U. (2023, January 2–3). Maximising highway safety through ai-enabled detection of pedestrians and animals in v2x environments. Proceedings of the 2023 International Conference on Wireless Communications Signal Processing and Networking (WiSPNET), Hangzhou, China.10.1109/WiSPNET57748.2023.10134307 ↗
39. Fusion of visible and thermal images improves automated detection and classification of animals for drone surveys10.1038/s41598-023-37295-7 ↗
40. Viji, R., Sreelatha, G., and Kumar, S.S. (2023, January 17–19). Towards Implementation of Detection and Tracking of Wild Animals. Proceedings of the 2023 9th International Conference on Smart Computing and Communications (ICSCC), Kochi, India.10.1109/ICSCC59169.2023.10334944 ↗
41. Evaluating YOLO architectures for detecting road killed endangered Brazilian animals10.1038/s41598-024-52054-y ↗