IDEAS home Printed from https://ideas.repec.org/a/plo/pcbi00/1005423.html
   My bibliography  Save this article

Fast online deconvolution of calcium imaging data

Author

Listed:
  • Johannes Friedrich
  • Pengcheng Zhou
  • Liam Paninski

Abstract

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.Author summary: Calcium imaging methods enable simultaneous measurement of the activity of thousands of neighboring neurons, but come with major caveats: the slow decay of the fluorescence signal compared to the time course of the underlying neural activity, limitations in signal quality, and the large scale of the data all complicate the goal of efficiently extracting accurate estimates of neural activity from the observed video data. Further, current activity extraction methods are typically applied to imaging data after the experiment is complete. However, in many cases we would prefer to run closed-loop experiments—analyzing data on-the-fly to guide the next experimental steps or to control feedback—and this requires new methods for accurate real-time processing. Here we present a fast activity extraction algorithm addressing both issues. Our approach follows previous work in casting the activity extraction problem as a sparse nonnegative deconvolution problem. To solve this optimization problem, we introduce a new algorithm that is an order of magnitude faster than previous methods, and progresses through the data sequentially from beginning to end, thus enabling, in principle, real-time online estimation of neural activity during the imaging session. This computational advance thus opens the door to new closed-loop experiments.

