INTEGRATION OF CALCIUM IMAGING TRACES VIA DEEP GENERATIVE MODELING

B. Ros ⋆, M. Olives-Verger †, C. Fuses ⋆, JM. Canals ⋆, J. Soriano †, J. Abante ⋆ · 2025

Read INTEGRATION OF CALCIUM IMAGING TRACES VIA DEEP GENERATIVE MODELING by B. Ros ⋆, M. Olives-Verger †, C. Fuses ⋆, JM. Canals ⋆, J. Soriano †, J. Abante ⋆ (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2501-14615.txt.

Introduction

Berta Ros and five co-authors present a 2025 methods paper on calcium imaging, a way to watch many nerve cells at once through glow signals. Each cell's glow trace shows when it was active, but data from different labs or days can shift for technical reasons. The team asked whether deep learning models could learn clean, compact profiles of single cells from these traces.

They tested supervised variational autoencoder models, which compress each trace into a short code and rebuild it. The approach beat prior models, keeping real cell-to-cell differences while softening batch shifts. It held up on both simulated and real data sets. Good single-cell profiles help scientists group cells and read how cell groups act together, without first turning glow traces into spike guesses.

Catalog record

CREATORB. Ros ⋆, M. Olives-Verger †, C. Fuses ⋆, JM. Canals ⋆, J. Soriano †, J. Abante ⋆
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE19 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2501-14615

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

INTEGRATION OF CALCIUM IMAGING TRACES VIA DEEP GENERATIVE MODELING B. Ros ⋆, M. Olives-Verger †, C. Fuses ⋆, JM. Canals ⋆, J. Soriano †, J. Abante ⋆ Abstract Calcium imaging allows for the parallel measurement of large neuronal populations in a spatially resolved and minimally invasive manner, and has become a gold-standard for neuronal functionality. While deep generative models have been successfully applied to study the activity of neuronal ensembles, their potential for learning single-neuron representations from calcium imaging fluorescence traces remains largely unexplored, and batch effects remain an important hurdle. To address this, we explore supervised variational autoencoder architectures that learn compact representations of individual neurons from fluorescent traces without relying on spike inference algorithms. We find that this approach outperforms state-of-the-art models, preserving biological variability while mitigating batch effects. Across simulated and experimental datasets, this framework enables robust visualization, clustering, and interpretation of single-neuron dynamics. † † address: ⋆ Dept. of Biomedical Sciences & Institute of Neurosciences, Universitat de Barcelona, Barcelona, Spain † Dept. of Condensed Matter Physics, Universitat de Barcelona, Barcelona, Spain 1 Introduction Calcium imaging (Ca 2+ Im) of neuronal activity has emerged as a powerful alternative to electrophysiology, allowing minimally invasive, spatially resolved recordings from large neuronal populations [ 1 ] . In contrast to electrophysiology, this technique facilitates the study of the interplay between neuron location and activity, e.g., in the context of complex systems [ 2 ] or neuroengineering [ 3 , 4 ] . Ca 2+ Im data has been extensively used to produce neuronal population models that facilitate the study of the neuronal origin of behavior. Recently, deep generative models (DGMs) have been proposed to model neuronal population dynamics as a function of behavioral queues [ 5 , 6 , 7 ] . These models attempt to find a latent representation \mathbf{Z}(t) of the population state \mathbf{X}(t) , producing meaningful lower-dimensional neural population dynamics [ 6 , 8 ] beyond the limitations of linear methods. This work has had a profound impact in neuroscience, providing new powerful approaches for visualization, clustering, or discovery of latent spaces that explain neuronal variance that facilitate the prediction of a future behavior based on past neural activity [ 7 ] . These approaches, however, focus on finding useful representations for the population state at a given time. Here, our primary objective is to address the challenge of integrating fluorescent traces into a common latent space that captures the underlying firing dynamics of neurons. Traditional methods, such as PCA [ 9 ] , focus on reducing dimensionality at the level of single-neuron representations, but this results in confounding technical and biological variability. In addition, existing approaches often rely on spike inference [ 10 , 11 ] , which introduces sensitivity to model assumptions and can obscure the true neural activity patterns. By leveraging deep generative models (DGMs), we aim to learn a latent representation of single-cell Ca 2+ Im where disparate fluorescent signals are coherently mapped, thereby facilitating downstream tasks like visualization and clustering of individual neurons [ 12 ] . In particular, we explore the potential of supervised variational autoencoders (SVAEs) to produce biologically meaningful latent representations while minimizing batch effects. This approach is able to isolate biological variability, eliminating confounding effects and revealing the true dynamical behavior of neurons. To introduce an inductive bias capturing the temporal structure inherent to Ca 2+ Im traces, we extend implement a version of SVAE with a Gaussian Process (GP) likelihood in the decoder (GPVAE). Unlike approaches that impose temporal priors on the latent space [ 13 ] , our formulation directly models temporal correlations in the observations while maintaining single-cell resolution, enhancing the interpretability of learned representations. In simulations, SVAEs models achieve a favorable balance between batch-effect correction and retention of biological variability. In addition, we use this framework to integrate multispecies Ca 2+ Im data, including mouse and rat data, showing fundamental differences in firing dynamics between species. Altogether, our results show that this framework produces superior embeddings which, in turn, facilitates downstream analysis. 2 Methodology 2.1 Synthetic data We generate realistic calcium traces simulations to evaluate the quality of learned representations. Neuronal networks are constructed with spatially constrained connectivity and realistic axonal growth mechanisms [ 14 , 15 ] . From each network, we define a weighted adjacency matrix \mathbf{W} , with excitatory and inhibitory connection strengths w_{E}=2 and w_{I}=-0.5 , respectively, and inhibitory neurons are randomly assigned (60-80%). Neuronal dynamics follow Izhikevich’s integrate-and-fire model [ 16 ] : \displaystyle\frac{dv}{dt} \displaystyle=0.04v^{2}+5v+140-u+I+\eta,\ \frac{du}{dt} \displaystyle=a(bv-u)~, (1) where v is the membrane potential, u the recovery variable, I the summed synaptic input from \mathbf{W} , and \eta a noise term. A neuron spike occurs when v reaches a threshold of 30 mV, followed by resetting v\leftarrow v_{0} and u\leftarrow u+\Delta u . The parameters a,b , v_{0} , and \Delta u can be adjusted to account for different neuronal firing behaviors [ 16 ] . The resulting binary spikes are transformed into calcium fluorescence traces \mathbf{f} using a biophysical model [ 17 ] : f_{t}=F_{0}*A(\kappa+p_{2}(\kappa^{2}-\kappa)+p_{3}(\kappa^{3}-\kappa)),~~t=1,\ldots,T, (2) with F_{0} baseline, A amplitude, and (p_{2},p_{3}) fitted to mimic GCaMP6s [ 18 ] . Afterwards, Gaussian noise with standard deviation \sigma_{t} and min–max normalization are applied to mimic experimental recordings. We simulate several synthetic cultures with N=1000 neurons each from 2 distinct groups with different proportions of neuronal dynamics: Group 1 (20% RS, 80% LTS) and Group 2 (40% RS, 60% LTS) (Fig. 1 A). Different dynamics are selected by modifying parameters a , b , v_{0} , and \Delta u in Eq. ( 1 ) (Table 1 ). Three samples per group are generated with shared connectivity and small random parameter variations. Neuron Type a b v_{0} \Delta u Regular spiking (RS) 0.02 0.2 -65 8 Low-threshold spiking (LTS) 0.02 0.25 -65 2 Table 1: Parameters for different neuron types. 2.2 Experimental data We analyze spontaneous activity recordings from neuronal cultures prepared from primary cortical neurons of rat and mouse embryos (E16–E18). Neurons are cultured from rat and mouse embryos under standardized conditions and transduced with the genetically encoded calcium indicator GCaMP6s, enabling fluorescence imaging of intracellular calcium dynamics linked to neuronal firing. For each species, six independent batches of neuronal cultures are prepared — three at day in vitro (DIV) 7 and three at DIV 12 — under standardized conditions, each 6 mm in diameter and containing about 2000 neurons. Data is acquired on a microscope equipped for fluorescence together with a high-speed camera that provides images at 33 Hz and cellular resolution. Spontaneous neuronal activity is recorded for 10 min, and images processed with the software Netcal [ 19 ] to extract the fluorescence trace f_{i}(t) of each neuron i . Traces are normalized as \text{DFF}_{i}(t)\equiv[f_{i}(t)-f_{i,0}(t)]/f_{i,0} , where f_{i,0} is the fluorescence signal of neuron i at rest, and subsequently normalized within each recording session. 2.3 Models 2.3.1 Bayesian Factor Analysis We first consider a linear generative model that extends principal component analysis (PCA) by modeling uncertainty in both the latent space and observation noise. Each calcium trace \mathbf{x}_{n}\in\mathbb{R}^{D} is generated from a latent variable \mathbf{z}_{n}\in\mathbb{R}^{K} , drawn from a standard multivariate Gaussian prior: \mathbf{z}_{n}\sim\mathcal{N}(\mathbf{0},\mathbf{I}) . Conditioned on \mathbf{z}_{n} , the observation is modeled as \mathbf{x}_{n}\mid\mathbf{z}_{n}\sim\mathcal{N}(W\mathbf{z}_{n}+\boldsymbol{\mu},\boldsymbol{\Psi}) , where

Read the complete text