Abstract
This paper introduces the PanAf-FGBG dataset, a large-scale collection of 5,070 paired foreground-background video clips of wild chimpanzees designed to address "shortcut learning" in wildlife behavior recognition. In camera trap scenarios, models often over-rely on static environmental cues rather than actual animal movements. By proposing a novel latent-space background compensation technique, the authors demonstrate significant improvements in out-of-distribution (OOD) performance, boosting mean Average Precision (mAP) by up to 5.42% in unseen locations.
Introduction
In computer vision, "shortcut learning" occurs when a model identifies patterns based on unintended correlations. For wildlife conservation, this is a critical failure point: a model might learn that "climbing" behavior is synonymous with a specific tree at a specific site. When the camera is moved to a new forest, the model fails because its environmental "shortcut" is gone.
Until now, large-scale, real-world datasets have lacked the structure to disentangle animal behavior from its environment. The PanAf-FGBG dataset addresses this by providing paired videos—one with the animal and one empty—from the same camera location, allowing researchers to explicitly study and mitigate environmental bias.
The PanAf-FGBG Dataset
The dataset consists of 21 hours of wild chimpanzee footage across 14 national parks in 6 African countries. It includes 5,070 video pairs annotated with 14 distinct behaviors (e.g., tool use, climbing, grooming) and rich metadata.
To rigorously test generalization, the authors provide two primary configurations:
- D_overlap: Training and testing on the same camera locations.
- D_disjoint: Testing on completely new research sites not seen during training.
Methodology: Latent Space Background Compensation
The researchers experimented with several ways to "neutralize" the background. While pixel-wise subtraction in the input space often creates artifacts that confuse spatio-temporal models, the authors introduced Latent Space Background Compensation.
Using a shared encoder, the system extracts feature vectors for both the foreground (animal present) and background (empty) videos. It then performs a weighted subtraction in the embedding space using a modulation parameter ($\alpha$) that evolves during training. This allows the model to cleanly subtract environmental bias at a high level of abstraction.
Key Results and Insights
- Backgrounds as "Spoilers": Models trained only on empty background videos (using labels from the corresponding animal videos) achieved ~65% of the performance of models that saw the animals. This confirms that the environment serves as a massive "cheat sheet."
- The Latent Space Advantage: The latent-space normalization technique improved OOD performance by +5.42% mAP for convolutional models and +3.75% mAP for transformer-based models (MViT).
- The "Dead Air" Effect: Performance drops sharply as the ratio of background-to-foreground frames increases. This suggests that models struggle to maintain focus on the action when surrounded by excessive "empty" footage.
Conclusion
The PanAf-FGBG dataset provides a vital benchmark for creating more robust wildlife monitoring tools. While currently tailored to static camera traps, the success of latent-space subtraction suggests a promising path forward for reducing environmental bias in diverse computer vision applications. Future work will explore applying these techniques to moving platforms like drones and handheld cameras.
Summary updated