Abstract
Calcium imaging with fluorescent protein sensors is widely used to record activity in neuronal populations. The transform between neural activity and calcium-related fluorescence involves nonlinearities and a low-pass filter, but the effects of the transformation on analyses of neural populations are not well understood. We compared neuronal spikes and fluorescence in matched neural populations in behaving mice. We report multiple discrepancies between analyses performed on the two types of data, which were only partially resolved by spike inference algorithms applied to fluorescence. To model the relation between spiking and fluorescence we simultaneously recorded spikes and fluorescence from individual neurons. Using these recordings we developed a model transforming spike trains to synthetic-imaging data. The model recapitulated the differences in analyses. Our analysis highlights challenges in relating electrophysiology and imaging data, and suggests forward modeling as an effective way to understand differences between these data.
Introduction
In modern systems neuroscience, researchers primarily rely on two modalities to monitor neural activity: electrophysiology (ephys) and calcium imaging. Electrophysiology provides high-temporal resolution recordings of action potentials (spikes), while calcium imaging, using sensors like GCaMP, allows for the simultaneous monitoring of large populations of neurons. However, calcium imaging is an indirect measure; the fluorescence signal is a low-pass filtered, delayed, and nonlinear representation of underlying electrical activity. While these distortions are well-documented at the single-neuron level, their impact on population-level dynamics—such as the patterns used to describe motor planning or decision-making—remains poorly understood. This study investigates whether ephys and imaging lead to consistent conclusions about neural population behavior.
Methodology
The researchers performed a direct comparison by recording activity in the anterolateral motor cortex (ALM) of mice performing a tactile decision task. They utilized silicon probes for ephys and various calcium indicators (GCaMP6s and 6f) for imaging. To bridge the gap between these data types, two approaches were employed:
- Spike Inference: State-of-the-art algorithms (e.g., MLSpike, MCMC) were used to attempt to recover spike trains from fluorescence data.
- Forward Modeling (S2F): A "Spike-to-Fluorescence" model was developed using a ground-truth dataset of 40 neurons recorded simultaneously with both ephys and imaging. This model acts as a mathematical filter to transform real spike trains into synthetic imaging data.
To quantify the differences in neural activity across trial types (e.g., lick-left vs. lick-right), the authors defined a selectivity index, $s$:
Results
The comparison revealed significant discrepancies in how population dynamics are perceived through different recording lenses.
Selectivity and Multiphasic Neurons
A major finding was the "disappearance" of multiphasic neurons in imaging data. In ephys, approximately 31% of neurons exhibited multiphasic selectivity—switching their preference between trial types over time. In contrast, only 3–5% of neurons in calcium imaging datasets showed such behavior. The slow decay of the calcium signal effectively masks these rapid transitions, causing multiphasic neurons to appear non-selective.
Principal Component Analysis (PCA)
PCA revealed a "flip-flop" in the dominant features of the data. In ephys, the first principal component (PC1) typically captures temporal dynamics (the passage of time), accounting for 98% of the variance. In GCaMP6s imaging, PC1 often shifts to represent trial-type selectivity, with 45-60% of the variance driven by the animal's choice. The calcium filter smooths temporal fluctuations while amplifying slower, choice-related signals.
The Decoding Paradox and Artificial Sequences
Interestingly, imaging data sometimes outperformed ephys in decoding the animal's choice. The calcium sensor acts as a natural integrator, filtering out high-frequency noise and stabilizing the signal. Conversely, imaging can create "artificial sequences." While ephys shows sharp peaks of activity at specific task events, imaging "smears" these peaks, making the population appear to fire in a continuous, staggered sequence that does not exist in the electrical record.
Discussion
The study demonstrates that spike inference algorithms only partially recover the "missing" dynamics, largely due to significant neuron-to-neuron variability in calcium dynamics. The authors suggest that instead of attempting to "fix" imaging data, researchers should adopt forward modeling. By passing theoretical models or ephys data through an S2F filter, researchers can perform "apples-to-apples" comparisons with imaging results. This work highlights the necessity of accounting for the physical properties of sensors when interpreting large-scale neural population dynamics.
Summary updated