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:
- 2D Image Classifiers: Using standard architectures (ResNet18, ViT-S, ViT-B) to classify individual frames or bounding-box crops.
- 2.5D Sequence Models: Taking frozen spatial features from the 2D models and passing them through lightweight temporal aggregators like LSTMs or Transformers.
- 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.
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.
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.
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