Unique Identification of Macaques for Population Monitoring and Control

Ankita Shukla, Gullal Singh Cheema, Saket Anand, Qamar Qureshi, Yadvendradev JhalaarXiv 2018 · arXiv

TL;DR

This paper introduces MFID (Macaque Face IDentification), a non-invasive, deep learning-based system designed to uniquely identify Rhesus macaques in the wild. By employing a novel objective function that combines standard cross-entropy with pairwise KL-divergence loss, the authors achieve state-of-the-art recognition performance even on small, imbalanced datasets, providing a vital tool for humane population control and sterilization monitoring.

What Problem Does This Paper Address?

In many urban areas, particularly in India, Rhesus macaque populations have exploded due to a lack of natural predators and abundant food. This leads to significant human-wildlife conflict, including crop raiding, property destruction, and health hazards from monkey bites.

Sterilization is the preferred humane method for population control. However, the process is expensive and logistically challenging. A major inefficiency is the accidental recapture of already-sterilized individuals. Current identification methods—like ear tags, neck bands, or freeze branding—are invasive, can fall off, or require close-up physical inspection. The authors address the need for a non-invasive, image-based identification tool that can work in uncontrolled outdoor environments to help field biologists and "monkey catchers" track individuals and avoid redundant captures.

Methods

The MFID system consists of two primary stages: detection and individual recognition.

  1. Detection: The authors use a standard Faster R-CNN architecture, initialized with ImageNet weights and fine-tuned specifically to detect monkey faces in complex outdoor scenes.
  2. Individual Recognition: Unlike many human face recognition systems that require precise landmark detection (eyes, nose) for alignment, MFID is alignment-free. This design choice makes the system more robust to the extreme pose variations and lighting conditions typical of field photography.
  3. Novel Loss Function: To combat the challenge of small training datasets, the authors augment standard cross-entropy loss ($L_{ce}$) with a pairwise KL-divergence loss.
  4. For similar pairs (same identity), the loss minimizes the KL-divergence between their softmax probability distributions.
  5. For dissimilar pairs, a large-margin style loss is used to ensure their distributions remain separated by at least a margin $m$.
  6. This approach forces the network to learn more discriminative features by skewing probability distributions to be highly similar for the same individual and distinct for others.

The authors evaluated several base architectures, including ResNet-18, ResNet-50, and DenseNet-121.

Datasets

The study utilizes three primary primate datasets, all characterized by significant class imbalance (varying numbers of images per individual).

  • Rhesus Macaques Dataset: A combination of a new dataset collected by the authors in Uttarakhand, India (using DSLRs in urban settings) and a publicly available dataset by Witham (2017). It contains 7,679 images of 93 individuals.
  • Chimpanzee Datasets (C-Zoo and C-Tai): Used to test the model's generalization. C-Zoo contains high-quality images from a zoo, while C-Tai features challenging images from a national park. Combined, they offer 7,166 images of 90 individuals.
Figure 1: Histogram of the number of face images per identity in (a) C-Zoo, (b) C-Tai, (c) C-Zoo+C-Tai and (d) Rhesus Macaques datasets. The total number of identities in CZoo, C-Tai, CZoo+CTai and Rhesus Macaque is 24, 66, 90 and 93 respectively.

Key Insights and Ideas

  • Alignment-Free Robustness: The authors argue that in the wild, eye and nose detection often fail due to occlusions or extreme angles. By skipping alignment and instead training on raw face crops, the system becomes more practical for real-world deployment.
  • KL-Divergence as a Regularizer: The "aha moment" here is using KL-divergence on softmax outputs as a pairwise constraint. This effectively uses the training data more efficiently than standard classification, helping the model generalize better from very few samples per individual.
  • Cross-Species Generalization: The MFID loss function isn't just for macaques; it achieved state-of-the-art results on chimpanzee datasets, suggesting the learned feature representations are robust across different non-human primate species.

Key Results

The MFID system, particularly when using the DenseNet-121 backbone with the proposed loss function, showed impressive results:

  • Macaque Identification: Achieved 98.83% Rank-1 accuracy in closed-set classification and 97.5% accuracy in verification (at 1% False Acceptance Rate).
  • Chimpanzee Identification: Outperformed existing specialized models (like PrimNet), reaching 90.38% Rank-1 accuracy on the challenging combined C-Zoo and C-Tai dataset.
  • End-to-End Performance: When testing the full pipeline (detection + recognition) on raw images, the system maintained high performance, with a 97.70% Rank-1 accuracy for closed-set identification.
Example images of Rhesus Macaques from the authors' dataset, illustrating the variety of lighting and backgrounds.

Limitations and Future Work

  • Dataset Size: While the pairwise loss helps, the dataset is still relatively small compared to human face recognition benchmarks. The authors plan to continue data collection via crowdsourcing.
  • Mobile Deployment: While the authors chose DenseNet-121 for its relatively small memory footprint (28.4 MB), real-time performance on mid-range smartphones in the field remains a target for future optimization.
  • Crowdsourcing Integration: The ultimate goal is to integrate MFID into a mobile app for citizens and officials to report sightings, estimate troupe strengths, and identify sterilized monkeys in real-time. This will require further work on backend infrastructure and user interface design.

Summary updated

Abstract

Despite loss of natural habitat due to development and urbanization, certain species like the Rhesus macaque have adapted well to the urban environment. With abundant food and no predators, macaque populations have increased substantially in urban areas, leading to frequent conflicts with humans. Overpopulated areas often witness macaques raiding crops, feeding on bird and snake eggs as well as destruction of nests, thus adversely affecting other species in the ecosystem. In order to mitigate these adverse effects, sterilization has emerged as a humane and effective way of population control of macaques. As sterilization requires physical capture of individuals or groups, their unique identification is integral to such control measures. In this work, we propose the Macaque Face Identification (MFID), an image based, non-invasive tool that relies on macaque facial recognition to identify individuals, and can be used to verify if they are sterilized. Our primary contribution is a robust facial recognition and verification module designed for Rhesus macaques, but extensible to other non-human primate species. We evaluate the performance of MFID on a dataset of 93 monkeys under closed set, open set and verification evaluation protocols. Finally, we also report state of the art results when evaluating our proposed model on endangered primate species.
BibTeX
@misc{shukla2018unique,
  author = {Ankita Shukla and Gullal Singh Cheema and Saket Anand and Qamar Qureshi and Yadvendradev Jhala},
  title = {{Unique Identification of Macaques for Population Monitoring and Control}},
  year = {2018},
  eprint = {1811.00743},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.00743},
}
Figure