TASK · SOCIAL BEHAVIOUR
Dyadic social interaction
Two freely moving mice · Nose-to-nose, anogenital sniffing, following
Two freely moving mice interact in one arena, for example in juvenile social interactions, nonaggressive resident–intruder behaviour or male–female interaction. Readouts include sniffing and following bouts and duration.
Simulated example

Why keypoints
Social contacts are defined using landmark distances: nose-to-nose, nose-to-tail-base (anogenital) and nose-to-body. These cannot be distinguished from centroids alone.
What RodentFlow measures
| Measure | Definition |
|---|---|
| Nose-to-nose contact | Distance between noses < 2.5 cm. |
| Anogenital sniffing | Nose-to-tail-base distance < 2.5 cm, reported separately for A→B and B→A. |
| Body sniffing | Nose-to-partner body centre < 3 cm, excluding the two categories above. |
| Following | Distance < 15 cm; both speeds > 5 cm/s; follower oriented toward partner (±45°) for ≥ 0.5 s. |
| Inter-animal distance | Mean body-centre distance and time spent within 10 cm. |
Thresholds are defaults and can be changed in the analysis parameters; the values used are saved with each session and written into the Methods text.
Setting up
- Identity is most reliable when the mice differ in fur colour, size or marks; for mice of the same colour, consistent differences in body length while walking and in activity are also used, but marking them (marker-pen stripes on the tail or a dyed patch on the back) remains the most reliable.
- Two-mouse detection is enabled automatically; detecting every frame is recommended.
- In the review, check “Likely swap” first, then step through “Check identity”; if A / B are wrong, tap “Swap A / B from here”.
The general steps (choose the task, calibrate, track, review, export) are the same for every task: see Analysing a video.
References
- Segalin C et al. (2021) The Mouse Action Recognition System (MARS) software pipeline for automated analysis of social behaviors in mice. eLife 10:e63720. doi:10.7554/eLife.63720
- Hong W et al. (2015) Automated measurement of mouse social behaviors using depth sensing, video tracking, and machine learning. PNAS 112:E5351–E5360. doi:10.1073/pnas.1515982112
Related tasks
Three-chamber sociability · Social interaction test (CSDS) · Resident–intruder (aggression) · Group behaviour
