bioRxiv Science⌕ Search

bioRxiv · 10.1101/2020.04.19.049452

Simple Behavioral Analysis (SimBA): an open source toolkit for computer classification of complex social behaviors in experimental animals

Abstract

Aberrant social behavior is a core feature of many neuropsychiatric disorders, yet the study of complex social behavior in freely moving rodents is relatively infrequently incorporated into preclinical models. This likely contributes to limited translational impact. A major bottleneck for the adoption of socially complex, ethology-rich, preclinical procedures are the technical limitations for consistently annotating detailed behavioral repertoires of rodent social behavior. Manual annotation is subjective, prone to observer drift, and extremely time-intensive. Commercial approaches are expensive and inferior to manual annotation. Open-source alternatives often require significant investments in specialized hardware and significant computational and programming knowledge. By combining recent computational advances in convolutional neural networks and pose-estimation with further machine learning analysis, complex rodent social behavior is primed for inclusion under the umbrella of computational neuroethology. Here we present an open-source package with graphical interface and workflow (Simple Behavioral Analysis, SimBA) that uses pose-estimation to create supervised machine learning predictive classifiers of rodent social behavior, with millisecond resolution and accuracies that can out-perform human observers. SimBA does not require specialized video acquisition hardware nor extensive computational background. Standard descriptive statistical analysis, along with graphical region of interest annotation, are provided in addition to predictive classifier generation. To increase ease-of-use for behavioural neuroscientists, we designed SimBA with accessible menus for pre-processing videos, annotating behavioural training datasets, selecting advanced machine learning options, robust classifier validation functions and flexible visualizations tools. This allows for predictive classifier transparency, explainability and tunability prior to, and during, experimental use. We demonstrate that this approach is flexible and robust in both mice and rats by classifying social behaviors that are commonly central to the study of brain function and social motivation. Finally, we provide a library of poseestimation weights and behavioral predictive classifiers for resident-intruder behaviors in mice and rats. All code and data, together with detailed tutorials and documentation, are available on the SimBA GitHub repository. Graphical abstractSimBA graphical interface (GUI) for creating supervised machine learning classifiers of rodent social behavior. (a) Pre-process videos. SimBA supports common video pre-processing functions (e.g., cropping, clipping, sampling, format conversion, etc.) that can be performed either on single videos, or as a batch. (b) Managing poseestimation data and creating classification projects. Pose-estimation tracking projects in DeepLabCut and DeepPoseKit can be either imported or created and managed within the SimBA graphical user interface, and the tracking results are imported into SimBA classification projects. SimBA also supports userdrawn region-of-interests (ROIs) for descriptive statistics of animal movements, or as features in machine learning classification projects. (c) Create classifiers, perform classifications, and analyze classification data. SimBA has graphical tools for correcting poseestimation tracking inaccuracies when multiple subjects are within a single frame, annotating behavioral events from videos, and optimizing machine learning hyperparameters and discrimination thresholds. A number of validation checkpoints and logs are included for increased classifier explainability and tunability prior to, and during, experimental use. Both detailed and summary data are provided at the end of classifier analysis. SimBA accepts behavioral annotations generated elsewhere (such as through JWatcher) that can be imported into SimBA classification projects. (d) Visualize classification results. SimBA has several options for visualizing machine learning classifications, animal movements and ROI data, and analyzing the durations and frequencies of classified behaviors. See the SimBA GitHub repository for a comprehensive documentation and user tutorials. O_FIG_DISPLAY_L [Figure 1] M_FIG_DISPLAY C_FIG_DISPLAY

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Nilsson, S. R. O., Goodwin, N. L., Choong, J. J., Hwang, S., Wright, H. R., Norville, Z., Tong, X., Lin, D., Bentzley, B. S., Eshel, N., McLaughlin, R. J., Golden, S. A.. 2020-04-20. Simple Behavioral Analysis (SimBA): an open source toolkit for computer classification of complex social behaviors in experimental animals. https://doi.org/10.1101/2020.04.19.049452

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Can a Tiny Brain Plan? Reconstructing a Predatory Detour inthe Jumping Spider Portia labiata

Planning is the process of evaluating alternative futures to predict outcomes and guide action. Evidence for this process exists in several vertebrates, but remains contested in in-vertebrates. Jumping spiders in the genus Portia show planning-like behavior in lab studies, but how this translates to the wild is unclear, where hunts of potentially lethal spider prey occur over durations of more than an hour in dense foliage. We present the first fully video-recorded wild hunt of any Portia species, with a 3D reconstruction of its forty-two minute long route to attack an orb-weaving spider. The reconstruction suggests P. labiata may have planned its approach, avoiding a route half as long but potentially more conspicuous to the prey's sensory systems.

animal behavior and cognition↗

Assessing Enclosure Modifications to Enhance Accessibility for Zoo-Housed Meerkats (Suricata suricatta)

Scientific advancements have contributed to increased longevity of animals in zoos and aquariums, creating a growing need for environments that remain accessible to geriatric animals and animals with disabilities. However, few empirical studies have evaluated whether accessibility-focused enclosure modifications impact species-appropriate behavior. We evaluated the effects of accessibility modifications on a group of four adult zoo-housed meerkats (Suricata suricatta), including one individual with a forelimb amputation and one geriatric individual. Low-level logs and steps were added to the enclosure to provide intermediate heights and facilitate access to elevated areas. Following the introduction of these enclosure modifications, sentry behavior increased, with all individuals engaging in this behavior compared with only one individual during baseline. The meerkats also increased their overall use of low-elevated areas following modification, although individual responses varied. Posture differed between study phases, with meerkats more frequently adopting tri/quadrupedal postures following modification. Together, these findings suggest that relatively simple accessibility-focused modifications can expand opportunities for geriatric animals and animals with disabilities to engage in species-appropriate behavior. More broadly, this case study highlights the importance of empirically evaluating accessibility interventions and incorporating universal design principles into animal spaces to accommodate individuals with diverse physical abilities and promote positive animal welfare.

animal behavior and cognition↗

Hide and seek in a rainforest canopy : when a fruit-eating carnivore (almost) met its top predator carnivore

Prey-predator interactions in the wild are spectacular. Common reported cases come from ground-dwelling animals, in open areas and by daylight. Here, we report, for the first time, a sequence with the nocturnal arboreal kinkajou (Potos flavus), being followed ca. 20 minutes apart by one of its predators, the puma (Puma concolor), 33 m aboveground in a rainforest in French Guiana.

animal behavior and cognition↗