Fast online deconvolution of calcium imaging data

Fluorescent calcium indicators are a popular means for observing the spiking activity of large neuronal populations, but extracting the activity of each neuron from raw fluorescence calcium imaging data is a nontrivial problem. We present a fast online active set method to solve this sparse non-negative deconvolution problem. Importantly, the algorithm 3progresses through each time series sequentially from beginning to end, thus enabling real-time online estimation of neural activity during the imaging session. Our algorithm is a generalization of the pool adjacent violators algorithm (PAVA) for isotonic regression and inherits its linear-time computational complexity. We gain remarkable increases in processing speed: more than one order of magnitude compared to currently employed state of the art convex solvers relying on interior point methods. Unlike these approaches, our method can exploit warm starts; therefore optimizing model hyperparameters only requires a handful of passes through the data. A minor modification can further improve the quality of activity inference by imposing a constraint on the minimum spike size. The algorithm enables real-time simultaneous deconvolution of O(105) traces of whole-brain larval zebrafish imaging data on a laptop.

[1]  Sam E Benezra,et al.  Supplemental Information Population-level Representation of a Temporal Sequence Underlying Song Production in the Zebra Finch , 2022 .

[2]  J. Leeuw,et al.  Isotone Optimization in R: Pool-Adjacent-Violators Algorithm (PAVA) and Active Set Methods , 2009 .

[3]  Joshua T. Vogelstein,et al.  A Bayesian approach for inferring neuronal connectivity from calcium fluorescent imaging data , 2011, 1107.4228.

[4]  Stephen P. Boyd,et al.  CVXPY: A Python-Embedded Modeling Language for Convex Optimization , 2016, J. Mach. Learn. Res..

[5]  R. E. Miles THE COMPLETE AMALGAMATION INTO BLOCKS, BY WEIGHTED MEANS, OF A FINITE SET OF REAL NUMBERS , 1959 .

[6]  Richard A. Davis,et al.  Time Series: Theory and Methods , 2013 .

[7]  Norio Matsuki,et al.  Fast and accurate detection of action potentials from somatic calcium fluctuations. , 2008, Journal of neurophysiology.

[8]  M. Carandini,et al.  Suite 2 p : beyond 10 , 000 neurons with standard two-photon microscopy , 2016 .

[9]  Philipp J. Keller,et al.  Light-sheet functional imaging in fictively behaving zebrafish , 2014, Nature Methods.

[10]  David Pfau,et al.  Simultaneous Denoising, Deconvolution, and Demixing of Calcium Imaging Data , 2016, Neuron.

[11]  Benjamin F. Grewe,et al.  High-speed in vivo calcium imaging reveals neuronal network activity with near-millisecond precision , 2010, Nature Methods.

[12]  Liam Paninski,et al.  Fast Active Set Methods for Online Spike Inference from Calcium Imaging , 2016, NIPS.

[13]  Stephen P. Boyd,et al.  ECOS: An SOCP solver for embedded systems , 2013, 2013 European Control Conference (ECC).

[14]  Karl Deisseroth,et al.  Closed-Loop and Activity-Guided Optogenetic Control , 2015, Neuron.

[15]  H. D. Brunk,et al.  Statistical inference under order restrictions : the theory and application of isotonic regression , 1973 .

[16]  E. Yaksi,et al.  Reconstruction of firing rate changes across neuronal populations by temporally deconvolved Ca2+ imaging , 2006, Nature Methods.

[17]  Michael J. Best,et al.  Active set algorithms for isotonic regression; A unifying framework , 1990, Math. Program..

[18]  Stéphane Mallat,et al.  Matching pursuits with time-frequency dictionaries , 1993, IEEE Trans. Signal Process..

[19]  Karel Svoboda,et al.  Monitoring Neural Activity and [Ca2+] with Genetically Encoded Ca2+ Indicators , 2004, The Journal of Neuroscience.

[20]  Amiram Grinvald,et al.  Accurate spike estimation from noisy calcium signals for ultrafast three-dimensional imaging of large neuronal populations in vivo , 2016, Nature Communications.

[21]  Brooks Paige,et al.  Bayesian Inference and Online Experimental Design for Mapping Neural Microcircuits , 2013, NIPS.

