Abstract
Latent dynamical systems have been widely used to characterize the dynamics of neural population activity in the brain. However, these models typically ignore the fact that the brain contains multiple cell types. This limits their ability to capture the functional roles of distinct cell classes, and to predict the effects of cell-specific perturbations on neural activity or behavior. To overcome these limitations, we introduce the "cell-type dynamical systems" (CTDS) model. This model extends latent linear dynamical systems to contain distinct latent variables for each cell class, with biologically inspired constraints on both dynamics and emissions. We applied CTDS to recordings from rat frontal orienting fields (FOF) and anterior dorsal striatum (ADS) during an auditory decision-making task. The model achieved higher accuracy than a standard linear dynamical system (LDS), and revealed that the animal's choice can be decoded from both E and I latents. We also performed in-silico optogenetic perturbation experiments, finding that CTDS was able to replicate the experimentally observed effects of different perturbations on behavior. These results illustrate the power of the CTDS model to provide more accurate and more biologically interpretable descriptions of neural population dynamics.
Introduction
In computational neuroscience, Latent Linear Dynamical Systems (LDS) are a standard tool for interpreting high-dimensional neural activity. These models posit that observed firing patterns are driven by a small number of hidden variables evolving over time. However, traditional LDS models are "cell-type blind," treating all neurons as a homogeneous population. This ignores the fundamental biological distinction between excitatory (E) neurons, which increase the activity of their targets, and inhibitory (I) neurons, which decrease it.
Because they ignore these distinct roles and the biological rules they follow (such as Dale’s Law), standard models struggle to explain the causal effects of cell-specific perturbations, such as optogenetic silencing. To bridge this gap between statistical modeling and biological reality, we developed the Cell-Type Dynamical Systems (CTDS) framework.
The Cell-Type Dynamical Systems (CTDS) Model
The CTDS model incorporates three key biological constraints into the latent variable framework:
- Split Latents: The model assigns unique latent variables to each cell class (e.g., separate "E-latents" and "I-latents").
- Dale’s Law Constraints: The dynamics matrix, which dictates how latents influence each other over time, is constrained such that E-latents have strictly positive effects and I-latents have strictly negative effects on other latents.
- Non-negative Emissions: The mapping from hidden states to observed neurons is constrained to be non-negative. This ensures that an increase in an "E-latent" corresponds to a physical increase in the firing rate of excitatory neurons.
To handle these constraints during model fitting, we utilized an Expectation-Maximization (EM) algorithm where standard updates are replaced with quadratic programming. We also extended the framework to a multi-region version to capture interactions between distinct brain areas.
Results and Validation
We validated CTDS using neural recordings from rats performing an auditory "Poisson clicks" decision-making task. Data were collected from the Frontal Orienting Fields (FOF) and the Anterior Dorsal Striatum (ADS) using Neuropixel probes.
Performance and Decoding
CTDS achieved a significantly higher test log-likelihood compared to standard LDS, indicating that biological constraints improve the model's representative power. Furthermore, we found that information regarding the animal's upcoming choice was distributed across both excitatory and inhibitory populations. A classifier trained on CTDS latents could predict behavioral choices with high accuracy, demonstrating that choice is a property of the whole dynamical system rather than a single cell class.
Causal Realism and In-Silico Perturbations
A major advantage of CTDS is its ability to perform "in-silico" optogenetic experiments. By manipulating specific latents (e.g., clamping E-latents to negative values), we could simulate the silencing of specific cell types. CTDS successfully replicated the "ipsilateral bias" observed in real-world experiments—a tendency for the animal to turn toward the side of the brain being silenced. Crucially, CTDS correctly predicted the timing of these effects: silencing FOF neurons primarily affected behavior during the second half of a trial, while ADS silencing had a consistent effect throughout.
Cell-Type Discovery
Finally, we demonstrated that CTDS can be used to infer the identity of neurons whose cell type is unknown. By determining which set of latents (E or I) best explains a neuron's firing patterns, the model successfully identified the cell types of up to 50% of previously unclassified neurons in the FOF and ADS datasets.
Discussion
While CTDS currently assumes linear dynamics, it provides a significantly more interpretable and biologically grounded description of neural activity than standard LDS. Future work could extend this framework to non-linear dynamics or incorporate more granular cell subtypes (e.g., PV, SOM, VIP interneurons). By respecting the fundamental building blocks of neural circuits, CTDS offers a powerful tool for understanding the causal links between circuit dynamics and behavior.
Summary updated