Similarity Learning Networks for Animal Individual Re-Identification - Beyond the Capabilities of a Human Observer

Stefan Schneider, Graham W. Taylor, Stefan C. Kremer

TL;DR

This paper explores the use of "similarity learning networks" (Siamese and Triplet Loss) for animal re-identification, a crucial task for ecological studies that traditional deep learning struggles with due to limited data per individual. The authors demonstrate that these networks can achieve impressive accuracy across diverse species, even surpassing human capabilities in some cases, paving the way for automated ecological monitoring.

What Problem Does This Paper Address?

Traditional deep learning excels when vast amounts of labeled data are available. However, in fields like animal re-identification (re-ID) for ecological research, obtaining numerous images of every individual animal is often infeasible. This "one-shot learning" challenge, where a model must recognize an individual after seeing only one example, is where standard deep learning falters. Animal re-ID is vital for estimating population sizes, tracking biodiversity, and understanding animal behavior. Current methods often rely on laborious manual identification or feature engineering tailored to specific species, which is time-consuming, prone to human bias, and lacks generality. This paper aims to bridge this gap by investigating whether similarity learning networks, which learn to compare images rather than classify them directly, can effectively perform animal re-ID across multiple species with minimal data per individual.

Methods

The core of this research lies in comparing two types of similarity learning networks: Siamese and Triplet Loss networks.

  • Siamese Networks: These networks use two identical subnetworks that process two input images. The output embeddings from these subnetworks are then compared using a contrastive loss function, which aims to pull embeddings of similar images closer together and push dissimilar images apart.
  • Triplet Loss Networks: This approach takes three images: an "anchor" image, a "positive" image (of the same individual as the anchor), and a "negative" image (of a different individual). The Triplet Loss function maximizes the distance between the anchor and negative embeddings while minimizing the distance between the anchor and positive embeddings, with a margin to ensure clear separation.

The authors evaluated these methodologies using five popular convolutional neural network (CNN) architectures: AlexNet, VGG-19, DenseNet201, MobileNetV2, and InceptionV3. They employed pre-trained weights from ImageNet and used data augmentation techniques during training. Performance was measured using mean average precision (mAP) at the top-1 (mAP@1) and top-5 (mAP@5) predictions.

Datasets

The study utilized five diverse datasets, each presenting unique challenges:

  • FaceScrub: A large dataset of human faces (106,863 images, 530 individuals) for benchmarking against existing human re-ID methods.
  • ChimpFace: A dataset of chimpanzee faces (5,599 images, 90 individuals), combining previous datasets to allow comparison with older methods.
  • HappyWhale: A dataset of humpback whale flukes (9,850 images, 4,251 individuals), notable for its sparse data per individual and real-world application context.
  • FruitFly: A dataset of fruit flies (244,760 images, 20 individuals), representing an animal from a different phylum (Arthropoda) and testing re-ID beyond vertebrates.
  • Amur Tiger Re-identification in the Wild (ATRW): A dataset of Siberian tigers (1,870 images, 92 individuals) featuring unconstrained poses and lighting conditions.

For most datasets, a 0.7/0.1/0.2 train/validation/test split was used. For the FruitFly dataset, a 0.4/0.1/0.5 split was employed to ensure a meaningful mAP@5 metric. All experiments involved a five-fold cross-validation.

Key Insights and Ideas

  • Triplet Loss Dominance: The study consistently found that Triplet Loss networks outperformed Siamese networks across all tested species and datasets. This suggests that the explicit triplet formulation is more effective for learning discriminative embeddings in this context.
  • Generalization Across Species: The networks, without any species-specific fine-tuning, demonstrated a remarkable ability to generalize re-ID capabilities across vastly different animal species, from primates to insects. This highlights the power of deep similarity learning for broad ecological applications.
  • Beyond Human Capabilities: For certain species, particularly fruit flies, the models achieved performance levels that surpassed what would be expected from human observers, underscoring the potential of AI to augment or even exceed human perceptual abilities in specialized tasks.
  • Architecture Matters, but Triplet Loss is Key: While different CNN architectures showed varying performance, the choice of Triplet Loss over Siamese was a more significant factor in achieving high accuracy. ResNet152 emerged as a strong performer for mAP@5 across species, indicating its robustness for generalization.

Key Results

  • Triplet Loss Superiority: Triplet Loss consistently achieved higher mAP@1 and mAP@5 scores compared to Siamese networks for all species.
  • Top Performing Models:
    • For humans, Triplet Loss DenseNet201 achieved the highest mAP@1 (0.914), while ResNet152 led in mAP@5 (0.952).
  • For chimpanzees, ResNet152 with Triplet Loss achieved 0.811 mAP@1 and 0.961 mAP@5.
  • For humpback whales, InceptionV3 (Triplet Loss) achieved 0.776 mAP@1, and ResNet152 (Triplet Loss) achieved 0.860 mAP@5.
  • For fruit flies, ResNet152 (Triplet Loss) achieved 0.743 mAP@1 and an impressive 0.989 mAP@5.
  • For Siberian tigers, DenseNet201 (Triplet Loss) achieved 0.863 mAP@1, and ResNet152 (Triplet Loss) achieved 0.996 mAP@5.
  • Human vs. Model Performance: The study demonstrated that similarity learning networks can achieve performance beyond human observers, particularly noted for the fruit fly dataset.

Limitations and Future Work

  • Data Availability: The authors acknowledge that data scarcity is a major limitation in animal re-ID research. They encourage researchers to make their labeled datasets publicly available.
  • Environmental Factors: Real-world conditions like varying weather, lighting, and animal poses pose challenges. Future work could explore more robust data augmentation and potentially a "human-in-the-loop" system for continuous model improvement.
  • Class Imbalance and Few-Shot Learning: The paper suggests investigating how performance changes with varying numbers of images per individual and the impact of class imbalance.
  • Species-Specific Features: While the current models generalize well, future research could explore how to leverage species-specific distinguishing features (e.g., stripes on tigers) to further enhance performance.
  • Beyond Verification: The study focused on verification accuracy. Future work could explore closed-set and open-set identification more extensively.

Summary updated

BibTeX
@inproceedings{schneider2020similarity,
  author = {Stefan Schneider and Graham W. Taylor and Stefan C. Kremer},
  title = {{Similarity Learning Networks for Animal Individual Re-Identification - Beyond the Capabilities of a Human Observer}},
  booktitle = {Workshops @ WACV},
  year = {2020},
  url = {https://openreview.net/forum?id=P08K_LIin6},
}
Figure