1
|
Chen Z, Blair GJ, Cao C, Zhou J, Aharoni D, Golshani P, Blair HT, Cong J. FPGA-Based In-Vivo Calcium Image Decoding for Closed-Loop Feedback Applications. IEEE TRANSACTIONS ON BIOMEDICAL CIRCUITS AND SYSTEMS 2023; 17:169-179. [PMID: 37071510 PMCID: PMC10414190 DOI: 10.1109/tbcas.2023.3268130] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Grants] [Track Full Text] [Subscribe] [Scholar Register] [Indexed: 05/11/2023]
Abstract
Miniaturized calcium imaging is an emerging neural recording technique that has been widely used for monitoring neural activity on a large scale at a specific brain region of rats or mice. Most existing calcium-image analysis pipelines operate offline. This results in long processing latency, making it difficult to realize closed-loop feedback stimulation for brain research. In recent work, we have proposed an FPGA-based real-time calcium image processing pipeline for closed-loop feedback applications. It can perform real-time calcium image motion correction, enhancement, fast trace extraction, and real-time decoding from extracted traces. Here, we extend this work by proposing a variety of neural network based methods for real-time decoding and evaluate the tradeoff among these decoding methods and accelerator designs. We introduce the implementation of the neural network based decoders on the FPGA, and show their speedup against the implementation on the ARM processor. Our FPGA implementation enables the real-time calcium image decoding with sub-ms processing latency for closed-loop feedback applications.
Collapse
|
2
|
Li M, Liu C, Cui X, Jung H, You H, Feng L, Zhang S. An Open-Source Real-Time Motion Correction Plug-In for Single-Photon Calcium Imaging of Head-Mounted Microscopy. Front Neural Circuits 2022; 16:891825. [PMID: 35814484 PMCID: PMC9265215 DOI: 10.3389/fncir.2022.891825] [Citation(s) in RCA: 1] [Impact Index Per Article: 0.5] [Reference Citation Analysis] [Abstract] [MESH Headings] [Grants] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 03/08/2022] [Accepted: 06/01/2022] [Indexed: 11/29/2022] Open
Abstract
Single-photon-based head-mounted microscopy is widely used to record the brain activities of freely-moving animals. However, during data acquisition, the free movement of animals will cause shaking in the field of view, which deteriorates subsequent neural signal analyses. Existing motion correction methods applied to calcium imaging data either focus on offline analyses or lack sufficient accuracy in real-time processing for single-photon data. In this study, we proposed an open-source real-time motion correction (RTMC) plug-in for single-photon calcium imaging data acquisition. The RTMC plug-in is a real-time subpixel registration algorithm that can run GPUs in UCLA Miniscope data acquisition software. When used with the UCLA Miniscope, the RTMC algorithm satisfies real-time processing requirements in terms of speed, memory, and accuracy. We tested the RTMC algorithm by extending a manual neuron labeling function to extract calcium signals in a real experimental setting. The results demonstrated that the neural calcium dynamics and calcium events can be restored with high accuracy from the calcium data that were collected by the UCLA Miniscope system embedded with our RTMC plug-in. Our method could become an essential component in brain science research, where real-time brain activity is needed for closed-loop experiments.
Collapse
Affiliation(s)
- Mingkang Li
- Key Laboratory of Biomedical Engineering of Education Ministry, Zhejiang Provincial Key Laboratory of Cardio-Cerebral Vascular Detection Technology and Medicinal Effectiveness Appraisal, Department of Biomedical Engineering, School of Biomedical Engineering and Instrument Science, Zhejiang University, Hangzhou, China
- Qiushi Academy for Advanced Studies, Zhejiang University, Hangzhou, China
| | - Changhao Liu
- Key Laboratory of Biomedical Engineering of Education Ministry, Zhejiang Provincial Key Laboratory of Cardio-Cerebral Vascular Detection Technology and Medicinal Effectiveness Appraisal, Department of Biomedical Engineering, School of Biomedical Engineering and Instrument Science, Zhejiang University, Hangzhou, China
- Qiushi Academy for Advanced Studies, Zhejiang University, Hangzhou, China
| | - Xin Cui
- Department of Industrial and Management Engineering, Pohang University of Science and Technology, Pohang, South Korea
| | - Hayoung Jung
- Department of Industrial and Management Engineering, Pohang University of Science and Technology, Pohang, South Korea
| | - Heecheon You
- Department of Industrial and Management Engineering, Pohang University of Science and Technology, Pohang, South Korea
| | - Linqing Feng
- Research Institute of Artificial Intelligence, Zhejiang Lab, Hangzhou, China
- *Correspondence: Linqing Feng
| | - Shaomin Zhang
- Key Laboratory of Biomedical Engineering of Education Ministry, Zhejiang Provincial Key Laboratory of Cardio-Cerebral Vascular Detection Technology and Medicinal Effectiveness Appraisal, Department of Biomedical Engineering, School of Biomedical Engineering and Instrument Science, Zhejiang University, Hangzhou, China
- Qiushi Academy for Advanced Studies, Zhejiang University, Hangzhou, China
- Shaomin Zhang
| |
Collapse
|
3
|
Liu C, Li M, Wang R, Cui X, Jung H, Halin K, You H, Yang X, Chen W. Online Decoding System with Calcium Image From Mice Primary Motor Cortex. ANNUAL INTERNATIONAL CONFERENCE OF THE IEEE ENGINEERING IN MEDICINE AND BIOLOGY SOCIETY. IEEE ENGINEERING IN MEDICINE AND BIOLOGY SOCIETY. ANNUAL INTERNATIONAL CONFERENCE 2021; 2021:6402-6405. [PMID: 34892577 DOI: 10.1109/embc46164.2021.9630138] [Citation(s) in RCA: 1] [Impact Index Per Article: 0.3] [Reference Citation Analysis] [Abstract] [MESH Headings] [Track Full Text] [Subscribe] [Scholar Register] [Indexed: 06/14/2023]
Abstract
With the development of calcium imaging, neuroscientists have been able to study neural activity with a higher spatial resolution. However, the real-time processing of calcium imaging is still a big challenge for future experiments and applications. Most neuroscientists have to process their imaging data offline due to the time-consuming of most existing calcium imaging analysis methods. We proposed a novel online neural signal processing framework for calcium imaging and established an Optical Brain-Computer Interface System (OBCIs) for decoding neural signals in real-time. We tested and evaluated this system by classifying the calcium signals obtained from the primary motor cortex of mice when the mice were performing a lever-pressing task. The performance of our online system could achieve above 80% in the average decoding accuracy. Our preliminary results show that the online neural processing framework could be applied to future closed-loop OBCIs studies.
Collapse
|