Abstract
Animals are not simple input-output machines. Their responses to even very similar stimuli are variable. A key, long-standing question in neuroscience is to understand the neural correlates of such behavioral variability. To reveal these correlates, behavior and neural population activity must be related to one another on single trials. Such analysis is challenging due to the dynamical nature of brain function (e.g., in decision making), heterogeneity across neurons and limited sampling of the relevant neural population. By analyzing population recordings from mouse frontal cortex in perceptual decision-making tasks, we show that an analysis approach tailored to the coarse grain features of the dynamics is able to reveal previously unrecognized structure in the organization of population activity. This structure is similar on error and correct trials, suggesting dynamics that may be constrained by the underlying circuitry, is able to predict multiple aspects of behavioral variability and reveals long time-scale modulation of population activity.
Introduction
In systems neuroscience, a persistent challenge is understanding why animals exhibit variable behavior when presented with identical stimuli. Traditional analysis often relies on trial-averaging to produce "clean" signals like the Peri-Stimulus Time Histogram (PSTH). However, this approach obscures the very trial-to-trial variability that drives behavior. Relating neural population activity to behavior on a single-trial basis is difficult due to the inherent "noise" of individual spikes, the heterogeneity of neuronal representations, and the evolving nature of brain states during complex tasks.
The EDLDS Framework
To address these challenges, researchers developed Event-Dependent Linear Dynamical Systems (EDLDS). This modeling framework maps high-dimensional, noisy neural activity into a low-dimensional "shared activity space" (SAS). Unlike standard linear models, EDLDS allows the underlying dynamical rules to switch at specific task events, such as the end of a stimulus or the onset of a "Go" cue. This flexibility captures the transitions between different stages of a cognitive task without the computational burden or overfitting risks associated with fully nonlinear models.
The model's validity was tested using a Leave-One-Neuron-Out (LONO) approach, where the activity of a single neuron is predicted based on the shared dynamics of the rest of the population. This "denoising" process reveals that the meaningful behavioral signal is shared across the population, while individual neuronal noise is largely independent.
Experimental Design and Neural Recordings
The study utilized electrophysiological recordings from the Anterior Lateral Motor (ALM) cortex of mice performing two types of delayed-response tasks. In the Pole Task, mice (n=33) used their whiskers to sense a pole's position, while in the Sound Task, mice (n=6) discriminated between high- and low-pitched tones. Both tasks required the animal to maintain a decision during a delay period before responding with a directional lick.
Recordings typically involved 6–31 units per session across 55 sessions, capturing both correct and error trials. These datasets provided a rich basis for testing how well the EDLDS model could decode internal states and predict behavioral outcomes.
Results: Decoding Single-Trial Dynamics and Behavior
The EDLDS model significantly outperformed trial-averaged PSTH predictions, explaining approximately 31% of neural variability ($R^2 \approx 0.31$) in LONO tests. More importantly, the low-dimensional SAS was a better predictor of behavior than the full, raw neural data. SAS-based decoders were significantly more accurate at predicting trial type ($p < 0.001$) and reaction time ($r_s \approx -0.55$) compared to decoders using the full neural space.
Key findings include:
- Orderly Organization: Trials maintain a consistent "rank order" throughout the task. A trial with high activity in the sample phase tends to remain high through the delay and response phases, revealing a "single-trial identity" that persists across time.
- Predicting Errors: Error trials were found to follow the same dynamical rules as correct trials. However, they often began in an incorrect state or diverged toward the wrong trajectory hundreds of milliseconds before the animal actually moved.
- Long-Term Modulation: The model revealed that the SAS carries information about the previous trial's outcome (e.g., reward history), suggesting that the premotor cortex tracks internal states over several minutes.
Discussion
By tailoring analysis to the coarse-grained features of population dynamics, EDLDS reveals a previously unrecognized structure in neural activity. While the model currently relies on supervised event cues to switch dynamics, it provides a powerful and efficient tool for relating population-level activity to behavioral variability. Future work may extend these methods to unsupervised detection of state switches or further explore how long-term internal states influence immediate decision-making.
Summary updated