RESUMO
Optical microscopy methods such as calcium and voltage imaging enable fast activity readout of large neuronal populations using light. However, the lack of corresponding advances in online algorithms has slowed progress in retrieving information about neural activity during or shortly after an experiment. This gap not only prevents the execution of real-time closed-loop experiments, but also hampers fast experiment-analysis-theory turnover for high-throughput imaging modalities. Reliable extraction of neural activity from fluorescence imaging frames at speeds compatible with indicator dynamics and imaging modalities poses a challenge. We therefore developed FIOLA, a framework for fluorescence imaging online analysis that extracts neuronal activity from calcium and voltage imaging movies at speeds one order of magnitude faster than state-of-the-art methods. FIOLA exploits algorithms optimized for parallel processing on GPUs and CPUs. We demonstrate reliable and scalable performance of FIOLA on both simulated and real calcium and voltage imaging datasets. Finally, we present an online experimental scenario to provide guidance in setting FIOLA parameters and to highlight the trade-offs of our approach.
Assuntos
Cálcio , Imagem Óptica , Algoritmos , MicroscopiaRESUMO
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.
Assuntos
Algoritmos , Cálcio/metabolismo , Endoscopia/métodos , Processamento de Imagem Assistida por Computador/métodos , Microscopia/métodos , Animais , Encéfalo/citologia , Encéfalo/diagnóstico por imagem , Encéfalo/metabolismo , Química Encefálica , Biologia Computacional , Camundongos , Redes Neurais de Computação , Neuroimagem , Fótons , Gravação em Vídeo/métodosRESUMO
Voltage imaging enables monitoring neural activity at sub-millisecond and sub-cellular scale, unlocking the study of subthreshold activity, synchrony, and network dynamics with unprecedented spatio-temporal resolution. However, high data rates (>800MB/s) and low signal-to-noise ratios create bottlenecks for analyzing such datasets. Here we present VolPy, an automated and scalable pipeline to pre-process voltage imaging datasets. VolPy features motion correction, memory mapping, automated segmentation, denoising and spike extraction, all built on a highly parallelizable, modular, and extensible framework optimized for memory and speed. To aid automated segmentation, we introduce a corpus of 24 manually annotated datasets from different preparations, brain areas and voltage indicators. We benchmark VolPy against ground truth segmentation, simulations and electrophysiology recordings, and we compare its performance with existing algorithms in detecting spikes. Our results indicate that VolPy's performance in spike extraction and scalability are state-of-the-art.
Assuntos
Encéfalo , Processamento de Imagem Assistida por Computador/métodos , Neuroimagem/métodos , Neurônios/fisiologia , Software , Algoritmos , Automação , Conjuntos de Dados como Assunto , Fenômenos Eletrofisiológicos , HumanosRESUMO
We discuss methods for fast spatiotemporal smoothing of calcium signals in dendritic trees, given single-trial, spatially localized imaging data obtained via multi-photon microscopy. By analyzing the dynamics of calcium binding to probe molecules and the effects of the imaging procedure, we show that calcium concentration can be estimated up to an affine transformation, i.e., an additive and multiplicative constant. To obtain a full spatiotemporal estimate, we model calcium dynamics within the cell using a functional approach. The evolution of calcium concentration is represented through a smaller set of hidden variables that incorporate fast transients due to backpropagating action potentials (bAPs), or other forms of stimulation. Because of the resulting state space structure, inference can be done in linear time using forward-backward maximum-a-posteriori methods. Non-negativity constraints on the calcium concentration can also be incorporated using a log-barrier method that does not affect the computational scaling. Moreover, by exploiting the neuronal tree structure we show that the cost of the algorithm is also linear in the size of the dendritic tree, making the approach applicable to arbitrarily large trees. We apply this algorithm to data obtained from hippocampal CA1 pyramidal cells with experimentally evoked bAPs, some of which were paired with excitatory postsynaptic potentials (EPSPs). The algorithm recovers the timing of the bAPs and provides an estimate of the induced calcium transient throughout the tree. The proposed methods could be used to further understand the interplay between bAPs and EPSPs in synaptic strength modification. More generally, this approach allows us to infer the concentration on intracellular calcium across the dendritic tree from noisy observations at a discrete set of points in space.
Assuntos
Sinalização do Cálcio/fisiologia , Cálcio/metabolismo , Dendritos/metabolismo , Modelos Neurológicos , Potenciais de Ação/fisiologia , Algoritmos , Animais , Cálcio/análise , Biologia Computacional/métodos , Dendritos/química , Hipocampo/citologia , Hipocampo/metabolismo , Microscopia de Fluorescência por Excitação Multifotônica , Ratos , Reprodutibilidade dos Testes , Processamento de Sinais Assistido por ComputadorRESUMO
Hippocampal spiking sequences encode external stimuli and spatiotemporal intervals, linking sequential experiences in memory, but the dynamics controlling the emergence and stability of such diverse representations remain unclear. Using two-photon calcium imaging in CA1 while mice performed an olfactory working-memory task, we recorded stimulus-specific sequences of "odor-cells" encoding olfactory stimuli followed by "time-cells" encoding time points in the ensuing delay. Odor-cells were reliably activated and retained stable fields during changes in trial structure and across days. Time-cells exhibited sparse and dynamic fields that remapped in both cases. During task training, but not in untrained task exposure, time-cell ensembles increased in size, whereas odor-cell numbers remained stable. Over days, sequences drifted to new populations with cell activity progressively converging to a field and then diverging from it. Therefore, CA1 employs distinct regimes to encode external cues versus their variable temporal relationships, which may be necessary to construct maps of sequential experiences.
Assuntos
Região CA1 Hipocampal/fisiologia , Sinais (Psicologia) , Memória de Curto Prazo/fisiologia , Odorantes , Olfato/fisiologia , Potenciais de Ação , Animais , Região CA1 Hipocampal/química , Região CA1 Hipocampal/citologia , Masculino , Memória de Curto Prazo/efeitos dos fármacos , Camundongos , Camundongos da Linhagem 129 , Camundongos Endogâmicos C57BL , Camundongos Transgênicos , Microscopia de Fluorescência por Excitação Multifotônica/métodos , Olfato/efeitos dos fármacos , Fatores de TempoRESUMO
Calcium imaging is a popular tool among neuroscientists because of its capability to monitor in vivo large neural populations across weeks with single neuron and single spike resolution. Before any downstream analysis, the data needs to be pre-processed to extract the location and activity of the neurons and processes in the observed field of view. The ever increasing size of calcium imaging datasets necessitates scalable analysis pipelines that are reproducible and fully automated. This review focuses on recent methods for addressing the pre-processing problems that arise in calcium imaging data analysis, and available software tools for high throughput analysis pipelines.
Assuntos
Cálcio/análise , Software , NeurôniosRESUMO
The mammalian brain can form associations between behaviorally relevant stimuli in an animal's environment. While such learning is thought to primarily involve high-order association cortex, even primary sensory areas receive long-range connections carrying information that could contribute to high-level representations. Here, we imaged layer 1 apical dendrites in the barrel cortex of mice performing a whisker-based operant behavior. In addition to sensory-motor events, calcium signals in apical dendrites of layers 2/3 and 5 neurons and in layer 2/3 somata track the delivery of rewards, both choice related and randomly administered. Reward-related tuft-wide dendritic spikes emerge gradually with training and are task specific. Learning recruits cells whose intrinsic activity coincides with the time of reinforcement. Layer 4 largely lacked reward-related signals, suggesting a source other than the primary thalamus. Our results demonstrate that a sensory cortex can acquire a set of associations outside its immediate sensory modality and linked to salient behavioral events.
Assuntos
Dendritos/fisiologia , Reforço Psicológico , Córtex Somatossensorial/fisiologia , Animais , Sinalização do Cálcio , Dendritos/metabolismo , Feminino , Masculino , Camundongos , Camundongos Endogâmicos C57BL , Células Receptoras Sensoriais/metabolismo , Células Receptoras Sensoriais/fisiologia , Córtex Somatossensorial/citologia , Vibrissas/fisiologiaRESUMO
Advances in fluorescence microscopy enable monitoring larger brain areas in-vivo with finer time resolution. The resulting data rates require reproducible analysis pipelines that are reliable, fully automated, and scalable to datasets generated over the course of months. We present CaImAn, an open-source library for calcium imaging data analysis. CaImAn provides automatic and scalable methods to address problems common to pre-processing, including motion correction, neural activity identification, and registration across different sessions of data collection. It does this while requiring minimal user intervention, with good scalability on computers ranging from laptops to high-performance computing clusters. CaImAn is suitable for two-photon and one-photon imaging, and also enables real-time analysis on streaming data. To benchmark the performance of CaImAn we collected and combined a corpus of manual annotations from multiple labelers on nine mouse two-photon datasets. We demonstrate that CaImAn achieves near-human performance in detecting locations of active neurons.
Assuntos
Encéfalo/diagnóstico por imagem , Cálcio/metabolismo , Processamento de Imagem Assistida por Computador/métodos , Microscopia de Fluorescência , Reconhecimento Automatizado de Padrão , Algoritmos , Animais , Artefatos , Biologia Computacional , Análise de Dados , Humanos , Camundongos , Movimento (Física) , Neurônios/metabolismo , Variações Dependentes do Observador , Fótons , Reprodutibilidade dos Testes , Software , Peixe-ZebraRESUMO
In vivo calcium imaging through microendoscopic lenses enables imaging of previously inaccessible neuronal populations deep within the brains of freely moving animals. However, it is computationally challenging to extract single-neuronal activity from microendoscopic data, because of the very large background fluctuations and high spatial overlaps intrinsic to this recording modality. Here, we describe a new constrained matrix factorization approach to accurately separate the background and then demix and denoise the neuronal signals of interest. We compared the proposed method against previous independent components analysis and constrained nonnegative matrix factorization approaches. On both simulated and experimental data recorded from mice, our method substantially improved the quality of extracted cellular signals and detected more well-isolated neural signals, especially in noisy data regimes. These advances can in turn significantly enhance the statistical power of downstream analyses, and ultimately improve scientific conclusions derived from microendoscopic data.
Assuntos
Encéfalo/fisiologia , Sinalização do Cálcio , Endoscopia/métodos , Processamento de Imagem Assistida por Computador/métodos , Neurônios/fisiologia , Gravação em Vídeo/métodos , Animais , CamundongosRESUMO
BACKGROUND: Motion correction is a challenging pre-processing problem that arises early in the analysis pipeline of calcium imaging data sequences. The motion artifacts in two-photon microscopy recordings can be non-rigid, arising from the finite time of raster scanning and non-uniform deformations of the brain medium. NEW METHOD: We introduce an algorithm for fast Non-Rigid Motion Correction (NoRMCorre) based on template matching. NoRMCorre operates by splitting the field of view (FOV) into overlapping spatial patches along all directions. The patches are registered at a sub-pixel resolution for rigid translation against a regularly updated template. The estimated alignments are subsequently up-sampled to create a smooth motion field for each frame that can efficiently approximate non-rigid artifacts in a piecewise-rigid manner. EXISTING METHODS: Existing approaches either do not scale well in terms of computational performance or are targeted to non-rigid artifacts arising just from the finite speed of raster scanning, and thus cannot correct for non-rigid motion observable in datasets from a large FOV. RESULTS: NoRMCorre can be run in an online mode resulting in comparable to or even faster than real time motion registration of streaming data. We evaluate its performance with simple yet intuitive metrics and compare against other non-rigid registration methods on simulated data and in vivo two-photon calcium imaging datasets. Open source Matlab and Python code is also made available. CONCLUSIONS: The proposed method and accompanying code can be useful for solving large scale image registration problems in calcium imaging, especially in the presence of non-rigid deformations.
Assuntos
Algoritmos , Artefatos , Cálcio/metabolismo , Movimento (Física) , Imagens com Corantes Sensíveis à Voltagem/métodos , Animais , Simulação por Computador , Hipocampo/citologia , Hipocampo/metabolismo , Camundongos , Modelos Neurológicos , Neurônios/citologia , Neurônios/metabolismo , Lobo Parietal/citologia , Lobo Parietal/metabolismo , SoftwareRESUMO
The zebra finch brain features a set of clearly defined and hierarchically arranged motor nuclei that are selectively responsible for producing singing behavior. One of these regions, a critical forebrain structure called HVC, contains premotor neurons that are active at precise time points during song production. However, the neural representation of this behavior at a population level remains elusive. We used two-photon microscopy to monitor ensemble activity during singing, integrating across multiple trials by adopting a Bayesian inference approach to more precisely estimate burst timing. Additionally, we examined spiking and motor-related synaptic inputs using intracellular recordings during singing. With both experimental approaches, we find that premotor events do not occur preferentially at the onsets or offsets of song syllables or at specific subsyllabic motor landmarks. These results strongly support the notion that HVC projection neurons collectively exhibit a temporal sequence during singing that is uncoupled from ongoing movements.
Assuntos
Potenciais de Ação/fisiologia , Comportamento Animal/fisiologia , Tentilhões/fisiologia , Neurônios/fisiologia , Prosencéfalo/fisiologia , Vocalização Animal/fisiologia , Animais , Estimulação Elétrica/métodos , Eletrofisiologia/métodos , Feminino , MasculinoRESUMO
We present a modular approach for analyzing calcium imaging recordings of large neuronal ensembles. Our goal is to simultaneously identify the locations of the neurons, demix spatially overlapping components, and denoise and deconvolve the spiking activity from the slow dynamics of the calcium indicator. Our approach relies on a constrained nonnegative matrix factorization that expresses the spatiotemporal fluorescence activity as the product of a spatial matrix that encodes the spatial footprint of each neuron in the optical field and a temporal matrix that characterizes the calcium concentration of each neuron over time. This framework is combined with a novel constrained deconvolution approach that extracts estimates of neural activity from fluorescence traces, to create a spatiotemporal processing algorithm that requires minimal parameter tuning. We demonstrate the general applicability of our method by applying it to in vitro and in vivo multi-neuronal imaging data, whole-brain light-sheet imaging data, and dendritic imaging data.
Assuntos
Potenciais de Ação/fisiologia , Cálcio/metabolismo , Microscopia de Fluorescência/métodos , Neurônios/metabolismo , Estatística como Assunto/métodos , Animais , Cálcio/análise , Dendritos/química , Dendritos/metabolismo , Corantes Fluorescentes/análise , Corantes Fluorescentes/metabolismo , Camundongos , Camundongos Endogâmicos C57BL , Neurônios/químicaRESUMO
Of all of the sensory areas, barrel cortex is among the best understood in terms of circuitry, yet least understood in terms of sensory function. We combined intracellular recording in rats with a multi-directional, multi-whisker stimulator system to estimate receptive fields by reverse correlation of stimuli to synaptic inputs. Spatiotemporal receptive fields were identified orders of magnitude faster than by conventional spike-based approaches, even for neurons with little spiking activity. Given a suitable stimulus representation, a linear model captured the stimulus-response relationship for all neurons with high accuracy. In contrast with conventional single-whisker stimuli, complex stimuli revealed markedly sharpened receptive fields, largely as a result of adaptation. This phenomenon allowed the surround to facilitate rather than to suppress responses to the principal whisker. Optimized stimuli enhanced firing in layers 4-6, but not in layers 2/3, which remained sparsely active. Surround facilitation through adaptation may be required for discriminating complex shapes and textures during natural sensing.
Assuntos
Córtex Cerebral/fisiologia , Sinapses/fisiologia , Potenciais Sinápticos/fisiologia , Vibrissas/fisiologia , Animais , Feminino , Neurônios/fisiologia , Estimulação Física/métodos , Ratos , Ratos Wistar , Fatores de TempoRESUMO
Neural circuitry and brain activity depend critically on proper function of voltage-gated calcium channels (VGCCs), whose activity must be tightly controlled. We show that the main body of the pore-forming α1 subunit of neuronal L-type VGCCs, Cav1.2, is proteolytically cleaved, resulting in Cav1.2 fragment channels that separate but remain on the plasma membrane. This "midchannel" proteolysis is regulated by channel activity, involves the Ca(2+)-dependent protease calpain and the ubiquitin-proteasome system, and causes attenuation and biophysical alterations of VGCC currents. Recombinant Cav1.2 fragment channels mimicking the products of midchannel proteolysis do not form active channels on their own but, when properly paired, produce currents with distinct biophysical properties. Midchannel proteolysis increases dramatically with age and can be attenuated with an L-type VGCC blocker in vivo. Midchannel proteolysis represents a novel form of homeostatic negative-feedback processing of VGCCs that could profoundly affect neuronal excitability, neurotransmission, neuroprotection, and calcium signaling in physiological and disease states.
Assuntos
Canais de Cálcio Tipo L/metabolismo , Neurônios/metabolismo , Proteólise , Fatores Etários , Animais , Cálcio/metabolismo , Córtex Cerebral/metabolismo , Feminino , Hipocampo/metabolismo , Homeostase , Masculino , Ratos , XenopusRESUMO
We investigate neural architectures for identity preserving transformations (IPTs) on visual stimuli in the spike domain. The stimuli are encoded with a population of spiking neurons; the resulting spikes are processed and finally decoded. A number of IPTs are demonstrated including faithful stimulus recovery, as well as simple transformations on the original visual stimulus such as translations, rotations and zoomings. We show that if the set of receptive fields satisfies certain symmetry properties, then IPTs can easily be realized and additionally, the same basic stimulus decoding algorithm can be employed to recover the transformed input stimulus. Using group theoretic methods we advance two different neural encoding architectures and discuss the realization of exact and approximate IPTs. These are realized in the spike domain processing block by a "switching matrix" that regulates the input/output connectivity between the stimulus encoding and decoding blocks. For example, for a particular connectivity setting of the switching matrix, the original stimulus is faithfully recovered. For other settings, translations, rotations and dilations (or combinations of these operations) of the original video stream are obtained. We evaluate our theoretical derivations through extensive simulations on natural video scenes, and discuss implications of our results on the problem of invariant object recognition in the spike domain.
Assuntos
Potenciais de Ação , Redes Neurais de Computação , Estimulação Luminosa/métodos , Vias VisuaisRESUMO
We investigate architectures for time encoding and time decoding of visual stimuli such as natural and synthetic video streams (movies, animation). The architecture for time encoding is akin to models of the early visual system. It consists of a bank of filters in cascade with single-input multi-output neural circuits. Neuron firing is based on either a threshold-and-fire or an integrate-and-fire spiking mechanism with feedback. We show that analog information is represented by the neural circuits as projections on a set of band-limited functions determined by the spike sequence. Under Nyquist-type and frame conditions, the encoded signal can be recovered from these projections with arbitrary precision. For the video time encoding machine architecture, we demonstrate that band-limited video streams of finite energy can be faithfully recovered from the spike trains and provide a stable algorithm for perfect recovery. The key condition for recovery calls for the number of neurons in the population to be above a threshold value.
Assuntos
Algoritmos , Inteligência Artificial , Redes Neurais de Computação , Reconhecimento Automatizado de Padrão/métodos , Gravação em Vídeo/métodos , Rede Nervosa/fisiologia , Design de Software , Córtex Visual/fisiologia , Percepção Visual/fisiologiaRESUMO
We consider the problem of reconstructing finite energy stimuli encoded with a population of spiking leaky integrate-and-fire neurons. The reconstructed signal satisfies a consistency condition: when passed through the same neuron, it triggers the same spike train as the original stimulus. The recovered stimulus has to also minimize a quadratic smoothness optimality criterion. We formulate the reconstruction as a spline interpolation problem for scalar as well as vector valued stimuli and show that the recovery has a unique solution. We provide explicit reconstruction algorithms for stimuli encoded with single as well as a population of integrate-and-fire neurons. We demonstrate how our reconstruction algorithms can be applied to stimuli encoded with ON-OFF neural circuits with feedback. Finally, we extend the formalism to multi-input multi-output neural circuits and demonstrate that vector-valued finite energy signals can be efficiently encoded by a neural population provided that its size is beyond a threshold value. Examples are given that demonstrate the potential applications of our methodology to systems neuroscience and neuromorphic engineering.
Assuntos
Potenciais de Ação/fisiologia , Algoritmos , Neurônios/fisiologia , Animais , Eletrofisiologia , Humanos , Modelos Neurológicos , Rede Nervosa/fisiologiaRESUMO
We present a general framework for the reconstruction of natural video scenes encoded with a population of spiking neural circuits with random thresholds. The natural scenes are modeled as space-time functions that belong to a space of trigonometric polynomials. The visual encoding system consists of a bank of filters, modeling the visual receptive fields, in cascade with a population of neural circuits, modeling encoding in the early visual system. The neuron models considered include integrate-and-fire neurons and ON-OFF neuron pairs with threshold-and-fire spiking mechanisms. All thresholds are assumed to be random. We demonstrate that neural spiking is akin to taking noisy measurements on the stimulus both for time-varying and space-time-varying stimuli. We formulate the reconstruction problem as the minimization of a suitable cost functional in a finite-dimensional vector space and provide an explicit algorithm for stimulus recovery. We also present a general solution using the theory of smoothing splines in Reproducing Kernel Hilbert Spaces. We provide examples of both synthetic video as well as for natural scenes and demonstrate that the quality of the reconstruction degrades gracefully as the threshold variability of the neurons increases.
Assuntos
Modelos Neurológicos , Neurônios/fisiologia , Limiar Sensorial/fisiologia , Percepção Visual/fisiologia , Potenciais de Ação/fisiologia , Algoritmos , Eletrofisiologia , Humanos , Rede Nervosa/fisiologiaRESUMO
We present a general approach to the reconstruction of sensory stimuli encoded with leaky integrate-and-fire neurons with random thresholds. The stimuli are modeled as elements of a Reproducing Kernel Hilbert Space. The reconstruction is based on finding a stimulus that minimizes a regularized quadratic optimality criterion. We discuss in detail the reconstruction of sensory stimuli modeled as absolutely continuous functions as well as stimuli with absolutely continuous first-order derivatives. Reconstruction results are presented for stimuli encoded with single as well as a population of neurons. Examples are given that demonstrate the performance of the reconstruction algorithms as a function of threshold variability.
RESUMO
We consider a formal model of stimulus encoding with a circuit consisting of a bank of filters and an ensemble of integrate-and-fire neurons. Such models arise in olfactory systems, vision, and hearing. We demonstrate that bandlimited stimuli can be faithfully represented with spike trains generated by the ensemble of neurons. We provide a stimulus reconstruction scheme based on the spike times of the ensemble of neurons and derive conditions for perfect recovery. The key result calls for the spike density of the neural population to be above the Nyquist rate. We also show that recovery is perfect if the number of neurons in the population is larger than a threshold value. Increasing the number of neurons to achieve a faithful representation of the sensory world is consistent with basic neurobiological thought. Finally we demonstrate that in general, the problem of faithful recovery of stimuli from the spike train of single neurons is ill posed. The stimulus can be recovered, however, from the information contained in the spike train of a population of neurons.