Preliminary Use of Vision Language Model Driven Extraction of Mouse Behavior Towards Understanding Fear Expression
Paimon Goulart, Jordan Steinhauser, Kylene Shuler, Edward Korzus, Jia Chen, Evangelos E. Papalexakis
TL;DR
The paper addresses the need for scalable, fine-grained annotations of mouse fear expression aligned with neural data. It repurposes an open-source vision-language model (Qwen2.5-VL) using prompt engineering, in-context learning, and frame-level preprocessing to generate per-second behavioral vectors without model fine-tuning. Results show that each component—prompt design, ICL, and frame-wise processing—contributes to improved labeling, with their combination yielding robust performance across behaviors, including rare freezing and fleeing. This approach enables integrated, multi-modal datasets for studying threat and safety learning, with broad implications for behavioral neuroscience and cross-disciplinary research.
Abstract
Integration of diverse data will be a pivotal step towards improving scientific explorations in many disciplines. This work establishes a vision-language model (VLM) that encodes videos with text input in order to classify various behaviors of a mouse existing in and engaging with their environment. Importantly, this model produces a behavioral vector over time for each subject and for each session the subject undergoes. The output is a valuable dataset that few programs are able to produce with as high accuracy and with minimal user input. Specifically, we use the open-source Qwen2.5-VL model and enhance its performance through prompts, in-context learning (ICL) with labeled examples, and frame-level preprocessing. We found that each of these methods contributes to improved classification, and that combining them results in strong F1 scores across all behaviors, including rare classes like freezing and fleeing, without any model fine-tuning. Overall, this model will support interdisciplinary researchers studying mouse behavior by enabling them to integrate diverse behavioral features, measured across multiple time points and environments, into a comprehensive dataset that can address complex research questions.
