CAVE: An Open-Source Tool for Combined Analysis of Head-Mounted Calcium Imaging and Behavior in MATLAB

Front Neurosci. 2018 Dec 18:12:958. doi: 10.3389/fnins.2018.00958. eCollection 2018.

Abstract

Calcium imaging in freely behaving rodents using head-mounted miniature microscopes is currently becoming an increasingly popular technique in neuroscience. Due to the large amounts of complex data that the technique produces, user friendly software is needed for quick and efficient processing. Here, we present a new tool for analyzing calcium imaging data from head-mounted microscopes together with simultaneously acquired behavioral data: CAVE (Calcium ActiVity Explorer). CAVE bundles a unique set of algorithms specifically tailored to the analysis of single-photon imaging data from awake behaving animals including efficient motion correction and automatic ROI selection with manual audit and refinement. For behavioral analysis, CAVE can automatically track animal position and orientation. Individual behavioral epochs and external events can then be analyzed in correlation to calcium imaging and tracking data. Our program is written in MATLAB, the source code is open source and particularly focuses on providing a streamlined workflow for novice users while also retaining detailed configuration options for advanced users. We evaluate the performance of CAVE by investigating neural activity in hippocampus and somatosensory cortex. The fast analysis provided by CAVE allowed us to track activity in a large set of animals over the course of several months during exploration behavior, detailing the properties of onset and offset of observable activity and the visible cells per imaging location.

Keywords: awake behaving; freely moving; image analysis; in vivo imaging; open source software; single-photon head-mounted calcium imaging.