sgoldenlab/simba

SimBA (Simple Behavioral Analysis): a pipeline and GUI for developing supervised behavioral classifiers from any major pose-estimation tool

SimBA (Simple Behavioral Analysis)

What it is: A toolkit that lets researchers build supervised machine-learning classifiers to automatically recognize animal behaviors (social and non-social) from pose-estimation data — without needing to write code.

What it does: Takes tracking data (positions of body parts over time) and turns it into per-frame behavior predictions. It includes tools for labeling behaviors, training classifiers, evaluating them, and analyzing the results.

Input: Pose-estimation data from tools like DeepLabCut, SLEAP, DeepPoseKit, DANNCE (3D), MARS, FaceMap, APT, SuperAnimal-TopView, YOLO, or blob tracking. User-defined pose schemes are also supported.

Output:

  • Per-frame behavior classifiers with standard evaluation metrics (precision/recall, learning curves, permutation importance)
  • SHAP-based explainability (why the model made each prediction)
  • Descriptive statistics for behaviors, movement, spatial zones, social directionality, and temporal structure — all exportable to CSV
  • Visualizations: tracking overlays, path plots, heatmaps, Gantt charts, probability plots, and annotated videos

Key capabilities:

  • Behavior analysis: bout counts, durations, latency to first event, frequency, severity scoring
  • Movement analysis: velocity, distance traveled, path metrics
  • Spatial analysis: time-in-zone, entries, distance per zone, behavior × zone interactions
  • Social/directional analysis: which animal or body part each animal is oriented toward
  • Temporal structure: behavior-sequence coupling, burst detection
  • Turn-key assays: spontaneous alternation, pup retrieval, cue-light, light/dark box, freezing, circling
  • Unsupervised: dimensionality reduction and clustering of behavior

Who it's for: Researchers in behavioral neuroscience who want to classify animal behavior from video tracking data. No programming background is required. It runs on Windows, macOS, and Linux.

How to use: Install via pip install simba-uw-tf-dev, then launch the GUI with simba. Four step-by-step scenarios guide users from building classifiers from scratch to updating them with new data.

Validation: Classifier libraries have been validated in mice and rats. All data, models, and annotations are available on the OSF repository.

Resources: Example datasets, trained random forest classifiers, API reference, Docker images, visualization gallery, and community support (Gitter, GitHub Issues) are all linked from the README.

Citation: Published in Nature Neuroscience (2024), DOI: 10.1038/s41593-024-01649-9. Developed by Simon Nilsson at the Golden Lab, University of Washington.

Related

  • Project
  • Project
  • Project
  • Project
  • Project