Modeling and dissociation of intrinsic and input-driven neural population dynamics underlying behavior

Parsa Vahidi, Omid G. Sani, Maryam M. Shanechi

Abstract

Neural dynamics can reflect intrinsic dynamics or dynamic inputs, such as sensory inputs or inputs from other regions. To avoid misinterpreting temporally-structured inputs as intrinsic dynamics, dynamical models of neural activity should account for measured inputs. However, incorporating measured inputs remains elusive in joint dynamical modeling of neural-behavioral data, which is important for studying neural computations of a specific behavior. We first show how training dynamical models of neural activity while considering behavior but not input, or input but not behavior may lead to misinterpretations. We then develop a novel analytical learning method that simultaneously accounts for neural activity, behavior, and measured inputs. The method provides the new capability to prioritize the learning of intrinsic behaviorally relevant neural dynamics and dissociate them from both other intrinsic dynamics and measured input dynamics. In data from a simulated brain with fixed intrinsic dynamics that performs different tasks, the method correctly finds the same intrinsic dynamics regardless of task while other methods can be influenced by the change in task. In neural datasets from three subjects performing two different motor tasks with task instruction sensory inputs, the method reveals low-dimensional intrinsic neural dynamics that are missed by other methods and are more predictive of behavior and/or neural activity. The method also uniquely finds that the intrinsic behaviorally relevant neural dynamics are largely similar across the three subjects and two tasks whereas the overall neural dynamics are not. These input-driven dynamical models of neural-behavioral data can uncover intrinsic dynamics that may otherwise be missed.

Introduction

A central goal in systems neuroscience is to understand how neural population activity generates behavior. This activity is typically viewed through the lens of dynamical systems, where the state of a neural population evolves over time to perform computations. However, these dynamics arise from two distinct sources: intrinsic dynamics, which are generated by the internal recurrent connections within a brain region, and input-driven dynamics, which are shaped by external signals such as sensory stimuli, task instructions, or inputs from other brain areas.

A significant challenge in the field is that these two sources are often deeply entangled. When a researcher records activity from the motor cortex during a task, the neural patterns reflect both the internal motor plan and the external sensory cues guiding that plan. Without accounting for these inputs, standard dynamical models may "hallucinate" external rhythms as internal properties of the brain region itself, leading to incorrect conclusions about neural computation. To address this, we present Input Preferential Subspace Identification (IPSID), a novel framework designed to dissociate intrinsic behaviorally relevant dynamics from external input influences.

The Problem: Entangled Dynamics

Existing modeling approaches generally fall into two categories, both of which have limitations when dealing with structured inputs:

  1. Non-preferential models (e.g., INDM): These models account for inputs but treat all neural variance equally. Consequently, they often focus on high-variance neural patterns that may be irrelevant to the behavior of interest, missing the subtle, low-variance dynamics that actually drive action.
  2. Preferential models (e.g., PSID): These models prioritize behaviorally relevant dynamics but ignore measured inputs. In the presence of structured sensory cues, these models may incorrectly attribute the temporal structure of the input to the brain's intrinsic dynamics.

IPSID overcomes these traps by simultaneously accounting for neural activity, behavior, and measured inputs within a unified analytical framework.

Methods: The IPSID Framework

IPSID is an analytical learning method based on linear state-space models. Unlike iterative "black-box" deep learning approaches, IPSID utilizes a two-stage procedure rooted in linear algebra and subspace identification:

  • Oblique Projections: The core innovation of IPSID is the use of "oblique" (non-orthogonal) projections. This allows the algorithm to extract latent states from neural data that are predictive of behavior while specifically "projecting out" the influence of future measured inputs. This ensures that the learned dynamics are truly intrinsic to the region and not merely reflections of the input structure.
  • Two-Stage Learning: In the first stage, the algorithm prioritizes the learning of behaviorally relevant dynamics. An optional second stage can then be used to capture any remaining neural dynamics that do not contribute to the behavior.
  • Analytical Efficiency: Because IPSID relies on Singular Value Decomposition (SVD) and least squares rather than gradient descent, it is computationally efficient, requires significantly less data, and provides a unique, reproducible solution.

Experimental Validation

The researchers validated IPSID using both synthetic simulations and biological datasets from Non-Human Primates (NHPs):

  • Simulated Brains: The method was tested on 100 random dynamical models and a realistic "Optimal Feedback Controller" (OFC) simulation. These simulations allowed the team to verify if the model could recover known "ground truth" dynamics in the presence of complex inputs.
  • NHP Motor Control: Data was analyzed from two monkeys (I and L) performing a 2D cursor-to-target task (Sabes Lab) and a third monkey (T) performing sequential reaches to random targets (Miller Lab). These datasets involved recordings from the primary motor cortex (M1) and dorsal premotor cortex (PMd).

Key Insights and Results

1. Identifying the "True" Neural Engine

In simulations, IPSID was the only method capable of correctly identifying the true eigenvalues (the mathematical signatures of dynamics) of the behaviorally relevant states when structured inputs were present. Other methods were "deflected" by the input structure, leading to inaccurate models of the system's internal logic.

2. Hidden Consistency Across Subjects

One of the most striking findings was the discovery of a conserved neural "engine." While the overall neural dynamics appeared different across different monkeys and different tasks, the intrinsic behaviorally relevant dynamics identified by IPSID were remarkably similar. This suggests that while sensory inputs and general neural noise vary, the fundamental computation for motor control is highly consistent across individuals.

3. Superior Generalization and Efficiency

IPSID demonstrated exceptional sample efficiency, requiring orders of magnitude fewer training samples than numerical optimization methods to reach peak accuracy. Furthermore, models trained with IPSID generalized better; a model trained on one specific motor task could predict behavior in a different task with significantly less performance degradation than competing methods.

Discussion and Limitations

IPSID provides a powerful tool for uncovering the intrinsic computations of brain regions. By dissociating input-driven signals, it reveals a clearer picture of how the brain processes information to generate behavior.

However, some limitations remain. The current framework assumes a linear state-space, which may not capture all complexities of neural computation. Additionally, the method can only dissociate inputs that are explicitly measured by the experimenter. Unmeasured inputs—such as internal arousal states or signals from unrecorded brain regions—could still be confounded with intrinsic dynamics. Future work will explore extending these preferential principles to non-linear models and non-Gaussian observation distributions to further refine our understanding of the brain's dynamical landscape.

Summary updated

BibTeX
@inproceedings{vahidi2024modeling,
  author = {Parsa Vahidi and Omid G. Sani and Maryam M. Shanechi},
  title = {{Modeling and dissociation of intrinsic and input-driven neural population dynamics underlying behavior}},
  booktitle = {Proceedings of the National Academy of Sciences},
  year = {2024},
  doi = {10.1073/pnas.2212887121},
}
Figure