Related Experiment Video
Updated: Jan 15, 2026

A Real-Time Interactive System for Studying Confrontational Pursuit Behavior in Rodents
Published on: May 16, 2025
A deep learning framework for real-time prediction of the behavioral state transition during predation
Guifeng Zhai1, Jincheng Wang2, Qiaoqian Wei2
1Guangxi Key Laboratory of Special Biomedicine and Advanced Institute for Brain and Intelligence, School of Medicine, Guangxi University, Nanning 530004, China; Department of Military Cognitive Psychology, School of Psychology, Army Medical University, Chongqing 40038, China; Experimental Research Center for Medical and Psychological Science, School of Psychology, Army Medical University, Chongqing 400038, China.
None:
The shift from searching for prey to pursuing it is a critical behavioral transition. Previous studies have identified this transition through post hoc analyses using parameters such as bearing angles and velocities. However, the inability to detect this behavioral shift in real time has hindered attempts to validate brain functions with temporal precision during the shift. To address this issue, we conducted experiments with laboratory mice and developed a deep learning-based method to classify and predict the search-to-pursuit transition. Results showed that the latency period from prey appearance to pursuit correlated with success rates and decreased with experience, suggesting the importance of this transition in predatory behavior. To utilize this transition-identification method in real experiments, we developed a deep learning framework that can detect and predict the transition in real time using video streams. A lightweight YOLOv11n detector enhanced with Ghost modules extracts the kinematic features of the mouse and prey. A spatiotemporal network (STNet) then processes these features. STNet combines GRU-based temporal encoding, attention, and residual convolutional modules for dual-task learning, including behavioral state recognition and prospective transition prediction. STNet achieves high classification accuracy (0.916), strong predictive performance (area under the curve [AUC] = 0.881), and reliable calibration (expected calibration error [ECE] = 0.133; Brier score = 0.082). STNet successfully predicts transitions up to 0.80 s in advance and generalizes robustly across individuals and task difficulty. This open-source approach provides a real-time, video-stream-based method for identifying temporally specific behavioral transitions. This capability enables precisely-timed, closed-loop manipulations to dissect the neural circuits of decision-making.
Related Concept Videos
Observational Learning
Predator-Prey Interactions
Avoidance Learning and Learned Helplessness
Avoidance learning occurs when an organism learns that a specific behavior can prevent an unpleasant outcome. For example, a student who receives a bad grade may start studying harder to avoid future poor grades. This behavior persists even when the negative outcome is no longer present. Avoidance learning is powerful because it maintains behavior in the absence of the...
Generalization, Discrimination, and Extinction
Generalization occurs when a behavior reinforced in one context is performed in similar situations. For instance, a student who studies diligently for calculus and receives excellent grades might apply the same study habits to psychology and history, expecting similar results. Generalization shows how learning in one setting can influence behavior in...
Behaviorism
The core premise of behaviorism is its focus on observable behavior rather than internal thoughts or feelings. This approach argues that true scientific...
Automatic Processing and Automatic Social Behavior

