» Articles » PMID: 38334473

RatInABox, a Toolkit for Modelling Locomotion and Neuronal Activity in Continuous Environments

Overview
Journal Elife
Specialty Biology
Date 2024 Feb 9
PMID 38334473
Authors
Affiliations
Soon will be listed here.
Abstract

Generating synthetic locomotory and neural data is a useful yet cumbersome step commonly required to study theoretical models of the brain's 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 are 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 will significantly streamline computational research into the brain's role in navigation.

Citing Articles

Unifying Subicular Function: A Predictive Map Approach.

Bennett L, de Cothi W, Muessig L, Rodrigues F, Cacucci F, Wills T bioRxiv. 2024; .

PMID: 39574744 PMC: 11580870. DOI: 10.1101/2024.11.06.622306.


Rapid learning of predictive maps with STDP and theta phase precession.

George T, de Cothi W, Stachenfeld K, Barry C Elife. 2023; 12.

PMID: 36927826 PMC: 10019887. DOI: 10.7554/eLife.80663.

References
1.
de Cothi W, Nyberg N, Griesbauer E, Ghaname C, Zisch F, Lefort J . Predictive maps in rats and humans for spatial navigation. Curr Biol. 2022; 32(17):3676-3689.e5. PMC: 9616735. DOI: 10.1016/j.cub.2022.06.090. View

2.
Byrne P, Becker S, Burgess N . Remembering the past and imagining the future: a neural model of spatial memory and imagery. Psychol Rev. 2007; 114(2):340-75. PMC: 2678675. DOI: 10.1037/0033-295X.114.2.340. View

3.
Benna M, Fusi S . Place cells may simply be memory cells: Memory compression leads to spatial tuning and history dependence. Proc Natl Acad Sci U S A. 2021; 118(51). PMC: 8713479. DOI: 10.1073/pnas.2018422118. View

4.
Banino A, Barry C, Uria B, Blundell C, Lillicrap T, Mirowski P . Vector-based navigation using grid-like representations in artificial agents. Nature. 2018; 557(7705):429-433. DOI: 10.1038/s41586-018-0102-6. View

5.
Harris C, Millman K, van der Walt S, Gommers R, Virtanen P, Cournapeau D . Array programming with NumPy. Nature. 2020; 585(7825):357-362. PMC: 7759461. DOI: 10.1038/s41586-020-2649-2. View