Impact of Background Removal on Cow Identification with Convolutional Neural Networks

Read full text
Authors: Gergana Balieva, Alexander Marazov, Dimitar Tanchev, Ivanka Lazarova, Ralitsa Rankova
Cited by: 2
References: 24

Abstract

Individual animal identification is a cornerstone of animal welfare practices and is of crucial importance for food safety and the protection of humans from zoonotic diseases. It is also a key prerequisite for enabling automated processes in modern dairy farming. With newly emerging technologies, visual animal identification based on machine learning offers a more efficient and non-invasive method with high automation potential, accuracy, and practical applicability. However, a common challenge is the limited variability of training datasets, as images are typically captured in controlled environments with uniform backgrounds and fixed poses. This study investigates the impact of foreground segmentation and background removal on the performance of convolutional neural networks (CNNs) for cow identification. A dataset was created in which training images of dairy cows exhibited low variability in pose and background for each individual, whereas the test dataset introduced significant variation in both pose and environment. Both a fine-tuned CNN backbone and a model trained from scratch were evaluated using images with and without background information. The results demonstrate that although training on segmented foregrounds extracts intrinsic biometric features, background cues carry more information for individual recognition.

Fields of Study & Subjects

Food Supply Chain Traceability Animal Behavior and Welfare Studies Smart Agriculture and AI

Publication details

Journal / source
Technologies
Publisher
MDPI AG
Volume
14
Issue
1
Pages
50–50
Publication date
9 January 2026
Language
EN