Comprehensive ethological analysis of fear expression in rats using DeepLabCut and SimBA machine learning model

Front Behav Neurosci. 2024 Aug 1:18:1440601. doi: 10.3389/fnbeh.2024.1440601. eCollection 2024.

Abstract

Introduction: Defensive responses to threat-associated cues are commonly evaluated using conditioned freezing or suppression of operant responding. However, rats display a broad range of behaviors and shift their defensive behaviors based on immediacy of threats and context. This study aimed to systematically quantify the defensive behaviors that are triggered in response to threat-associated cues and assess whether they can accurately be identified using DeepLabCut in conjunction with SimBA.

Methods: We evaluated behavioral responses to fear using the auditory fear conditioning paradigm. Observable behaviors triggered by threat-associated cues were manually scored using Ethovision XT. Subsequently, we investigated the effects of diazepam (0, 0.3, or 1 mg/kg), administered intraperitoneally before fear memory testing, to assess its anxiolytic impact on these behaviors. We then developed a DeepLabCut + SimBA workflow for ethological analysis employing a series of machine learning models. The accuracy of behavior classifications generated by this pipeline was evaluated by comparing its output scores to the manually annotated scores.

Results: Our findings show that, besides conditioned suppression and freezing, rats exhibit heightened risk assessment behaviors, including sniffing, rearing, free-air whisking, and head scanning. We observed that diazepam dose-dependently mitigates these risk-assessment behaviors in both sexes, suggesting a good predictive validity of our readouts. With adequate amount of training data (approximately > 30,000 frames containing such behavior), DeepLabCut + SimBA workflow yields high accuracy with a reasonable transferability to classify well-represented behaviors in a different experimental condition. We also found that maintaining the same condition between training and evaluation data sets is recommended while developing DeepLabCut + SimBA workflow to achieve the highest accuracy.

Discussion: Our findings suggest that an ethological analysis can be used to assess fear learning. With the application of DeepLabCut and SimBA, this approach provides an alternative method to decode ongoing defensive behaviors in both male and female rats for further investigation of fear-related neurobiological underpinnings.

Keywords: DeepLabCut; SimBA; ethological analysis; fear conditioning; risk-assessment.

Grants and funding

The author(s) declare financial support was received for the research, authorship, and/or publication of the article. This work was funded by the Swedish Research Council (Grant No. 2013-07434, to Markus Heilig), the Region Östergotland, Stiftelsen Psykiatriska Forskningsfonden, the Wallenberg Foundation and the Knut och Alice Wallenberg Stiftelse Grant.