Multistage pig identification using a sequential ear tag detection pipeline.

Journal: Scientific reports
Published Date:

Abstract

Reliable animal identification in livestock husbandry is essential for various applications, including behavioral monitoring, welfare assessment, and the analysis of social structures. Although recent advancements in deep learning models have improved animal identification using biometric markers, their applicability remains limited for species without distinctive traits like pigs. Consequently, synthetic features such as ear tags have become widely adopted. However, challenges such as poor lighting conditions and the complexity of ear tag coding continue to restrict the effectiveness of Computer Vision and Deep Learning techniques. In this study, we introduce a robust, lighting-invariant method for individual pig identification that leverages commercially available ear tags within a sequential detection pipeline. Our approach employs four object detection models in succession to detect pigs, localize ear tags, perform rotation correction via pin detection, and recognize digits, ultimately generating a reliable ID proposal. In a first evaluation stage, we assessed the performance of each model independently, achieving a mAP0.95 value of 0.970, 0.979, 0.974 and 0.979 for the pig detection, ear tag detection, pin detection and ID classification model, respectively. In addition, our method was further evaluated in two different camera environments to assess its performance in both familiar and unfamiliar conditions. The results demonstrate that the proposed approach achieves a very high precision of 0.996 in a familiar top-down camera scenario and maintained a strong generalization performance in an unfamiliar, close-up setup with a precision of 0.913 and a recall of 0.903. Furthermore, by publicly proposing three custom datasets for ear tag, pin, and digit detection, we aim to support reproducibility and further research in automated animal identification for precision livestock farming. The findings of this study demonstrate the effectiveness of ID-based animal identification and the proposed method could be integrated within advanced multi-object tracking systems to enable continuous animal observation and for monitoring specific target areas, thereby significantly enhancing overall livestock management systems.

Authors

  • Martin Wutke
    Breeding Informatics Group, Department of Animal Sciences, Georg-August University, Margarethe von Wrangell-Weg 7, 37075 Göttingen, Germany.
  • Damiano Debiasi
    Institute of Animal Breeding and Husbandry, Faculty of Agricultural and Nutritional Sciences, Christian-Albrechts-University Kiel, Kiel, 24118, Germany.
  • Shobhana Tomar
    Institute of Animal Breeding and Husbandry, Faculty of Agricultural and Nutritional Sciences, Christian-Albrechts-University Kiel, Kiel, 24118, Germany.
  • Jeanette Probst
    Institute for Animal Hygiene, Animal Welfare and Farm Animal Behavior (ITTN), University of Veterinary Medicine Hannover, Foundation, Hannover, Germany.
  • Nicole Kemper
    Institute for Animal Hygiene, Animal Welfare and Farm Animal Behavior (ITTN), University of Veterinary Medicine Hannover, Foundation, Hannover, Germany.
  • Kai Gevers
    Chamber of Agriculture Lower Saxony, Division Agriculture, Oldenburg, Oldenburg, Germany.
  • Marc-Alexander Lieboldt
    Chamber of Agriculture Lower Saxony, Division Agriculture, Oldenburg, Oldenburg, Germany.
  • Imke Traulsen
    Department of Animal Sciences, Livestock Systems, Georg-August-University Göttingen, 37075 Göttingen, Germany.

Keywords

No keywords available for this article.