Suggested Citation

  • Johannes Friedrich & Pengcheng Zhou & Liam Paninski, 2017. "Fast online deconvolution of calcium imaging data," PLOS Computational Biology, Public Library of Science, vol. 13(3), pages 1-26, March.
  • Handle: RePEc:plo:pcbi00:1005423
    DOI: 10.1371/journal.pcbi.1005423
    as

    Download full text from publisher

    File URL: https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1005423
    Download Restriction: no

    File URL: https://journals.plos.org/ploscompbiol/article/file?id=10.1371/journal.pcbi.1005423&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pcbi.1005423?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Brendan O’Donoghue & Eric Chu & Neal Parikh & Stephen Boyd, 2016. "Conic Optimization via Operator Splitting and Homogeneous Self-Dual Embedding," Journal of Optimization Theory and Applications, Springer, vol. 169(3), pages 1042-1068, June.
    2. Thomas Deneux & Attila Kaszas & Gergely Szalay & Gergely Katona & Tamás Lakner & Amiram Grinvald & Balázs Rózsa & Ivo Vanzetta, 2016. "Accurate spike estimation from noisy calcium signals for ultrafast three-dimensional imaging of large neuronal populations in vivo," Nature Communications, Nature, vol. 7(1), pages 1-17, November.
    3. de Leeuw, Jan & Hornik, Kurt & Mair, Patrick, 2009. "Isotone Optimization in R: Pool-Adjacent-Violators Algorithm (PAVA) and Active Set Methods," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 32(i05).
    4. Tsai-Wen Chen & Trevor J. Wardill & Yi Sun & Stefan R. Pulver & Sabine L. Renninger & Amy Baohan & Eric R. Schreiter & Rex A. Kerr & Michael B. Orger & Vivek Jayaraman & Loren L. Looger & Karel Svobod, 2013. "Ultrasensitive fluorescent proteins for imaging neuronal activity," Nature, Nature, vol. 499(7458), pages 295-300, July.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Luis M. Franco & Michael J. Goard, 2024. "Differential stability of task variable representations in retrosplenial cortex," Nature Communications, Nature, vol. 15(1), pages 1-17, December.
    2. Ignacio Alonso & Irina Scheer & Mélanie Palacio-Manzano & Noémie Frézel-Jacob & Antoine Philippides & Mario Prsa, 2023. "Peripersonal encoding of forelimb proprioception in the mouse somatosensory cortex," Nature Communications, Nature, vol. 14(1), pages 1-16, December.
    3. Mitchell Clough & Ichun Anderson Chen & Seong-Wook Park & Allison M. Ahrens & Jeffrey N. Stirman & Spencer L. Smith & Jerry L. Chen, 2021. "Flexible simultaneous mesoscale two-photon imaging of neural activity at high speeds," Nature Communications, Nature, vol. 12(1), pages 1-7, December.
    4. Kyerl Park & Yoonsoo Yeo & Kisung Shin & Jeehyun Kwag, 2024. "Egocentric neural representation of geometric vertex in the retrosplenial cortex," Nature Communications, Nature, vol. 15(1), pages 1-14, December.
    5. Sasa Teng & Fenghua Zhen & Li Wang & Jose Canovas Schalchli & Jane Simko & Xinyue Chen & Hao Jin & Christopher D. Makinson & Yueqing Peng, 2022. "Control of non-REM sleep by ventrolateral medulla glutamatergic neurons projecting to the preoptic area," Nature Communications, Nature, vol. 13(1), pages 1-15, December.
    6. Yanjun Sun & Lisa M. Giocomo, 2022. "Neural circuit dynamics of drug-context associative learning in the mouse hippocampus," Nature Communications, Nature, vol. 13(1), pages 1-19, December.
    7. Johannes Friedrich & Weijian Yang & Daniel Soudry & Yu Mu & Misha B Ahrens & Rafael Yuste & Darcy S Peterka & Liam Paninski, 2017. "Multi-scale approaches for high-speed imaging and analysis of large neural populations," PLOS Computational Biology, Public Library of Science, vol. 13(8), pages 1-24, August.
    8. M. Angeles Rabadan & Estanislao Daniel De La Cruz & Sneha B. Rao & Yannan Chen & Cheng Gong & Gregg Crabtree & Bin Xu & Sander Markx & Joseph A. Gogos & Rafael Yuste & Raju Tomer, 2022. "An in vitro model of neuronal ensembles," Nature Communications, Nature, vol. 13(1), pages 1-17, December.
    9. Celia M. Gagliardi & Marc E. Normandin & Alexandra T. Keinath & Joshua B. Julian & Matthew R. Lopez & Manuel-Miguel Ramos-Alvarez & Russell A. Epstein & Isabel A. Muzzio, 2024. "Distinct neural mechanisms for heading retrieval and context recognition in the hippocampus during spatial reorientation," Nature Communications, Nature, vol. 15(1), pages 1-22, December.
    10. Sean Jewell & Paul Fearnhead & Daniela Witten, 2022. "Testing for a change in mean after changepoint detection," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 84(4), pages 1082-1104, September.
    11. Daniel U Campos-Delgado & Omar Gutierrez-Navarro & Ricardo Salinas-Martinez & Elvis Duran & Aldo R Mejia-Rodriguez & Miguel J Velazquez-Duran & Javier A Jo, 2021. "Blind deconvolution estimation by multi-exponential models and alternated least squares approximations: Free-form and sparse approach," PLOS ONE, Public Library of Science, vol. 16(3), pages 1-29, March.
    12. Shinichiro Kira & Houman Safaai & Ari S. Morcos & Stefano Panzeri & Christopher D. Harvey, 2023. "A distributed and efficient population code of mixed selectivity neurons for flexible navigation decisions," Nature Communications, Nature, vol. 14(1), pages 1-28, December.
    13. Lloyd E. Russell & Mehmet Fişek & Zidan Yang & Lynn Pei Tan & Adam M. Packer & Henry W. P. Dalgleish & Selmaan N. Chettih & Christopher D. Harvey & Michael Häusser, 2024. "The influence of cortical activity on perception depends on behavioral state and sensory context," Nature Communications, Nature, vol. 15(1), pages 1-17, December.
    14. Laura D'Angelo & Antonio Canale & Zhaoxia Yu & Michele Guindani, 2023. "Bayesian nonparametric analysis for the detection of spikes in noisy calcium imaging data," Biometrics, The International Biometric Society, vol. 79(2), pages 1370-1382, June.
    15. David G. Lee & Caroline A. McLachlan & Ramon Nogueira & Osung Kwon & Alanna E. Carey & Garrett House & Gavin D. Lagani & Danielle LaMay & Stefano Fusi & Jerry L. Chen, 2024. "Perirhinal cortex learns a predictive map of the task environment," Nature Communications, Nature, vol. 15(1), pages 1-16, December.
    16. Alexandra T. Keinath & Coralie-Anne Mosser & Mark P. Brandon, 2022. "The representation of context in mouse hippocampus is preserved despite neural drift," Nature Communications, Nature, vol. 13(1), pages 1-11, December.
    17. Kevin K. Sit & Michael J. Goard, 2023. "Coregistration of heading to visual cues in retrosplenial cortex," Nature Communications, Nature, vol. 14(1), pages 1-15, December.
    18. Philipp Berens & Jeremy Freeman & Thomas Deneux & Nikolay Chenkov & Thomas McColgan & Artur Speiser & Jakob H Macke & Srinivas C Turaga & Patrick Mineault & Peter Rupprecht & Stephan Gerhard & Rainer , 2018. "Community-based benchmarking improves spike rate inference from two-photon calcium imaging data," PLOS Computational Biology, Public Library of Science, vol. 14(5), pages 1-13, May.
    19. Daniel M. Virga & Stevie Hamilton & Bertha Osei & Abigail Morgan & Parker Kneis & Emiliano Zamponi & Natalie J. Park & Victoria L. Hewitt & David Zhang & Kevin C. Gonzalez & Fiona M. Russell & D. Grah, 2024. "Activity-dependent compartmentalization of dendritic mitochondria morphology through local regulation of fusion-fission balance in neurons in vivo," Nature Communications, Nature, vol. 15(1), pages 1-21, December.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Philipp Berens & Jeremy Freeman & Thomas Deneux & Nikolay Chenkov & Thomas McColgan & Artur Speiser & Jakob H Macke & Srinivas C Turaga & Patrick Mineault & Peter Rupprecht & Stephan Gerhard & Rainer , 2018. "Community-based benchmarking improves spike rate inference from two-photon calcium imaging data," PLOS Computational Biology, Public Library of Science, vol. 14(5), pages 1-13, May.
    2. Eduardo L. Montoya & Wendy Meiring, 2016. "An F-type test for detecting departure from monotonicity in a functional linear model," Journal of Nonparametric Statistics, Taylor & Francis Journals, vol. 28(2), pages 322-337, June.
    3. Andrew Butler & Roy H. Kwon, 2023. "Efficient differentiable quadratic programming layers: an ADMM approach," Computational Optimization and Applications, Springer, vol. 84(2), pages 449-476, March.
    4. Aniruddha Das & Sarah Holden & Julie Borovicka & Jacob Icardi & Abigail O’Niel & Ariel Chaklai & Davina Patel & Rushik Patel & Stefanie Kaech Petrie & Jacob Raber & Hod Dana, 2023. "Large-scale recording of neuronal activity in freely-moving mice at cellular resolution," Nature Communications, Nature, vol. 14(1), pages 1-12, December.
    5. Enzo Busseti, 2019. "Derivative of a Conic Problem with a Unique Solution," Papers 1903.05753, arXiv.org, revised Mar 2019.
    6. da Costa, B. Freitas Paulo & Pesenti, Silvana M. & Targino, Rodrigo S., 2023. "Risk budgeting portfolios from simulations," European Journal of Operational Research, Elsevier, vol. 311(3), pages 1040-1056.
    7. Legrand, Catherine & Munda, Marco & Janssen, P. & Duchateau, L., 2012. "A general class of time-varying coefficients models for right censored data," LIDAM Discussion Papers ISBA 2012041, Université catholique de Louvain, Institute of Statistics, Biostatistics and Actuarial Sciences (ISBA).
    8. Leo Liberti, 2020. "Distance geometry and data science," TOP: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 28(2), pages 271-339, July.
    9. Richard Spady & Sami Stouli, 2020. "Gaussian Transforms Modeling and the Estimation of Distributional Regression Functions," Papers 2011.06416, arXiv.org.
    10. Jen-Chun Hsiang & Ning Shen & Florentina Soto & Daniel Kerschensteiner, 2024. "Distributed feature representations of natural stimuli across parallel retinal pathways," Nature Communications, Nature, vol. 15(1), pages 1-20, December.
    11. Moro Russ A. & Härdle Wolfgang K. & Schäfer Dorothea, 2017. "Company rating with support vector machines," Statistics & Risk Modeling, De Gruyter, vol. 34(1-2), pages 55-67, June.
    12. Florian Schwendinger & Bettina Grün & Kurt Hornik, 2021. "A comparison of optimization solvers for log binomial regression including conic programming," Computational Statistics, Springer, vol. 36(3), pages 1721-1754, September.
    13. Andrew Butler & Roy Kwon, 2021. "Efficient differentiable quadratic programming layers: an ADMM approach," Papers 2112.07464, arXiv.org.
    14. Jinhak Kim & Mohit Tawarmalani & Jean-Philippe P. Richard, 2019. "Convexification of Permutation-Invariant Sets," Purdue University Economics Working Papers 1315, Purdue University, Department of Economics.
    15. Tristan G. Heintz & Antonio J. Hinojosa & Sina E. Dominiak & Leon Lagnado, 2022. "Opposite forms of adaptation in mouse visual cortex are controlled by distinct inhibitory microcircuits," Nature Communications, Nature, vol. 13(1), pages 1-14, December.
    16. Joseph D Taylor & Samuel Winnall & Alain Nogaret, 2020. "Estimation of neuron parameters from imperfect observations," PLOS Computational Biology, Public Library of Science, vol. 16(7), pages 1-22, July.
    17. Omer Mano & Damon A Clark, 2017. "Graphics Processing Unit-Accelerated Code for Computing Second-Order Wiener Kernels and Spike-Triggered Covariance," PLOS ONE, Public Library of Science, vol. 12(1), pages 1-11, January.
    18. Sun, Qinghe & Chen, Li & Meng, Qiang, 2022. "Evaluating port efficiency dynamics: A risk-based approach," Transportation Research Part B: Methodological, Elsevier, vol. 166(C), pages 333-347.
    19. Chen, Ying & Koch, Thorsten & Zakiyeva, Nazgul & Zhu, Bangzhu, 2020. "Modeling and forecasting the dynamics of the natural gas transmission network in Germany with the demand and supply balance constraint," Applied Energy, Elsevier, vol. 278(C).
    20. Ana Colubi & J. Santos Dominguez-Menchero & Gil Gonzalez-Rodriguez, 2018. "New designs to consistently estimate the isotonic regression," Computational Statistics, Springer, vol. 33(2), pages 639-658, June.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pcbi00:1005423. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: ploscompbiol (email available below). General contact details of provider: https://journals.plos.org/ploscompbiol/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.