Effects of Data Augmentation Methods on YOLO v5s: Application of Deep Learning with Pytorch for Individual Cattle Identification

In this paper, we investigate the performance of the YOLO v5s (You Only Look Once) model for the identification of individual cattle in a cattle herd. The model is a popular method for real-time object detection, accuracy, and speed. However, since the videos obtained from the cattle herd consist of free space images, the number of frames in the data is unbalanced. This negatively affects the performance of the YOLOv5 model. First, we investigate the model performance on the unbalanced initial dataset obtained from raw images, then we stabilize the initial dataset using some data augmentation methods and obtain the model performance. Finally, we built the target detection model and achieved excellent model performance with an mAP (mean average precision) of 99.5% on the balanced dataset compared to the model on the unbalanced data (mAP of 95.8%). The experimental results show that YOLO v5s has a good potential for automatic cattle identification, but with the use of data augmentation methods, superior performance can be obtained from the model.

[1]  D. Cavallini,et al.  Health and welfare assessment of beef cattle during the adaptation period in a specialized commercial fattening unit. , 2023, Research in veterinary science.

[2]  L. Chai,et al.  Tracking pecking behaviors and damages of cage-free laying hens with machine vision technologies , 2023, Comput. Electron. Agric..

[3]  G. Ser,et al.  SHEEPFEARNET: Sheep fear test behaviors classification approach from video data based on optical flow and convolutional neural networks , 2023, Comput. Electron. Agric..

[4]  Ü. Kizil,et al.  Identification of Paddy Rice Diseases Using Deep Convolutional Neural Networks , 2022, Yüzüncü Yıl Üniversitesi Tarım Bilimleri Dergisi.

[5]  Maria Istela Cagnin,et al.  Counting cattle in UAV images using convolutional neural network , 2022, Remote Sensing Applications: Society and Environment.

[6]  Claudia Gonzalez Viejo,et al.  Livestock Identification Using Deep Learning for Traceability , 2022, Sensors.

[7]  Jeongho Cho,et al.  Improved Monitoring of Wildlife Invasion through Data Augmentation by Extract–Append of a Segmented Entity , 2022, Sensors.

[8]  Zihui Zhao,et al.  Intelligent Grazing UAV Based on Airborne Depth Reasoning , 2022, Remote. Sens..

[9]  M. Hajyzadeh,et al.  Drone-Computer Communication Based Tomato Generative Organ Counting Model Using YOLO V5 and Deep-Sort , 2022, Agriculture.

[10]  J. Zhang,et al.  An Integrated Goat Head Detection and Automatic Counting Method Based on Deep Learning , 2022, Animals : an open access journal from MDPI.

[11]  Zhaoyi Chen,et al.  Plant Disease Recognition Model Based on Improved YOLOv5 , 2022, Agronomy.

[12]  Xincheng Tian,et al.  A Two-Stage Industrial Defect Detection Framework Based on Improved-YOLOv5 and Optimized-Inception-ResnetV2 Models , 2022, Applied Sciences.

[13]  G. Falzon,et al.  Automated Muzzle Detection and Biometric Identification via Few-Shot Deep Transfer Learning of Mixed Breed Cattle , 2021, Agronomy.

[14]  Fuzeng Yang,et al.  A Real-Time Apple Targets Detection Method for Picking Robot Based on Improved YOLOv5 , 2021, Remote. Sens..

[15]  Gazel Ser,et al.  Derin Sinir Ağları ile En İyi Modelin Belirlenmesi: Mantar Verileri Üzerine Keras Uygulaması , 2019, Yüzüncü Yıl Üniversitesi Tarım Bilimleri Dergisi.

[16]  Taghi M. Khoshgoftaar,et al.  A survey on Image Data Augmentation for Deep Learning , 2019, Journal of Big Data.

[17]  Ashfaqur Rahman,et al.  Convolutional Neural Network for Time Series Cattle Behaviour Classification , 2016, TSAA '16.

[18]  A. El-Battay,et al.  Deep neural network based date palm tree detection in drone imagery , 2022, Comput. Electron. Agric..