MonkeyTrail: A scalable video-based method for tracking macaque movement trajectory in daily living cages
- PMID: 35301830
- PMCID: PMC9113979
- DOI: 10.24272/j.issn.2095-8137.2021.353
MonkeyTrail: A scalable video-based method for tracking macaque movement trajectory in daily living cages
Abstract
Behavioral analysis of macaques provides important experimental evidence in the field of neuroscience. In recent years, video-based automatic animal behavior analysis has received widespread attention. However, methods capable of extracting and analyzing daily movement trajectories of macaques in their daily living cages remain underdeveloped, with previous approaches usually requiring specific environments to reduce interference from occlusion or environmental change. Here, we introduce a novel method, called MonkeyTrail, which satisfies the above requirements by frequently generating virtual empty backgrounds and using background subtraction to accurately obtain the foreground of moving animals. The empty background is generated by combining the frame difference method (FDM) and deep learning-based model (YOLOv5). The entire setup can be operated with low-cost hardware and can be applied to the daily living environments of individually caged macaques. To test MonkeyTrail performance, we labeled a dataset containing >8 000 video frames with the bounding boxes of macaques under various conditions as ground-truth. Results showed that the tracking accuracy and stability of MonkeyTrail exceeded that of two deep learning-based methods (YOLOv5 and Single-Shot MultiBox Detector), traditional frame difference method, and naïve background subtraction method. Using MonkeyTrail to analyze long-term surveillance video recordings, we successfully assessed changes in animal behavior in terms of movement amount and spatial preference. Thus, these findings demonstrate that MonkeyTrail enables low-cost, large-scale daily behavioral analysis of macaques.
猕猴的行为分析能为神经科学研究提供重要的实验证据。近年来,自动化的动物行为视频分析受到了广泛的关注。然而,这些方法大多需要特定的实验环境以减少物体遮挡或环境变化带来的干扰,目前还缺乏能够规模化用于日常饲养条件下猕猴运动轨迹跟踪的有效手段。在该研究中,我们提出了一种新的方法(MonkeyTrail)用于实现这一目的。其关键原理是通过频繁生成的虚拟空背景,结合背景减除法准确获得包含运动中动物的前景图像。空背景生成利用了帧差法(FDM)和基于深度学习的视觉目标检测模型(YOLOv5)。整个装置由低成本的硬件构成,并可以在单笼饲养猕猴的日常环境中有效工作。为了测试这一方法的性能,我们标定了>8000帧的视频图像作为验证数据集,其中包含各种条件下的猕猴边界框数据。测试结果表明,在相同条件下,MonkeyTrail的跟踪精度和稳定性均超过了传统帧差法、背景减除法和两种基于深度学习的方法(YOLOv5和SSD)。通过对长期监控视频的分析,MonkeyTrail成功地检测到了猕猴在运动量和空间偏好方面的变化。这些结果表明,该方法可以用于实现低成本、较大规模的猕猴日常行为分析。.
Keywords: Background subtraction; Movement trajectory tracking; Occlusion; Video-based behavioral analyses; Virtual empty background.
Figures










Similar articles
-
The MacqD deep-learning-based model for automatic detection of socially housed laboratory macaques.Sci Rep. 2025 Apr 7;15(1):11883. doi: 10.1038/s41598-025-95180-x. Sci Rep. 2025. PMID: 40195447 Free PMC article.
-
Quantification of movement in normal and parkinsonian macaques using video analysis.J Neurosci Methods. 2019 Jul 1;322:96-102. doi: 10.1016/j.jneumeth.2019.05.001. Epub 2019 May 2. J Neurosci Methods. 2019. PMID: 31055027 Free PMC article.
-
DeepBhvTracking: A Novel Behavior Tracking Method for Laboratory Animals Based on Deep Learning.Front Behav Neurosci. 2021 Oct 28;15:750894. doi: 10.3389/fnbeh.2021.750894. eCollection 2021. Front Behav Neurosci. 2021. PMID: 34776893 Free PMC article.
-
Towards image-based animal tracking in natural environments using a freely moving camera.J Neurosci Methods. 2020 Jan 15;330:108455. doi: 10.1016/j.jneumeth.2019.108455. Epub 2019 Nov 16. J Neurosci Methods. 2020. PMID: 31739118 Review.
-
Open-source tools for behavioral video analysis: Setup, methods, and best practices.Elife. 2023 Mar 23;12:e79305. doi: 10.7554/eLife.79305. Elife. 2023. PMID: 36951911 Free PMC article. Review.
Cited by
-
BARN: Behavior-Aware Relation Network for multi-label behavior detection in socially housed macaques.Zool Res. 2023 Nov 18;44(6):1026-1038. doi: 10.24272/j.issn.2095-8137.2022.485. Zool Res. 2023. PMID: 37804114 Free PMC article.
-
Deep learning-based activity recognition and fine motor identification using 2D skeletons of cynomolgus monkeys.Zool Res. 2023 Sep 18;44(5):967-980. doi: 10.24272/j.issn.2095-8137.2022.449. Zool Res. 2023. PMID: 37721106 Free PMC article.
-
Left-right asymmetry and attractor-like dynamics of dog's tail wagging during dog-human interactions.iScience. 2022 Jul 9;25(8):104747. doi: 10.1016/j.isci.2022.104747. eCollection 2022 Aug 19. iScience. 2022. PMID: 35942104 Free PMC article.
-
From beasts to bytes: Revolutionizing zoological research with artificial intelligence.Zool Res. 2023 Nov 18;44(6):1115-1131. doi: 10.24272/j.issn.2095-8137.2023.263. Zool Res. 2023. PMID: 37933101 Free PMC article. Review.
-
The MacqD deep-learning-based model for automatic detection of socially housed laboratory macaques.Sci Rep. 2025 Apr 7;15(1):11883. doi: 10.1038/s41598-025-95180-x. Sci Rep. 2025. PMID: 40195447 Free PMC article.
References
-
-
Bateson M, Martin PR. 2021. Measuring Behaviour: an Introductory Guide. 4th ed. Cambridge: Cambridge University Press.
-
-
- Beckman D, Morrison JH Towards developing a rhesus monkey model of early Alzheimer's disease focusing on women's health. American Journal of Primatology. 2021;83(11):e23289. - PubMed
-
- Bezard E, Dovero S, Prunier C, Ravenscroft P, Chalon S, Guilloteau D, et al Relationship between the appearance of symptoms and the level of nigrostriatal degeneration in a progressive 1-methyl-4-phenyl-1, 2, 3, 6-tetrahydropyridine-lesioned macaque model of Parkinson's disease. Journal of Neuroscience. 2001;21(17):6853–6861. doi: 10.1523/JNEUROSCI.21-17-06853.2001. - DOI - PMC - PubMed
MeSH terms
LinkOut - more resources
Full Text Sources