scholarly journals CosMIC: A Consistent Metric for Spike Inference from Calcium Imaging

2017 ◽  
Author(s):  
Stephanie Reynolds ◽  
Therese Abrahamsson ◽  
P. Jesper Sjöström ◽  
Simon R. Schultz ◽  
Pier Luigi Dragotti

AbstractIn recent years, the development of algorithms to detect neuronal spiking activity from two-photon calcium imaging data has received much attention. Meanwhile, few researchers have examined the metrics used to assess the similarity of detected spike trains with the ground truth. We highlight the limitations of the two most commonly used metrics, the spike train correlation and success rate, and propose an alternative, which we refer to as CosMIC. Rather than operating on the true and estimated spike trains directly, the proposed metric assesses the similarity of the pulse trains obtained from convolution of the spike trains with a smoothing pulse. The pulse width, which is derived from the statistics of the imaging data, reflects the temporal tolerance of the metric. The final metric score is the size of the commonalities of the pulse trains as a fraction of their average size. Viewed through the lens of set theory, CosMIC resembles a continuous Sørensen-Dice coefficient — an index commonly used to assess the similarity of discrete, presence/absence data. We demonstrate the ability of the proposed metric to discriminate the precision and recall of spike train estimates. Unlike the spike train correlation, which appears to reward overestimation, the proposed metric score is maximised when the correct number of spikes have been detected. Furthermore, we show that CosMIC is more sensitive to the temporal precision of estimates than the success rate.


2018 ◽  
Vol 30 (10) ◽  
pp. 2726-2756 ◽  
Author(s):  
Stephanie Reynolds ◽  
Therese Abrahamsson ◽  
Per Jesper Sjöström ◽  
Simon R. Schultz ◽  
Pier Luigi Dragotti

In recent years, the development of algorithms to detect neuronal spiking activity from two-photon calcium imaging data has received much attention, yet few researchers have examined the metrics used to assess the similarity of detected spike trains with the ground truth. We highlight the limitations of the two most commonly used metrics, the spike train correlation and success rate, and propose an alternative, which we refer to as CosMIC. Rather than operating on the true and estimated spike trains directly, the proposed metric assesses the similarity of the pulse trains obtained from convolution of the spike trains with a smoothing pulse. The pulse width, which is derived from the statistics of the imaging data, reflects the temporal tolerance of the metric. The final metric score is the size of the commonalities of the pulse trains as a fraction of their average size. Viewed through the lens of set theory, CosMIC resembles a continuous Sørensen-Dice coefficient—an index commonly used to assess the similarity of discrete, presence/absence data. We demonstrate the ability of the proposed metric to discriminate the precision and recall of spike train estimates. Unlike the spike train correlation, which appears to reward overestimation, the proposed metric score is maximized when the correct number of spikes have been detected. Furthermore, we show that CosMIC is more sensitive to the temporal precision of estimates than the success rate.



2018 ◽  
Author(s):  
Andrea Giovannucci ◽  
Johannes Friedrich ◽  
Pat Gunn ◽  
Jérémie Kalfon ◽  
Sue Ann Koay ◽  
...  

AbstractAdvances in fluorescence microscopy enable monitoring larger brain areas in-vivo with finer time resolution. The resulting data rates require reproducible analysis pipelines that are reliable, fully automated, and scalable to datasets generated over the course of months. Here we present CaImAn, an open-source library for calcium imaging data analysis. CaImAn provides automatic and scalable methods to address problems common to pre-processing, including motion correction, neural activity identification, and registration across different sessions of data collection. It does this while requiring minimal user intervention, with good performance on computers ranging from laptops to high-performance computing clusters. CaImAn is suitable for two-photon and one-photon imaging, and also enables real-time analysis on streaming data. To benchmark the performance of CaImAn we collected a corpus of ground truth annotations from multiple labelers on nine mouse two-photon datasets. We demonstrate that CaImAn achieves near-human performance in detecting locations of active neurons.



2018 ◽  
Vol 14 (5) ◽  
pp. e1006157 ◽  
Author(s):  
Philipp Berens ◽  
Jeremy Freeman ◽  
Thomas Deneux ◽  
Nikolay Chenkov ◽  
Thomas McColgan ◽  
...  


2021 ◽  
Author(s):  
Lloyd E. Russell ◽  
Henry W.P. Dalgleish ◽  
Rebecca Nutbrown ◽  
Oliver Gauld ◽  
Dustin Herrmann ◽  
...  

Recent advances combining two-photon calcium imaging and two-photon optogenetics with digital holography now allow us to read and write neural activity in vivo at cellular resolution with millisecond temporal precision. Such 'all-optical' techniques enable experimenters to probe the impact of functionally defined neurons on neural circuit function and behavioural output with new levels of precision. This protocol describes the experimental strategy and workflow for successful completion of typical all-optical interrogation experiments in awake, behaving head-fixed mice. We describe modular procedures for the setup and calibration of an all-optical system, the preparation of an indicator and opsin-expressing and task-performing animal, the characterization of functional and photostimulation responses and the design and implementation of an all-optical experiment. We discuss optimizations for efficiently selecting and targeting neuronal ensembles for photostimulation sequences, as well as generating photostimulation response maps from the imaging data that can be used to examine the impact of photostimulation on the local circuit. We demonstrate the utility of this strategy using all-optical experiments in three different brain areas - barrel cortex, visual cortex and hippocampus - using different experimental setups. This approach can in principle be adapted to any brain area for all-optical interrogation experiments to probe functional connectivity in neural circuits and for investigating the relationship between neural circuit activity and behaviour.



2017 ◽  
Author(s):  
Eftychios A. Pnevmatikakis ◽  
Andrea Giovannucci

