WorksComputer Science
MICE: Multi-animal Interaction Context Encoder - A Hierarchical Foundation Model for Mouse Behavior
Abstract
Quantifying mouse behavior from pose is a foundational tool in neuroscience, ethology, drug discovery, and animal welfare. Self-supervised foundation models are a natural fit, but a foundation model for mouse behavior must handle social behavior - many behaviors that matter (aggression, courtship, mounting, allogrooming) are inherently multi-animal. Existing self-supervised pose models fall short: they encode each animal independently and discard interaction signal, hard-code the animal count, and pretrain one dataset at a time. We introduce MICE (Multi-animal Interaction Context Encoder), a hierarchical foundation model for mouse behavior that pretrains jointly on six mouse-pose corpora spanning one to four mice and 7 to 27 keypoints. MICE combines a hierarchical individual encoder capturing per-mouse kinematics at multiple temporal scales with a Perceiver-style social encoder whose learned latent codebook decouples parameter count from animal count, so a single checkpoint serves any group size without retraining. Across four evaluation protocols spanning six datasets, MICE matches or exceeds prior keypoint-based baselines, and layer-wise probing shows the social stage incrementally improves discriminability beyond the individual encoder. Code, weights, and data are available at https://github.com/eric0708/MICE.
Introduction
Automated quantification of mouse behavior from video is increasingly central to neuroscience, ethology, drug discovery, and animal welfare [1, 5, 17], with pose-estimation toolkits [14, 18, 21] now producing keypoint trajectories at scale. The bottleneck has shifted from tracking to interpretation: turning keypoint sequences into ethologically meaningful annotations. Self-supervised foundation models are a natural way to bridge this gap, but a foundation model for mouse behavior must handle more than per-animal kinematics — many of the most important behaviors (aggression, courtship, mounting, allogrooming) are intrinsically social. Existing self-supervised pose models [24, 3, 22] were not designed to scale into a foundation-model regime, for three reasons. (1) Pooling destroys interaction structure [3, 19]: per-animal representations collapsed via mean- or max-pooling lose the relational signal defining dyadic behaviors. (2) Fixed-ordering or fixed- inputs [24, 22]: concatenating multi-animal keypoints hard-codes both the animal count and the ordering at training time. (3) Skeletal heterogeneity: different labs annotate different keypoint sets, so a model trained on one skeleton cannot accept input from another without explicit alignment.
We introduce MICE (Multi-animal Interaction Context Encoder), a hierarchical self-supervised foundation model for mouse behavior that pretrains jointly across heterogeneous mouse-pose datasets with variable animal counts. The architecture makes no mouse-specific assumptions and extends to other tracked species; we focus on mice because they are the dominant model organism in neuroscience and the only species with the public keypoint datasets and ethologically-validated labels needed for rigorous evaluation. Our contributions are: (i) a mouse-behavior foundation model pretrained jointly across six corpora — four published datasets [25, 23, 4, 20] and two codenamed mouse tracks from the MABe 2025 challenge [27] (AdaptableSnail, NiftyGoldfinch) — aligned through a universal 12-keypoint vocabulary, a regime no prior keypoint-based behavior model has demonstrated; (ii) a hierarchical individual encoder with widening attention windows, capturing per-mouse kinematics at multiple temporal scales; (iii) a Perceiver-style social encoder that processes an arbitrary number of mice through a learned latent codebook, letting a single checkpoint serve any group size without retraining; and (iv) a comprehensive evaluation across all six datasets and four evaluation protocols, where MICE matches or exceeds prior keypoint-based baselines, with layer-wise probing showing that the social stage incrementally improves discriminability beyond the individual encoder, plus controlled tests of what the social stage contributes (§4.6).
Related Work
Pose-based behavior analysis. Classical pipelines hand-engineer features (velocity, distance, angles) for Random Forests or HMMs [9, 7]. Deep approaches [16, 21] learn from keypoints with supervised CNNs/RNNs but require large labeled corpora.
Self-supervised pose representation. BAMS [3] predicts a histogram of binned action features (HoA) from a dual-branch dilated TCN, the closest precursor to our individual-stage objective. TBERT [25] applies BERT-style masked modeling to keypoints; hBehave-MAE [22] introduces a hierarchical masked autoencoder over (time×mice×feature) tensors but fixes both the skeleton and the animal count; PointNet [19] treats keypoints as an unordered point cloud. Unlike these, MICE’s two-stage approach explicitly separates intra-animal kinematics from inter-animal interaction.
Video foundation models for mouse behavior. A parallel line of work pursues behavioral foundation models from raw video. BEAST [28] uses masked autoencoding plus temporal contrastive learning; Sun et al. [ [26] apply VideoPrism [31] to mouse behavior datasets; generative video models have also been used to relate neural dynamics to behavior [29]. Video preserves appearance but is lab-specific (lighting, camera, arena), while keypoints abstract these confounds and are far cheaper at training and inference. MICE focuses on the keypoint regime, where this abstraction enables transfer across labs with different recording conditions.
Social interaction modeling and foundation models for behavior. Existing social models hard-code animal count [6, 25] or rely on GNN attention [10]. The Perceiver [8] and Set Transformer [12] use learned latent queries to handle variable-length input; MICE is, to our knowledge, the first application of Perceiver-style bottlenecks to multi-animal social behavior. Foundation models exist for DNA [15], proteins [13], and brain activity [2]. MABe22 [25] and MABe 2025 [27] introduced benchmarks with baselines evaluated on their own datasets but not across labs. MICE is the first behavior foundation model to pretrain jointly across multiple mouse-pose datasets with variable group sizes.
Method
MICE has two stages (Figure 1): an individual encoder processes each mouse independently for per-animal kinematic representations at multiple temporal scales, and a social encoder operates on these to model inter-animal interactions. Each stage is pretrained with self-supervision matched to its structure — kinematics and dyadic relations respectively. We describe the universal keypoint vocabulary (§3.1), then each stage (§3.2, §3.3).
Figure 1. The MICE architecture. Stage 1 (left, individual encoder): a per-animal pose sequence is tokenized by a patching layer, then processed through three ALBERT-style transformer stages of increasing attention scope (local, medium, global) with weights shared within each stage. Per-stage outputs are concatenated and supervised by three losses: a long-scale Histogram-of-Activities (HoA) loss on Stage 3’s output, a short/mid-scale HoA loss on the concatenated output, and a span-masked keypoint reconstruction loss. Stage 2 (right, social encoder): the frozen individual encoder is applied per mouse; per-animal embeddings are fused with raw keypoints and passed to a Perceiver with a learned latent codebook. The latents cross-attend over animals (encode), refine across time (process), and are read back to each animal (decode), producing per-animal social embeddings. Animal pairs are formed by an order-invariant projection and supervised by pairwise HoA and pairwise distance losses.
Universal Mouse-Keypoint Space
Joint pretraining across multiple datasets requires a shared input vocabulary, but different labs annotate different keypoint sets. We define a universal mouse-pose vocabulary of keypoints following the MABe22 layout (nose, left/right ear, neck, left/right forepaw, center back, left/right hindpaw, tail base, tail middle, tail tip). Each dataset’s native skeleton is mapped to this space by named-synonym matching, with missing keypoints zero-padded and masked from any feature that depends on them. Zero-padding is benign: keypoints have anatomical correspondence across labs, and the per-animal flat dimension is small enough that even CalMS21’s 7-keypoint skeleton loses no more than half its slots to padding. This mapping is used only for combined pretraining; single-dataset models use each dataset’s native keypoints.
Variable- handling. The animal count is qualitatively different from keypoint count. Mouse anatomy bounds , but has no such ceiling: group living, colony recordings, or cross-species extensions can push it beyond the dyadic regime, and a model trained at cannot run on without retraining. MICE’s Perceiver social encoder (§3.3) cross-attends over whichever animals are present, so a single checkpoint runs on any . Fixed-input baselines (TBERT [25], BehaveMAE [22]) commit to at training time; pooling-based baselines (BAMS [3], PointNet [19]) handle variable but lose interaction signal.
Individual Encoder: Hierarchical Transformer
The individual encoder produces per-mouse kinematic representations (Figure 1, left). It takes a per-animal pose sequence ( frames of keypoints in 2D) and returns a per-token feature vector at multiple temporal scales. Self-attention is bidirectional throughout (adapted from ALBERT [11]); behavior analysis is post-hoc, so each token attends to past and future frames within its window.
Hierarchical design with continuous window schedule. Mouse behavior unfolds at very different temporal scales: a paw step lasts tens of milliseconds, a sniff bout about a second, an attack episode several seconds. Prior designs commit to a small set of scales (hBehaveMAE [22] uses discrete pooling levels; BAMS [3] uses a short- and long-term branch). Our design instead lets the attention scope grow continuously with depth (readout and supervision still use a few scales, Eqs. (2)–(3)): across the 12 transformer layers (), the attention window grows linearly,
with and tokens, then rounded to the nearest odd integer so windows are symmetric around each query token. The full set of layers covers a continuum from short to long-range.
Stage organization. The 12 layers are grouped into three stages of 4, indexed , for two reasons. First, it enables ALBERT-style weight sharing [11]: layers within a stage share parameters, striking a middle ground between full sharing (one block handling every scale) and 12 independent layers (quadrupling the parameter count). Second, the stages define readout points from which we extract one feature map per stage and concatenate them (Figure 1, “concat”):
where is stage ’s last-layer output and . Three readouts are the minimum that gives a short/mid/long-range summary — a single readout would force one representation to capture every scale, while per-layer probing would inflate the downstream parameter cost.
Self-supervised objectives. The encoder is pretrained with three losses. Two are Histogram-of-Activities (HoA) prediction losses, inspired by BAMS [3]: per-token histograms of a kinematic feature vector are predicted at two readout heads, yielding a short/mid-scale loss on and a long-scale loss on alone. The third is span-masked keypoint reconstruction on , anchoring the encoder to raw positions that HoA alone could leave unconstrained. The total objective combines all three:
where each is a per-token KL divergence between predicted and target histograms and is the per-token MSE. Loss equations and target-window sizes are in Appendix § 8, and feature definitions in Appendix § 10.
Social Encoder: Perceiver-based Model
The social encoder operates on top of the per-animal representations from §3.2 and produces an interaction-aware embedding for each mouse (Figure 1, right). It runs on multi-animal pose with animals across frames.
Why a Perceiver. Two requirements shape the design: handle a variable number of mice so a single trained model serves datasets with different group sizes, and preserve per-animal identity (pooling all animals into one vector would lose relational structure). A natural design satisfying both is direct -to- cross-attention between animals, but its outputs are still built on animal representations — the architecture cannot learn codes that specialize to relationships between animals (chasing, face-to-face confrontation, parallel locomotion). We instead use a Perceiver Jaegle et al. [ [8]: a small set of learned latent codes ( slots, the orange row in Figure 1) reads from the animals, gets refined over time, and is passed back to each animal. Each latent is free to specialize to a behavioral motif, and at decode time each animal looks up which motifs it participates in.
Inputs. The frozen individual encoder is applied per mouse, yielding hidden representations . A linear projection (Figure 1, “Linear projection”) fuses each per-animal representation with raw keypoints into a per-token embedding . During pretraining, contiguous temporal spans of are replaced with a mask token. Details in Appendix § 9.
Encode–process–decode. The Perceiver applies three operations per timestep (Figure 1, green block). The learned latent codebook has slots; stacks the animal embeddings at timestep . Using multi-head cross-attention CrossAttn(Q, K, V), latent self-attention SelfAttn (within a timestep), temporal self-attention TempAttn (across time tokens, per latent slot), and layer normalization LayerNorm:
Encode reads animal information into the latents; Process refines them within timestep then across time; Decode reads the refined latents back to each animal. is the per-animal, per-timestep social embedding.
Pairwise projection. Since social self-supervision is defined over pairs, we project each animal pair’s social embeddings into a single representation. For each unordered pair with both animals valid at timestep (Figure 1, dashed pink box):
where applies to the concatenation of the elementwise sum and Hadamard product. Both operations are swap-invariant, so by construction; we choose order-invariance because directionality (“ chases ” vs. “ chases ”) is recoverable from and , while our pretraining targets are largely symmetric in .
Self-supervised objectives. The social encoder is pretrained with two pairwise losses. The primary loss is pairwise HoA prediction — the dyadic analog of the individual HoA loss — predicting histograms of a pairwise feature vector capturing velocity differences, heading geometry, and other dyadic kinematics (Appendix § 10). The auxiliary loss is pairwise distance regression on the 13 per-keypoint and centroid distances, anchoring the pair representation to physical proximity. Because input spans are masked during pretraining, it also acts as a masked reconstruction of inter-animal distances; it targets relative positions because the frozen individual encoder already captures absolute ones. The objective is
where is a per-pair-timestep KL between predicted and target histograms and is per-pair-timestep MSE. Loss equations and validity-mask definition are in Appendix § 9.
Experiments
We evaluate MICE under four protocols on six mouse-pose datasets: linear probing (§4.1), unsupervised behavioral segmentation (§4.2), cross-dataset transfer (§4.3), and few-shot label efficiency (§4.4), supplemented by layer-wise probing (§4.5), a social-stage ablation (§4.6), and leave-one-dataset-out transfer (§4.7). Variable- and embedding-variant ablations appear in Appendix § 16.
Datasets. The six datasets span mice and 7–27 native keypoints, all mapped to the universal 12-keypoint vocabulary (§3.1): MABe22 [25], CalMS21 [23], CRIM13 [4], MouseLockbox [20], AdaptableSnail, and NiftyGoldfinch (the last two are codenamed mouse tracks from MABe 2025 [27]). Per-dataset details are in Appendix § 11.
Protocol. We pretrain MICE on all six datasets jointly, then evaluate frozen embeddings via linear probing per-dataset (an MLP on frozen features); for comparison we also report single-dataset pretraining. The headline MICE configuration is ind+soc_cat; other pooling combinations appear as ablations in Table 1 and Table 12. Probe details are in Appendix § 12.
Table 1: Linear-probing macro-F1 (%) across the six datasets under two pretraining regimes: single (pretrain and probe on the same dataset) and combined (joint pretrain on all six, probe per dataset). Mean standard deviation over 5 random seeds. Within each regime, bold = best method and <u>underline</u> = best baseline; ⋆ and † additionally mark these under the single regime. “—”: social variants do not apply to single-animal MouseLockbox. AdaptSnail = AdaptableSnail; Goldfinch = NiftyGoldfinch; Lockbox = MouseLockbox.
| Model | Regime | MABe22 | CalMS21 | CRIM13 | AdaptSnail | Goldfinch | Lockbox |
| PointNet [19] | single | 36.540.7 | 62.240.5 | 21.480.7 | 7.910.5 | 21.730.6 | 13.730.4 |
| combined | 40.750.6 | 65.930.4 | 26.490.6 | 19.590.6 | 19.610.5 | 13.420.4 | |
| TBERT [25] | single | 20.180.8 | 42.230.7 | 19.010.7 | 11.12†0.6 | 13.690.6 | 14.200.4 |
| combined | 25.450.7 | 56.400.5 | 23.350.6 | 13.720.5 | 12.590.5 | 13.550.4 | |
| BAMS [3] | single | 43.90†0.6 | 74.980.4 | 41.41†0.7 | 8.950.5 | 14.860.6 | 13.300.4 |
| combined | 46.170.5 | 59.080.5 | 29.650.6 | 18.670.6 | 17.390.5 | 12.920.4 | |
| hBehaveMAE [22] | single | 42.720.6 | 76.05†0.4 | 38.300.7 | 9.030.5 | 26.02†0.6 | 14.58†0.4 |
| combined | 47.820.5 | 77.680.3 | 40.350.6 | 12.130.5 | 29.210.5 | 13.210.3 | |
| Progressive (ours, ablation) | single | 53.930.6 | 54.930.6 | 18.710.8 | 14.170.6 | 9.500.5 | 15.780.4 |
| combined | 61.870.4 | 66.970.4 | 27.980.6 | 23.630.6 | 13.540.5 | 13.540.4 | |
| Multiscale (ours, ablation) | single | 52.280.6 | 64.030.5 | 24.540.7 | 14.610.6 | 17.430.5 | 15.720.4 |
| combined | 63.680.4 | 74.240.4 | 31.400.6 | 20.920.6 | 15.390.5 | 13.040.4 | |
| MICE (ind_cat) | single | 65.580.5 | 79.760.3 | 39.120.6 | 20.910.6 | 28.550.5 | 15.93⋆0.4 |
| combined | 67.850.4 | 81.220.3 | 44.710.5 | 22.660.5 | 29.120.5 | 13.680.4 | |
| MICE (soc_cat) | single | 67.130.5 | 79.340.3 | 40.920.5 | 21.340.5 | 29.420.5 | — |
| combined | 68.880.4 | 81.860.3 | 44.090.5 | 25.150.4 | 30.350.6 | — | |
| MICE (ind+soc_cat) | single | 67.60⋆0.5 | 83.28⋆0.4 | 44.61⋆0.7 | 21.93⋆1.0 | 31.08⋆0.7 | — |
| combined | 69.260.3 | 84.560.3 | 46.380.6 | 26.760.8 | 31.900.7 | — |
Table 1.
| Variant | ind_mean | ind_cat | soc_mean | soc_cat | ind+soc_mean | ind+soc_cat |
| F1 (%) | 57.79±0.42 | 81.22±0.28 | 70.08±0.36 | 81.86±0.28 | 73.38±0.34 | 84.56±0.31 |
Table 12. Embedding-variant comparison on CalMS21 (combined-regime macro-F1, %). Mean ± standard deviation over 5 random seeds. Channel: ind / soc / ind+soc = individual / social / both concatenated. Pooling: mean / cat = average / concatenation over . Bold = best.
Baselines. We compare to four methods (BAMS [3], PointNet [19], TBERT [25], hBehaveMAE [22]) and two MICE ablations: Progressive (individual encoder with fixed- padding) isolates the variable- contribution; Multiscale (multi-resolution supervision without widening attention windows) isolates the widening-window design. All methods share the universal keypoint mapping and identical downstream probes. MICE is the smallest competitive model (583K encoder parameters, about fewer than hBehaveMAE; Table 21). Implementation details in Appendix § 14.
| Model | Parameters | vs. MICE |
| PointNet | 28K | 0.05× |
| MICE | 583K | 1× |
| Multiscale (ours, ablation) | 620K | 1.06× |
| Progressive (ours, ablation) | 687K | 1.18× |
| TBERT | 2.132M | 3.66× |
| BAMS | 2.240M | 3.84× |
| hBehaveMAE | 4.061M | 6.96× |
Table 21. Encoder parameters used at inference (training-only heads excluded). MICE: 159,712 individual + 423,552 social = 583,264; with training-only heads, 772,053.
Linear-Probe Behavior Classification
Table 1 reports macro-F1 under two pretraining regimes: single (pretrain and probe on the same dataset) and combined (joint pretrain on all six). Three findings stand out.
MICE matches or exceeds the strongest baseline on every dataset under both regimes. The largest gaps appear on the datasets with the most mice per recording — MABe22 () and AdaptableSnail () — where variable- handling and joint social/individual modeling matter most. Fixed-ordering baselines such as hBehaveMAE trail MICE by a wider margin on these multi-animal datasets than on dyadic ones, supporting the variable- argument in §3.1. Appendices J.6 and J.7 compare MICE with a vanilla transformer and with a supervised reference.
The social stage adds consistent value on multi-animal datasets. MICE (ind_cat) vs. MICE (ind+soc_cat) isolates the social encoder’s contribution, positive on every multi-animal dataset under combined pretraining. The Progressive ablation, which stacks all animals into a single fixed-size input, lags MICE (ind_cat) on most multi-animal datasets, showing that handling each mouse separately matters.
Combined pretraining helps on most datasets. On the five datasets with shared multi-animal structure (MABe22, CalMS21, CRIM13, AdaptableSnail, NiftyGoldfinch), combined pretraining matches or exceeds single-dataset pretraining for all MICE variants — direct evidence for the foundation-model framing. On MouseLockbox it slightly hurts (single-animal-only structure limits transfer). Combined-regime MICE remains the best method under combined pretraining.
Unsupervised Behavioral Segmentation
We test whether frozen embeddings recover behavior without labels by clustering them with -means and scoring the segmentation against frame-level annotations. Per-window embeddings are partitioned into clusters; consecutive frames sharing a cluster are grouped into segments and mapped to ground-truth classes by majority vote. Table 2 reports ARI, NMI, and Boundary-F1 across the four datasets with frame-level labels. MICE leads ARI and NMI by sizable margins ( and points over the strongest baseline) and matches hBehaveMAE on Boundary-F1; the three clustering metrics confirm MICE’s embeddings align with behavior categories best among all methods. Protocol details, per-dataset results, and a comparison with Keypoint-MoSeq [30] are in Appendix § 13.
Cross-Dataset Transfer
Using the six single-dataset MICE checkpoints from § 4.1, we linear-probe each on every dataset. As expected, the diagonal is best within each column among single-dataset checkpoints. Table 3 reports the transfer matrix; the bottom row reproduces the combined-pretraining result. Two patterns emerge.
Combined pretraining matches or exceeds single-dataset pretraining on five of six targets — direct evidence that joint pretraining transfers positive information across datasets. The exception is MouseLockbox, where combined pretraining trails by 2.3 points; we attribute this to label heterogeneity, since MouseLockbox’s fine-grained puzzle-box behaviors differ from the social and locomotor labels dominating the other five datasets.
Single-animal pretraining transfers poorly to multi-animal targets. The MouseLockbox row produces the lowest off-diagonal scores on MABe22 and NiftyGoldfinch, matching the variable- argument from § 3.1: a model never exposed to multi-animal interaction during pretraining cannot encode the social context downstream probes need. Appendix § 17.§ 5 gives the same matrices for hBehaveMAE and PointNet.
Few-Shot Label Efficiency
We evaluate label efficiency on CalMS21 and CRIM13, two established mouse social-behavior benchmarks covering complementary difficulty regimes (CalMS21 moderately balanced; CRIM13 heavily imbalanced). We sweep the labeled training fraction across {1, 5, 10, 25, 50, 100}% and retrain only the MLP probe with the encoder frozen.
MICE leads on both datasets at every label fraction (Figure 3), and its margin over hBehaveMAE is largest at low fractions. With only 1% of CalMS21 labels, MICE already matches BAMS’s and exceeds TBERT’s full-label performance, and substantially outperforms hBehaveMAE, whose representations degrade sharply when labels are scarce. With 5% labels, MICE on CalMS21 nearly matches PointNet’s full-label performance. A similar pattern holds on the harder CRIM13.
Figure 3. Label efficiency on CalMS21 (left) and CRIM13 (right). Each method’s frozen encoder feeds the same downstream MLP probe, retrained at six labeled-data fractions (log -axis). Each curve is the mean macro-F1 over 5 random seeds on the official test split; standard deviations are within ±1.5% at every fraction (largest at the 1% point, where training-set variance dominates) and are omitted from the plot for visual clarity. MICE leads at every label fraction; the gap over hBehaveMAE is largest at the lowest fractions.
Layer-wise Probing Analysis
To localize where discriminative information emerges, we extract embeddings at every intermediate layer with forward hooks and train an MLP probe per layer (encoder frozen). For MICE, this gives
16 probe points: 12 in the individual encoder and 4 in the social encoder. Probe-point details in Appendix § 15. Figure 4 shows three patterns.
Figure 4. Layer-wise linear-probe F1 on CalMS21 for three social behavior classes. -axis: probe depth as percentage of total encoder depth. Each curve is the mean over 5 random seeds; per-layer standard deviations are within across all methods and are omitted from the plot for visual clarity. For MICE, 0–75% is the individual encoder and 75–100% is the social encoder. BAMS (short)/(long) = BAMS’s two parallel branches; the long branch targets longer clips (Appendix § 14).
Baselines show no depth-wise organization of behavior. For TBERT, PointNet, and each of BAMS’s branches, early and late layers decode behavior about equally well, and no behavior shows up at a particular depth.
MICE’s individual encoder dips through Stage 3 on investigation and mount. F1 dips from Stage 1 to 3 before recovering; Progressive shows the same pattern. The likely cause is what each stage represents: early layers (short attention windows) emphasize positional information, while later layers (long attention windows) emphasize velocity and motion integrated over time. Investigation and mount are pose-configurational (nose-to-flank, vertical posture), aligning with early-layer positional features; attack is motion-defined (lunging, fast directional change), aligning with later-layer velocity features and climbing gradually with depth.
The social stage recovers MICE’s F1 sharply; Progressive, lacking it, does not. Starting at 75% depth, MICE’s F1 climbs steeply on investigation and mount, peaking near the final layer. Progressive dips at the same point but only partially recovers, ending well below MICE. This gap at 100% is the empirical contribution of the Perceiver social encoder, enabled by combining each mouse’s kinematic embedding (kept via a residual connection) with context about nearby animals.
Social-Stage Ablation and Analysis
To test whether the social stage’s gain comes from modeling the other animals rather than from capacity, keypoint fusion, the residual path, or the pairwise objective, we retrain it with partners removed or mis-paired (real mice from other clips), keeping every parameter and loss, and probe each model under its training condition (Table 4). Two findings stand out.
| Partners (train and probe) | MABe22 | CalMS21 | CRIM13 | AdaptSnail | Goldfinch |
| correct (default) | |||||
| mis-paired (shuffled) | |||||
| removed | |||||
| ind_cat only |
Table 4. Train-time social ablation: macro-F1 (%) with the social stage retrained once per condition from one frozen individual encoder with correct, mis-paired, or removed partners, and probed likewise; mean standard deviation over 5 random probe seeds. First and last rows: combined-regime MICE (ind+soc_cat, ind_cat) from Table 1. MouseLockbox (one mouse, no social stage) is omitted. Bold = best per column.
Without correct partner information, the social stage’s gain disappears. Both altered models fall back to about the level of the individual readout despite keeping the same capacity, keypoint fusion, and residual path; since mis-pairing keeps the pairwise objective non-trivial, extra supervision does not explain the gain either.
The social embedding encodes how the animals are arranged relative to each other. Linear probes show that it captures inter-animal distance and relative body orientation far better than the individual embedding, while adding nothing about the focal mouse’s own movement (Appendix § 17.§ 3): the social stage contributes relational information that per-animal kinematics cannot express. Direct animal-to-animal attention scores slightly lower on every dataset (Appendix § 17.§ 1) and, unlike the latents, scales with .
Leave-One-Dataset-Out Transfer
We pretrain MICE on five datasets and probe it on the unseen sixth (Table 5). Two patterns emerge.
| Pretraining | MABe22 | CalMS21 | CRIM13 | AdaptSnail | Goldfinch | Lockbox |
| all six datasets | ||||||
| target left out (unseen) | ||||||
| target dataset only |
Table 5. Leave-one-dataset-out transfer: macro-F1 (%) when pretraining on all six datasets, the other five, or the target alone; mean ± standard deviation over 5 random probe seeds. Rows 1 and 3: combined and single-dataset MICE (Table 3); MouseLockbox uses ind_cat. Bold = best per column.
| Pretrain dataset | MABe22 | CalMS21 | CRIM13 | AdaptSnail | Goldfinch | Lockbox |
| MABe22 | ||||||
| CalMS21 | ||||||
| CRIM13 | ||||||
| AdaptSnail | ||||||
| Goldfinch | ||||||
| Lockbox | ||||||
| Combined |
Table 3. Cross-dataset transfer: macro-F1 (%) when MICE is pretrained on the row dataset and linear-probed on the column. Mean ± standard deviation over 5 random seeds. Diagonal cells correspond to single-regime MICE results in Table 1 and the bottom row to the combined-regime results; MouseLockbox uses ind_cat. Bold = best per column. AdaptSnail = AdaptableSnail; Goldfinch = NiftyGoldfinch; Lockbox = MouseLockbox.
MICE transfers to unseen datasets at a modest, dataset-dependent cost. Leaving out CalMS21 or MouseLockbox barely matters, whereas leaving out AdaptableSnail or MABe22 costs more: transfer works best when other datasets cover the target’s behaviors.
A model that never saw the target nearly matches one pretrained on it. Pretrained only on the other five datasets, MICE scores within 3.3 points of a model pretrained on the target alone, making a checkpoint pretrained on other datasets a reasonable starting point for a new dataset.
Discussion and Conclusion
Why does the social channel complement the individual channel? The individual and social pretraining objectives are non-overlapping (intra-animal kinematics vs. inter-animal pairwise quantities), so the two signals are not redundant: a fast-moving mouse next to another fast-moving mouse can be a chase or two parallel exploring mice, and only relative-heading disambiguates.
Limitations. (i) Synonym alignment is manually curated and must be extended by hand for new skeletons, though it needs no training data from a new lab. (ii) Datasets are mouse-only and filmed from above; extending to other species would require re-curating the universal vocabulary. Bottom-up and 3D data remain untested. (iii) The pretraining corpus, while spanning six datasets and , remains small relative to vision/language foundation models; scaling-law studies are left for future work. The range is limited by available labeled datasets. Hyperparameters were not tuned beyond one loss-weight sweep (Appendix § 17.§ 2). (iv) Behavior label sets are coarse; ethological subtleties below current annotation resolution will require new benchmarks.
Broader impact. MICE could reduce annotation cost in behavioral neuroscience, accelerating drug discovery and welfare assessment. Adaptation for industrial-livestock surveillance carries dual-use risk; we recommend practitioners assess use-case ethics before deployment.
Conclusion. MICE is a self-supervised foundation model for mouse social behavior combining a universal 12-keypoint vocabulary that aligns six heterogeneous datasets, a hierarchical individual encoder with linearly-widening attention windows, a Perceiver-based social encoder that natively handles variable animal counts, and pairwise pretraining objectives grounded in ethological features. Across the six datasets and four protocols, MICE achieves state-of-the-art results and combined multi-dataset pretraining matches or exceeds dataset-specific pretraining on most datasets — evidence that a single checkpoint can serve diverse mouse-behavior tasks without architectural change.
Acknowledgments and Disclosure of Funding
This material is based upon work supported by the National Science Foundation under Award No. IIS-2336055. Research reported in this publication was supported by the National Institute of Mental Health of the National Institutes of Health under award number RF1MH140429. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.
References
Individual Encoder: Implementation Details
This section provides reproduction-level details for the individual encoder described in §3.2.
Tokenization. The patching layer groups every consecutive frames at stride and projects each group via a single linear layer to a hidden state of dimension , producing tokens per input pose sequence.
Within-stage layer iteration. Denoting a single ALBERT block of stage as and the input to layer within stage as , the layer iteration is
where is the attention window size at the global layer index . The input to stage is the patched token sequence; the input to stage is the output of the previous stage’s last layer. Within-stage weight sharing means is the same block applied times.
HoA losses. The encoder predicts a soft histogram of the 55-dim kinematic feature vector (Appendix C) over bins per feature. Predicting a soft histogram — rather than the features themselves — pushes the encoder toward short-window behavioral statistics rather than instantaneous values, closer to how ethologists characterize behavior. We apply HoA at two readout heads. The short/mid-scale head reads off the concatenated output with histogram targets computed over a 7-frame window centered on each token; this supervises representations from earlier-stage layers (small attention windows). The long-scale head reads off stage 3’s output with histogram targets computed over the full sequence of frames; this supervises the long-range representation alone. With indexing tokens, the predicted histograms at the two readouts, and the corresponding 7-frame and -frame target histograms,
Span-masked reconstruction loss. Contiguous frame spans of length sampled uniformly from frames are masked in the input by zero-filling them in input keypoint space before patching. A linear layer then reads the predicted keypoint configuration off at each token’s center frame:
where is the ground-truth keypoint configuration. Span-masking (rather than per-frame masking) prevents the model from solving the task by linearly interpolating between adjacent unmasked frames: mouse motion is locally smooth at single-frame scales, but multi-frame spans cover direction changes that linear interpolation cannot recover.
Total objective. , computed at all token positions for denser supervision than masked-only objectives.
Social Encoder: Implementation Details
This section provides reproduction-level details for the social encoder described in §3.3.
Input projection. The frozen individual encoder produces per-animal hidden representations for . A linear projection fuses each per-animal embedding with the raw keypoints at the corresponding token-center frame:
where is the center frame of token (the middle of the -frame patching window) and denotes concatenation. The projection is a single linear layer with no nonlinearity.
Process operation details. SelfAttn in (5) denotes stacked self-attention layers applied to the latent codebook within each timestep; TempAttn applies temporal attention across the time tokens independently for each of the latent slots.
Pairwise HoA loss. For each unordered pair at each timestep , the pairwise HoA head predicts a soft histogram of the 44-dim pairwise feature vector (defined in Appendix § 10; for , comprising per-keypoint distance and velocity-difference components plus eight relational features) over bins per feature. Let denote the set of valid (pair, timestep) tuples, where validity requires both animals to have observed keypoints at :
where is the predicted histogram for pair at timestep and feature channel , and is the target histogram computed from over a 7-frame window centered on .
Pairwise distance loss. The pairwise distance head reads off each pair representation to predict the 13-dim distance vector comprising the 12 per-keypoint Euclidean distances between animal ’s and animal ’s corresponding keypoints, plus the centroid-to-centroid distance:
where is the corresponding ground-truth distance vector computed directly from the keypoint coordinates.
Validity mask. The set excludes (pair, timestep) tuples where either animal has no valid keypoints at timestep (e.g., out-of-frame or tracking failure). For datasets where validity is not annotated per-frame, all (pair, timestep) tuples are treated as valid. Sequences with no valid pair at any timestep are removed, so every pretraining batch contains valid pairs.
Total objective. , computed at all valid (pair, timestep) tuples. The two terms are weighted equally; we did not tune this weighting, and unit weighting keeps the objective interpretable.
Self-Supervision Feature Definitions
Individual-stage feature vector (55-dim). For each token , the kinematic feature vector consumed by the HoA loss comprises:
Per-keypoint velocity (2 = 24 dims): - and -velocity for each of the keypoints.
Per-keypoint centroid-relative position (2 = 24 dims): the offset of each keypoint from the body centroid.
Body-length deviation (1 dim): current body length minus the sequence-mean body length.
Forepaw–ear distance (1 dim): a proxy for grooming, which involves the forepaws being brought near the head.
Heading direction (2 dims): where is the angle of the tail-base–to–nose vector.
Turn direction (2 dims): where is the angular velocity of the heading.
Tail extension (1 dim): a proxy for arousal, computed as the tail-base–to–tail-tip distance.
Total: dimensions. All features are normalized by sequence-mean body length for scale invariance. Histogram targets use bins per feature, computed over a 7-frame sliding window for the short/mid-scale head and over the full sequence for the long-scale head (Appendix § 8).
Pairwise feature vector (44-dim). For each unordered pair of valid animals at token :
Per-keypoint inter-animal distance ( dims): for each keypoint , normalized by the mean body length .
Per-keypoint velocity difference ( dims): per-axis absolute velocity difference for each keypoint and axis , body-length normalized.
Centroid-centroid distance (1 dim): .
Heading similarity (1 dim): , close to 1 when both animals face the same direction (parallel motion) and close to 0 when anti-parallel.
Heading orthogonality (1 dim): , close to 1 when headings are perpendicular and close to 0 when collinear.
Face-to-face geometry score (1 dim): 0 when one animal’s nose points at the other’s tail (chasing); 1 when noses point at each other (face-to-face confrontation).
Body-size asymmetry (1 dim): , indicating size differences relevant to dominance.
Forepaw–ear (grooming) asymmetry (1 dim): the difference in forepaw–ear distance between the two animals.
Tail-extension (arousal) asymmetry (1 dim): the difference in tail extension between the two animals.
Turn-rate similarity (1 dim): angular distance between the two animals’ instantaneous turning rates.
Total: dimensions, where the per-keypoint dimensions plus 8 global-pair scalars give the form referenced in Appendix § 9.
Dataset Details
This section provides per-dataset specifics referenced from § 4. All datasets are top-down mouse-pose video keypoints; each native skeleton is mapped to the universal 12-keypoint vocabulary by named-synonym matching (§ 3.1), with missing slots zero-padded and masked from any feature that depends on them.
MABe22 [25]. animals per sequence, 12 keypoints per mouse; its skeleton defines the universal vocabulary used by all other datasets. Behavior annotations are multi-label per window and cover a broad set of social behaviors.
CalMS21 [23]. animals per sequence, 7 keypoints per mouse mapped to 7 of the 12 universal slots. Four mutually exclusive class labels: attack, investigation, mount, other. 70 training / 19 test sequences. Primary benchmark for dyadic social-interaction classification.
CRIM13 [4]. animals per sequence, 7 keypoints per mouse mapped to 7 of the 12 universal slots. Eight mutually exclusive class labels: other, approach, attack, disengage, mount, rear, selfgroom, sniff, with the other class dominating (80% of frames). Also used for the few-shot evaluation in § 4.4.
AdaptableSnail (MABe 2025 challenge). Variable group size, mice per sequence, 10 keypoints per mouse mapped to 10 of the 12 universal slots. Used to evaluate the social encoder under within-dataset variation and to stress-test the universal mapping under a non-standard skeleton.
NiftyGoldfinch (MABe 2025 challenge). mice per sequence. The set of keypoints differs between sequences (each file lists its own body-part names), so the mapping to the universal vocabulary is applied per sequence rather than once per dataset. This makes it the most stringent test of the universal mapping.
MouseLockbox [20]. , 27 native DLC SuperAnimal keypoints mapped onto the 12 universal slots; the remaining 15 native keypoints are dropped. It covers fine-grained puzzle-box behaviors and is the only single-animal dataset in our evaluation.
Dataset sizes and sampling. Table 6 lists training-split sizes. Batches are drawn from the concatenated corpus (proportional sampling, no reweighting). The corpus is imbalanced by (largest to smallest), not by orders of magnitude; for substantially more heterogeneous corpora we expect temperature-based sampling to become necessary.
| Dataset | Training frames | |
| AdaptableSnail | 641,842 | 3–4 |
| CalMS21 | 507,738 | 2 |
| MouseLockbox | 427,380 | 1 |
| NiftyGoldfinch | 284,590 | 2 |
| CRIM13 | 223,362 | 2 |
| MABe22 | 118,560 | 3 |
Table 6. Training-split sizes (frames) and group sizes.
Linear Probe Details
For all probing experiments (“linear probing” in the main text, following common usage for frozen-encoder evaluation), frozen embeddings are passed to a single-hidden-layer MLP with 256 ReLU units. Training uses Adam with weighted cross-entropy (inverse-frequency class weights), batch size 256, learning rate , and 200 epochs with early stopping on macro-F1 over a held-out validation split. We report macro-F1 on the official test splits where available, otherwise on a 70/15/15 train/val/test split sampled at the recording level. Each result is the mean over 5 random seeds.
Embedding variants. We evaluate six embedding variants of MICE: ind_mean, ind_cat, soc_mean, soc_cat, ind+soc_mean, ind+soc_cat. The prefix (ind, soc, or ind+soc) says which output is used: the individual encoder’s, the social encoder’s, or both concatenated. The suffix says how the tokens are combined: mean averages them into one 96- or 192-dim vector, and cat flattens them into a - or -dim vector. This is done per animal, and the vectors of all animals in the clip are then concatenated. The headline MICE result in Table 1 uses ind+soc_cat, and ind_cat and soc_cat appear in the same table as ablations; all six variants, including the mean-pooled ones, are compared on CalMS21 in Appendix I.2. Table 7 summarizes them.
| Readout | Source | Pooling over tokens | Dim. per animal |
ind_mean / ind_cat | mean-pool / flatten | 96 / | |
soc_mean / soc_cat | mean-pool / flatten | 96 / | |
ind+soc_mean / ind+soc_cat | mean-pool / flatten | 192 / |
Table 7. MICE embedding readouts. : concatenated individual-encoder output (Eq. (2)); : per-animal social output (Eq. (6)); tokens. Each readout concatenates the embeddings of all animals in the clip, so ind_cat already contains the partners’ individual embeddings.
The social readout also contains individual information. The Decode step (Eq. (6)) adds the focal mouse’s own projected embedding back in, so soc is not purely social. This is why soc_cat alone is usually only modestly better than ind_cat, and why ind+soc_cat, which also keeps an unmixed copy of the individual embedding, does best.
Unsupervised Segmentation: Protocol and Qualitative Details
Protocol. For each method, we extract per-window embeddings on the test sequences with the most balanced mix of behavior labels. We run -means with on the embeddings to produce hard cluster assignments. Consecutive frames with the same cluster assignment form a segment; each segment is mapped to the ground-truth class that appears most often in its frames (majority vote). ARI and NMI are computed at the frame level between predicted and ground-truth class labels. Boundary-F1 treats a predicted boundary as correct if it lies within 2 windows of any ground-truth boundary. All results are averaged over 5 seeds varying -means initialization and the train/val/test split.
Qualitative observations from Figure 2. The figure shows two test sequences from CalMS21. In the left panel (investigation-rich), ground truth contains a long sustained investigation block at windows –. MICE recovers most of it as two long segments separated by a short gap, with outer boundaries close to ground truth, while Progressive fragments the same block into several shorter segments. In the right panel (attack-rich), ground truth contains several attack clusters near the start (windows –), one near window 190, and one near the end. MICE marks attack in both regions, whereas BAMS and hBehaveMAE miss most of the early clusters. Progressive and Multiscale also predict attack in windows where ground truth has none (e.g., – for Progressive), consistent with their tendency toward false positives.
Figure 2. Qualitative segmentation timelines from CalMS21, investigation episodes (left) and attack episodes (right). Each row shows one method’s hard cluster assignments mapped to ground-truth classes. MICE matches ground-truth boundaries most closely; baselines either fragment episodes and produce false positives (e.g., Progressive and Multiscale) or miss real episodes (e.g., BAMS and hBehaveMAE on the early attack clusters).
Per-dataset results. Table 8 breaks the averages of Table 2 down by dataset. MICE has the highest ARI and NMI on every dataset; on Boundary-F1 it leads on CalMS21, while hBehaveMAE leads on CRIM13 and NiftyGoldfinch and Progressive on AdaptableSnail.
Table 2. Unsupervised behavioral segmentation via -means clustering () on frozen embeddings, mean standard deviation across the four datasets with frame-level labels (CalMS21, CRIM13, AdaptableSnail, NiftyGoldfinch) over 5 random seeds. All metrics reported as %. Bold = best, underline = best baseline. MICE leads ARI and NMI by sizable margins and matches hBehaveMAE on Boundary-F1 (within seed variation).
| Model | CalMS21 | CRIM13 | AdaptSnail | Goldfinch | Avg. |
| ARI | |||||
| PointNet | 57.90 | 51.49 | 10.74 | 14.77 | 33.73 |
| TBERT | 42.18 | 39.19 | 9.51 | 7.48 | 24.59 |
| BAMS | 16.54 | 13.81 | 5.04 | 1.71 | 9.28 |
| hBehaveMAE | 51.19 | 50.15 | 12.21 | 11.72 | 31.32 |
| Progressive (ours, ablation) | 11.78 | 13.76 | 8.85 | 2.92 | 9.33 |
| Multiscale (ours, ablation) | 40.39 | 43.32 | 11.32 | 9.48 | 26.13 |
| MICE (ind+soc_cat) | 72.31 | 58.59 | 19.82 | 22.60 | 43.33 |
| NMI | |||||
| PointNet | 44.24 | 40.02 | 10.68 | 15.07 | 27.50 |
| TBERT | 29.60 | 27.61 | 9.44 | 7.92 | 18.64 |
| BAMS | 11.78 | 10.83 | 6.22 | 3.27 | 8.03 |
| hBehaveMAE | 38.43 | 38.52 | 12.81 | 12.00 | 25.44 |
| Progressive (ours, ablation) | 9.14 | 10.59 | 10.03 | 2.76 | 8.13 |
| Multiscale (ours, ablation) | 32.61 | 31.35 | 12.54 | 9.12 | 21.41 |
| MICE (ind+soc_cat) | 58.64 | 49.45 | 14.92 | 19.51 | 35.63 |
| Boundary-F1 | |||||
| PointNet | 31.98 | 27.83 | 9.26 | 35.70 | 26.19 |
| TBERT | 27.48 | 32.37 | 16.35 | 40.04 | 29.06 |
| BAMS | 15.96 | 16.77 | 16.11 | 16.95 | 16.45 |
| hBehaveMAE | 33.82 | 37.08 | 8.29 | 46.30 | 31.37 |
| Progressive (ours, ablation) | 17.43 | 19.69 | 16.67 | 41.94 | 23.93 |
| Multiscale (ours, ablation) | 28.72 | 34.23 | 13.93 | 44.43 | 30.33 |
| MICE (ind+soc_cat) | 40.69 | 34.97 | 14.20 | 36.42 | 31.57 |
Table 8. Per-dataset unsupervised segmentation results (%, mean over 5 random seeds). The Avg. column is the average reported in Table 2.
Comparison with Keypoint-MoSeq. Keypoint-MoSeq (KPMS) [30] is a widely used unsupervised method that segments pose into behavioral “syllables”. We run it as the package intends for multi-animal data: each mouse is passed in as its own pose sequence with the same skeleton, and one model is fit over all of them, so KPMS learns a single syllable vocabulary and returns one syllable sequence per mouse. (Stacking the mice into one pose would place the body center between them, so the syllables would describe the pair’s configuration rather than either animal.) We use two protocols. In train-fit, one model is fit on all training recordings of a dataset and applied to each test recording, giving KPMS the same train/test separation as MICE. In per test recording, a separate model is fit on each test recording; this is the easier setting for KPMS, since nothing has to transfer. Scoring follows our segmentation protocol: syllables are pooled into the same windows by majority vote, each syllable is mapped to the label it most often coincides with, and we report ARI, NMI and Boundary-F1 on CalMS21, CRIM13 and AdaptableSnail. Because KPMS returns one sequence per animal while the labels describe the whole scene, we score every animal and report the best one per recording, the most generous reading for KPMS (Table 9). KPMS has no term that couples animals: it assigns syllables from one egocentrically aligned pose at a time, whereas most labels in these datasets (e.g., attack, mount, sniff, approach) involve two animals. MICE leads in all nine cells. Fitting KPMS on each test recording barely changes its ARI and NMI, so the gap is not due to transfer from training to test data; it is widest on CRIM13, the dataset with the most interaction-defined labels, where KPMS’s ARI and NMI are close to zero.
| Dataset | KPMS (train-fit) | KPMS (per test recording) | MICE |
| CalMS21 | 16.50 / 16.34 / 32.82 | 17.14 / 17.11 / 28.16 | 72.31 / 58.64 / 40.69 |
| CRIM13 | 0.75 / 0.91 / 0.27 | 0.74 / 1.45 / 1.95 | 58.59 / 49.45 / 34.97 |
| AdaptableSnail | 3.21 / 3.17 / 11.58 | 3.25 / 3.23 / 13.15 | 19.82 / 14.92 / 14.20 |
Table 9. Unsupervised segmentation: Keypoint-MoSeq (KPMS) vs. MICE (ind+soc_cat). Each cell gives ARI / NMI / Boundary-F1 (%).
Baseline Implementation Details
All baselines share the universal keypoint mapping (§ 3.1) and raw-keypoint inputs, and feed their frozen embeddings to the same probe described in Appendix § 12.
BAMS [3]. Dual-branch dilated Conv1d (short-term + long-term) trained per-mouse with HoA prediction over a velocity/shape feature target; mean-pooled across animals at inference. As in MICE’s individual encoder, BAMS receives only raw keypoints as input, and the engineered features are used only as HoA prediction targets. This matches MICE’s input and prevents the model from simply copying its targets from the input. Note that BAMS’s long-term branch looks back about 1,365 frames, far longer than our 64-frame clips, so most of its input here is padding; its results should not be taken as representative of that branch.
PointNet [19]. Shared per-animal MLP with global max-pooling across the animal dimension yielding a permutation-invariant frame embedding; pretrained with temporal contrastive learning (positives = adjacent frames, negatives = different sequences).
TBERT [25]. BERT-style transformer over flattened multi-animal keypoints (fixed animal ordering), pretrained with masked-frame modeling (40% frame masking, MSE reconstruction).
hBehaveMAE [22]. Hierarchical masked autoencoder built on Hiera with patching, two pooling stages ( temporal then animal-dimension pooling), three transformer stages (9 blocks total, embed dims 64/128/256), and multi-scale Conv3d fusion.
Progressive (ours, ablation). The same architecture as MICE’s individual encoder, but applied to all animals stacked into one multi-animal input with fixed padding, and with no social stage; the multi-animal input makes it larger than MICE’s per-animal individual encoder (Table 21). It isolates the contribution of per-animal encoding with a variable- social stage.
Multiscale (ours, ablation). A single-transformer variant with simultaneous multi-resolution HoA heads at intermediate layers and no widening attention windows, in contrast to Progressive’s staged hierarchy. It isolates MICE’s staged, widening-window design from a flat multi-resolution alternative.
Layer-wise Probing: Probe Locations
For the layer-wise probing analysis (§ 4.5), we probe MICE at 16 sequential depth points: 12 within the individual encoder and 4 within the social encoder. The mapping from probe index to architectural stage is:
| Idx | Component | Operation |
| 1–4 | Individual: Stage 1 | ALBERT layer iterations 1–4 (shared weights) |
| 5–8 | Individual: Stage 2 | ALBERT layer iterations 1–4 (shared weights) |
| 9–12 | Individual: Stage 3 | ALBERT layer iterations 1–4 (shared weights) |
| 13 | Social: Encode | After cross-attention with animals + LayerNorm |
| 14 | Social: Process 1 | After first latent self-attention layer |
| 15 | Social: Process 2 | After second latent self-attention layer |
| 16 | Social: Temporal | After temporal attention across time tokens |
Table 23.
To read out probe points 13–16, we pass the current latent state through the social encoder’s Decode cross-attention, including its residual connection (§ 3.3). Each social probe therefore gives the per-animal output the encoder would produce if it stopped at that point. The input projection is not probed separately.
Baselines are probed at architecturally analogous points: BAMS’s short and long branches are each probed at their successive layers and plotted as two separate curves; hBehaveMAE is probed at each of its hierarchical stage outputs (9 blocks across 3 stages); TBERT and PointNet are probed at all transformer/MLP layers respectively. To plot all methods on a common -axis, each method’s depth points are normalized to by total architectural depth.
Ablations: Tables and Per-Ablation Interpretation
This section contains two ablation studies: a variable- reorganization of the combined-regime linear-probe results, and an embedding-variant comparison on CalMS21.
Variable- Analysis
Table 10 reorganizes Table 1’s combined-regime results by per-dataset , with AdaptableSnail stratified by group size so each column reflects only recordings at that size. MICE wins every column; its lead over the baselines is negligible at , modest at , and substantial at and . The most informative comparison is hBehaveMAE’s reasonable performance on MABe22 versus its collapse on AdaptableSnail’s recordings: the same architecture that handles fixed fails when varies within recordings. The MICE-family ablations sharpen the picture: the Progressive-vs-MICE gap is largest at , where Progressive’s fixed padding leaves half the slots empty, and Multiscale performs comparably to Progressive overall. Because MICE’s individual readout alone (ind_cat) already outperforms both ablations in almost every column of Table 1, most of MICE’s advantage comes from encoding each animal separately, with the social stage adding a further gain.
Table 10. Macro-F1 (%) under combined pretraining, organized by per-dataset animal count.
Progressive details. Progressive has the same architecture as MICE’s individual encoder but takes all animals stacked into one input tensor with padding, and has no social stage. The Progressive-vs-MICE gap is largest at (18.1 points), where Progressive’s fixed padding wastes capacity on padded slots ( on a tensor), and about 6 points at and .
Multiscale details. Multiscale is a variant of the individual encoder that supervises several temporal resolutions at once, without a staged hierarchy. It performs comparably to Progressive on most columns. Since both ablations trail MICE’s individual readout alone in almost every column, the Table 10: Macro-F1 (%) under combined pretraining, organized by per-dataset animal count. Mean standard deviation over 5 random seeds. Datasets per column: : MouseLockbox; : CalMS21, CRIM13, NiftyGoldfinch; : MABe22 + AdaptableSnail-; : AdaptableSnail-. For MICE, uses ind_cat (social variants not applicable). Bold = best per column.
bulk of MICE’s advantage comes from encoding each animal separately rather than from the staged hierarchy, with the social stage adding a further gain.
Per-animal pooling baselines. BAMS and PointNet handle variable trivially via per-animal pooling but discard interaction structure entirely, reflected in scores that lag MICE by 10–25 points across .
Single-dataset pretraining by group size. Table 11 repeats this analysis with single-dataset pretraining, using the same grouping by . The benefit of combined pretraining grows with the number of animals and is negative only at , i.e., on MouseLockbox, where there is no social behavior for the other datasets to inform. Combined pretraining therefore helps most when the target involves the most social behavior.
| Single-dataset | Combined | ||
| 1 | 15.93 | 13.68 | |
| 2 | 52.99 | 54.28 | |
| 3 | 56.77 | 61.87 | |
| 4 | 20.38 | 28.50 |
Table 11. MICE macro-F1 (%) by animal count under single-dataset vs. combined pretraining, grouped as in Table 10.
Table 11: MICE macro-F1 (%) by animal count under single-dataset vs. combined pretraining, grouped as in Table 10. = combined single.
Foundation-model framing. The 10.7-point gap on the overall average between MICE (39.58) and the strongest baseline (hBehaveMAE, 28.92) suggests that the benefits of handling variable and of jointly modeling individual and social behavior add up across diverse datasets. This is exactly the setting a foundation model is meant for: serving multi-animal datasets with different group sizes from a single checkpoint without retraining.
Embedding Variant Analysis
Table 12 compares six embedding variants on CalMS21. Two patterns emerge. First, concatenation consistently beats mean-pooling, most of all for the individual channel, where averaging discards the temporal structure the hierarchical encoder is designed to capture. Second, combining the individual and social channels gives a small but consistent gain over either alone, indicating that they carry complementary information.
Embedding-variant details. The largest mean-vs-cat gap is on the individual channel (ind_mean: 57.79 vs. ind_cate: 81.22, a 23-point difference), where mean-pooling collapses the temporal structure most severely. The smaller gaps for the social and combined channels (12 and 11 points respectively) suggest that the social-stage representations are somewhat more robust to mean-pooling than the individual-stage representations, possibly because the social stage’s temporal attention already aggregates information over time before pooling. The lift from soc_cat (81.86) to ind+soc_cat (84.56) is 2.7 points; ind_cat alone is 81.22, so the ind+soc combination beats either channel alone but not by much. When embedding size is a constraint, soc_cat alone is a reasonable choice at a cost of 2.7 points.
Additional Analyses
These analyses complement § 4.6–§ 4.7.
Retraining the social stage with different partner information
Design. All runs start from the same frozen individual encoder. Because this encoder sees one animal at a time, it carries no partner information, and the individual readout (ind_cat) is the same in every run. The social stage is then retrained from scratch for 500 epochs under one of three conditions:
Correct partners: the default setting.
Mis-paired partners: each partner is replaced by the mouse in the same slot of another clip in the batch. Batches are grouped by animal count, so partners are real mice and only the pairing is wrong.
No partners: partner slots are set to zero.
Only the social encoder’s input is changed. All runs are compared at epoch 500. For each run, we train a fresh probe and test it under the same partner condition used in training, so no model sees unfamiliar input. With mis-paired partners, the pairwise loss remains meaningful, because its targets are computed from a real (if wrong) mouse. With no partners, these targets become trivial, so that run shows what happens without any partner information.
Direct animal-to-animal attention. To test what the latent codebook adds over the simplest alternative, we replace the Perceiver latents with direct attention between animals, keeping correct partners and everything else fixed (Table 13). Direct attention scores slightly lower than the Perceiver on all five datasets, by 0.7 to 1.8 points, so at these group sizes the latent codebook is at least as effective as the simplest alternative while also keeping cost independent of .
| Social stage | MABe22 | CalMS21 | CRIM13 | AdaptSnail | Goldfinch |
| Perceiver latents (MICE) | 69.26±0.34 | 84.56±0.31 | 46.38±0.55 | 26.76±0.78 | 31.90±0.72 |
| direct animal-to-animal attention | 68.13±0.42 | 83.85±0.40 | 45.11±0.57 | 24.98±0.85 | 30.92±0.81 |
Table 13. Perceiver latents vs. direct animal-to-animal attention in the social stage: macro-F1 (%, ind+soc_cat). Mean ± standard deviation over 5 random probe seeds. The Perceiver row is the combined-regime MICE result of Table 1. Bold = best per column.
Weighting the two individual-stage losses
Raising the reconstruction weight from 0.1 to 1 improves both datasets (CalMS21 76.46 to 81.22; CRIM13 36.01 to 44.71; Table 14), so we use equal weights. Removing the HoA loss () costs 10.7 F1 on CRIM13 and 2.4 on CalMS21.
Table 14: Individual-stage loss weights (macro-F1, %, individual-only readout). and weight the HoA and reconstruction losses; all models are pretrained on all six datasets, and the first row is the combined-regime ind_cat result of Table 1. Bold = best per column.
| CalMS21 | CRIM13 | ||
| 1 | 1.00 | 81.22 | 44.71 |
| 1 | 0.30 | 78.49 | 37.97 |
| 1 | 0.10 | 76.46 | 36.01 |
| 1 | 0.03 | 73.78 | 33.29 |
| 1 | 0.00 | 74.10 | 33.92 |
| 0 | 1.00 | 78.84 | 34.02 |
Table 14.
What the social stage encodes
These analyses use the model pretrained on all six datasets, evaluated on the CalMS21 test set.
Relative position. We fit linear models that predict simple measurements of the two mice from each frozen embedding (Table 15). The social embedding predicts how the mice are positioned relative to each other far better than the individual embedding, and is no better at describing the focal mouse alone.
Table 15: How well a linear model predicts each measurement from the individual vs. social embedding (; higher is better).
| Measurement | individual | social | difference |
| Distance between the mice | 0.358 | 0.975 | +0.617 |
| Relative body orientation | 0.145 | 0.644 | +0.499 |
| Approach speed | −0.221 | 0.018 | +0.239 |
| Partner speed | −0.059 | −0.032 | +0.027 |
| Focal mouse speed | 0.702 | 0.638 | −0.064 |
| Focal mouse body spread | 0.975 | 0.953 | −0.022 |
Table 15.
Per-latent lift analysis
We also examined whether individual latents respond selectively to particular behaviors.
Method. For every token in the test set, we record the latents produced by the social encoder’s Encode step, that is, after the latents have attended to the animals. For each latent, we rank all tokens by how strongly the latent is activated, take the top 100, and compute the class distribution among them. Dividing by the class prior gives a lift score, . A lift of 1 means the latent is active on that class no more often than chance; a lift of 10 means tokens where the latent is most active are ten times more likely to carry that label than a random token. No labels are used during pretraining; they are used only to read the latents afterwards.
Table 16: Most-enriched class per selected latent. Left: CalMS21 (priors: attack 4.97%, investigation 23.4%, mount 12.1%, other 59.5%). Right: CRIM13 (other prior 70.7% among the analyzed tokens).
| CalMS21 | CRIM13 | |||||||||
| Latent | Class | Lift | Latent | Class | Lift | |||||
| 3 | attack | 10.86 | 54% | 34% | 15 | disengage | 13.14 | 53% | 36% | |
| 12 | attack | 7.04 | 35% | 49% | 12 | rear | 9.85 | 18% | 70% | |
| 14 | mount | 3.05 | 37% | 24% | 9 | attack | 9.67 | 25% | 51% | |
| 4 | investigation | 1.75 | 41% | 59% | 1 | attack | 7.35 | 19% | 50% | |
| 7 | disengage | 6.69 | 27% | 56% | ||||||
| 0 | approach | 5.29 | 19% | 76% |
Table 16.
Results. On CalMS21, four of the sixteen latents are most enriched for attack, two of them strongly. Latent 3 is the clearest case: attack makes up 4.97% of tokens overall but 54% of the hundred tokens where latent 3 is most active. Eight latents are most enriched for other, at low lift (1.26–1.68). CRIM13 shows the same structure more sharply, with higher lift because its social classes are rarer: five latents are most enriched for attack and five for disengage, both interaction-defined classes. For CalMS21 latent 3 (attack, 54% vs. 34% other) and CRIM13 latent 15 (disengage, 53% vs. 36%), the named class is the outright majority of the top 100, and for CalMS21 latent 14 (mount, 37% vs. 24% other) it exceeds the background class.
Caveats. Lift cannot exceed , so a common class can never reach a high lift: on CRIM13, the maximum lift is 1.41 for other (prior 70.7%) but 38.5 for attack (prior 2.6%). A high lift also does not mean the class dominates: other is still the largest class in the top 100 for twelve of sixteen CRIM13 latents. These latents therefore respond selectively to their class relative to how common it is, rather than responding only to it.
Cross-dataset transfer for baselines
Table 3 shows how MICE transfers across datasets but gives no reference for whether that behavior is specific to MICE. Tables 17 and 18 repeat the same protocol for hBehaveMAE, the strongest baseline, and PointNet: each model is pretrained on one dataset (rows) and probed on every dataset (columns). Both baselines show the patterns we report for MICE. Within each column, pretraining on the target itself is the best single-dataset choice in 5 of 6 columns for hBehaveMAE and in all 6 for PointNet. Combined pretraining beats every single-dataset checkpoint on 5 of 6 targets for hBehaveMAE and 4 of 6 for PointNet, with MouseLockbox an exception for both. Pretraining on MouseLockbox gives the lowest off-diagonal score in 4 of the 5 multi-animal columns for hBehaveMAE and 2 of 5 for PointNet. Since these patterns appear across architectures that share only the data, they reflect the datasets rather than MICE.
Table 17: Cross-dataset transfer for hBehaveMAE: macro-F1 (%) when pretrained on the row dataset and probed on the column dataset. Mean ± standard deviation over 5 random seeds. Diagonal cells and the bottom row are hBehaveMAE’s single- and combined-regime results in Table 1.
| Probe | MABe22 | CalMS21 | CRIM13 | AdaptSnail | Goldfinch | Lockbox | |
| Pretrain | |||||||
| MABe22 | 42.72±0.62 | 69.03±0.49 | 35.22±0.72 | 8.53±0.64 | 20.36±0.77 | 12.48±0.56 | |
| CalMS21 | 35.57±0.74 | 76.05±0.42 | 36.75±0.78 | 8.11±0.65 | 18.80±0.75 | 13.67±0.50 | |
| CRIM13 | 32.93±0.68 | 72.30±0.44 | 38.30±0.68 | 9.49±0.70 | 19.20±0.68 | 12.91±0.51 | |
| AdaptSnail | 34.26±0.81 | 71.81±0.58 | 26.91±0.83 | 9.03±0.53 | 18.05±0.71 | 12.63±0.63 | |
| Goldfinch | 30.49±0.66 | 72.54±0.49 | 35.86±0.76 | 8.86±0.65 | 26.02±0.59 | 14.35±0.54 | |
| Lockbox | 27.04±0.73 | 64.33±0.51 | 27.85±0.80 | 7.73±0.72 | 12.07±0.69 | 14.58±0.44 | |
| Combined | 47.82±0.52 | 77.68±0.34 | 40.35±0.58 | 12.13±0.53 | 29.21±0.50 | 13.21±0.33 |
Table 17.
Table 18: Cross-dataset transfer for PointNet, in the same format as Table 17. Diagonal cells and the bottom row are PointNet’s single- and combined-regime results in Table 1.
| Probe | MABe22 | CalMS21 | CRIM13 | AdaptSnail | Goldfinch | Lockbox | |
| Pretrain | |||||||
| MABe22 | 36.54±0.71 | 58.36±0.63 | 18.51±0.76 | 7.59±0.55 | 20.74±0.63 | 12.90±0.52 | |
| CalMS21 | 30.25±0.75 | 62.24±0.54 | 17.93±0.64 | 7.20±0.46 | 19.10±0.68 | 12.70±0.49 | |
| CRIM13 | 32.83±0.68 | 56.13±0.67 | 21.48±0.65 | 6.72±0.57 | 19.52±0.55 | 13.64±0.50 | |
| AdaptSnail | 32.76±0.72 | 61.50±0.59 | 19.94±0.69 | 7.91±0.48 | 20.09±0.62 | 13.00±0.42 | |
| Goldfinch | 28.38±0.71 | 61.24±0.59 | 20.48±0.70 | 6.03±0.61 | 21.73±0.60 | 12.20±0.56 | |
| Lockbox | 26.59±0.80 | 61.18±0.65 | 18.93±0.72 | 7.37±0.53 | 17.06±0.62 | 13.73±0.42 | |
| Combined | 40.75±0.64 | 65.93±0.42 | 26.49±0.57 | 19.59±0.58 | 19.61±0.52 | 13.42±0.41 |
Table 18.
Comparison with a vanilla transformer
To test the individual encoder’s design as a whole, we replace it with a vanilla variant: a single stage of 12 layers with full attention in every layer and a single readout at matched width, trained with the same setup as MICE. This removes both the widening attention windows and the staged readout. Because only the individual encoder differs, we compare the individual readout (ind_cat), with MouseLockbox included (Table 19). MICE’s individual encoder outperforms the vanilla transformer on all six datasets, by 0.6 to 5.4 points, with the largest gaps on CRIM13 and NiftyGoldfinch, while also using fewer attention operations than full attention.
| Dataset | Vanilla transformer | MICE | Gap |
| MABe22 | +2.53 | ||
| CalMS21 | +1.06 | ||
| CRIM13 | +5.38 | ||
| AdaptableSnail | +1.36 | ||
| NiftyGoldfinch | +5.89 | ||
| MouseLockbox | +0.58 |
Table 19. MICE’s individual encoder vs. a vanilla transformer (single stage, full attention): macro-F1 (%, ind_cat) under combined pretraining. Mean ± standard deviation over 5 random seeds. MICE values are from Table 1. Gap = MICE − vanilla. Bold = best per row.
Supervised reference
As a reference point rather than a competitor, we take MICE’s individual encoder with an identical configuration, initialize it randomly without self-supervised pretraining, attach a classification head, and train both end-to-end with cross-entropy on each dataset’s behavior labels (Table 20). Unlike every method in Table 1, this model uses labels to train the encoder itself. Supervised training is ahead on every dataset, as expected for a model that sees labels during training. The gap is widest on AdaptableSnail, where MICE’s scores are weakest among the multi-animal datasets, and narrowest on CalMS21, where they are strongest.
| Dataset | Supervised (end-to-end) | MICE | Gap |
| MABe22 | +4.26 | ||
| CalMS21 | +2.58 | ||
| CRIM13 | +3.61 | ||
| AdaptableSnail | +7.94 | ||
| NiftyGoldfinch | +4.63 | ||
| MouseLockbox | +2.66 |
Table 20. Supervised end-to-end training of MICE’s individual encoder vs. self-supervised MICE (single-dataset regime, ind+soc_cat; ind_cat for MouseLockbox; Table 3 diagonal): macro-F1 (%). Mean ± standard deviation over 5 random seeds. Gap = supervised − MICE.
Model sizes
MICE is small mainly because layers within each stage share weights (ALBERT-style).
Training Hyperparameters
Architecture. Individual encoder: patch size , stride ; per-stage hidden dim ; three stages each with ALBERT-style layers and attention heads; concatenated output dim ; attention windows follow the linear schedule of § 3.2 from to . Social encoder: , learned latent codebook size , social transformer layers , attention heads . Pretraining heads: HoA bins for both individual and pairwise heads. Sequence length .
Span masking. Individual encoder: 25% of frames per sequence are masked in contiguous spans of length sampled uniformly from [4, 12] frames (zero-fill in input keypoint space). Social encoder (Masked Animal Modeling): 25% of temporal tokens per animal are masked in contiguous spans of length sampled uniformly from [2, 6] tokens, replaced by a learned mask token . Masking is applied only during training.
Loss weights. The individual objective (Eq. (3)) uses unit weights; equal weights worked best among those we tried (Appendix § 17.§ 2). The social objective also uses unit weights.
Optimization. Adam optimizer with learning rate , weight decay , batch size 256. Mixed-precision (fp16) training with gradient scaling. Pretraining: 500 individual-stage epochs followed by 500 social-stage epochs with the individual encoder frozen. Each individual-stage epoch uses a random 5% subsample of the pretraining corpus. Hardware: a single NVIDIA A40 GPU (48GB VRAM) per run; we ran many experiments in parallel rather than using multiple GPUs per run. The released code also includes a multi-GPU (DistributedDataParallel) training path.
Training and inference time. On one NVIDIA A40, an individual-stage epoch takes about 149 s and a social-stage epoch at most about 3.5 min, so the 500 + 500-epoch schedule takes about 21 h + 29 h. Table 22 reports inference time for a batch of 32 clips of 64 frames, averaged over 200 timed iterations after 20 warm-up iterations. The individual encoder’s cost does not depend on the number of animals, while the social stage adds about 1.6 ms per additional animal.
| Animals | Individual encoder (ms/batch) | Full model (ms/batch) | Social stage (ms/batch) | Full-model throughput (animal-sequences/s) |
| 1 | 7.07 | 12.49 | 5.43 | 2,562 |
| 2 | 7.13 | 14.12 | 6.98 | 4,534 |
| 3 | 7.12 | 15.72 | 8.60 | 6,109 |
| 4 | 7.19 | 17.39 | 10.20 | 7,360 |
Table 22. Inference time on one NVIDIA A40 (batch of 32 clips, 64 frames each).
Tuning. We did not tune architectural or training hyperparameters: the first configuration we tried was competitive, and we spent our compute on the method itself. Further tuning may improve results. How model size should grow with the amount of pretraining data is, in our view, the most important open question.
References
- [1]David J Anderson and Pietro Perona. Toward a science of computational ethology. Neuron, 84(1):18–31, 2014.DOI
- [2]Mehdi Azabou, Vinam Arora, Venkataramana Ganesh, Ximeng Mao, Santosh Nachimuthu, Michael Mendelson, Blake Richards, Matthew Perich, Guillaume Lajoie, and Eva Dyer. A unified, scalable framework for neural population decoding. Advances in Neural Information Processing Systems, 36:44937–44956, 2023a.
- [3]Mehdi Azabou, Michael Mendelson, Nauman Ahad, Maks Sorokin, Shantanu Thakoor, Carolina Urzay, and Eva Dyer. Relax, it doesn’t matter how you get there: A new self-supervised approach for multi-timescale behavior analysis. Advances in Neural Information Processing Systems, 36:28491–28509, 2023b.arxiv.org/abs/2303.08811
- [5]Sandeep Robert Datta, David J Anderson, Kristin Branson, Pietro Perona, and Andrew Leifer. Computational neuroethology: a call to action. Neuron, 104(1):11–24, 2019.DOI
- [6]Eyrun Eyjolfsdottir, Kristin Branson, Yisong Yue, and Pietro Perona. Learning recurrent representations for hierarchical behavior modeling. arXiv preprint arXiv:1611.00094, 2016.
- [7]Weizhe Hong, Ann Kennedy, Xavier P Burgos-Artizzu, Moriel Zelikowsky, Santiago G Navonne, Pietro Perona, and David J Anderson. Automated measurement of mouse social behaviors using depth sensing, video tracking, and machine learning. Proceedings of the National Academy of Sciences, 112(38):E5351–E5360, 2015.DOI
- [8]Andrew Jaegle, Felix Gimeno, Andy Brock, Oriol Vinyals, Andrew Zisserman, and João Carreira. Perceiver: General perception with iterative attention. In International Conference on Machine Learning, pages 4651–4664. PMLR, 2021.arxiv.org/abs/2103.03206
- [9]Mayank Kabra, Alice A Robie, Marta Rivera-Alba, Steven Branson, and Kristin Branson. JAABA: interactive machine learning for automatic annotation of animal behavior. Nature Methods, 10(1):64–67, 2013.DOI
- [10]Thomas Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, and Richard Zemel. Neural relational inference for interacting systems. In International Conference on Machine Learning, pages 2688–2697. PMLR, 2018.
- [11]Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. ALBERT: A lite BERT for self-supervised learning of language representations. In International Conference on Learning Representations, 2020.arxiv.org/abs/1909.11942
- [12]Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set Transformer: A framework for attention-based permutation-invariant neural networks. In International Conference on Machine Learning, pages 3744–3753. PMLR, 2019.arxiv.org/abs/1810.00825
- [13]Zeming Lin, Halil Akin, Roshan Rao, Brian Hie, Zhongkai Zhu, Wenting Lu, Nikita Smetanin, Robert Verkuijl, Ori Kabeli, Yaniv Shmueli, et al. Evolutionary-scale prediction of atomic-level protein structure with a language model. Science, 379(6637):1123–1130, 2023.DOI
- [14]Alexander Mathis, Pranav Mamidanna, Kevin M Cury, Taiga Abe, Venkatesh N Murthy, Mackenzie Weygandt Mathis, and Matthias Bethge. DeepLabCut: markerless pose estimation of user-defined body parts with deep learning. Nature Neuroscience, 21(9):1281–1289, 2018.DOI
- [15]Eric Nguyen, Michael Poli, Marjan Faizi, Armin Thomas, Michael Wornow, Callum Birch-Sykes, Stefano Massaroli, Aman Patel, Clayton Rabideau, Yoshua Bengio, et al. HyenaDNA: Long-range genomic sequence modeling at single nucleotide resolution. Advances in Neural Information Processing Systems, 36:43177–43201, 2023.
- [16]Simon RO Nilsson, Nastacia L Goodwin, Jia Jie Choong, Sophia Hwang, Hayden R Wright, Zane C Norville, Xiaoyu Tong, Davu Lin, Brandon B Bentzley, Neir Eshel, et al. Simple Behavioral Analysis (SimBA)—an open source toolkit for computer classification of complex social behaviors in experimental animals. bioRxiv, 2020.
- [17]Talmo D Pereira, Joshua W Shaewitz, and Mala Murthy. Quantifying behavior to understand the brain. Nature Neuroscience, 23(12):1537–1549, 2020.DOI
- [18]Talmo D Pereira, Nathaniel Tabris, Arie Matsliah, David M Turner, Junyu Li, Shruthi Ravindranath, Eleni S Papadopoulos, Edna Normand, David S Deutsch, Z Yan Wang, et al. SLEAP: A deep learning system for multi-animal pose tracking. Nature Methods, 19(4):486–495, 2022.DOI
- [19]Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. PointNet: Deep learning on point sets for 3D classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 652–660, 2017.arxiv.org/abs/1612.00593
- [20]Patrik Reiske, Marcus N. Boon, Niek Andresen, Sole Traverso, Katharina Hohlbaum, Lars Lewejohann, Christa Thöne-Reineke, Olaf Hellwich, and Henning Sprekeler. Mouse Lockbox Dataset: Behavior recognition for mice solving lockboxes. In CVPR Workshop on Computer Vision for Animal Behavior Tracking and Modeling (CV4Animals), 2025. arXiv:2505.15408.DOI
- [21]Cristina Segalin, Jalani Williams, Tomomi Karigo, May Hui, Moriel Zelikowsky, Jennifer J Sun, Pietro Perona, David J Anderson, and Ann Kennedy. The Mouse Action Recognition System (MARS) software pipeline for automated analysis of social behaviors in mice. eLife, 10:e63720, 2021.
- [22]Lucas Stoffl, Andy Bonnetto, Stéphane d’Ascoli, and Alexander Mathis. Elucidating the hierarchical nature of behavior with masked autoencoders. In European Conference on Computer Vision, pages 106–125. Springer, 2024.
- [23]Jennifer J Sun, Tomomi Karigo, Dipam Chakraborty, Sharada P Mohanty, Benjamin Wild, Quan Sun, Chen Chen, David J Anderson, Pietro Perona, Yisong Yue, et al. The multi-agent behavior dataset: Mouse dyadic social interactions. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1, 2021a.arxiv.org/abs/2104.02710
- [24]Jennifer J Sun, Ann Kennedy, Eric Zhan, David J Anderson, Yisong Yue, and Pietro Perona. Task programming: Learning data efficient behavior representations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2876–2885, 2021b.DOI
- [25]Jennifer J Sun, Markus Marks, Andrew Wesley Ulmer, Dipam Chakraborty, Brian Geuther, Edward Hayes, Heng Jia, Vivek Kumar, Sebastian Oleszko, Zachary Partridge, et al. MABe22: A multi-species multi-task benchmark for learned representations of behavior. In International Conference on Machine Learning, pages 32936–32990. PMLR, 2023.
- [26]Jennifer J Sun, Hao Zhou, Long Zhao, Liangzhe Yuan, Bryan Seybold, David Hendon, Florian Schroff, David A Ross, Hartwig Adam, Bo Hu, et al. Video foundation models for animal behavior analysis. bioRxiv, 2024.DOI
- [28]Yanchen Wang, Han Yu, Ari Blau, Yizi Zhang, Liam Paninski, Cole Lincoln Hurwitz, Matthew R Whiteway, et al. Animal behavioral analysis and neural encoding with transformer-based self-supervised pretraining. In The Fourteenth International Conference on Learning Representations, 2026.
- [29]Yule Wang, Chengrui Li, Weihan Li, and Anqi Wu. Exploring behavior-relevant and disentangled neural dynamics with generative diffusion models. In Advances in Neural Information Processing Systems, volume 37, 2024.
- [30]Caleb Weinreb, Jonah E Pearl, Sherry Lin, Mohammed Abdal Monium Osman, Libby Zhang, Sidharta Annapragada, Eli Conlin, Red Hoffmann, Sofia Makowska, Winthrop F Gillis, et al. Keypoint-MoSeq: parsing behavior by linking point tracking to pose dynamics. Nature Methods, 21(7):1329–1339, 2024.
- [31]Long Zhao, Nitesh B Gundavarapu, Liangzhe Yuan, Hao Zhou, Shen Yan, Jennifer J Sun, Luke Friedman, Rui Qian, Tobias Weyand, Yue Zhao, et al. VideoPrism: A foundational visual encoder for video understanding. arXiv preprint arXiv:2402.13217, 2024.



