Search bioRxiv⌕ Search

bioRxiv · 10.1101/2023.04.20.537633

A robust and flexible deep-learning workflow for animal tracking

Abstract

Developments in automated animal behavioural analysis software are increasing the efficiency of data collection and improving the standardization of behavioural measurements. There are now several open-source tools for tracking laboratory animals, but often these are only accurate under limited conditions (e.g. uniform lighting and background, uncluttered scenes, unobstructed focal animal). Tracking fish presents a particular challenge for these tools because movement at the waters surface introduces significant noise. Partial occlusion of the focal animal can also be troublesome, particularly when tracking the whole organism. But identifying the position of an animal is only part of the task - analysing the movement of the animal relative to their environment and experimental context is often what provides information about their behaviour. Therefore, the automated detection of physical objects and boundaries would also be beneficial, but this feature is not commonly incorporated into existing tracking software. Here we describe a video processing method that uses a range of computer vision algorithms (e.g. object detector and tracker, optical flow, parallel plane homology) and computational geometry techniques (e.g. Voronoi tessellation) to analyse the movement behaviour of fish in response to experimental stimuli. A behavioural experiment, which involved tracking a fishs trajectory through a field of obstacles, motivated our development of a set of tools that: (1) measure an animals trajectory, (2) record obstacle position, and (3) detect when the fish passed through virtual gates between adjacent obstacles and/or the aquarium wall. We have introduced a novel Detect+Track approach that significantly enhances the accuracy and robustness of animal tracking, overcoming some of the limitations of existing tools and providing a more reliable solution for complex experimental conditions. Our workflow is divided into several discrete steps, and provides a set of modular software building blocks that can be adapted to analyse other experimental designs. A detailed tutorial is provided, together with all the data and code required to reproduce our results.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Dutta, A., Perez-Campanero, N., Taylor, G. K., Zisserman, A., Newport, C.. 2023-04-20. A robust and flexible deep-learning workflow for animal tracking. https://doi.org/10.1101/2023.04.20.537633

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Deconstructing Boldness: Latent behavioural structure across novelty, predation, and exploration in an endangered species translocation program

Risk-related behaviours including neophobia, exploration, and predator avoidance are often assumed to covary along a general boldness axis. Although some translocation studies have linked one or more of these behaviours with fitness, it is possible that the underlying behavioural structure varies under different selective environments. Conservation breeding programs provide a unique opportunity to evaluate the structure of behavioural correlations in a non-domestic species under artificial conditions. We tested whether risk-related behaviours represent a unified boldness syndrome in a captive population of the endangered Attwaters prairie chicken (APC; Tympanuchus cupido attwateri). We quantified the repeatable behaviours of 257 juveniles and compared 11 models of behavioural covariation structure using multivariate mixed models and confirmatory factor analysis. There was no support for a single risk-taking axis; instead, we found three dimensions representing responses to novelty and environmental stimuli (Engagement), predator avoidance (Threat Response), and maze exploration (Maze Progression). Our results indicate that these risk-related behaviours are not organized along a single axis in captive APCs, challenging assumptions that risk-taking represents a universal behavioural syndrome. To anticipate post-release success accurately, conservation managers should understand the exact behavioural architecture of the captive population rather than assume that the classical bold-shy structure occurs in all contexts.

animal behavior and cognition↗

Social costs of group life: Larger groups have less affiliative behavior and more social conflict

The costs and benefits of sociality depend in part upon the size of groups. Therefore, individual behavior should vary across groups of different sizes, reflecting group size-dependent costs and benefits. Here, we test this prediction using a long-term dataset on wild female baboons (Papio cynocephalus x P. anubis). We find that individuals who live in larger groups suffer social costs: compared to animals in smaller groups, they experience more agonistic interactions, fewer grooming interactions, and sparser social networks. These social costs arise, in part, from a pattern in which relationships within dyads become more agonistic as group size increases (i.e., a given dyad exhibits fewer grooming interactions relative to agonistic interactions when it is living in a larger group). While individuals in large groups generally maintain the same number of strong bonds as individuals in small groups, they tend to develop weak bonds with a greater number of social partners that results in, on average, weaker bonds overall. Our results demonstrate that, despite potential benefits to large groups in terms of predation risk and intergroup competition, the social lives of individuals in larger groups involve less affiliation and more conflict in this wild primate population.

animal behavior and cognition↗

Shared brain transcriptome signatures of social evolution and plasticity in shell-dwelling cichlid fishes

Inter-individual variability in phenotypic traits is widespread in nature both across and within species, with similar patterns of variation often occurring between and within species. Given that these two types of variation are generated by evolutionary and plasticity processes respectively, it raises the question to what extent the causal mechanisms underlying such variability at these two different levels are shared or not. To address this question, we studied the variation in brain transcriptomes in Tanganyikan cichlids that exhibit both intra- and interspecific variation in social behavior. We compared two facultatively social cichlid species, each containing naturally occurring solitary and social-living individuals, with a closely related obligatory solitary resembling the ancestral state. Differential gene expression and Gene Set Enrichment Analyses were performed in the telencephalon and diencephalon transcriptomes to investigate the molecular basis of both behavioral plasticity and the evolution of sociality. Behavioral plasticity involved few differentially expressed genes but extensive changes in biological pathways, supporting a highly polygenic architecture of social behavior. Across both species, social-living individuals consistently upregulated pathways involved in translation, protein homeostasis, and energy metabolism, whereas solitary individuals showed enrichment of neuronal morphogenesis, cell adhesion, and structural plasticity. Remarkably, these same functional programs were associated with the independent evolution of sociality, revealing a strong overlap between evolutionary and plastic transcriptional responses. This convergence was largely restricted to the telencephalon, while the diencephalon showed limited and inconsistent functional signatures. Together, our results support the repeated recruitment of gene regulatory programs during the evolution of sociality and demonstrate that behavioral plasticity and evolutionary transitions share common neurogenomic responses, consistent with a conserved genetic toolkit for social behavior.

animal behavior and cognition↗