[Paper Review] Bayesian spike inference from calcium imaging data
This paper presents Bayesian methods for inferring neuronal spike trains from calcium imaging data using Gibbs and Metropolis-Hastings sampling in discrete and continuous time, respectively. It enables uncertainty quantification and super-resolution spike inference, with collapsed Gibbs samplers that improve mixing and reduce variance in parameter estimates, especially in low-SNR conditions.
We present efficient Bayesian methods for extracting neuronal spiking information from calcium imaging data. The goal of our methods is to sample from the posterior distribution of spike trains and model parameters (baseline concentration, spike amplitude etc) given noisy calcium imaging data. We present discrete time algorithms where we sample the existence of a spike at each time bin using Gibbs methods, as well as continuous time algorithms where we sample over the number of spikes and their locations at an arbitrary resolution using Metropolis-Hastings methods for point processes. We provide Rao-Blackwellized extensions that (i) marginalize over several model parameters and (ii) provide smooth estimates of the marginal spike posterior distribution in continuous time. Our methods serve as complements to standard point estimates and allow for quantification of uncertainty in estimating the underlying spike train and model parameters.
Motivation & Objective
- To address the challenge of inferring precise spike times from noisy, slow calcium imaging signals with limited temporal resolution.
- To provide a principled Bayesian framework that quantifies uncertainty in spike train and model parameter estimation.
- To enable super-resolution spike inference by sampling spike times at arbitrary resolution in continuous time.
- To develop efficient, scalable sampling algorithms that remain computationally tractable even for high-resolution or sparse data.
- To derive collapsed Gibbs samplers that marginalize over nuisance parameters (e.g., baseline, initial calcium) to improve mixing and reduce variance.
Proposed method
- Uses discrete-time block Gibbs sampling to jointly sample spike trains and model parameters (amplitude, baseline, initial calcium) with a hierarchical prior structure.
- Employs a Rao-Blackwellized scheme to marginalize over baseline and initial calcium, improving posterior estimation efficiency.
- Applies Metropolis-Hastings sampling in continuous time with a proposal distribution based on signal residuals to explore spike time locations at arbitrary resolution.
- Utilizes a collapsed Gibbs sampler that marginalizes over spike amplitude and prior spiking probability, reducing dimensionality and accelerating mixing.
- Leverages the autoregressive structure of calcium dynamics (first-order AR process) to model calcium transients from spike inputs.
- Uses empirical Bayes to learn hyperpriors on spike probability from data, enabling adaptive sparsity modeling.
Experimental results
Research questions
- RQ1Can Bayesian sampling methods provide more accurate and uncertainty-aware spike inference than point estimates in low signal-to-noise ratio (SNR) conditions?
- RQ2How can spike trains be inferred with super-resolution, i.e., sub-bin time resolution, from calcium imaging data?
- RQ3Can collapsed Gibbs sampling over nuisance parameters (baseline, initial calcium) improve mixing and reduce variance in posterior estimates?
- RQ4What is the computational complexity of continuous-time spike inference, and can it scale efficiently for high-resolution or sparse data?
- RQ5How do the proposed methods compare to standard MAP or non-negative deconvolution in terms of accuracy and robustness under varying SNR?
Key findings
- The collapsed discrete Metropolized-Gibbs sampler achieves fast mixing and low-variance parameter estimates, even in low-SNR conditions, with O(T) complexity per full sweep.
- The continuous-time Metropolis-Hastings sampler enables super-resolution spike inference, assigning multiple spikes per timebin and accurately resolving closely spaced events.
- Rao-Blackwellized marginalization over baseline and initial calcium concentration significantly improves posterior estimation accuracy and reduces variance.
- The method successfully recovers true spike times in real in-vitro spinal cord data, even when SNR is low, outperforming standard MAP estimates.
- The algorithm maintains O(K) complexity per full sample in continuous time, where K is the number of spikes, making it efficient for sparse or high-resolution recordings.
- Empirical Bayes learning of spike probability hyperpriors enables adaptive sparsity modeling without prior knowledge of firing rates.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.