[22]  Stefan R. Pulver,et al.  Ultra-sensitive fluorescent proteins for imaging neuronal activity , 2013, Nature.

[23]  Liam Paninski,et al.  Bayesian spike inference from calcium imaging data , 2013, 2013 Asilomar Conference on Signals, Systems and Computers.

[24]  David L. Donoho,et al.  De-noising by soft-thresholding , 1995, IEEE Trans. Inf. Theory.

[25]  Mario Dipoppa,et al.  Suite2p: beyond 10,000 neurons with standard two-photon microscopy , 2016, bioRxiv.

[26]  Charles L. Lawson,et al.  Solving least squares problems , 1976, Classics in applied mathematics.

[27]  Stephen J. Wright,et al.  Numerical Optimization , 2018, Fundamental Statistical Inference.

[28]  Matthias Bethge,et al.  Benchmarking Spike Rate Inference in Population Calcium Imaging , 2016, Neuron.

[29]  C. Witzgall,et al.  Projections onto order simplexes , 1984 .

[30]  Michael Häusser,et al.  Simultaneous all-optical manipulation and recording of neural circuit activity with cellular resolution in vivo , 2014, Nature Methods.

[31]  Stephen J. Wright,et al.  Primal-Dual Interior-Point Methods , 1997 .

[32]  Robert J. Butera,et al.  Sequential Optimal Design of Neurophysiology Experiments , 2009, Neural Computation.

[33]  Mijung Park,et al.  Bayesian active learning with localized priors for fast receptive field characterization , 2012, NIPS.

[34]  Stephen P. Boyd,et al.  Conic Optimization via Operator Splitting and Homogeneous Self-Dual Embedding , 2013, Journal of Optimization Theory and Applications.

[35]  Rafael Yuste,et al.  Fast nonnegative deconvolution for spike train inference from population calcium imaging. , 2009, Journal of neurophysiology.

[36]  R. Bro,et al.  A fast non‐negativity‐constrained least squares algorithm , 1997 .

[37]  Aaron C. Koralek,et al.  Volitional modulation of optically recorded calcium signals during neuroprosthetic learning , 2014, Nature Neuroscience.

[38]  Benjamin F. Grewe,et al.  High-speed in vivo calcium imaging reveals neuronal network activity with near-millisecond precision , 2010, Nature Methods.

[39]  Shaoqun Zeng,et al.  Reconstruction of burst activity from calcium imaging of neuronal population via Lq minimization and interval screening. , 2016, Biomedical optics express.

[40]  François Laviolette,et al.  Domain-Adversarial Training of Neural Networks , 2015, J. Mach. Learn. Res..

[41]  Richard G. Baraniuk,et al.  A robust and efficient method to recover neural events from noisy and corrupted data , 2013, 2013 6th International IEEE/EMBS Conference on Neural Engineering (NER).

[42]  Philipp J. Keller,et al.  Whole-brain functional imaging at cellular resolution using light-sheet microscopy , 2013, Nature Methods.

[43]  H. D. Brunk,et al.  AN EMPIRICAL DISTRIBUTION FUNCTION FOR SAMPLING WITH INCOMPLETE INFORMATION , 1955 .

[44]  T. Holy,et al.  Fast Three-Dimensional Fluorescence Imaging of Activity in Neural Populations by Objective-Coupled Planar Illumination Microscopy , 2008, Neuron.

[45]  Kaspar Podgorski,et al.  Fast non‐negative temporal deconvolution for laser scanning microscopy , 2013, Journal of biophotonics.

[46]  D. Tank,et al.  Simultaneous cellular-resolution optical perturbation and imaging of place cell firing fields , 2014, Nature Neuroscience.

[47]  Constance van Eeden,et al.  Testing and estimating ordered parameters of probability distribution , 1958 .

[48]  Christine Grienberger,et al.  Imaging Calcium in Neurons , 2012, Neuron.

[49]  Brendon O. Watson,et al.  Spike inference from calcium imaging using sequential Monte Carlo methods. , 2009, Biophysical journal.

[50]  Knud D. Andersen,et al.  The Mosek Interior Point Optimizer for Linear Programming: An Implementation of the Homogeneous Algorithm , 2000 .