Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 7 new columns ({'approach', 'whiterearing', 'groom', 'disengaged', 'intromission', 'mount_attempt', 'sniff_face'}) and 1 missing columns ({'annotator-id_0'}).

This happened while the json dataset builder was generating data using

hf://datasets/ShinSeungJ/behavert-data/calms21/task3_new_behaviors/calms21_task3_train.json (at revision f078a771fbc2cfb490f016896587298edd8610f7), ['hf://datasets/ShinSeungJ/behavert-data@f078a771fbc2cfb490f016896587298edd8610f7/calms21/task1/calms21_task1_train.json', 'hf://datasets/ShinSeungJ/behavert-data@f078a771fbc2cfb490f016896587298edd8610f7/calms21/task3_new_behaviors/calms21_task3_train.json'], ['hf://datasets/ShinSeungJ/behavert-data@f078a771fbc2cfb490f016896587298edd8610f7/calms21/task1/calms21_task1_train.json', 'hf://datasets/ShinSeungJ/behavert-data@f078a771fbc2cfb490f016896587298edd8610f7/calms21/task3_new_behaviors/calms21_task3_train.json']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              approach: struct<annotations: list<item: int64>, keypoints: list<item: list<item: list<item: list<item: double (... 142 chars omitted)
                child 0, annotations: list<item: int64>
                    child 0, item: int64
                child 1, keypoints: list<item: list<item: list<item: list<item: double>>>>
                    child 0, item: list<item: list<item: list<item: double>>>
                        child 0, item: list<item: list<item: double>>
                            child 0, item: list<item: double>
                                child 0, item: double
                child 2, metadata: struct<annotator-id: int64, vocab: struct<approach: int64, other: int64>>
                    child 0, annotator-id: int64
                    child 1, vocab: struct<approach: int64, other: int64>
                        child 0, approach: int64
                        child 1, other: int64
                child 3, scores: list<item: list<item: list<item: double>>>
                    child 0, item: list<item: list<item: double>>
                        child 0, item: list<item: double>
                            child 0, item: double
              disengaged: struct<annotations: list<item: int64>, keypoints: list<item: list<item: list<item: list<item: double (... 144 chars omitted)
                child 0, annotations: list<item: int64>
                    child 0, item: int64
                child 1, keypoints: list<item: list<item: list<item: list<item: double>>>>
                    child 0, item: list<item: list<item: list<item: double>>>
                        child 0, item: list<item: list<item: double>>
                            child 0, item: list<item: double>
                                child 0, item: double
                child 2, metadata: struct<annotator-id: int64, vocab: struct<diseng
              ...
              data: struct<annotator-id: int64, vocab: struct<other: int64, sniff_face: int64>>
                    child 0, annotator-id: int64
                    child 1, vocab: struct<other: int64, sniff_face: int64>
                        child 0, other: int64
                        child 1, sniff_face: int64
                child 3, scores: list<item: list<item: list<item: double>>>
                    child 0, item: list<item: list<item: double>>
                        child 0, item: list<item: double>
                            child 0, item: double
              whiterearing: struct<annotations: list<item: int64>, keypoints: list<item: list<item: list<item: list<item: double (... 146 chars omitted)
                child 0, annotations: list<item: int64>
                    child 0, item: int64
                child 1, keypoints: list<item: list<item: list<item: list<item: double>>>>
                    child 0, item: list<item: list<item: list<item: double>>>
                        child 0, item: list<item: list<item: double>>
                            child 0, item: list<item: double>
                                child 0, item: double
                child 2, metadata: struct<annotator-id: int64, vocab: struct<other: int64, whiterearing: int64>>
                    child 0, annotator-id: int64
                    child 1, vocab: struct<other: int64, whiterearing: int64>
                        child 0, other: int64
                        child 1, whiterearing: int64
                child 3, scores: list<item: list<item: list<item: double>>>
                    child 0, item: list<item: list<item: double>>
                        child 0, item: list<item: double>
                            child 0, item: double
              -- schema metadata --
              pandas: '{"index_columns": [], "column_indexes": [], "columns": [{"name":' + 926
              to
              {'annotator-id_0': {'annotations': List(Value('int64')), 'keypoints': List(List(List(List(Value('float64'))))), 'metadata': {'annotator-id': Value('int64'), 'vocab': {'attack': Value('int64'), 'investigation': Value('int64'), 'mount': Value('int64'), 'other': Value('int64')}}, 'scores': List(List(List(Value('float64'))))}}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 7 new columns ({'approach', 'whiterearing', 'groom', 'disengaged', 'intromission', 'mount_attempt', 'sniff_face'}) and 1 missing columns ({'annotator-id_0'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/ShinSeungJ/behavert-data/calms21/task3_new_behaviors/calms21_task3_train.json (at revision f078a771fbc2cfb490f016896587298edd8610f7), ['hf://datasets/ShinSeungJ/behavert-data@f078a771fbc2cfb490f016896587298edd8610f7/calms21/task1/calms21_task1_train.json', 'hf://datasets/ShinSeungJ/behavert-data@f078a771fbc2cfb490f016896587298edd8610f7/calms21/task3_new_behaviors/calms21_task3_train.json'], ['hf://datasets/ShinSeungJ/behavert-data@f078a771fbc2cfb490f016896587298edd8610f7/calms21/task1/calms21_task1_train.json', 'hf://datasets/ShinSeungJ/behavert-data@f078a771fbc2cfb490f016896587298edd8610f7/calms21/task3_new_behaviors/calms21_task3_train.json']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

annotator-id_0
dict
{"annotations":[3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
{"annotations":[3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,(...TRUNCATED)
{"annotations":[3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
{"annotations":[3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,(...TRUNCATED)
{"annotations":[3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,(...TRUNCATED)
{"annotations":[3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED)
{"annotations":[3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
{"annotations":[3,0,0,0,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,(...TRUNCATED)
{"annotations":[3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
{"annotations":[3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
End of preview.

BehaVERT benchmarks

Data for the five benchmarks used in

BehaVERT: A Transformer-Based Motion Language Model for Decoding Behavioral Semantics in Mice. Seung Jae Shin, Junesu Lee, Chang Ko, Daesoo Kim. International Journal of Computer Vision 134:303 (2026). https://doi.org/10.1007/s11263-026-02834-y

Code, configs for every experiment and pretrained models: https://github.com/ShinSeungJ/BehaVERT.

Contents

Folder Benchmark Animals Keypoints Tasks in the paper Size
calms21/ CalMS21 2 mice, 2D 7 per mouse Task 1 (Table 1), Task 3 (Table 3), self-supervised pretraining 4.8 GB
mabe22/ MABe22 mouse triplets 3 mice, 2D 12 per mouse strain, lights, experiment day, time of day, 9 behaviors (Table 4) 3.6 GB
pair24m/ PAIR-R24M 1–2 rats, 3D 12 per rat single-animal behavior (Table 7), social interaction (Table 8) 2.1 GB
deepethogram/ DeepEthogram 1 mouse, 2D 11 (ours, YOLOv12) 6 behaviors (Table 9) 1.4 GB
sbea/ SBeA Shank3B 2 mice, 3D 16 per mouse genotype pair (Tables 5, 6), behavior (Fig. 3h, our labels) 0.3 GB

Each folder's README describes the files and exactly how they were derived from the original release.

What is new here

  • DeepEthogram: keypoints for all 20 videos, predicted with a YOLOv12 pose model we trained, plus videos with the keypoints drawn on.
  • SBeA: frame-level individual and interaction behavior annotations for the first 30 s of all 30 recordings, and the recordings moved into one common arena frame. Our SBeA pose model is at https://huggingface.co/ShinSeungJ/behavert-pose (folder sbea-pose).
  • MABe22: keypoints and labels regrouped per video and per task.
  • CalMS21: all keypoints of every CalMS21 file in one file, for pretraining.
  • PAIR-R24M: recordings separated into single- and two-animal sets.

Getting the data

With the BehaVERT code, from the repository root:

git clone https://github.com/ShinSeungJ/BehaVERT && cd BehaVERT && pip install -e .
behavert download                    # all five benchmarks into dataset/ (about 12 GB)
behavert download calms21 mabe22     # or only the ones you need

behavert train configs/mabe22/state.yaml --task strain

Commands read dataset/ by default. Without the code, the files can also be fetched with huggingface-cli download ShinSeungJ/behavert-data --repo-type dataset --local-dir dataset.

License and citation

  • Our own work — the DeepEthogram keypoints and the SBeA behavior annotations — is licensed under CC BY 4.0.
  • CalMS21 and PAIR-R24M files are adapted from releases licensed under CC BY 4.0 and are shared under the same license. Each folder's README states the changes made.
  • MABe22 files, the DeepEthogram labels and videos, and the SBeA coordinates are derived from their original releases and remain subject to those releases' terms. They are shared here for research use, with credit to the original authors; each folder's README states the changes made.

Please cite the original dataset of every benchmark you use, together with BehaVERT:

Benchmark Original source
CalMS21 Sun et al., The Multi-Agent Behavior Dataset: Mouse Dyadic Social Interactions, NeurIPS 2021 Datasets & Benchmarks
MABe22 Sun et al., MABe22: A Multi-Species Multi-Task Benchmark for Learned Representations of Behavior, ICML 2023
PAIR-R24M Marshall et al., The PAIR-R24M Dataset for Multi-animal 3D Pose Estimation, NeurIPS 2021 Datasets & Benchmarks
DeepEthogram Bohnslav et al., DeepEthogram, a machine learning pipeline for supervised behavior classification from raw pixels, eLife 2021
SBeA Han et al., Multi-animal 3D social pose estimation, identification and behaviour embedding with a few-shot learning framework, Nature Machine Intelligence 2024
@article{shin2026behavert,
  title   = {BehaVERT: A Transformer-Based Motion Language Model for Decoding Behavioral Semantics in Mice},
  author  = {Shin, Seung Jae and Lee, Junesu and Ko, Chang and Kim, Daesoo},
  journal = {International Journal of Computer Vision},
  volume  = {134},
  pages   = {303},
  year    = {2026},
  doi     = {10.1007/s11263-026-02834-y}
}
Downloads last month
-

Models trained or fine-tuned on ShinSeungJ/behavert-data