An orderly single-trial organization of population dynamics in premotor cortex predicts behavioral variability

Ziqiang Wei, H. Inagaki, Nuo Li, Karel Svoboda, Shaul Druckmann

Abstract

Animals exhibit significant behavioral variability even when responding to identical stimuli. Understanding the neural correlates of this variability requires analyzing neural population activity on a single-trial basis. However, such analysis is often hindered by the high-dimensional, noisy, and non-stationary nature of brain function. In this study, we introduce Event-Dependent Linear Dynamical Systems (EDLDS), a mathematical framework designed to reveal the latent structure of population dynamics in the mouse frontal cortex. Our findings demonstrate that neural activity follows an orderly, trial-specific organization that persists across task epochs. This structure is consistent across both correct and error trials, allowing for the prediction of behavioral outcomes and reaction times seconds before they occur. Furthermore, our model reveals that population activity is modulated by long-term factors, such as the outcome of previous trials.

Introduction

A fundamental question in neuroscience is why behavior varies across trials. While traditional research often averages neural activity across many trials to identify signals, this approach obscures the very variability that explains why an animal might be slow to respond or make a mistake on a specific trial. To bridge the gap between neural activity and behavior, researchers must look at single-trial dynamics. However, the brain's internal state is dynamic; the "rules" governing neuronal interactions change as an animal moves from perceiving a stimulus to preparing a motor response. Existing models often struggle with this non-stationarity, either being too rigid to capture changes or too complex and prone to overfitting.

Methodology: Event-Dependent Linear Dynamical Systems (EDLDS)

To address these challenges, we developed Event-Dependent Linear Dynamical Systems (EDLDS). This latent variable model assumes that the activity of a large population of neurons is driven by a small number of hidden factors, collectively referred to as the Shared Activity Space (SAS).

The innovation of EDLDS lies in its handling of time. Rather than assuming constant dynamics, the model allows the system's governing rules to switch at specific, cued moments—specifically the transitions between trial epochs (e.g., from the "sample" period to the "delay" period). By projecting noisy, high-dimensional neural data into this lower-dimensional SAS, we effectively de-noise the signal, revealing patterns that are otherwise obscured by trial-to-trial fluctuations.

Experimental Design and Data

We applied EDLDS to large-scale electrophysiological recordings from the Anterior Lateral Motor (ALM) cortex of mice. The data were collected during two different delayed-response tasks:

  1. Pole Task: A tactile discrimination task.
  2. Sound Task: An auditory discrimination task.

The dataset included recordings of 6 to 31 units per session across 55 sessions, encompassing thousands of neurons. This robust dataset allowed us to benchmark EDLDS against standard methods like Gaussian Process Factor Analysis (GPFA) and traditional Linear Dynamical Systems (LDS).

Key Insights

1. The "Orderly Line" of Trials

Our analysis revealed a surprising degree of structure: trials maintain a consistent "rank" relative to one another throughout a session. If a trial exhibits high activity in the SAS during the initial second, it tends to maintain that relative position for the duration of the trial. This suggests that the brain maintains a stable "identity" for each trial that persists through different stages of the task.

2. Predictability of Errors

One of the most significant findings is that error trials are not the result of a total breakdown in neural logic. Instead, the neural population in error trials follows the same dynamical rules as correct trials. Errors occur because the system is on the "wrong track" or drifts toward an incorrect choice state. Because this structure is so orderly, our model could identify an upcoming error during the delay period—seconds before the mouse actually made a move.

3. Long-Term Modulation

The EDLDS model revealed that the "starting state" of a trial is not a blank slate. It is significantly influenced by the history of previous trials, such as whether the animal was rewarded in the preceding trial. This indicates that the ALM cortex integrates information over a timescale of minutes, reflecting a long-term memory that modulates immediate decision-making dynamics.

Results and Performance

EDLDS demonstrated superior performance in several key areas:

  • Predictive Accuracy: The SAS was significantly more accurate at predicting reaction times and trial outcomes than the raw neural data (Full Neural Space).
  • Early Warning: Decoders using SAS data could identify upcoming errors during the delay period, whereas raw data only showed clear error signals after the trial's conclusion.
  • Computational Efficiency: EDLDS performed nearly as well as highly complex "switching" models but was 10–20 times faster to compute and significantly less prone to overfitting.

Discussion and Future Work

While EDLDS provides a powerful tool for de-noising single-trial data, it currently relies on cued switches—meaning it assumes we know when the brain's internal state transitions based on task epochs. Future iterations of the model could be adapted to discover these transitions autonomously in more naturalistic, un-cued settings. Additionally, while the current model is linear within each epoch, incorporating non-linear dynamics might further enhance our ability to extract complex internal states. Finally, while this study focused on the ALM, exploring whether these orderly dynamics exist in other cortical areas remains a vital next step for understanding the neural basis of behavioral variability.

Summary updated

BibTeX
@inproceedings{wei2019orderly,
  author = {Ziqiang Wei and H. Inagaki and Nuo Li and Karel Svoboda and Shaul Druckmann},
  title = {{An orderly single-trial organization of population dynamics in premotor cortex predicts behavioral variability}},
  booktitle = {Nature Communications},
  year = {2019},
  doi = {10.1038/s41467-018-08141-6},
}
Figure