Automating Visual Recognition of Leprosy in Wild Chimpanzees

Katie I. Murray, Anna C. Bowland, Marina Ramon, Elena Bersacola, Aissa Regalla, Manmohan D. Sharma, Markus Mueller, Majid Mirmehdi, Dave Hodgson, Kimberley J. Hockings, Tilo Burghardt, Otto BrookesarXiv 2026

TL;DR

Researchers have developed the first deep learning pipeline to automatically detect leprosy in wild western chimpanzees using camera-trap footage. By introducing the PanLep300 dataset, they demonstrate that simple temporal aggregation of individual image crops outperforms complex video-native architectures, achieving a best balanced accuracy of 96.4%.

What Problem Does This Paper Address?

The western chimpanzee is critically endangered, with infectious diseases like leprosy (Mycobacterium leprae) serving as a primary driver of their decline. Leprosy in chimpanzees manifests as visible cutaneous symptoms—such as thickened ear margins, nodular lesions, and limb deformities—that can persist for years.

While camera traps are the only feasible way to monitor unhabituated wild populations, they generate massive volumes of data. Manually reviewing thousands of hours of footage to spot disease symptoms creates an "annotation bottleneck" that delays conservation responses. This paper aims to automate that screening process, providing a scalable tool for wildlife health surveillance.

Methods

The authors benchmarked three distinct computer vision approaches to determine the most effective way to identify leprosy:

  1. 2D Image Classifiers: Using standard architectures (ResNet18, ViT-S, ViT-B) to classify individual frames or bounding-box crops.
  2. 2.5D Sequence Models: Taking frozen spatial features from the 2D models and passing them through lightweight temporal aggregators like LSTMs or Transformers.
  3. 3D Video-Native Models: Using end-to-end spatio-temporal architectures (I3D, X3D, SlowFast) that process raw frame sequences directly.

To handle the data, they used MegaDetectorV6 for initial animal detection and SORT for tracking. A key methodological focus was the "aggregation strategy"—how to turn many individual frame predictions into a single "sick" or "healthy" label for an entire video track.

Fig. 1: Conceptual Overview. The PanLep300 Dataset comprises 125,670 annotated bounding-box crops across 71,508 frames of wild chimpanzee camera-trap footage with track-level leprosy labels. We benchmark image classifiers, temporal aggregators, and end-to-end video models surfacing actionable findings on the value of explicit localisa- tion, the hazards of background masking, and tracklet boundary dilution.

Datasets

The study introduces PanLep300, a specialized dataset for wildlife disease recognition:

  • Scale: 125,670 annotated bounding-box crops across 953 tracks from 303 videos.
  • Diversity: Data spans five years (2021–2025) across 48 camera locations in Cantanhez National Park, Guinea-Bissau.
  • Splits: The authors used "ecology-motivated" splits. Instead of random shuffling, they ensured the test set contained disjoint individuals and disjoint camera locations. This prevents the models from "cheating" by memorizing specific backgrounds or individual chimpanzee identities rather than learning the symptoms of leprosy.
Fig. 2: Data Collection at Cantanhez National Park. (A) Research area and land cover within CNP [43], with the study community’s range at Caiquene- Cadique (CC) outlined in white. (B) Camera-trap placements (light blue points) within the community’s home range, estimated via 100% MCP analysis of 1,380 chimpanzee observations (2013–2018); some points overlap due to paired or repeated placements across years. (C) Examples of chimpanzees exhibiting clearly detectable leprosy signs. Base maps from Natural Earth; Sentinel-2 imagery from Sentinel Hub, Sinergise LTD.

Key Insights and Ideas

  • Localization is King: The researchers found that classifying individual crops (zoomed-in boxes of the chimpanzees) significantly outperformed full-frame classification. Even increasing the resolution of full frames couldn't match the accuracy gained by simply cropping the subject.
  • Static Signs vs. Dynamic Motion: Surprisingly, complex 3D video models did not consistently outperform simple 2D image models. This suggests that leprosy is a "static" disease—its diagnostic signals are found in textures and shapes (lesions, ear thickening) rather than specific behaviors or movements.
  • The "Boundary Dilution" Problem: Performance often dropped because of frames at the very beginning or end of a track, where a chimpanzee might only be partially visible as it enters or leaves the frame. These "noisy" frames dilute the strong signal found in the middle of the track.
  • Trimming and Top-α Aggregation: To fix boundary dilution, the authors found that "trimming" the ends of tracks or using a Top-α strategy (averaging only the highest-probability segments of a video) led to significant performance gains.

Key Results

The best-performing model configuration achieved a balanced accuracy of 96.4% on the full track-level evaluation.

  • Heuristic Aggregation: Simple majority voting or mean probability of 2D crops proved remarkably robust, reaching 94.1% balanced accuracy.
  • 3D Model Peak: The X3D-M architecture, when combined with the Top-25% aggregation strategy, reached the peak 96.4% accuracy, correctly identifying 15 out of 17 positive tracks with zero false alarms.
  • Background Masking: Interestingly, using the Segment Anything Model (SAM) to mask out backgrounds actually decreased performance, suggesting that models might be picking up on subtle environmental cues or that the masking was occasionally removing parts of the animal.
Grad-CAM visualizations showing where the X3D-M model focuses its attention, highlighting clear symptom areas.

Limitations and Future Work

While the results are promising, the authors note several hurdles for real-world deployment:

  • Sample Size: The test set only contained 17 positive (leprosy-advanced) tracks. While the results are statistically significant, larger-scale validation across more sites and seasons is needed.
  • Integration: The current pipeline uses ground-truth bounding boxes for evaluation. A fully autonomous system would need to integrate a disease-agnostic detector and tracker seamlessly.
  • Generalization: Future work should explore whether this pipeline can be adapted for other visually identifiable pathologies in different species, moving toward a general-purpose AI tool for wildlife health.

Summary updated

BibTeX
@misc{murray2026automating,
  author = {Katie I. Murray and Anna C. Bowland and Marina Ramon and Elena Bersacola and Aissa Regalla and Manmohan D. Sharma and Markus Mueller and Majid Mirmehdi and Dave Hodgson and Kimberley J. Hockings and Tilo Burghardt and Otto Brookes},
  title = {{Automating Visual Recognition of Leprosy in Wild Chimpanzees}},
  year = {2026},
  eprint = {2607.17395},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.17395},
}
Figure