A hardware system for real-time decoding of in vivo calcium imaging data

Epifluorescence miniature microscopes (‘miniscopes’) are widely used for in vivo calcium imaging of neural population activity. Imaging data are typically collected during a behavioral task and stored for later offline analysis, but emerging techniques for online imaging can support novel closed-loo...

Full description

Bibliographic Details
Main Authors: Zhe Chen, Garrett J Blair, Changliang Guo, Jim Zhou, Juan-Luis Romero-Sosa, Alicia Izquierdo, Peyman Golshani, Jason Cong, Daniel Aharoni, Hugh T Blair
Format: Article
Language:English
Published: eLife Sciences Publications Ltd 2023-01-01
Series:eLife
Subjects:
Online Access:https://elifesciences.org/articles/78344
_version_ 1811169015985340416
author Zhe Chen
Garrett J Blair
Changliang Guo
Jim Zhou
Juan-Luis Romero-Sosa
Alicia Izquierdo
Peyman Golshani
Jason Cong
Daniel Aharoni
Hugh T Blair
author_facet Zhe Chen
Garrett J Blair
Changliang Guo
Jim Zhou
Juan-Luis Romero-Sosa
Alicia Izquierdo
Peyman Golshani
Jason Cong
Daniel Aharoni
Hugh T Blair
author_sort Zhe Chen
collection DOAJ
description Epifluorescence miniature microscopes (‘miniscopes’) are widely used for in vivo calcium imaging of neural population activity. Imaging data are typically collected during a behavioral task and stored for later offline analysis, but emerging techniques for online imaging can support novel closed-loop experiments in which neural population activity is decoded in real time to trigger neurostimulation or sensory feedback. To achieve short feedback latencies, online imaging systems must be optimally designed to maximize computational speed and efficiency while minimizing errors in population decoding. Here we introduce DeCalciOn, an open-source device for real-time imaging and population decoding of in vivo calcium signals that is hardware compatible with all miniscopes that use the UCLA Data Acquisition (DAQ) interface. DeCalciOn performs online motion stabilization, neural enhancement, calcium trace extraction, and decoding of up to 1024 traces per frame at latencies of <50 ms after fluorescence photons arrive at the miniscope image sensor. We show that DeCalciOn can accurately decode the position of rats (n = 12) running on a linear track from calcium fluorescence in the hippocampal CA1 layer, and can categorically classify behaviors performed by rats (n = 2) during an instrumental task from calcium fluorescence in orbitofrontal cortex. DeCalciOn achieves high decoding accuracy at short latencies using innovations such as field-programmable gate array hardware for real-time image processing and contour-free methods to efficiently extract calcium traces from sensor images. In summary, our system offers an affordable plug-and-play solution for real-time calcium imaging experiments in behaving animals.
first_indexed 2024-04-10T16:35:11Z
format Article
id doaj.art-faab9afebb8943da8e5a5c51d8df33ec
institution Directory Open Access Journal
issn 2050-084X
language English
last_indexed 2024-04-10T16:35:11Z
publishDate 2023-01-01
publisher eLife Sciences Publications Ltd
record_format Article
series eLife
spelling doaj.art-faab9afebb8943da8e5a5c51d8df33ec2023-02-08T14:19:32ZengeLife Sciences Publications LtdeLife2050-084X2023-01-011210.7554/eLife.78344A hardware system for real-time decoding of in vivo calcium imaging dataZhe Chen0Garrett J Blair1https://orcid.org/0000-0003-2724-8914Changliang Guo2Jim Zhou3Juan-Luis Romero-Sosa4Alicia Izquierdo5https://orcid.org/0000-0001-9897-2091Peyman Golshani6Jason Cong7Daniel Aharoni8https://orcid.org/0000-0003-4931-8514Hugh T Blair9https://orcid.org/0000-0001-8256-5109Department of Electrical and Computer Engineering, University of California, Los Angeles, Los Angeles, United States; Department of Psychology, University of California, Los Angeles, Los Angeles, United StatesDepartment of Psychology, University of California, Los Angeles, Los Angeles, United StatesDavid Geffen School of Medicine, University of California, Los Angeles, Los Angeles, United States; Department of Neurology, David Geffen School of Medicine, University of California, Los Angeles, Los Angeles, United StatesDepartment of Electrical and Computer Engineering, University of California, Los Angeles, Los Angeles, United StatesDepartment of Psychology, University of California, Los Angeles, Los Angeles, United StatesDepartment of Psychology, University of California, Los Angeles, Los Angeles, United States; Integrative Center for Learning and Memory, University of California, Los Angeles, Los Angeles, United StatesDavid Geffen School of Medicine, University of California, Los Angeles, Los Angeles, United States; Department of Neurology, David Geffen School of Medicine, University of California, Los Angeles, Los Angeles, United States; Integrative Center for Learning and Memory, University of California, Los Angeles, Los Angeles, United StatesDepartment of Electrical and Computer Engineering, University of California, Los Angeles, Los Angeles, United StatesDavid Geffen School of Medicine, University of California, Los Angeles, Los Angeles, United States; Department of Neurology, David Geffen School of Medicine, University of California, Los Angeles, Los Angeles, United States; Integrative Center for Learning and Memory, University of California, Los Angeles, Los Angeles, United StatesDepartment of Psychology, University of California, Los Angeles, Los Angeles, United States; Integrative Center for Learning and Memory, University of California, Los Angeles, Los Angeles, United StatesEpifluorescence miniature microscopes (‘miniscopes’) are widely used for in vivo calcium imaging of neural population activity. Imaging data are typically collected during a behavioral task and stored for later offline analysis, but emerging techniques for online imaging can support novel closed-loop experiments in which neural population activity is decoded in real time to trigger neurostimulation or sensory feedback. To achieve short feedback latencies, online imaging systems must be optimally designed to maximize computational speed and efficiency while minimizing errors in population decoding. Here we introduce DeCalciOn, an open-source device for real-time imaging and population decoding of in vivo calcium signals that is hardware compatible with all miniscopes that use the UCLA Data Acquisition (DAQ) interface. DeCalciOn performs online motion stabilization, neural enhancement, calcium trace extraction, and decoding of up to 1024 traces per frame at latencies of <50 ms after fluorescence photons arrive at the miniscope image sensor. We show that DeCalciOn can accurately decode the position of rats (n = 12) running on a linear track from calcium fluorescence in the hippocampal CA1 layer, and can categorically classify behaviors performed by rats (n = 2) during an instrumental task from calcium fluorescence in orbitofrontal cortex. DeCalciOn achieves high decoding accuracy at short latencies using innovations such as field-programmable gate array hardware for real-time image processing and contour-free methods to efficiently extract calcium traces from sensor images. In summary, our system offers an affordable plug-and-play solution for real-time calcium imaging experiments in behaving animals.https://elifesciences.org/articles/78344closed-loopneural decodingcalcium imaging
spellingShingle Zhe Chen
Garrett J Blair
Changliang Guo
Jim Zhou
Juan-Luis Romero-Sosa
Alicia Izquierdo
Peyman Golshani
Jason Cong
Daniel Aharoni
Hugh T Blair
A hardware system for real-time decoding of in vivo calcium imaging data
eLife
closed-loop
neural decoding
calcium imaging
title A hardware system for real-time decoding of in vivo calcium imaging data
title_full A hardware system for real-time decoding of in vivo calcium imaging data
title_fullStr A hardware system for real-time decoding of in vivo calcium imaging data
title_full_unstemmed A hardware system for real-time decoding of in vivo calcium imaging data
title_short A hardware system for real-time decoding of in vivo calcium imaging data
title_sort hardware system for real time decoding of in vivo calcium imaging data
topic closed-loop
neural decoding
calcium imaging
url https://elifesciences.org/articles/78344
work_keys_str_mv AT zhechen ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT garrettjblair ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT changliangguo ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT jimzhou ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT juanluisromerososa ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT aliciaizquierdo ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT peymangolshani ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT jasoncong ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT danielaharoni ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT hughtblair ahardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT zhechen hardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT garrettjblair hardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT changliangguo hardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT jimzhou hardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT juanluisromerososa hardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT aliciaizquierdo hardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT peymangolshani hardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT jasoncong hardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT danielaharoni hardwaresystemforrealtimedecodingofinvivocalciumimagingdata
AT hughtblair hardwaresystemforrealtimedecodingofinvivocalciumimagingdata