Towards automatic identification of elephants in the wild

Matthias Körschens, Björn Barz, Joachim Denzler

TL;DR

This paper introduces a system for automatically identifying individual elephants in the wild, a crucial but time-consuming task for biodiversity research. By combining object detection for elephant heads, pre-trained CNN features, and SVM classification, they achieve promising accuracy even with limited training data per individual.

What Problem Does This Paper Address?

Biodiversity monitoring often requires identifying specific individuals within a larger population. This is particularly challenging for species like elephants, where individuals can look very similar and are only observable for short periods. Manual identification is laborious and can hinder data collection. Existing methods often require extensive annotated training data, which is scarce in wildlife scenarios. This paper aims to bridge this gap by developing an automated system to assist researchers in quickly identifying elephants from images.

Methods

The proposed system employs a multi-stage pipeline:

  1. Object Localization: A YOLO network, pre-trained on a separate elephant dataset, is used to automatically detect elephant heads. The head is chosen as the focus because it contains more distinctive features for identification than the entire body.
  2. Feature Extraction: A modified ResNet50 network, pre-trained on ImageNet, is used for feature extraction. Crucially, features are extracted from earlier layers (specifically, the 14th residual block, referred to as activation_43) rather than the final classification layer. This is motivated by findings that earlier layers generalize better to new tasks.
  3. Pooling and Dimensionality Reduction: To improve translation invariance and manage potentially high-dimensional features, a max-pooling layer is applied. Principal Component Analysis (PCA) is then used to reduce the feature dimensionality.
  4. Classification: A Support Vector Machine (SVM) is trained to classify the extracted features into individual elephants.
  5. Data Augmentation: To account for the symmetry of elephant features (like tusks and ears), training data is augmented by horizontally flipping images.
  6. Multi-Image Aggregation: To handle occlusion and varying viewpoints, the system allows users to input multiple images of the same elephant. Confidence scores from the SVM are then aggregated across these images to produce a more robust identification.

Datasets

  • Training/Testing Dataset: A dataset of 2078 images featuring 276 individual elephants, provided by biologists from Cornell University's Elephant Listening Project. This dataset is characterized by a small and imbalanced number of images per class (ranging from 1 to 22) and images collected over a long period (17 years).
  • YOLO Pre-training Dataset: A separate dataset of 1285 training and 227 testing images of elephants from Flickr, used solely for pre-training the YOLO object detection model. This dataset is disjoint from the primary identification dataset.

Key Insights and Ideas

  • Focusing on the Head: Automatically detecting and using only the elephant's head for identification proved more effective than using the entire body, as the head contains richer discriminative features.
  • Leveraging Early CNN Layers: Extracting features from earlier layers of a pre-trained CNN (like ResNet50) rather than the final ones significantly improved performance for this specific task, suggesting better generalization capabilities.
  • The Power of Multiple Views: Aggregating information from multiple images of the same elephant dramatically boosts identification accuracy, highlighting the system's robustness to real-world challenges like occlusion and pose variations.
  • Data Imbalance is a Major Hurdle: The significant imbalance in the number of images per elephant class is a primary driver of misclassifications, underscoring the need for robust methods that can learn from limited examples.

Key Results

  • Single Image Identification:
    • Top-1 accuracy: 56%
    • Top-10 accuracy: 80%
  • Multi-Image Identification (using two images):
    • Top-1 accuracy: 74%
    • Top-10 accuracy: 88%
  • Object Localization (YOLO): Achieved a precision of 92.73% and a recall of 92.16% with a mean average precision of 90.78%, enabling reliable automatic head detection.

Limitations and Future Work

  • Dataset Imbalance: The paper acknowledges that the uneven distribution of images per class is a significant challenge, leading to difficulties in identifying individuals with very few training examples.
  • Image Quality and Occlusion: Issues like excessive zooming, muddy elephants, and changes in appearance over time (e.g., tusk loss) can hinder identification.
  • Bounding Box Sensitivity: The authors note that results can sometimes be dependent on the accuracy of the bounding box.
  • Future Work Suggestions:
    • Ensemble Methods: Using an ensemble of random crops from the bounding box as input for classification could improve robustness.
  • Majority Voting/Averaging: Applying majority votes or averaging confidence scores from multiple crops could lead to more accurate classifications.

Summary updated

BibTeX
@misc{korschens2018towards,
  author = {Matthias Körschens and Björn Barz and Joachim Denzler},
  title = {{Towards automatic identification of elephants in the wild}},
  year = {2018},
  eprint = {1812.04418},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.04418},
}
Figure