Problem
Researchers studying stress and aggression in lab mice must score hours of behavior video. A scientist slows the video to 0.3x–0.5x in BORIS, a manual behavior-logging program, and clicks the start and end of every behavior. Ten minutes of video cost about an hour of work. This study alone has at least 90 hours of video, which is more than 500 hours of manual labeling.
Example from the article: Yandex Cloud and Yandex Crowd Solutions built a pipeline that turns the video into a table of timed behavior intervals for a Novosibirsk genetics institute.
Solution in brief
Annotators label 100 videos in a custom interval-tagging interface. DeepLabCut extracts body keypoints per frame, and an XGBoost classifier maps those coordinates to behaviors. Cage zones come from fixed pixel thresholds on the nose position. Majority-vote smoothing and removal of very short episodes give the final event table.
Questions this case answers
- How to turn hours of manually annotated video into a table of timed behavior events when the labels must be precise to the frame and only about a hundred labeled clips exist
- How to get fast, consistent expert labels for a niche video task where generic crowd workers cannot tell the classes apart
- How to replace manual frame-by-frame labeling of animal behavior videos with an automatic pipeline?
- How to turn a pose-estimation skeleton into behavior labels without training a video network end to end?
Tools and methods
- Custom labeling interface — interval tags with automatic millisecond timecodes; moving the cursor off the video ends an interval
- DeepLabCut (superanimal mode) — pretrained top-view mouse model that outputs body keypoints and confidences per frame
- sklearn Pipeline + XGBoost — frame-level behavior classifier on tabular keypoint features
- Threshold rules — zone membership from the nose coordinates, no learning
- Smoothing and merging — windowed majority vote, short-episode filter, merge into segments
- OpenCV — overlays action and zone on the video for visual quality control
Google or a one-time email code. No password.
