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

Online analysis of microendoscopic 1-photon calcium imaging data streams

Author

Listed:
  • Johannes Friedrich
  • Andrea Giovannucci
  • Eftychios A Pnevmatikakis

Abstract

In vivo calcium imaging through microendoscopic lenses enables imaging of neuronal populations deep within the brains of freely moving animals. Previously, a constrained matrix factorization approach (CNMF-E) has been suggested to extract single-neuronal activity from microendoscopic data. However, this approach relies on offline batch processing of the entire video data and is demanding both in terms of computing and memory requirements. These drawbacks prevent its applicability to the analysis of large datasets and closed-loop experimental settings. Here we address both issues by introducing two different online algorithms for extracting neuronal activity from streaming microendoscopic data. Our first algorithm, OnACID-E, presents an online adaptation of the CNMF-E algorithm, which dramatically reduces its memory and computation requirements. Our second algorithm proposes a convolution-based background model for microendoscopic data that enables even faster (real time) processing. Our approach is modular and can be combined with existing online motion artifact correction and activity deconvolution methods to provide a highly scalable pipeline for microendoscopic data analysis. We apply our algorithms on four previously published typical experimental datasets and show that they yield similar high-quality results as the popular offline approach, but outperform it with regard to computing time and memory requirements. They can be used instead of CNMF-E to process pre-recorded data with boosted speeds and dramatically reduced memory requirements. Further, they newly enable online analysis of live-streaming data even on a laptop.Author summary: Calcium imaging methods enable researchers to measure the activity of genetically-targeted large-scale neuronal subpopulations. Whereas previous methods required the specimen to be stable, e.g. anesthetized or head-fixed, new brain imaging techniques using microendoscopic lenses and miniaturized microscopes have enabled deep brain imaging in freely moving mice. However, the very large background fluctuations, the inevitable movements and distortions of imaging field, and the extensive spatial overlaps of fluorescent signals complicate the goal of efficiently extracting accurate estimates of neural activity from the observed video data. Further, current activity extraction methods are computationally expensive due to the complex background model and are typically applied to imaging data long after the experiment is complete. Moreover, in some scenarios it is necessary to perform experiments in real-time and closed-loop—analyzing data on-the-fly to guide the next experimental steps or to control feedback –, and this calls for new methods for accurate real-time processing. Here we address both issues by adapting a popular extraction method to operate online and extend it to utilize GPU hardware that enables real time processing. Our algorithms yield similar high-quality results as the original offline approach, but outperform it with regard to computing time and memory requirements. Our results enable faster and scalable analysis, and open the door to new closed-loop experiments in deep brain areas and on freely-moving preparations. Our algorithms can be used for newly enabled real-time analysis of streaming data, as well as swapped in directly to replace the computationally costly offline approach.

Suggested Citation

  • Johannes Friedrich & Andrea Giovannucci & Eftychios A Pnevmatikakis, 2021. "Online analysis of microendoscopic 1-photon calcium imaging data streams," PLOS Computational Biology, Public Library of Science, vol. 17(1), pages 1-32, January.
  • Handle: RePEc:plo:pcbi00:1008565
    DOI: 10.1371/journal.pcbi.1008565
    as

    Download full text from publisher

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

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

    File URL: https://libkey.io/10.1371/journal.pcbi.1008565?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. Denise J. Cai & Daniel Aharoni & Tristan Shuman & Justin Shobe & Jeremy Biane & Weilin Song & Brandon Wei & Michael Veshkini & Mimi La-Vu & Jerry Lou & Sergio E. Flores & Isaac Kim & Yoshitake Sano & , 2016. "A shared neural ensemble links distinct contextual memories encoded close in time," Nature, Nature, vol. 534(7605), pages 115-118, June.
    Full references (including those not matched with items on IDEAS)

    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. Paul J. Lamothe-Molina & Andreas Franzelin & Lennart Beck & Dong Li & Lea Auksutat & Tim Fieblinger & Laura Laprell & Joachim Alhbeck & Christine E. Gee & Matthias Kneussel & Andreas K. Engel & Claus , 2022. "ΔFosB accumulation in hippocampal granule cells drives cFos pattern separation during spatial learning," Nature Communications, Nature, vol. 13(1), pages 1-16, December.
    2. Zhiwei Xu & Erez Geron & Luis M. Pérez-Cuesta & Yang Bai & Wen-Biao Gan, 2023. "Generalized extinction of fear memory depends on co-allocation of synaptic plasticity in dendrites," Nature Communications, Nature, vol. 14(1), pages 1-17, December.
    3. Akinobu Suzuki & Sakurako Kosugi & Emi Murayama & Eri Sasakawa & Noriaki Ohkawa & Ayumu Konno & Hirokazu Hirai & Kaoru Inokuchi, 2022. "A cortical cell ensemble in the posterior parietal cortex controls past experience-dependent memory updating," Nature Communications, Nature, vol. 13(1), pages 1-14, December.
    4. Shiri Shoob & Nadav Buchbinder & Ortal Shinikamin & Or Gold & Halit Baeloha & Tomer Langberg & Daniel Zarhin & Ilana Shapira & Gabriella Braun & Naomi Habib & Inna Slutsky, 2023. "Deep brain stimulation of thalamic nucleus reuniens promotes neuronal and cognitive resilience in an Alzheimer’s disease mouse model," Nature Communications, Nature, vol. 14(1), pages 1-17, December.
    5. Thibault Cholvin & Marlene Bartos, 2022. "Hemisphere-specific spatial representation by hippocampal granule cells," Nature Communications, Nature, vol. 13(1), pages 1-14, December.
    6. Kyuhyun Choi & Eugenio Piasini & Edgar Díaz-Hernández & Luigim Vargas Cifuentes & Nathan T. Henderson & Elizabeth N. Holly & Manivannan Subramaniyan & Charles R. Gerfen & Marc V. Fuccillo, 2023. "Distributed processing for value-based choice by prelimbic circuits targeting anterior-posterior dorsal striatal subregions in male mice," Nature Communications, Nature, vol. 14(1), pages 1-19, December.
    7. 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.
    8. Yuanlong Zhang & Xiaofei Song & Jiachen Xie & Jing Hu & Jiawei Chen & Xiang Li & Haiyu Zhang & Qiqun Zhou & Lekang Yuan & Chui Kong & Yibing Shen & Jiamin Wu & Lu Fang & Qionghai Dai, 2023. "Large depth-of-field ultra-compact microscope by progressive optimization and deep learning," Nature Communications, Nature, vol. 14(1), pages 1-15, December.
    9. Ella Gabitov & Arnaud Boutin & Basile Pinsard & Nitzan Censor & Stuart M Fogel & Geneviève Albouy & Bradley R King & Julie Carrier & Leonardo G Cohen & Avi Karni & Julien Doyon, 2019. "Susceptibility of consolidated procedural memory to interference is independent of its active task-based retrieval," PLOS ONE, Public Library of Science, vol. 14(1), pages 1-19, January.

    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:1008565. 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.