Release BehaVERT checkpoints
Browse files- README.md +125 -0
- calms21-task1/config.json +110 -0
- calms21-task1/model.safetensors +3 -0
- mabe22-strain/config.json +188 -0
- mabe22-strain/model.safetensors +3 -0
- oft-behavior/config.json +234 -0
- oft-behavior/model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: behavert
|
| 4 |
+
tags:
|
| 5 |
+
- animal-behavior
|
| 6 |
+
- pose
|
| 7 |
+
- keypoints
|
| 8 |
+
- mouse
|
| 9 |
+
- behavior-classification
|
| 10 |
+
- attention
|
| 11 |
+
datasets:
|
| 12 |
+
- ShinSeungJ/behavert-data
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# BehaVERT models
|
| 16 |
+
|
| 17 |
+
Pretrained models for **BehaVERT**, a transformer that reads animal pose
|
| 18 |
+
keypoints as a sequence of tokens and decodes behavior from them
|
| 19 |
+
(Shin et al., *International Journal of Computer Vision* 2026,
|
| 20 |
+
[doi:10.1007/s11263-026-02834-y](https://doi.org/10.1007/s11263-026-02834-y)).
|
| 21 |
+
Code: <https://github.com/ShinSeungJ/BehaVERT>.
|
| 22 |
+
|
| 23 |
+
| Model | Predicts | Input | Head |
|
| 24 |
+
|---|---|---|---|
|
| 25 |
+
| [`calms21-task1/`](https://huggingface.co/ShinSeungJ/behavert/tree/main/calms21-task1) | attack / investigation / mount / other, every frame | 2 mice × 7 keypoints, 2D | token (per frame) |
|
| 26 |
+
| [`mabe22-strain/`](https://huggingface.co/ShinSeungJ/behavert/tree/main/mabe22-strain) | strain of a mouse triplet, WT / TG | 3 mice × 12 keypoints, 2D | sequence (`[CLS]`) |
|
| 27 |
+
| [`oft-behavior/`](https://huggingface.co/ShinSeungJ/behavert/tree/main/oft-behavior) | 7 open-field behaviors, every frame | 1 mouse × 11 keypoints, 2D | token (per frame) |
|
| 28 |
+
|
| 29 |
+
Each folder holds `config.json` (architecture, classes, keypoint layout,
|
| 30 |
+
drawing settings) and `model.safetensors` (about 86M parameters). The
|
| 31 |
+
matching pose models are in [ShinSeungJ/behavert-pose](https://huggingface.co/ShinSeungJ/behavert-pose).
|
| 32 |
+
|
| 33 |
+
## Use
|
| 34 |
+
|
| 35 |
+
```bash
|
| 36 |
+
pip install "behavert[pose] @ git+https://github.com/ShinSeungJ/BehaVERT"
|
| 37 |
+
|
| 38 |
+
behavert decode --video my_videos/ --model oft-behavior --overlay --sync # video -> behavior
|
| 39 |
+
behavert decode --keypoints session.csv --model calms21-task1 --video session.mp4 --sync
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
```python
|
| 43 |
+
from behavert import BehaVERT
|
| 44 |
+
from behavert.inference import predict_recording
|
| 45 |
+
|
| 46 |
+
model = BehaVERT.from_pretrained("calms21-task1") # downloads calms21-task1/ from this repo
|
| 47 |
+
pred = predict_recording(model, keypoints) # keypoints [T, mouse, keypoint, (x, y)]
|
| 48 |
+
pred.labels # one class per frame
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
`behavert decode` writes per-frame behaviors, a summary per behavior, a video
|
| 52 |
+
with the skeleton and behavior drawn on, and a synchronized panel video with
|
| 53 |
+
window embeddings (t-SNE), attention and confidence. `behavert attention` and
|
| 54 |
+
`behavert embed` analyse attention and embeddings over a whole dataset.
|
| 55 |
+
|
| 56 |
+
## `calms21-task1` — CalMS21 Task 1
|
| 57 |
+
|
| 58 |
+
Resident–intruder pairs; frame-level attack, investigation, mount or other.
|
| 59 |
+
Pretrained by masked keypoint modeling on all CalMS21 keypoints, then fine-tuned
|
| 60 |
+
on Task 1 ("BehaVERT (self-supervision)" in Table 1 of the paper).
|
| 61 |
+
|
| 62 |
+
- **Input:** 2 mice (resident, intruder) × 7 keypoints (nose, left ear, right
|
| 63 |
+
ear, neck, left hip, right hip, tail base) × (x, y) = 28 values per frame;
|
| 64 |
+
MARS pixel coordinates of a 1024 × 570 video.
|
| 65 |
+
- **Windows:** 128 frames at 30 fps, step 64, overlapping predictions averaged.
|
| 66 |
+
- **Test set** (19 sessions, 211,325 scored frames; "other" frames not scored):
|
| 67 |
+
|
| 68 |
+
| attack | investigation | mount | macro F1 |
|
| 69 |
+
|---|---|---|---|
|
| 70 |
+
| 0.794 | 0.889 | 0.930 | 0.871 |
|
| 71 |
+
|
| 72 |
+
## `mabe22-strain` — MABe22 strain
|
| 73 |
+
|
| 74 |
+
Mouse triplets; the strain (WT or TG) of 64-frame windows, combined into one
|
| 75 |
+
prediction per video. The strain model of Table 4 and the model analysed in
|
| 76 |
+
Fig. 8 (attention) of the paper.
|
| 77 |
+
|
| 78 |
+
- **Input:** 3 mice × 12 keypoints (nose, left ear, right ear, neck, left
|
| 79 |
+
forepaw, right forepaw, center back, left hindpaw, right hindpaw, tail base,
|
| 80 |
+
tail middle, tail tip) × (x, y) = 72 values per frame; MABe22 pixel
|
| 81 |
+
coordinates as distributed, missing keypoints 0.
|
| 82 |
+
- **Windows:** 64 frames at 30 fps, step 32; a video's label comes from its
|
| 83 |
+
averaged window probabilities.
|
| 84 |
+
- **Test set** (1,121 videos; video-level split 60/20/20, seed 42):
|
| 85 |
+
|
| 86 |
+
| | WT F1 | TG F1 | macro F1 |
|
| 87 |
+
|---|---|---|---|
|
| 88 |
+
| video level | 0.867 | 0.771 | 0.819 |
|
| 89 |
+
| window level | 0.809 | 0.696 | 0.753 |
|
| 90 |
+
|
| 91 |
+
## `oft-behavior` — open-field behavior
|
| 92 |
+
|
| 93 |
+
Single mouse, top-view open-field test; frame-level **supported rearing**,
|
| 94 |
+
**unsupported rearing**, **grooming**, **freezing**, **jumping**, **backwards
|
| 95 |
+
walking** or **others**. Reads the keypoints of the `oft-pose` model, so
|
| 96 |
+
`behavert decode --video … --model oft-behavior` goes from video to behavior in one step.
|
| 97 |
+
|
| 98 |
+
- **Input:** 1 mouse × 11 keypoints (nose, left ear, right ear, left forelimb,
|
| 99 |
+
right forelimb, tail base, left hindlimb, right hindlimb, tail middle, tail
|
| 100 |
+
tip, body center) × (x, y) = 22 values per frame, normalized to [0, 1] by
|
| 101 |
+
frame width and height; frames without a detection are linearly interpolated.
|
| 102 |
+
These are `oft-pose` keypoints 0, 1, 2, 4–11 (its thoracic center is not used).
|
| 103 |
+
- **Windows:** 64 frames at 30 fps, step 32, overlapping predictions averaged.
|
| 104 |
+
- **Training data:** top-view open-field recordings of single mice with
|
| 105 |
+
frame-level behavior annotations made in our lab. Results depend on a similar
|
| 106 |
+
setup (camera above a square open field, one mouse); check predictions on a
|
| 107 |
+
few of your own videos before relying on them.
|
| 108 |
+
|
| 109 |
+
## Citation
|
| 110 |
+
|
| 111 |
+
```bibtex
|
| 112 |
+
@article{shin2026behavert,
|
| 113 |
+
title = {BehaVERT: A Transformer-Based Motion Language Model for Decoding Behavioral Semantics in Mice},
|
| 114 |
+
author = {Shin, Seung Jae and Lee, Junesu and Ko, Chang and Kim, Daesoo},
|
| 115 |
+
journal = {International Journal of Computer Vision},
|
| 116 |
+
volume = {134},
|
| 117 |
+
pages = {303},
|
| 118 |
+
year = {2026},
|
| 119 |
+
doi = {10.1007/s11263-026-02834-y}
|
| 120 |
+
}
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
`calms21-task1` was trained on CalMS21 (Sun et al., NeurIPS 2021 Datasets and
|
| 124 |
+
Benchmarks) and `mabe22-strain` on MABe22 (Sun et al., ICML 2023); please cite
|
| 125 |
+
those datasets as well when you use the models.
|
calms21-task1/config.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input_dim": 28,
|
| 3 |
+
"num_classes": 4,
|
| 4 |
+
"mode": "token",
|
| 5 |
+
"max_seq_length": 128,
|
| 6 |
+
"hidden_size": 768,
|
| 7 |
+
"num_layers": 12,
|
| 8 |
+
"num_heads": 12,
|
| 9 |
+
"intermediate_size": 3072,
|
| 10 |
+
"positional_encoding": "sinusoidal",
|
| 11 |
+
"embedding_dropout": 0.0,
|
| 12 |
+
"classifier_dropout": 0.1,
|
| 13 |
+
"max_position_embeddings": 512,
|
| 14 |
+
"label_names": [
|
| 15 |
+
"attack",
|
| 16 |
+
"investigation",
|
| 17 |
+
"mount",
|
| 18 |
+
"other"
|
| 19 |
+
],
|
| 20 |
+
"keypoints": {
|
| 21 |
+
"dataset": "CalMS21 (Sun et al., 2021)",
|
| 22 |
+
"num_animals": 2,
|
| 23 |
+
"animal_names": [
|
| 24 |
+
"resident",
|
| 25 |
+
"intruder"
|
| 26 |
+
],
|
| 27 |
+
"names": [
|
| 28 |
+
"nose",
|
| 29 |
+
"left_ear",
|
| 30 |
+
"right_ear",
|
| 31 |
+
"neck",
|
| 32 |
+
"left_hip",
|
| 33 |
+
"right_hip",
|
| 34 |
+
"tail_base"
|
| 35 |
+
],
|
| 36 |
+
"edges": [
|
| 37 |
+
[
|
| 38 |
+
0,
|
| 39 |
+
1
|
| 40 |
+
],
|
| 41 |
+
[
|
| 42 |
+
0,
|
| 43 |
+
2
|
| 44 |
+
],
|
| 45 |
+
[
|
| 46 |
+
1,
|
| 47 |
+
3
|
| 48 |
+
],
|
| 49 |
+
[
|
| 50 |
+
2,
|
| 51 |
+
3
|
| 52 |
+
],
|
| 53 |
+
[
|
| 54 |
+
3,
|
| 55 |
+
4
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
3,
|
| 59 |
+
5
|
| 60 |
+
],
|
| 61 |
+
[
|
| 62 |
+
4,
|
| 63 |
+
6
|
| 64 |
+
],
|
| 65 |
+
[
|
| 66 |
+
5,
|
| 67 |
+
6
|
| 68 |
+
]
|
| 69 |
+
],
|
| 70 |
+
"dims": 2,
|
| 71 |
+
"units": "pixels",
|
| 72 |
+
"frame_size": [
|
| 73 |
+
1024,
|
| 74 |
+
570
|
| 75 |
+
],
|
| 76 |
+
"fps": 30
|
| 77 |
+
},
|
| 78 |
+
"preprocessing": {
|
| 79 |
+
"coordinates": "raw MARS pixel coordinates (1024x570 frame), no normalization",
|
| 80 |
+
"window": 128,
|
| 81 |
+
"stride": 64,
|
| 82 |
+
"ignored_label_for_metrics": "other"
|
| 83 |
+
},
|
| 84 |
+
"description": "BehaVERT token model for CalMS21 Task 1 (attack / investigation / mount / other), masked-keypoint-modeling pretraining then supervised fine-tuning; 'BehaVERT (self-supervision)' row of Table 1.",
|
| 85 |
+
"label_colors": [
|
| 86 |
+
"#E74C3C",
|
| 87 |
+
"#F1C40F",
|
| 88 |
+
"#3498DB",
|
| 89 |
+
"#BDC3C7"
|
| 90 |
+
],
|
| 91 |
+
"display": {
|
| 92 |
+
"title": "CalMS21",
|
| 93 |
+
"skeleton_title": "Skeleton",
|
| 94 |
+
"embedding_title": "Sequence embedding (t-SNE)",
|
| 95 |
+
"attention_label": "attention value",
|
| 96 |
+
"confidence_label": "confidence",
|
| 97 |
+
"truth_title": "GT behav",
|
| 98 |
+
"prediction_title": "Pred",
|
| 99 |
+
"label_overlay": "top",
|
| 100 |
+
"label_legend": true,
|
| 101 |
+
"animal_colors": [
|
| 102 |
+
"#FF5733",
|
| 103 |
+
"#2E86C1"
|
| 104 |
+
],
|
| 105 |
+
"embedding": {
|
| 106 |
+
"perplexity_min": 2,
|
| 107 |
+
"max_iter": 400
|
| 108 |
+
}
|
| 109 |
+
}
|
| 110 |
+
}
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input_dim": 72,
|
| 3 |
+
"num_classes": 2,
|
| 4 |
+
"mode": "sequence",
|
| 5 |
+
"max_seq_length": 64,
|
| 6 |
+
"hidden_size": 768,
|
| 7 |
+
"num_layers": 12,
|
| 8 |
+
"num_heads": 12,
|
| 9 |
+
"intermediate_size": 3072,
|
| 10 |
+
"positional_encoding": "learned",
|
| 11 |
+
"embedding_dropout": 0.1,
|
| 12 |
+
"classifier_dropout": 0.1,
|
| 13 |
+
"max_position_embeddings": 512,
|
| 14 |
+
"label_names": [
|
| 15 |
+
"WT",
|
| 16 |
+
"TG"
|
| 17 |
+
],
|
| 18 |
+
"keypoints": {
|
| 19 |
+
"dataset": "MABe22 mouse triplets (Sun et al., 2023)",
|
| 20 |
+
"num_animals": 3,
|
| 21 |
+
"names": [
|
| 22 |
+
"nose",
|
| 23 |
+
"left_ear",
|
| 24 |
+
"right_ear",
|
| 25 |
+
"neck",
|
| 26 |
+
"left_forepaw",
|
| 27 |
+
"right_forepaw",
|
| 28 |
+
"center_back",
|
| 29 |
+
"left_hindpaw",
|
| 30 |
+
"right_hindpaw",
|
| 31 |
+
"tail_base",
|
| 32 |
+
"tail_middle",
|
| 33 |
+
"tail_tip"
|
| 34 |
+
],
|
| 35 |
+
"edges": [
|
| 36 |
+
[
|
| 37 |
+
0,
|
| 38 |
+
1
|
| 39 |
+
],
|
| 40 |
+
[
|
| 41 |
+
0,
|
| 42 |
+
2
|
| 43 |
+
],
|
| 44 |
+
[
|
| 45 |
+
1,
|
| 46 |
+
3
|
| 47 |
+
],
|
| 48 |
+
[
|
| 49 |
+
2,
|
| 50 |
+
3
|
| 51 |
+
],
|
| 52 |
+
[
|
| 53 |
+
3,
|
| 54 |
+
6
|
| 55 |
+
],
|
| 56 |
+
[
|
| 57 |
+
3,
|
| 58 |
+
4
|
| 59 |
+
],
|
| 60 |
+
[
|
| 61 |
+
3,
|
| 62 |
+
5
|
| 63 |
+
],
|
| 64 |
+
[
|
| 65 |
+
6,
|
| 66 |
+
7
|
| 67 |
+
],
|
| 68 |
+
[
|
| 69 |
+
6,
|
| 70 |
+
8
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
6,
|
| 74 |
+
9
|
| 75 |
+
],
|
| 76 |
+
[
|
| 77 |
+
9,
|
| 78 |
+
10
|
| 79 |
+
],
|
| 80 |
+
[
|
| 81 |
+
10,
|
| 82 |
+
11
|
| 83 |
+
]
|
| 84 |
+
],
|
| 85 |
+
"dims": 2,
|
| 86 |
+
"units": "pixels",
|
| 87 |
+
"frame_size": [
|
| 88 |
+
800,
|
| 89 |
+
800
|
| 90 |
+
],
|
| 91 |
+
"fps": 30,
|
| 92 |
+
"video_mapping": {
|
| 93 |
+
"swap_xy": true,
|
| 94 |
+
"scale": 0.44,
|
| 95 |
+
"reference_width": 224
|
| 96 |
+
}
|
| 97 |
+
},
|
| 98 |
+
"preprocessing": {
|
| 99 |
+
"coordinates": "raw pixel coordinates as distributed, missing keypoints = 0, no normalization",
|
| 100 |
+
"window": 64,
|
| 101 |
+
"stride": 32,
|
| 102 |
+
"video_level_prediction": "average of (p1 - p0) over windows, TG if >= 0"
|
| 103 |
+
},
|
| 104 |
+
"description": "BehaVERT [CLS] sequence model for MABe22 binary strain classification (Table 4, Strain column); the model analysed in Fig. 8.",
|
| 105 |
+
"label_colors": [
|
| 106 |
+
"#6FA8DC",
|
| 107 |
+
"#E5847A"
|
| 108 |
+
],
|
| 109 |
+
"display": {
|
| 110 |
+
"title": "MaBe22 strain",
|
| 111 |
+
"title_shows_truth": true,
|
| 112 |
+
"skeleton_title": "3-mouse skeleton",
|
| 113 |
+
"embedding_title": "CLS embedding (t-SNE)",
|
| 114 |
+
"attention_label": "attention value",
|
| 115 |
+
"confidence_label": "confidence",
|
| 116 |
+
"truth_title": "GT strain",
|
| 117 |
+
"prediction_title": "Pred strain",
|
| 118 |
+
"label_overlay": "bottom",
|
| 119 |
+
"label_legend": false,
|
| 120 |
+
"animal_colors": [
|
| 121 |
+
"#FF5733",
|
| 122 |
+
"#27AE60",
|
| 123 |
+
"#2E86C1"
|
| 124 |
+
],
|
| 125 |
+
"probability_colormap": [
|
| 126 |
+
"#6FA8DC",
|
| 127 |
+
"#F2E5E2",
|
| 128 |
+
"#E5847A"
|
| 129 |
+
],
|
| 130 |
+
"embedding": {
|
| 131 |
+
"reference_recordings": 200,
|
| 132 |
+
"perplexity_min": 5,
|
| 133 |
+
"max_iter": 600,
|
| 134 |
+
"reference_alpha": 0.75,
|
| 135 |
+
"alpha_min": 0.7
|
| 136 |
+
},
|
| 137 |
+
"extra_strip": {
|
| 138 |
+
"title": "Behavior",
|
| 139 |
+
"none": [
|
| 140 |
+
"none",
|
| 141 |
+
"#ECECEC"
|
| 142 |
+
],
|
| 143 |
+
"legend": true,
|
| 144 |
+
"labels": [
|
| 145 |
+
[
|
| 146 |
+
"oral-oral",
|
| 147 |
+
"#8B0000",
|
| 148 |
+
"mabe22/task/behavior/contact/oral_oral_contact/mabe22_oral_oral_contact.pt"
|
| 149 |
+
],
|
| 150 |
+
[
|
| 151 |
+
"oral-genital",
|
| 152 |
+
"#D62728",
|
| 153 |
+
"mabe22/task/behavior/contact/oral_genital_contact/mabe22_oral_genital_contact.pt"
|
| 154 |
+
],
|
| 155 |
+
[
|
| 156 |
+
"oral-ear",
|
| 157 |
+
"#E377C2",
|
| 158 |
+
"mabe22/task/behavior/contact/oral_ear_contact/mabe22_oral_ear_contact.pt"
|
| 159 |
+
],
|
| 160 |
+
[
|
| 161 |
+
"chase",
|
| 162 |
+
"#FF7F0E",
|
| 163 |
+
"mabe22/task/behavior/movement/chase/mabe22_chase.pt"
|
| 164 |
+
],
|
| 165 |
+
[
|
| 166 |
+
"approach",
|
| 167 |
+
"#FFB347",
|
| 168 |
+
"mabe22/task/behavior/movement/approach/mabe22_approach.pt"
|
| 169 |
+
],
|
| 170 |
+
[
|
| 171 |
+
"huddles",
|
| 172 |
+
"#2CA02C",
|
| 173 |
+
"mabe22/task/behavior/contact/huddles/mabe22_huddles.pt"
|
| 174 |
+
],
|
| 175 |
+
[
|
| 176 |
+
"watching",
|
| 177 |
+
"#17BECF",
|
| 178 |
+
"mabe22/task/behavior/watching/mabe22_watching.pt"
|
| 179 |
+
],
|
| 180 |
+
[
|
| 181 |
+
"close",
|
| 182 |
+
"#9467BD",
|
| 183 |
+
"mabe22/task/behavior/contact/close/mabe22_close.pt"
|
| 184 |
+
]
|
| 185 |
+
]
|
| 186 |
+
}
|
| 187 |
+
}
|
| 188 |
+
}
|
mabe22-strain/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:282ae475093d324326f4cab036b4e9ec672d120a456d98751490cfe903b3f18a
|
| 3 |
+
size 344625360
|
oft-behavior/config.json
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input_dim": 22,
|
| 3 |
+
"num_classes": 7,
|
| 4 |
+
"mode": "token",
|
| 5 |
+
"max_seq_length": 64,
|
| 6 |
+
"hidden_size": 768,
|
| 7 |
+
"num_layers": 12,
|
| 8 |
+
"num_heads": 12,
|
| 9 |
+
"intermediate_size": 3072,
|
| 10 |
+
"positional_encoding": "sinusoidal",
|
| 11 |
+
"embedding_dropout": 0.0,
|
| 12 |
+
"classifier_dropout": 0.1,
|
| 13 |
+
"head_hidden": 0,
|
| 14 |
+
"problem": "classification",
|
| 15 |
+
"max_position_embeddings": 512,
|
| 16 |
+
"label_names": [
|
| 17 |
+
"supported_rearing",
|
| 18 |
+
"unsupported_rearing",
|
| 19 |
+
"grooming",
|
| 20 |
+
"freezing",
|
| 21 |
+
"jumping",
|
| 22 |
+
"backwards_walking",
|
| 23 |
+
"others"
|
| 24 |
+
],
|
| 25 |
+
"keypoints": {
|
| 26 |
+
"dataset": "open-field test (OFT), single mouse, top view",
|
| 27 |
+
"num_animals": 1,
|
| 28 |
+
"names": [
|
| 29 |
+
"nose",
|
| 30 |
+
"left_ear",
|
| 31 |
+
"right_ear",
|
| 32 |
+
"left_forelimb",
|
| 33 |
+
"right_forelimb",
|
| 34 |
+
"tail_base",
|
| 35 |
+
"left_hindlimb",
|
| 36 |
+
"right_hindlimb",
|
| 37 |
+
"tail_middle",
|
| 38 |
+
"tail_tip",
|
| 39 |
+
"body_center"
|
| 40 |
+
],
|
| 41 |
+
"edges": [
|
| 42 |
+
[
|
| 43 |
+
0,
|
| 44 |
+
1
|
| 45 |
+
],
|
| 46 |
+
[
|
| 47 |
+
0,
|
| 48 |
+
2
|
| 49 |
+
],
|
| 50 |
+
[
|
| 51 |
+
1,
|
| 52 |
+
10
|
| 53 |
+
],
|
| 54 |
+
[
|
| 55 |
+
2,
|
| 56 |
+
10
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
10,
|
| 60 |
+
3
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
10,
|
| 64 |
+
4
|
| 65 |
+
],
|
| 66 |
+
[
|
| 67 |
+
10,
|
| 68 |
+
5
|
| 69 |
+
],
|
| 70 |
+
[
|
| 71 |
+
5,
|
| 72 |
+
6
|
| 73 |
+
],
|
| 74 |
+
[
|
| 75 |
+
5,
|
| 76 |
+
7
|
| 77 |
+
],
|
| 78 |
+
[
|
| 79 |
+
5,
|
| 80 |
+
8
|
| 81 |
+
],
|
| 82 |
+
[
|
| 83 |
+
8,
|
| 84 |
+
9
|
| 85 |
+
]
|
| 86 |
+
],
|
| 87 |
+
"dims": 2,
|
| 88 |
+
"units": "normalized",
|
| 89 |
+
"fps": 30,
|
| 90 |
+
"pose_model": "oft-pose",
|
| 91 |
+
"pose_indices": [
|
| 92 |
+
0,
|
| 93 |
+
1,
|
| 94 |
+
2,
|
| 95 |
+
4,
|
| 96 |
+
5,
|
| 97 |
+
6,
|
| 98 |
+
7,
|
| 99 |
+
8,
|
| 100 |
+
9,
|
| 101 |
+
10,
|
| 102 |
+
11
|
| 103 |
+
]
|
| 104 |
+
},
|
| 105 |
+
"preprocessing": {
|
| 106 |
+
"coordinates": "x / frame width, y / frame height; frames without a detection are linearly interpolated",
|
| 107 |
+
"window": 64,
|
| 108 |
+
"stride": 32
|
| 109 |
+
},
|
| 110 |
+
"description": "BehaVERT token model for seven open-field behaviors of a single mouse.",
|
| 111 |
+
"display": {
|
| 112 |
+
"title": "OFT",
|
| 113 |
+
"skeleton_title": "Skeleton",
|
| 114 |
+
"embedding_title": "Sequence embedding (t-SNE)",
|
| 115 |
+
"attention_label": "attention value",
|
| 116 |
+
"confidence_label": "confidence",
|
| 117 |
+
"truth_title": "GT behav",
|
| 118 |
+
"prediction_title": "Pred",
|
| 119 |
+
"label_overlay": "top",
|
| 120 |
+
"label_legend": true,
|
| 121 |
+
"animal_colors": [
|
| 122 |
+
"#FF5733"
|
| 123 |
+
],
|
| 124 |
+
"embedding": {
|
| 125 |
+
"perplexity_min": 2,
|
| 126 |
+
"max_iter": 400
|
| 127 |
+
},
|
| 128 |
+
"overlay": {
|
| 129 |
+
"edge_colors_bgr": [
|
| 130 |
+
[
|
| 131 |
+
38,
|
| 132 |
+
32,
|
| 133 |
+
193
|
| 134 |
+
],
|
| 135 |
+
[
|
| 136 |
+
38,
|
| 137 |
+
77,
|
| 138 |
+
229
|
| 139 |
+
],
|
| 140 |
+
[
|
| 141 |
+
35,
|
| 142 |
+
142,
|
| 143 |
+
247
|
| 144 |
+
],
|
| 145 |
+
[
|
| 146 |
+
21,
|
| 147 |
+
192,
|
| 148 |
+
254
|
| 149 |
+
],
|
| 150 |
+
[
|
| 151 |
+
110,
|
| 152 |
+
37,
|
| 153 |
+
109
|
| 154 |
+
],
|
| 155 |
+
[
|
| 156 |
+
160,
|
| 157 |
+
37,
|
| 158 |
+
209
|
| 159 |
+
],
|
| 160 |
+
[
|
| 161 |
+
68,
|
| 162 |
+
174,
|
| 163 |
+
97
|
| 164 |
+
],
|
| 165 |
+
[
|
| 166 |
+
176,
|
| 167 |
+
141,
|
| 168 |
+
13
|
| 169 |
+
],
|
| 170 |
+
[
|
| 171 |
+
97,
|
| 172 |
+
97,
|
| 173 |
+
255
|
| 174 |
+
],
|
| 175 |
+
[
|
| 176 |
+
176,
|
| 177 |
+
97,
|
| 178 |
+
13
|
| 179 |
+
],
|
| 180 |
+
[
|
| 181 |
+
120,
|
| 182 |
+
120,
|
| 183 |
+
120
|
| 184 |
+
]
|
| 185 |
+
],
|
| 186 |
+
"label_colors_bgr": [
|
| 187 |
+
[
|
| 188 |
+
0,
|
| 189 |
+
0,
|
| 190 |
+
255
|
| 191 |
+
],
|
| 192 |
+
[
|
| 193 |
+
0,
|
| 194 |
+
165,
|
| 195 |
+
255
|
| 196 |
+
],
|
| 197 |
+
[
|
| 198 |
+
0,
|
| 199 |
+
255,
|
| 200 |
+
255
|
| 201 |
+
],
|
| 202 |
+
[
|
| 203 |
+
0,
|
| 204 |
+
255,
|
| 205 |
+
0
|
| 206 |
+
],
|
| 207 |
+
[
|
| 208 |
+
255,
|
| 209 |
+
0,
|
| 210 |
+
0
|
| 211 |
+
],
|
| 212 |
+
[
|
| 213 |
+
255,
|
| 214 |
+
0,
|
| 215 |
+
255
|
| 216 |
+
],
|
| 217 |
+
[
|
| 218 |
+
200,
|
| 219 |
+
200,
|
| 220 |
+
200
|
| 221 |
+
]
|
| 222 |
+
],
|
| 223 |
+
"line_thickness": 2,
|
| 224 |
+
"point_radius": 3,
|
| 225 |
+
"point_color_bgr": [
|
| 226 |
+
0,
|
| 227 |
+
0,
|
| 228 |
+
0
|
| 229 |
+
],
|
| 230 |
+
"font_scale": 1.0,
|
| 231 |
+
"show_confidence": false
|
| 232 |
+
}
|
| 233 |
+
}
|
| 234 |
+
}
|
oft-behavior/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:221c57f1292a085887de9069c5713d1c0f89bcfde5cec6b3223d4534f137cabf
|
| 3 |
+
size 341921652
|