The MacqD deep-learning-based model for automatic detection of socially housed laboratory macaques
Despite advancements in video-based behaviour analysis and detection models for various species, existing methods are suboptimal to detect macaques in complex laboratory environments. To address this gap, we present MacqD, a modified Mask R-CNN model incorporating a SWIN transformer backbone for enhanced attention-based feature extraction. MacqD robustly detects macaques in their home-cage under challenging scenarios, including occlusions, glass reflections, and overexposure to light. To evaluate MacqD and compare its performance against pre-existing macaque detection models, we collected and analysed video frames from 20 caged rhesus macaques at Newcastle University, UK. Our results demonstrate MacqD's superiority, achieving a median F1-score of 99% for frames with a single macaque in the focal cage (surpassing the next-best model by 21%) and 90% for frames with two macaques. Generalisation tests on frames from a different set of macaques from the same animal facility yielded median F1-scores of 95% for frames with a single macaque (surpassing the next-best model by 15%) and 81% for frames with two macaques (surpassing the alternative approach by 39% ). Finally, MacqD was applied to videos of paired macaques from another facility and resulted in F1-score of 90%, reflecting its strong generalisation capacity. This study highlights MacqD's effectiveness in accurately detecting macaques across diverse settings.
Authors
- Jaume Bacardit (ORCID: https://orcid.org/0000-0002-2692-7205)
- Maxime Gaudet-Trafit (ORCID: https://orcid.org/0000-0002-7249-3962)
- J. Lawrence Paul
- Suliann Ben Hamed (ORCID: https://orcid.org/0000-0003-1510-7284)
- Colline Poirier (ORCID: https://orcid.org/0000-0001-9793-4907)
- Genevieve Jiawei Moat
Institutions
- Université Claude Bernard Lyon 1 (FR)
- Centre National de la Recherche Scientifique (FR)
- Institut des Sciences Cognitives (FR)
Publication Details
- Journal
- Scientific Reports
- Published
- 2025-04-07
- DOI
- https://doi.org/10.1038/s41598-025-95180-x
- Citations
- 1
- Primary Topic
- Primate Behavior and Ecology
- Type
- article
- Field-Weighted Citation Impact
- 2.44