Self-supervised Learning on Camera Trap Footage Yields a Strong Universal Face Embedder

Vladimir Iashin, Horace Lee, Daniel Schofield, Andrew Zisserman

TL;DR

This paper introduces a fully self-supervised method for learning universal chimpanzee face embeddings from unlabelled camera trap footage. By leveraging the DINOv2 framework and an automated data engine, they achieve state-of-the-art open-set re-identification performance, significantly outperforming supervised methods without requiring any identity labels during training. This breakthrough promises to automate wildlife monitoring and enable scalable, non-invasive population studies.

What Problem Does This Paper Address?

Wildlife monitoring relies heavily on camera traps to collect vast amounts of visual data. However, a major bottleneck is the manual identification of individual animals, which is time-consuming and requires expert knowledge. Existing deep learning approaches for animal re-identification often adapt human face recognition models, but these face significant limitations:

  1. Data Scarcity: Human face datasets are massive (millions of images, thousands of identities), while animal datasets are much smaller, often containing only a few dozen individuals, making it difficult to train robust models.
  2. Closed-Set Assumption: Most models are trained for closed-set recognition, meaning they can only identify individuals present in the training data. Wildlife monitoring, however, frequently encounters new, unannotated individuals.
  3. Labeling Effort: Acquiring labelled data for animals is expensive and labor-intensive, requiring expert annotation for each individual.

This paper aims to overcome these limitations by developing a self-supervised method that can learn powerful face embeddings from unlabelled, in-the-wild camera trap footage, enabling open-set re-identification.

Methods

The core of the proposed method lies in leveraging self-supervised learning with the DINOv2 framework and a custom Data Engine.

  1. Data Engine: This component automates the extraction of high-quality chimpanzee face crops from raw camera trap videos. It involves:
  2. Face Detection: Using a lightweight, task-specific detector (like YOLOX) trained on a small set of annotated frames to identify faces, even in challenging viewpoints.
  3. Bounding-box Tracking: Employing a tracker (like ByteTrack) to associate detections across frames, recover from occlusions, and extend trajectories. This helps maintain continuity and provides hints for identity.
  4. Data Curation: Filtering out low-confidence detections and, crucially, not requiring identity labels.
  5. Universal Face Embedder: The extracted face crops are then used to train a Vision Transformer (ViT) backbone using the DINOv2 self-supervised learning objective. DINOv2 is chosen because its metric structure is well-suited for retrieval tasks like open-set re-identification. The self-supervised training process involves:
  6. Student-Teacher Framework: A student network learns to match the output of a momentum-updated teacher network.
  7. Contrastive Learning Principles: Implicitly, the objective encourages similar faces to have similar embeddings and dissimilar faces to have different embeddings, without explicit identity labels.
  8. Patch-Level Alignment and Uniformity Regularizers: These DINOv2 components further enhance the retrieval properties of the learned embeddings.

The resulting embedder maps face images to a d-dimensional representation, allowing for open-set identification via k-nearest-neighbor (k-NN) search in the embedding space.

Datasets

  • Training Data:
    • PanAf-20K: Approximately 314k face crops from camera trap footage across 18 Central African sites.
  • Loma Mountains National Park: Approximately 314k face crops from high-resolution camera trap footage in Sierra Leone.
  • Bossou-14: Approximately 335k face crops from the annotated Bossou video archive, with identity labels discarded for self-supervised training. This corpus contains 14 identities.
  • Total Training Mixture: ~964k unlabelled images.
  • Evaluation Benchmarks:
    • Bossou-9: A challenging in-the-wild dataset with unaligned faces, extreme poses, and variable resolution. It consists of 9 identities, with 10 frames per track for the gallery and remaining tracks for queries.
  • PetFaceC*: A cleaned subset of the PetFace dataset, focusing solely on chimpanzees. It contains 376 identities and offers close-up, well-aligned images under more controlled conditions.

Key Insights and Ideas

  • Self-Supervision for Wildlife: The paper demonstrates that self-supervised learning, specifically DINOv2, is highly effective for learning robust representations from unlabelled wildlife camera trap data, a domain traditionally reliant on expensive manual annotation.
  • Universal Embedder Potential: The trained embedder shows strong generalization across diverse chimpanzee scenarios (captive vs. wild, varying image quality), highlighting its potential as a "universal" tool.
  • Data Engine Automation: The automated data engine is crucial for scaling up the process, enabling the mining of millions of face crops without manual identity labeling, thus addressing the data scarcity problem.
  • Open-Set Advantage: The DINOv2 framework's inherent suitability for retrieval tasks naturally lends itself to open-set recognition, a critical requirement for real-world wildlife monitoring where new individuals are constantly encountered.
  • Beyond Contrastive Learning: The results suggest that DINOv2's approach is significantly more effective than simpler contrastive methods like SimCLR for this challenging, in-the-wild data.

Key Results

  • State-of-the-Art Performance: The self-supervised DINOv2 models significantly outperform supervised baselines on the challenging Bossou-9 re-identification benchmark.
  • The best model (ViT-B, 87M parameters) achieved 82.2% Re-ID on Bossou-9, a substantial improvement over the best supervised model (MiewID-msv3 at 56.7%).
  • On PetFaceC*, the model achieved 45.9% Re-ID and 76.3% verification, approaching supervised performance without identity labels.
  • Scalability: The ViT-Small (22M parameters) model trains in 36 hours on a single GPU, while the larger ViT-Base (87M parameters) trains in ~4 days, demonstrating practical scalability.
  • Training Mix Benefits: Incorporating diverse datasets (PanAf, Loma, Bossou-14) into the training mixture consistently improved performance, underscoring the value of varied, unlabelled data.
  • Contrastive Learning Comparison: DINOv2 significantly outperformed SimCLR, achieving 78.1% Re-ID on Bossou-9 compared to SimCLR's 62.1%.

Limitations and Future Work

  • PetFaceC* Performance Gap: While strong, the self-supervised approach does not yet match supervised baselines on the more controlled PetFaceC* benchmark for re-identification. The authors attribute this to a potential distribution mismatch in image quality between the wild training data and the cleaner evaluation data.
  • Metadata Integration: The authors suggest that incorporating auxiliary metadata (time, location, track continuity) from camera trap sequences could further enhance performance by providing relational constraints for mining positive/negative pairs.
  • Combined Self-Supervised Losses: Exploring combinations of self-distillation (DINOv2) with explicit contrastive losses could potentially strengthen open-set recognition.
  • Broader Applicability: The work paves the way for applying similar self-supervised techniques to other animal species and ecological monitoring tasks.
  • Scalability for Larger Models: The observed gains from scaling up the ViT backbone and training schedule suggest further improvements are possible with larger models and longer pre-training.

Summary updated

BibTeX
@inproceedings{iashin2025self,
  author = {Vladimir Iashin and Horace Lee and Daniel Schofield and Andrew Zisserman},
  title = {{Self-supervised Learning on Camera Trap Footage Yields a Strong Universal Face Embedder}},
  booktitle = {IEEE International Conference on Image Processing Challenges and Workshops (ICIPCW)},
  year = {2025},
  url = {https://openreview.net/forum?id=6XtPRkPPJ3},
}
Figure