AbstractBackgroundMotion correction is a challenging pre-processing problem that arises early in the analysis pipeline of calcium imaging data sequences. The motion artifacts in two-photon microscopy recordings can be non-rigid, arising from the finite time of raster scanning and non-uniform deformations of the brain medium.New methodWe introduce an algorithm for fast Non-Rigid Motion Correction (NoRMCorre) based on template matching. NoRMCorre operates by splitting the field of view into overlapping spatial patches that are registered at a sub-pixel resolution for rigid translation against a continuously updated template. The estimated alignments are subsequently up-sampled to create a smooth motion field for each frame that can efficiently approximate non-rigid motion in a piecewise-rigid manner.Existing methodsExisting approaches either do not scale well in terms of computational performance or are targeted to motion artifacts arising from low speed scanning, whereas modern datasets with large field of view are more prone to non-rigid brain deformation issues.ResultsNoRMCorre can be run in an online mode resulting in comparable to or even faster than real time motion registration on streaming data. We evaluate the performance of the proposed method with simple yet intuitive metrics and compare against other non-rigid registration methods on two-photon calcium imaging datasets. Open source Matlab and Python code is also made available.ConclusionsThe proposed method and code provide valuable support to the community for solving large scale image registration problems in calcium imaging, especially when non-rigid deformations are present in the acquired data.



eNeuro ◽  
2017 ◽  
Vol 4 (5) ◽  
pp. ENEURO.0012-17.2017 ◽  
Author(s):  
Stephanie Reynolds ◽  
Therese Abrahamsson ◽  
Renaud Schuck ◽  
P. Jesper Sjöström ◽  
Simon R. Schultz ◽  
...  


Author(s):  
Peter Rupprecht ◽  
Stefano Carta ◽  
Adrian Hoffmann ◽  
Mayumi Echizen ◽  
Kazuo Kitamura ◽  
...  

ABSTRACTCalcium imaging is a key method to record patterns of neuronal activity across populations of identified neurons. Inference of temporal patterns of action potentials (‘spikes’) from calcium signals is, however, challenging and often limited by the scarcity of ground truth data containing simultaneous measurements of action potentials and calcium signals. To overcome this problem, we compiled a large and diverse ground truth database from publicly available and newly performed recordings. This database covers various types of calcium indicators, cell types, and signal-to-noise ratios and comprises a total of >20 hours from 225 neurons. We then developed a novel algorithm for spike inference (CASCADE) that is based on supervised deep networks, takes advantage of the ground truth database, infers absolute spike rates, and outperforms existing model-based algorithms. To optimize performance for unseen imaging data, CASCADE retrains itself by resampling ground truth data to match the respective sampling rate and noise level. As a consequence, no parameters need to be adjusted by the user. To facilitate routine application of CASCADE we developed systematic performance assessments for unseen data, we openly release all resources, and we provide a user-friendly cloud-based implementation.



2021 ◽  
Vol 15 ◽  
Author(s):  
Claudia Cecchetto ◽  
Stefano Vassanelli ◽  
Bernd Kuhn

Neuronal population activity, both spontaneous and sensory-evoked, generates propagating waves in cortex. However, high spatiotemporal-resolution mapping of these waves is difficult as calcium imaging, the work horse of current imaging, does not reveal subthreshold activity. Here, we present a platform combining voltage or calcium two-photon imaging with multi-channel local field potential (LFP) recordings in different layers of the barrel cortex from anesthetized and awake head-restrained mice. A chronic cranial window with access port allows injecting a viral vector expressing GCaMP6f or the voltage-sensitive dye (VSD) ANNINE-6plus, as well as entering the brain with a multi-channel neural probe. We present both average spontaneous activity and average evoked signals in response to multi-whisker air-puff stimulations. Time domain analysis shows the dependence of the evoked responses on the cortical layer and on the state of the animal, here separated into anesthetized, awake but resting, and running. The simultaneous data acquisition allows to compare the average membrane depolarization measured with ANNINE-6plus with the amplitude and shape of the LFP recordings. The calcium imaging data connects these data sets to the large existing database of this important second messenger. Interestingly, in the calcium imaging data, we found a few cells which showed a decrease in calcium concentration in response to vibrissa stimulation in awake mice. This system offers a multimodal technique to study the spatiotemporal dynamics of neuronal signals through a 3D architecture in vivo. It will provide novel insights on sensory coding, closing the gap between electrical and optical recordings.



PLoS ONE ◽  
2011 ◽  
Vol 6 (6) ◽  
pp. e20490 ◽  
Author(s):  
Wasim Q. Malik ◽  
James Schummers ◽  
Mriganka Sur ◽  
Emery N. Brown


2017 ◽  
Author(s):  
Philipp Berens ◽  
Jeremy Freeman ◽  
Thomas Deneux ◽  
Nicolay Chenkov ◽  
Thomas McColgan ◽  
...  

In recent years, two-photon calcium imaging has become a standard tool to probe the function of neural circuits and to study computations in neuronal populations. However, the acquired signal is only an indirect measurement of neural activity due to the comparatively slow dynamics of fluorescent calcium indicators. Different algorithms for estimating spike trains from noisy calcium measurements have been proposed in the past, but it is an open question how far performance can be improved. Here, we report the results of the spikefinder challenge, launched to catalyze the development of new spike inference algorithms through crowd-sourcing. We present ten of the submitted algorithms which show improved performance compared to previously evaluated methods. Interestingly, the top-performing algorithms are based on a wide range of principles from deep neural networks to generative models, yet provide highly correlated estimates of the neural activity. The competition shows that benchmark challenges can drive algorithmic developments in neuroscience.



Sign in / Sign up

Export Citation Format

Share Document