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)

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.dataset import MouseDataset

dataset = MouseDataset()
manifest = dataset.split_by_task(train=["barnes_maze"], valid=["nort"], test=["t_maze"])
dataset.build(manifest)

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.0

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.0
File Size Uploaded
mtmb-0.1.0.tar.gz 19.6 kB Details

Built distribution (wheel)

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

Total release size: 44.3 kB

Release files / mtmb-0.1.0.tar.gz

Download URL mtmb-0.1.0.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2e1eaecf788d835640de666b76597be705cc8d6d283210513b04ef3757b3c6e5
BLAKE2b-256 checksum
How to use checksums
54475fa0b344c3235e15c79d53b4b8b061e80d23ec403b88cd154cb3e593cd9e
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.0-py3-none-any.whl

Download URL mtmb-0.1.0-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c64d0177d3a8d2495326b7ed4619459d61a218b7cef9ed6b5ae51c045a4a08d2
BLAKE2b-256 checksum
How to use checksums
dfe0af8d35363c0b3d6bb8ce0bd35dc548609401cfdf756901043b9c4dab3655
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 history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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