Animal Kingdom: A Large and Diverse Dataset for Animal Behavior Understanding

Xun Long Ng, Kian Eng Ong, Qichen Zheng, Yun Ni, Si Yong Yeo, Jun Liu · DOI

Abstract

Animal behavior analysis in computer vision has historically been limited by small, species-specific datasets collected in controlled environments. This paper introduces Animal Kingdom, a comprehensive dataset featuring 50 hours of video across 850 species and 140 action classes. To address the challenge of generalizing across diverse taxa, the authors propose the Collaborative Action Recognition (CARe) model. CARe utilizes meta-learning and feature decomposition to recognize behaviors in species unseen during training. Experimental results demonstrate that while Animal Kingdom provides a robust benchmark for video grounding, action recognition, and pose estimation, the "generalization gap" remains a significant hurdle for the field.

1. Introduction

While computer vision has achieved remarkable success in human action recognition through datasets like Kinetics and AVA, animal behavior analysis has lagged behind. Existing resources are often restricted to specific species (e.g., lab mice or livestock) or controlled laboratory settings. In natural ecosystems, animals exhibit complex behaviors while camouflaged against diverse backgrounds and varying lighting conditions.

Furthermore, the "long-tail" distribution of behaviors—where common actions like eating are overrepresented compared to rare actions like molting—poses a significant challenge for model generalization. A model trained on a specific mammal may fail to recognize similar mechanics in a reptile or fish. To bridge this gap, the authors present Animal Kingdom, a dataset designed to facilitate the development of generalist animal AI.

2. The Animal Kingdom Dataset

The primary contribution of this work is the Animal Kingdom dataset, which significantly expands the taxonomic variety available for computer vision research. The dataset spans 850 species across six major classes: Mammals, Birds, Reptiles, Amphibians, Fish, and Insects. It is organized around three core tasks:

  • Task 1: Video Grounding: This task includes 50 hours of video accompanied by 18,744 annotated sentences, requiring models to localize specific behaviors within long, continuous video streams.
  • Task 2: Action Recognition: This component features 30,100 video sequences covering 140 fine-grained action classes, such as "grooming," "attending," and "molting."
  • Task 3: Pose Estimation: The dataset provides 33,000 annotated frames with a standardized 23-keypoint skeleton. This skeleton is adapted to accommodate diverse anatomies, including wings and fins.

Compared to existing benchmarks like AP-10K, which focuses exclusively on mammals, Animal Kingdom offers superior environmental and species diversity, capturing animals in low-light, night-vision, and heavily camouflaged scenarios.

3. Collaborative Action Recognition (CARe)

To tackle the challenge of cross-species generalization, the authors propose the Collaborative Action Recognition (CARe) architecture. The model is built on the hypothesis that while specific actions may look different across species, they often share underlying temporal and structural patterns.

3.1 Feature Decomposition

CARe avoids learning a single monolithic feature. Instead, it splits features into a General Feature Elaborator, which captures patterns shared across all animals, and multiple Specific Feature Elaborators, each dedicated to a known animal class (e.g., reptiles or mammals).

3.2 Relevance Evaluator

When the model encounters a species not seen during training, a Relevance Evaluator (R) sub-network determines the degree of similarity between the new species and known classes. It generates an "approximated specific feature" by spatially weighting the outputs of the known elaborators. This allows the model to focus on specific body parts that may resemble known species, such as a lizard's limb movement mimicking that of a mammal.

3.3 Meta-Learning for Domain Generalization

The model is trained using Meta-Learning for Domain Generalization (MLDG). This approach simulates "unseen" scenarios during the training phase, forcing the architecture to learn how to adapt its feature extraction to novel species effectively.

4. Experimental Results

4.1 Action Recognition on Unseen Animals

The CARe model achieved a state-of-the-art 39.7% accuracy on species not included in the training set. This performance outperformed established domain generalization methods, including Episodic-DG (34.0%) and Mixup (36.2%).

4.2 Pose Estimation and the Generalization Gap

Evaluation of pose estimation revealed a significant "generalization gap." While models performed reasonably well on known species (66% PCK), performance plummeted to 39.3% when tested on entirely new animal sub-classes. This highlights the difficulty of transferring anatomical knowledge across diverse body plans.

4.3 Addressing the Long-Tail

By applying specialized loss functions, such as Focal Loss or Equalization Loss (EQL), the authors demonstrated that models could improve their recognition of rare behaviors. However, the "tail" of the distribution remains a difficult frontier for current architectures.

5. Limitations and Conclusion

Despite its breadth, Animal Kingdom has limitations. Insects were excluded from the pose estimation task because their six-legged, exoskeleton-based anatomy is too divergent from the 23-keypoint vertebrate skeleton. Additionally, the multi-label nature of wild animal behavior—where an animal may be "walking" and "sensing" simultaneously—adds a layer of complexity that single-label benchmarks do not capture.

While the 39.7% accuracy for unseen animal recognition represents a new baseline, it indicates that zero-shot animal behavior understanding remains an open research challenge. Animal Kingdom provides the necessary data to move toward truly generalist AI capable of understanding the vast diversity of life on Earth.

Summary updated

Abstract

Understanding animals' behaviors is significant for a wide range of applications. However, existing animal behavior datasets have limitations in multiple aspects, including limited numbers of animal classes, data samples and provided tasks, and also limited variations in environmental conditions and viewpoints. To address these limitations, we create a large and diverse dataset, Animal Kingdom, that provides multiple annotated tasks to enable a more thorough understanding of natural animal behaviors. The wild animal footages used in our dataset record different times of the day in extensive range of environments containing variations in backgrounds, viewpoints, illumination and weather conditions. More specifically, our dataset contains 50 hours of annotated videos to localize relevant animal behavior segments in long videos for the video grounding task, 30K video sequences for the fine-grained multi-label action recognition task, and 33K frames for the pose estimation task, which correspond to a diverse range of animals with 850 species across 6 major animal classes. Such a challenging and comprehensive dataset shall be able to facilitate the community to develop, adapt, and evaluate various types of advanced methods for animal behavior analysis. Moreover, we propose a Collaborative Action Recognition (CARe) model that learns general and specific features for action recognition with unseen new animals. This method achieves promising performance in our experiments. Our dataset can be found at https://sutdcv.github.io/Animal-Kingdom.
BibTeX
@misc{ng2022animal,
  author = {Xun Long Ng and Kian Eng Ong and Qichen Zheng and Yun Ni and Si Yong Yeo and Jun Liu},
  title = {{Animal Kingdom: A Large and Diverse Dataset for Animal Behavior Understanding}},
  year = {2022},
  eprint = {2204.08129},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.08129},
}
Figure