MSGL-Transformer: A Multi-Scale Global-Local Transformer for Rodent Social Behavior Recognition
Not on the map. Why?
Abstract (arXiv)
Recognition of rodent behavior is important for understanding neural and behavioral mechanisms. Traditional manual scoring is time-consuming and prone to human error. We propose MSGL-Transformer, a Multi-Scale Global-Local Transformer for recognizing rodent social behaviors from pose-based temporal sequences. The model employs a lightweight transformer encoder with multi-scale attention to capture motion dynamics across different temporal scales. The architecture integrates parallel short-range, medium-range, and global attention branches to explicitly capture behavior dynamics at multiple temporal scales. We also introduce a Behavior-Aware Modulation (BAM) block, inspired by SE-Networks, which modulates temporal embeddings to emphasize behavior-relevant features prior to attention. We evaluate on two datasets: RatSI (5 behavior classes, 12D pose inputs) and CalMS21 (4 behavior classes, 28D pose inputs). On RatSI, MSGL-Transformer achieves 75.4% mean accuracy and F1-score of 0.745 across nine cross-validation splits, outperforming TCN, LSTM, and Bi-LSTM. On CalMS21, it achieves 87.1% accuracy and F1-score of 0.8745, a +10.7% improvement over HSTWFormer, and outperforms ST-GCN, MS-G3D, CTR-GCN, and STGAT. The same architecture generalizes across both datasets with only input dimensionality and number of classes adjusted.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 17 of its 48 references that are in the map. First posted on arXiv 8 Apr 2026.
Builds on
17 of 48 references.
References · 17
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2021ViViT: A Video Vision Transformercited by 1,610
- 2018An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modelingcited by 1,447
- 2018Spatial Temporal Graph Convolutional Networks for Skeleton-Based Action Recognitioncited by 1,199
- 2021Multiscale Vision Transformerscited by 896
- 2020Disentangling and Unifying Graph Convolutions for Skeleton-Based Action Recognitioncited by 339
- 2021Channel-wise Topology Refinement Graph Convolution for Skeleton-Based Action Recognitioncited by 317
- 2022Multi-Scale Spatial Temporal Graph Convolutional Network for Skeleton-Based Action Recognitioncited by 71
5 more
- 2019Deep learning tools for the measurement of animal behavior in neurosciencecited by 44
- 2021The Multi-Agent Behavior Dataset: Mouse Dyadic Social Interactionscited by 31
- 2025Animal behavioral analysis and neural encoding with transformer-based self-supervised pretrainingcited by 5
- 2022Two-Stream Transformer Architecture for Long Video Understandingcited by 4
- 2024Animal Behavior Analysis Methods Using Deep Learning: A Surveycited by 4
Built on by
Not cited yet.