The SA-FARI Dataset: Segment Anything in Footage of Animals for Recognition and Identification

Dante Francisco Wasmuht, Otto Brookes, Maximillian Schall, Pablo Palencia, Chris Beirne, Tilo Burghardt, Majid Mirmehdi, Hjalmar S. Kühl, Mimi Arandjelovic, Sam Pottie, Peter Bermant, Brandon Asheim, Yi Jin Toh, Adam Elzinga, Jason Holmberg, Andrew Whitworth, Eleanor Flatt, Laura Gustafson, Chaitanya Ryali, Yuan-Ting Hu, Baishan Guo, Andrew Westbury, Kate Saenko, Didac Suris · DOI

Abstract

Monitoring global biodiversity is critical as species populations decline, yet the sheer volume of camera trap data overwhelms human capacity for analysis. We present SA-FARI, the largest open-source dataset for multi-animal tracking (MAT) in the wild. SA-FARI features nearly one million high-quality segmentation masks across 99 species from four continents. By introducing "masklets"—spatio-temporal segmentation sequences—this dataset provides a robust foundation for training AI models capable of generalizing across diverse wildlife populations and challenging environmental conditions.

Introduction: The Bottleneck in Wildlife Monitoring

Conservationists increasingly rely on motion-activated camera traps to monitor wildlife. However, the resulting video data far exceeds the capacity of human experts to process. While computer vision has advanced in object detection, Multi-Animal Tracking (MAT)—the ability to localize and follow individual animals over time—remains a significant bottleneck.

Existing MAT datasets are often limited in scale, restricted to a few species, or lack high-quality, manually verified segmentation masks. Without diverse, large-scale data, models struggle to generalize to "in-the-wild" scenarios involving camouflage, nighttime conditions, and complex social interactions. SA-FARI addresses these gaps by providing a massive, diverse, and high-fidelity dataset.

Overview of the SA-FARI data collection and annotation pipeline, highlighting the transition from raw footage to expert-verified masklets.

Methods: A Human-in-the-Loop Pipeline

The authors developed SA-FARI using a sophisticated "human-in-the-loop" annotation pipeline powered by the SAM 3 (Segment Anything Model 3) data engine. The process involved:

  1. Automatic Pseudo-annotation: Using SAM 3 to generate initial masks for video-species pairs.
  2. Deduplication: Removing redundant annotations based on Intersection over Union (IoU) scores.
  3. Human Correction: Expert annotators used SAM 2 in an interactive loop to refine masks, add missing ones, and ensure "exhaustivity"—ensuring every visible animal of a target species is labeled.
  4. Benchmarking: Evaluating state-of-the-art vision-language models (VLMs) like GLEE, LLMDet, and SAM 3 using both species-specific and generic prompts.

The SA-FARI Dataset

SA-FARI represents a significant leap over previous benchmarks in terms of scale and diversity:

  • Scale: 11,609 videos (~46 hours), 16,224 unique identity "masklets," and 942,702 individual bounding boxes/masks.
  • Diversity: 99 species categories across 741 independent sampling locations on four continents (Central Africa, South America, Mesoamerica, Southern Europe).
  • Comparison: It offers five times the total annotated duration and twice the species diversity of any existing MAT dataset.
Visual examples of high-quality segmentation masks across diverse species and environments in the SA-FARI dataset, including (a) white-nosed coati, (b) african elephant, and (d) squirrel monkey.

The Power of Masklets

Moving beyond simple bounding boxes to "masklets" (sequences of segmentation masks) allows models to capture fine-grained details like coat patterns, body shape, and gait. These details are essential for individual re-identification and complex behavior analysis. Furthermore, by including data from 741 locations, the dataset helps prevent "shortcut learning," where a model identifies an animal based on the background rather than the animal itself.

Key Results and Insights

The evaluation of foundation models on SA-FARI revealed that even state-of-the-art models like SAM 3 perform poorly on wildlife tasks out-of-the-box. However, fine-tuning on domain-specific data yields massive performance gains:

  • Performance Jumps: Fine-tuning SAM 3 on SA-FARI led to a 32.9-point increase in the cgF1 metric and a 19.6-point gain in pHOTA (Phrase-based Higher Order Tracking Accuracy).
  • SOTA Comparison: The fine-tuned SAM 3 model (46.9 cgF1) significantly outperformed other open-vocabulary trackers like GLEE and LLMDet.
  • Tracking Accuracy: In species-agnostic evaluations, the SA-FARI-trained model achieved an IDF1 of 71.1, nearly doubling the performance of standard methods like MegaDetector combined with ByteTrack (38.6).

Despite these gains, models still struggle with "Small masks" (52.2 pHOTA) compared to "Large masks" (81.4 pHOTA), highlighting a clear area for technical improvement.

Limitations and Future Outlook

While SA-FARI is a major advancement, it faces a "long-tail" distribution where a few species dominate the data. Future work could address this imbalance and explore additional modalities. For instance, the dataset includes audio that was not utilized in this study; integrating vocalizations could enhance detection and classification. Future iterations might also include annotations for animal body pose, depth estimation, and natural language descriptions of behavior to create even more versatile conservation tools.

Summary updated

BibTeX
@inproceedings{wasmuht2026sa,
  author = {Dante Francisco Wasmuht and Otto Brookes and Maximillian Schall and Pablo Palencia and Chris Beirne and Tilo Burghardt and Majid Mirmehdi and Hjalmar S. Kühl and Mimi Arandjelovic and Sam Pottie and Peter Bermant and Brandon Asheim and Yi Jin Toh and Adam Elzinga and Jason Holmberg and Andrew Whitworth and Eleanor Flatt and Laura Gustafson and Chaitanya Ryali and Yuan-Ting Hu and Baishan Guo and Andrew Westbury and Kate Saenko and Didac Suris},
  title = {{The SA-FARI Dataset: Segment Anything in Footage of Animals for Recognition and Identification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=XmpjByrjDN},
}
Figure