CosMIC: A Consistent Metric for Spike Inference from Calcium Imaging
Stephanie ReynoldsiD, Therése AbrahamssoniD, P. Jesper SjöströmiD, Simon R. SchultziD, Pier Luigi DragottiiD
Abstract
In 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 Sorensen-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.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 8
- FWCI
- 1.05
- Field percentile
- top 24%
- 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
- Community-based benchmarking improves spike rate inference from two-photon calcium imaging data
Philipp Berens, Jeremy Freeman, … Matthias Bethge·PLoS Computational BiologyPeer-reviewed·May 21, 2018
- Supervised learning sets benchmark for robust spike rate inference from calcium imaging signals
Lucas Theis, Philipp Berens, … Matthias Bethge·NeuronPeer-reviewed·May 1, 2016
- Signal-to-signal Neural Networks for Improved Spike Estimation from Calcium Imaging Data
Jilt Sebastian, Mriganka Sur, … Mathew Magimai.-Doss·PLoS Computational BiologyPeer-reviewed·Mar 1, 2021
- Precise hyperacuity estimation of spike timing from calcium imaging
Huu Hoang, Masa-aki Sato, … Keisuke Toyama·Scientific ReportsPeer-reviewed·Oct 20, 2020
- Spike rate inference from mouse spinal cord calcium imaging data
Peter Rupprecht, Wei Fan, … Andrei D. Sdrulla·Journal of NeurosciencePeer-reviewed·Mar 24, 2025
- Spike inference from calcium imaging data acquired with GCaMP8 indicators
Peter Rupprecht, Márton Rózsa, … Fritjof Helmchen·Nature MethodsPeer-reviewed·Jul 27, 2026