TL;DR
The Time-Evolving Visual Dynamical System (TE-ViDS) is a novel sequential latent variable model designed to map the complex, time-dependent activity of the mouse visual cortex. By disentangling stimulus-driven signals from internal brain states using a split-representation architecture and contrastive learning, TE-ViDS achieves state-of-the-art performance in decoding natural scenes and movies from neural spikes.
The Challenge of Modeling Visual Neural Activity
Understanding how the brain processes visual information is a central challenge in neuroscience. While modern recording techniques like Neuropixels allow researchers to monitor thousands of neurons simultaneously, the resulting data is high-dimensional, complex, and inherently noisy. Latent Variable Models (LVMs) are frequently used to find the low-dimensional "source code"—or latent representations—that explains this neural activity.
However, most existing LVMs were developed for the motor cortex, where movements are discrete and well-timed. The visual cortex presents a different challenge: natural stimuli (like a movie) are continuous and high-dimensional. Furthermore, neural responses in the visual cortex are heavily influenced by "internal states"—spontaneous brain activity, arousal, or behavioral variables unrelated to the image on the screen. Existing models often ignore the temporal relationships between spikes or fail to separate these internal "nuisance" signals from the actual visual representation.
Methods: Introducing TE-ViDS
To address these limitations, the authors introduce TE-ViDS, a sequential LVM that explicitly models how neural activity evolves over time.
Its architecture relies on three key innovations:
- Time-Evolving Dynamics: Unlike static models, TE-ViDS uses Recurrent Neural Networks (specifically, Gated Recurrent Units) to maintain "state factors." This allows the model to accumulate temporal context, ensuring that the latent representation at any given moment is informed by the immediate past.
- The "Split" Latent Space: The model decomposes neural activity into two distinct parts:
- External Latents ($z^{(e)}$): Deterministic variables meant to capture stimulus-relevant information.
- Internal Latents ($z^{(i)}$): Stochastic variables meant to capture the brain's internal variability and noise.
- Contrastive Learning: To ensure the "External" latents actually track the visual stimulus, the authors employ self-supervised contrastive learning. They force the model to recognize that neural segments close together in time (which likely share similar visual context) should have similar external latent representations, while segments from different times should be distinct.
Datasets
The model was rigorously validated on both synthetic and biological data. Synthetic datasets included a non-temporal cluster dataset and a temporal dataset generated by the Lorenz system (a classic mathematical model of chaos) to test the model's ability to recover known underlying dynamics.
For biological validation, the authors used the Allen Brain Observatory dataset, featuring Neuropixel recordings from six different regions of the mouse visual cortex. The mice were recorded while viewing 118 natural scenes and a 30-second natural movie.
Key Insights and Ideas
- Disentanglement is Key: By splitting the latent space, the model doesn't just "average out" noise; it explicitly models it. This allows the "External" latents to be much cleaner and more effective for decoding what the mouse is actually seeing.
- Temporal Sensitivity: The authors found that shuffling the time dimension of the data caused the model's performance to drop significantly. This confirms that the order of neural firing carries critical information that non-sequential models (like standard VAEs) miss.
- Subject Variability: Representational Similarity Analysis (RSA) revealed that some mice are more "distracted" than others. In certain subjects, internal brain states dominated the neural response so strongly that they overshadowed the visual stimuli, explaining why decoding is harder in specific individuals.
- Mapping the Hierarchy: The model's performance varied across cortical regions in a way that aligns with known anatomy. Decoding was most accurate in the primary visual cortex (VISp) and mid-level regions, but lower in high-level multi-sensory areas.
Key Results
TE-ViDS demonstrated superior decoding capabilities, outperforming leading models like LFADS, pi-VAE, and CEBRA.
- Superior Scene Decoding: On natural scene decoding, TE-ViDS achieved an accuracy of ~50.86% for the best-performing mouse (Mouse 1), nearly 20% higher than the next best competitor. The isolated "External" latents were the primary drivers of this high performance.
- Movie Frame Prediction: In decoding frames from a natural movie, TE-ViDS reached ~65.38% accuracy (within a 1-second window), significantly better than baseline PCA (~28%) or other deep learning models.
- Interpretable Trajectories: When visualizing the latent space, TE-ViDS produced clear, continuous trajectories that followed the timeline of the movie, whereas other models produced entangled clusters where different time points were indistinguishable.
Limitations and Future Work
While TE-ViDS successfully isolates "internal states," the authors note a key limitation: without additional behavioral data (like tracking the mouse's pupil dilation or running speed), they cannot yet definitively prove what these internal variables represent (e.g., arousal, attention, or motor intent). Additionally, the significant variability in decoding performance between different mice suggests that "one size fits all" parameters might not be ideal.
Future work could involve extending this framework to other sensory modalities or species to determine if these "time-evolving" principles are a universal feature of biological computation.
Summary updated