RatInABox: A toolkit for modelling locomotion and neuronal activity in continuous environments
Tom M GeorgeiD, Mehul RastogiiD, William de CothiiD, Claudia Clopath AiD, Kimberly StachenfeldiD, Caswell BarryiD
Abstract
Generating synthetic locomotory and neural data is a useful yet cumbersome step commonly required to study theoretical models of the brains role in spatial navigation. This process can be time consuming and, without a common framework, makes it difficult to reproduce or compare studies which each generate test data in different ways. In response we present RatInABox, an open-source Python toolkit designed to model realistic rodent locomotion and generate synthetic neural data from spatially modulated cell types. This software provides users with (i) the ability to construct one-or two-dimensional environments with configurable barriers and visual cues, (ii) a physically realistic random motion model fitted to experimental data, (iii) rapid online calculation of neural data for many of the known self-location or velocity selective cell types in the hippocampal formation (including place cells, grid cells, boundary vector cells, head direction cells) and (iv) a framework for constructing custom cell types, multi-layer network models and data-or policy-controlled motion trajectories. The motion and neural models spatially and temporally continuous as well as topographically sensitive to boundary conditions and walls. We demonstrate that out-of-the-box parameter settings replicate many aspects of rodent foraging behaviour such as velocity statistics and the tendency of rodents to over-explore walls. Numerous tutorial scripts are provided, including examples where RatInABox is used for decoding position from neural data or to solve a navigational reinforcement learning task. We hope this tool significantly streamline computational research into the brains role in navigation.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 26
- FWCI
- 5.58
- Field percentile
- top 3%
- Organism
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- A framework to identify structured behavioral patterns within rodent spatial trajectories
F. Donnarumma, R. Prevete, … G. Pezzulo·bioRxiv·Mar 2, 2020
- Robean: A Standalone Freeware for Automated Rodent Neurobehavioural Analysis with Integrated Tracking, Visualization, and Reporting
Vikas Mishra, Rajkumar Verma, … Ravinder Kumar Kaundal·bioRxiv·Jul 17, 2026
- RAINSTORM: Automated Behavioral Analysis for Mice Exploratory Behavior Using Artificial Neural Networks.
Santiago D'hers, Agustina Denise Robles, … Mariana Feld·Current ProtocolsPeer-reviewed·Jul 1, 2025
- Structured navigation in a goal-directed task reveals flexible spatial coding
Tucker G. Fisher, Marielena Sosa, … Lisa Marie Giocomo·bioRxiv·Jul 28, 2026
- The Omniroute maze: a novel rodent navigation apparatus that integrates dynamically configurable routes, sensory cues and automated reward delivery
Adam W. Lester, Afsoon G. Mombeini, Manu Sasidharan Madhav·bioRxiv·Sep 1, 2025
- Modeling Hippocampal Spatial Cells in Rodents navigating in 3D environments
Azra Aziz, Bharat K. Patil, … V. Srinivasa Chakravarthy·Scientific ReportsPeer-reviewed·Jul 19, 2024