The PanAf-FGBG Dataset: Understanding the Impact of Backgrounds in Wildlife Behaviour Recognition
Otto Brookes, Maksim Kukushkin, Majid Mirmehdi, Colleen Stephens, Paula Dieguez, Thurston C. Hicks, Sorrel Jones, Kevin Lee, Maureen S. McCarthy, Amelia Meier, Emmanuelle Normand, Erin G. Wessling, Roman M. Wittig, Kevin Langergraber, Klaus Zuberbühler, Lukas Boesch, Thomas Schmid, Mimi Arandjelovic, Hjalmar Kühl, Tilo Burghardt
TL;DR
PanAf-FGBG tackles the challenge of background bias in wildlife-behaviour recognition by releasing a paired foreground-background camera-trap dataset for chimpanzees, enabling direct in-distribution and out-of-distribution evaluation across overlapping and disjoint camera locations. The work demonstrates that background cues are strong predictors of behaviour, introduces a latent-space background neutralisation method that yields notable gains ($+$5.42 ext{ } ext{ extpercent}$ for CNNs and $+$3.75 ext{ } ext{ extpercent}$ for transformers), and systematically analyzes the impact of background duration on learning. It also shows real-world backgrounds outperform synthetic ones in mitigation experiments and provides detailed baselines and configurations to study background effects in wildlife CV. Overall, PanAf-FGBG offers a valuable, realistic benchmark for understanding and improving generalization in wildlife-behaviour recognition with practical implications for conservation analytics.
Abstract
Computer vision analysis of camera trap video footage is essential for wildlife conservation, as captured behaviours offer some of the earliest indicators of changes in population health. Recently, several high-impact animal behaviour datasets and methods have been introduced to encourage their use; however, the role of behaviour-correlated background information and its significant effect on out-of-distribution generalisation remain unexplored. In response, we present the PanAf-FGBG dataset, featuring 20 hours of wild chimpanzee behaviours, recorded at over 350 individual camera locations. Uniquely, it pairs every video with a chimpanzee (referred to as a foreground video) with a corresponding background video (with no chimpanzee) from the same camera location. We present two views of the dataset: one with overlapping camera locations and one with disjoint locations. This setup enables, for the first time, direct evaluation of in-distribution and out-of-distribution conditions, and for the impact of backgrounds on behaviour recognition models to be quantified. All clips come with rich behavioural annotations and metadata including unique camera IDs and detailed textual scene descriptions. Additionally, we establish several baselines and present a highly effective latent-space normalisation technique that boosts out-of-distribution performance by +5.42% mAP for convolutional and +3.75% mAP for transformer-based models. Finally, we provide an in-depth analysis on the role of backgrounds in out-of-distribution behaviour recognition, including the so far unexplored impact of background durations (i.e., the count of background frames within foreground videos).
