Skip to main content

Barnes Maze

Direct Interaction

Marble burrying

NORT

NORT (2)

Open Field

Social Interaction

T-maze

Three Chamber

Multi-Task Mouse Behaviour Dataset (mtmb)

Paper Dataset Zenodo

Tooling for the Multi-Task Mouse Behaviour Dataset: bounding boxes, instance masks, 27-point poses and persistent track ids for laboratory mice, on the same frames, across nine standard behavioural assays. 14,300 frames, 27,716 annotated instances.

This repo is the mtmb package -- splitting, exporting and validating the dataset. For the full dataset card (task-by-task breakdown, annotation schema, license, citation), see docs/HF_README.md.

Install

pip install mtmb

For development, clone this repo and run uv sync.

Quickstart

mtmb tasks                                        # list tasks, what's already built
mtmb pooled                                        # image-level random split, all tasks
mtmb by-task --train barnes_maze --train marble \
             --valid nort --test t_maze            # whole tasks held out, no leakage
mtmb loo --folds 3                                  # leave-one-task-out, N folds

Every command builds an RF-DETR-style export under build/<name>/{train,valid,test}, with a manifest.json recording exactly what produced it. Run mtmb <command> --help for the full option list.

Python API

from mtmb import MouseDataset

dataset = MouseDataset()  # ./dataset under the working directory; pass a path to move it
dataset.download()        # fetches the tasks from the Hugging Face Hub
manifest = dataset.split_by_task(train=["barnes_maze"], valid=["nort"], test=["t_maze"])
dataset.build(manifest)

Citation

If you use this dataset, please cite the accompanying paper:

@article{Cobos2026.10.02.756254,
  author    = {Cobos, Juan and Thirard, Steeve and Belkaid, Marwen and Naude, Jeremie},
  title     = {A promptable foundation model enables automated multi-task dataset construction and real-time pose estimation in mice},
  journal   = {bioRxiv},
  year      = {2026},
  publisher = {Cold Spring Harbor Laboratory},
  doi       = {10.64898/2026.10.02.756254},
  URL       = {https://www.biorxiv.org/content/10.64898/2026.10.02.756254v1}
}

License

The mtmb code is MIT -- see LICENSE. The dataset itself is CC BY-NC 4.0, a separate license from the code -- see LICENSE-DATASET and the dataset card for why.

Metadata

Release files for mtmb 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mtmb 0.1.2
File Size Uploaded Provenance Actions
mtmb-0.1.2.tar.gz 21.9 kB Without provenance Details for mtmb-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mtmb 0.1.2
File Interpreter ABI Platform Actions
mtmb-0.1.2-py3-none-any.whl Python 3 none any Details for mtmb-0.1.2-py3-none-any.whl

Total release size: 49.4 kB

Release files / mtmb-0.1.2.tar.gz

Download URL mtmb-0.1.2.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dc1930528c1ad251f02c97adea704f3adaa7370750d950a9871c1190a68f6672
BLAKE2b-256 checksum
How to use checksums
4407dc28509d5904c59003a60f038aad2edb0d1784dd9d9ad2d61ffffb804eb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mtmb-0.1.2-py3-none-any.whl

Download URL mtmb-0.1.2-py3-none-any.whl
Size 27.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc589098719aaca472eb7e47e5b0bc3c16b9b52d34b1aadb265793164c79ca3d
BLAKE2b-256 checksum
How to use checksums
32966f515a0125512b2c0963e2d01d7251deb5598184b29c45b3b7db0f4823e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mtmb 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page