Abstract
Social behavior in mice is critical for understanding their natural interactions and underlying neural mechanisms. Traditional Markov models, however, face limitations in capturing the sequential dynamics of body language associated with social behaviors. To address these challenges, we developed the body language-bidirectional encoder representation from transformers (BL-BERT) framework, which surpasses the Markov model in extracting complex sequential behavioral patterns. BL-BERT effectively differentiates the body language of the mice within different social interaction paradigms and produces results consistent with manual annotations. Notably, BL-BERT achieves higher extraction accuracy than the Markov model by reducing the complexity of the recurrent state transitions in behavior sequences. These advantages enable BL-BERT to accurately quantify high-order sequential behavioral structures in mice, paving the way for more detailed insights into the brain’s mechanisms controlling complex behavior.
Introduction
In the field of computational neuroethology, researchers strive to understand the "grammar" of animal behavior. While pose estimation has advanced significantly, allowing for the tracking of 3D coordinates of mouse limbs, interpreting the long-term structure of those movements remains a challenge. Traditional approaches often rely on Markov models, which assume that the next behavior depends only on the current state. However, real-world social behavior is "non-Markovian"—it has long-term dependencies and context. A mouse doesn't just "sniff"; it sniffs as part of a larger narrative of approach, investigation, or retreat. Traditional models fail to capture these extended "sentences" of body language, leading to inaccuracies when trying to map behavior to underlying neural activity.
Methods and Experimental Design
To address these limitations, researchers developed BL-BERT (Body Language-Bidirectional Encoder Representation from Transformers), adapting the BERT architecture from Natural Language Processing (NLP) to animal behavior.
The experimental workflow involved:
- 3D Pose Estimation: Using the MouseVenue3D system and DeepLabCut, 16 body points were tracked in 3D space.
- Behavioral Decomposition: Raw movements were broken into 41 distinct "behavioral modules" (e.g., "right turning," "rearing") using the Behavior Atlas (BeA) tool.
- Sequence Modeling: These modules were treated as words in a sentence. BL-BERT was trained using a "masked" approach, predicting hidden behaviors based on surrounding context.
The study utilized ten male C57BL/6J mice, generating a dataset of 200,000 behavior sequences. Two primary paradigms were tested: a subject mouse interacting with either a "trapped" partner (restrained in a mesh container) or a "free" partner.
Key Insights: Behavior as Syntax
A central finding of this work is that animal behavior possesses a semantic structure. Specific behaviors, such as "rising" or "rearing," function as "punctuation points" that signal the termination or transition of behavioral sequences.
Mice exhibit context-dependent "dialects." In the presence of a trapped partner, subject mice display more "prosocial" sequences, characterized by concatenated approaching and turning. Conversely, interactions with free partners are more varied and dominated by locomotion like walking and rising. BL-BERT’s self-attention mechanism allows it to weigh the importance of past behaviors, identifying the "altruistic" body language elicited by a restrained peer that memoryless Markov models often miss.
Key Results
BL-BERT demonstrated significant improvements over traditional methods:
- Superior Accuracy: It achieved 90% accuracy in classifying the "trapped" social context, significantly outperforming the Markov model's 73%.
- Human-Level Consistency: Extracted sequences showed high concordance with manual human annotations, validated via a low Hamming distance.
- Complexity Reduction: The model effectively "disentangled" recurrent state transitions, providing a much clearer "fingerprint" of social interaction.
Conclusion and Future Directions
While BL-BERT represents a significant leap forward, future work must address environmental confounders, such as the cage's presence in the trapped-partner experiment. The next phase of research will involve integrating BL-BERT with neural recordings (e.g., two-photon microscopy) to map high-order behavioral "sentences" directly to specific neural circuit activities. Expanding the model's scalability to more complex multi-animal environments and different mouse strains remains a priority.
Summary updated