A Framework for Fast, Large-scale, Semi-Automatic Inference of Animal Behavior from Monocular Videos

An automatic, quick, accurate, and scalable method for animal behavior inference using only videos of animals offers unprecedented opportunities to understand complex biological phenomena and answer challenging ecological questions. The advent of sophisticated machine learning techniques now allows the development and implementation of such a method. However, apart from developing a network model that infers animal behavior from video inputs, the key challenge is to obtain sufficient labeled (annotated) data to successfully train that network - a laborious task that needs to be repeated for every species and/or animal system. Here, we propose solutions for both problems, i) a novel methodology for rapidly generating large amounts of annotated data of animals from videos and ii) using it to reliably train deep neural network models to infer the different behavioral states of every animal in each frame of the video. Our method’s workflow is bootstrapped with a relatively small amount of manually-labeled video frames. We develop and implement this novel method by building upon the open-source tool Smarter-LabelMe, leveraging deep convolutional visual detection and tracking in combination with our behavior inference model to quickly produce large amounts of reliable training data. We demonstrate the effectiveness of our method on aerial videos of plains and Grévy’s Zebras (Equus quagga and Equus grevyi). We fully open-source the code1 of our method as well as provide large amounts of accurately-annotated video datasets2 of zebra behavior using our method. A video abstract of this paper is available here3.

[1]  Jacob M. Graving,et al.  Quantifying the movement, behaviour and environmental context of group-living animals using drones and computer vision. , 2023, The Journal of animal ecology.

[2]  Aamir Ahmad,et al.  Accelerated Video Annotation driven by Deep Detector and Tracker , 2023, ArXiv.

[3]  J. Fischer,et al.  Opportunities and risks in the use of drones for studying animal behaviour , 2022, Methods in Ecology and Evolution.

[4]  Talmo D. Pereira,et al.  Open-source tools for behavioral video analysis: Setup, methods, and best practices , 2022, eLife.

[5]  Ulrike E. Schlägel,et al.  Big-data approaches lead to an increased understanding of the ecology of animal movement , 2022, Science.

[6]  Silvia Zuffi,et al.  Perspectives in machine learning for wildlife conservation , 2021, Nature Communications.

[7]  Hiroshi Watanabe,et al.  Animal Behavior Classification Using DeepLabCut , 2020, 2020 IEEE 9th Global Conference on Consumer Electronics (GCCE).

[8]  Kevin M. Cury,et al.  DeepLabCut: markerless pose estimation of user-defined body parts with deep learning , 2018, Nature Neuroscience.

[9]  Jörg Melzheimer,et al.  Citizen science and wildlife biology: Synergies and challenges , 2018 .

[10]  Andrew M. Hein,et al.  Challenges and solutions for studying collective animal behaviour in the wild , 2018, Philosophical Transactions of the Royal Society B: Biological Sciences.

[11]  Ali Farhadi,et al.  Re$^3$: Re al-Time Recurrent Regression Networks for Visual Tracking of Generic Objects , 2017, IEEE Robotics and Automation Letters.

[12]  Wei Liu,et al.  SSD: Single Shot MultiBox Detector , 2015, ECCV.

[13]  Pietro Perona,et al.  Automated image-based tracking and its application in ecology. , 2014, Trends in ecology & evolution.

[14]  Pietro Perona,et al.  Microsoft COCO: Common Objects in Context , 2014, ECCV.

[15]  Karen Anderson,et al.  Lightweight unmanned aerial vehicles will revolutionize spatial ecology , 2013 .

[16]  Georgios D. Evangelidis,et al.  Parametric Image Alignment Using Enhanced Correlation Coefficient Maximization , 2008, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[17]  P N Lehner,et al.  Design and execution of animal behavior research: an overview. , 1987, Journal of animal science.

[18]  Exploring Animal Behavior in Laboratory and Field , 2021 .

[19]  Р Ю Чуйков,et al.  Обнаружение транспортных средств на изображениях загородных шоссе на основе метода Single shot multibox Detector , 2017 .

[20]  Yvonne Schuhmacher Exploring Animal Behavior In Laboratory And Field An Hypothesis Testing Approach To The Development Causation Function And Evolution Of Animal Behavior , 2016 .

[21]  Franck Trolliet,et al.  Use of camera traps for wildlife studies. A review , 2014 .

[22]  Aníbal Pauchard,et al.  Frontiers inEcology and the Environment Observational approaches in ecology open new ground in a changing world , 2009 .

[23]  J. Altmann,et al.  Observational study of behavior: sampling methods. , 1974, Behaviour.