RodentFlow:video in, data out.

Pose tracking and behavior analysis for mice, on iPhone, iPad, Mac and Windows. Every frame is analyzed on the device.

Watch it work

Watch it work01 / 11

Screen recordings from the app. Choose one to watch it.

    Film a test from above, calibrate the arena once, and RodentFlow tracks the animal, scores the test and compares groups. RodentFlow puts three trackers in one app: the centroid tracker from RodentFlow 1.x, a six-keypoint pose model for one mouse, and a two-mouse model that keeps A and B apart across the whole recording.

    Input
    Overhead video of one or two mice, or a rack of tail-suspension chambers
    Trackers
    Centroid at 10 Hz; pose with six keypoints; two-animal pose with identities
    Output
    Measures per animal, figures, group statistics, CSV and JSON with a methods paragraph
    Runs on
    iPhone and iPad (iOS 17 or later), Mac (macOS 14 or later) and Windows PCs (Windows 10 1809 or later, 64-bit)
    Privacy
    No account, no uploads, no analytics

    Task library

    28 tasks, each explained

    Pick a test and see how RodentFlow scores it: the design, why keypoints help, how every measure is defined, a simulated example and the papers behind it.

    Open the task library
    Which tracker each test uses
    Test Centroid One animal Two animals Group Multi-chamber

    Without video, marble burying, sucrose preference, beam walking, gait and the two-armed bandit can be entered by hand or imported from CSV, TSV or JSON, then compared like any other test.

    Three ways of tracking, chosen by the test

    You pick the test; RodentFlow picks the tracker. Switch between them to see what each one records from the same overhead view.

    Distance
    0.0m
    Time in center
    0%
    Speed
    0cm/s

    Illustration, not a recording: simulated mice in a 40 cm open field, marked the way the app marks real video. The dashed square is the center zone.

    From video to figure

    Every analysis follows the same five steps, on the phone or on the Mac. Zones and thresholds can be changed afterwards; results update without tracking again.

    1. Calibrate the arena

      Drag handles onto the arena corners or maze arms. Positions become centimeters, zones come from the calibration, and only the arena plus a small margin goes to the tracker.

    2. Track every frame

      Pose models run with Core ML on the device: 960 × 960 input, 8-bit weights, six keypoints per animal. Long recordings save checkpoints and resume after an interruption.

    3. Settle identities

      With two mice, the video is split into stretches where identity is certain, then linked by motion, body axis and any steady difference in coat or size. Weak links are flagged.

    4. Score the test

      Each test has its own analyzer: sniffing index, head dips on the plus maze, Y-maze alternation, attacks and chases, immobility per chamber.

    5. Compare and export

      Animals, groups and sessions, with the statistical test chosen from the design. Exports are CSV and JSON with English column names and a methods paragraph.

    A stays A

    Two mice that look alike are the hard case. Instead of matching each frame to the one before, RodentFlow reads the whole recording: it finds the stretches where identity is certain, links them, and learns from that video alone whether the two animals differ in coat, a mark or body length.

    When they do not differ, it says so and points to the moments worth checking. One tap swaps A and B from that frame on.

    Frames with the correct identity

    Simulated 10-minute recordings, 8 per scenario.

    Automatic After checking flagged moments
    Black and white coats
    98.0%
    Light mark on one mouse
    97.9%
    Juvenile intruder
    97.5%
    Same coat, 5% difference in length and activity
    91.7% 98.1%
    Same coat, no difference
    58.3% 96.7%
    View as table
    ScenarioAutomaticAfter checkingEarlier method
    Black and white coats98.0%n/an/a
    Light mark on one mouse97.9%n/an/a
    Juvenile intruder97.5%n/an/a
    Same coat, 5% length and activity difference91.7%98.1% (≈2 taps)55.1%
    Same coat, no difference58.3%96.7% (≈14 taps)54.2%

    Same numbers on phone and Mac

    Both apps compile the same analysis code. The phone writes each finished analysis to a folder you choose, such as iCloud Drive; the Mac files it under the right test, group and animal, computes it again and shows whether every measure matches.

    Nothing leaves the device

    Videos are analyzed where they are stored. There is no account, no analytics and no upload; the App Store privacy label reads Data Not Collected. Long recordings on the Mac are saved as they run and resume after a crash. The Windows app contains no network code at all.

    Stated rules

    Every measure follows a stated rule: which keypoint, how far, at what angle and for how long. The rule is shown with each result and written into the Methods text, and the review timeline marks every scored moment so you can check it against your own scoring.

    Cite RodentFlow

    If RodentFlow helps your work, please cite the software.

    @software{shi2026rodentflow,
      author  = {Shi, Ziqing},
      title   = {RodentFlow: On-device pose tracking and behavior analysis for rodents},
      version = {2.1},
      year    = {2026},
      url     = {https://seesaw-earth.github.io/RodentFlow/}
    }