Identifying grazing animals is both time consuming and a matter of animal welfare. Being able to digitally monitor the animals, abnormal behavior can be detected which can prevent unnecessary suffering. In this thesis, the design of datasets has been evaluated for the deep learning method convolutional neural network. The modelhas been developed using data augmentation and drop-out both separately and combined to investigate how these two methods are affecting the accuracy of the model. This thesis also investigates different sizes of datasets and if cropped images increases the accuracy compared to not cropped images. The conclusion is that after evaluation of all the datasets, the best settings for CNN are the combination of both data augmentation and drop-out. The best size of the dataset was 500 images or more, for three classes using 10-15 epochs. Another important conclusion is that when using small datasets with 50 images, a cropped setup with 30 epochs results in an acceptable accuracy compared with a not cropped setup.
Source code: https://github.com/tommygranstrom/Horse-Facerec TNM095.git