[Paper Review] Learnable latent embeddings for joint behavioral and neural analysis
This paper introduces CEBRA, a self-supervised learning method that jointly models neural and behavioral data to generate consistent, interpretable, and high-performing latent embeddings. By combining contrastive learning with non-linear independent component analysis and conditioning on behavior or time, CEBRA achieves superior decoding accuracy and consistency across animals and sessions, outperforming existing linear and non-linear methods on calcium and electrophysiology datasets across species and tasks.
Mapping behavioral actions to neural activity is a fundamental goal of neuroscience. As our ability to record large neural and behavioral data increases, there is growing interest in modeling neural dynamics during adaptive behaviors to probe neural representations. In particular, neural latent embeddings can reveal underlying correlates of behavior, yet, we lack non-linear techniques that can explicitly and flexibly leverage joint behavior and neural data. Here, we fill this gap with a novel method, CEBRA, that jointly uses behavioral and neural data in a hypothesis- or discovery-driven manner to produce consistent, high-performance latent spaces. We validate its accuracy and demonstrate our tool's utility for both calcium and electrophysiology datasets, across sensory and motor tasks, and in simple or complex behaviors across species. It allows for single and multi-session datasets to be leveraged for hypothesis testing or can be used label-free. Lastly, we show that CEBRA can be used for the mapping of space, uncovering complex kinematic features, and rapid, high-accuracy decoding of natural movies from visual cortex.
Motivation & Objective
- To address the lack of non-linear, consistent, and interpretable methods for joint neural and behavioral representation learning.
- To develop a dimensionality reduction technique that preserves temporal structure and enables cross-animal and cross-session consistency in neural embeddings.
- To enable hypothesis-driven and discovery-driven analysis by conditioning embeddings on behavior or time without relying on generative model assumptions.
- To improve decoding performance of complex behaviors and neural dynamics from high-dimensional recordings, including in naturalistic settings.
- To support label-free analysis and integration of multi-session, multi-subject data with minimal assumptions.
Proposed method
- CEBRA uses a contrastive learning objective to train a neural network encoder that maps joint neural and behavioral data into a low-dimensional latent space.
- It introduces a novel data sampling scheme that creates positive and negative pairs based on temporal proximity and behavioral similarity.
- The method conditions the embedding space on auxiliary variables such as behavior or time, enabling both supervised and self-supervised learning modes.
- It combines non-linear independent component analysis with contrastive learning to ensure identifiability and consistency of learned representations.
- The framework supports joint learning across multiple subjects and handles distribution shifts between sessions and recording modalities.
- CEBRA does not require data augmentation or specific generative model assumptions, enhancing its generalizability and flexibility.
Experimental results
Research questions
- RQ1Can a non-linear representation learning method jointly model neural and behavioral data to produce consistent and interpretable latent embeddings across animals and sessions?
- RQ2How does CEBRA’s performance in decoding behavior compare to linear and non-linear baselines such as PCA, t-SNE, UMAP, and pi-VAE?
- RQ3To what extent can CEBRA recover ground-truth latent structures in synthetic data with known behavioral variables?
- RQ4Can CEBRA enable accurate decoding of natural visual stimuli from neural activity in the visual cortex?
- RQ5How well does CEBRA generalize across sessions and subjects when used in a label-free or self-supervised manner?
Key findings
- CEBRA achieved a median reconstruction R² of 0.9999 in synthetic data, significantly outperforming pi-VAE (R²=0.3522), t-SNE, and UMAP (p<0.001 in ANOVA with post-hoc tests).
- On rat hippocampus electrophysiology data, CEBRA-Behavior successfully separated leftward and rightward movement trajectories in the latent space, demonstrating behavioral discrimination.
- In the Allen Neuropixels dataset, CEBRA-joint achieved the highest decoding accuracy for scene classification and lowest mean frame error, with p-values <0.001 in post-hoc tests against baseline methods.
- CEBRA enabled high-accuracy decoding of natural movies from visual cortex, demonstrating its utility in complex, real-world neural decoding tasks.
- CEBRA-joint showed consistent performance across all neuron counts (50 to 1000) and maintained high significance in post-hoc tests, with p-values ≤0.001 for most comparisons.
- CEBRA demonstrated robustness to distribution shifts and enabled consistent, interpretable embeddings across multiple sessions and animals without requiring labeled data.
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.