TASK · LEARNING, MEMORY & FEAR
Barnes maze
Nose-based hole investigation · Errors, latency and path
The Barnes maze has a ring of holes, with an escape box under the target hole. Animals learn its location using distal spatial cues. Metrics include target latency, errors, path length and target-quadrant time in probe trials.
Simulated example

Why keypoints
In the Barnes maze, an error is a nose probe into a non-target hole. This is a nose-specific behaviour that centroid tracking cannot reliably count.
What RodentFlow measures
| Measure | Definition |
|---|---|
| First latency | Time until the nose first enters the target hole. |
| Errors | Nose probes into non-target holes; initial errors precede target discovery and total errors cover the full session. |
| Path length | Body-centre path length before first target-hole discovery. |
| Target quadrant | Fraction of time in the ±45° sector centred on the target hole (probe trial). |
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
- Calibrate the platform with C (centre) and R (edge).
- Place T at the target hole; other holes are placed evenly according to the hole count.
The general steps (choose the task, calibrate, track, review, export) are the same for every task: see Analysing a video.
Classic centroid version
This test can also be analysed with the classic centroid method, the tracker of RodentFlow 1.x: background subtraction and the body centroid at 10 Hz, with no model. It gives the zone, path and time measures; measures that need the nose or head (investigation, head dips, head direction) come from the pose version. See Classic centroid.
References
- Barnes CA (1979) Memory deficits associated with senescence: a neurophysiological and behavioral study in the rat. J Comp Physiol Psychol 93:74–104. doi:10.1037/h0077579
- Pitts MW (2018) Barnes maze procedure for spatial learning and memory in mice. Bio-protocol 8:e2744. doi:10.21769/BioProtoc.2744
Related tasks
Novel object recognition · Morris water maze · Passive avoidance (step-through) · Step-down inhibitory avoidance · Place preference (RTPP / CPP) · Y-maze spontaneous alternation · T-maze choice & VTE · Fear conditioning · Looming threat escape · Platform-mediated avoidance
