Linear-Nonlinear-Time-Warp-Poisson models of neural activity

Patrick N. Lawlor, Matthew G. Perich, Lee E. Miller, Konrad P. Körding

Abstract

Prominent models of spike trains assume only one source of variability – stochastic (Poisson) spiking – when stimuli and behavior are fixed. However, spike trains may also reflect variability due to internal processes such as planning. For example, we can plan a movement at one point in time and execute it at some arbitrary later time. Neurons involved in planning may thus share an underlying time-course that is not precisely locked to the actual movement. Here we combine the standard Linear-Nonlinear-Poisson (LNP) model with Dynamic Time Warping (DTW) to account for shared temporal variability. When applied to recordings from macaque premotor cortex, we find that time warping considerably improves predictions of neural activity. We suggest that such temporal variability is a widespread phenomenon in the brain which should be modeled.

Introduction

In computational neuroscience, the Linear-Nonlinear-Poisson (LNP) model is a foundational tool for characterizing how neurons encode external variables. It posits that a neuron's firing rate is a function of covariates (e.g., movement kinematics) passed through a nonlinearity, with trial-to-trial differences attributed to stochastic Poisson noise. However, this framework fails to account for "time-warp variability"—structured temporal jitter where neural activity shifts or stretches relative to external events.

Temporal variability in PMd neural activity relative to hand speed. The 'Offset' and 'Width' labels indicate shifts and stretches in the neural response that are not perfectly aligned with movement kinematics.

In areas like the dorsal premotor cortex (PMd), which are involved in motor planning, activity may not be strictly locked to the onset of movement. This internal timing jitter is often discarded as noise in standard models, but it likely represents a shared, population-level signal reflecting the brain's internal state.

Methods: The LNTWP Framework

To address this, we introduce the Linear-Nonlinear-Time-Warp-Poisson (LNTWP) model. This framework integrates the standard LNP model with Dynamic Time Warping (DTW).

The LNP Component

The base of our model is a generalized linear model (GLM) where the expected firing rate $\lambda$ is determined by a linear combination of covariates $\mathbf{X}$ and weights $\theta$, followed by an exponential nonlinearity.

The standard Linear-Nonlinear-Poisson (LNP) generative framework. The LNTWP model extends this by incorporating a trial-specific time-warp to the predicted firing rate before generating spikes.

Incorporating Time Warps

The innovation of LNTWP lies in its treatment of time. Instead of assuming a fixed relationship between covariates and spikes, we allow for a trial-specific "warp path." We use an alternating optimization algorithm to:

  1. Estimate the population-wide "average" response parameters (the LNP weights).
  2. For each trial, use DTW to find a non-linear mapping that aligns the predicted firing rate with the observed spikes.

Crucially, we assume this warp is shared across all simultaneously recorded neurons, suggesting a common "internal clock" jitter.

Results

The model was evaluated on extracellular recordings from two macaques (Monkeys M and T) performing a random-target reaching task.

  • Improved Predictions: Accounting for temporal variability significantly improved the predictive power (measured via Pseudo-$R^2$) for approximately 58% of neurons in Monkey M.
  • Substantial Effect Size: The performance gain from modeling time-warps was comparable in magnitude to other well-known factors like spike history and directional tuning.
  • Validation via Shuffling: When the authors applied a warp path from one trial to the spikes of another, performance dropped significantly. This confirms that the warps capture genuine trial-specific temporal dynamics rather than acting as a generic smoothing filter.

Discussion

Our findings suggest that timing is a critical latent variable in neural coding. While sensory and motor peripheral neurons are tightly coupled to external events, intermediate areas like the PMd exhibit temporal flexibility. This decoupling likely reflects the gap between movement planning and execution. By modeling this shared variability, the LNTWP framework provides a more accurate representation of neural computation, transforming what was once considered "noise" into a structured signal.

Summary updated

BibTeX
@article{lawlor2018linear,
  author = {Patrick N. Lawlor and Matthew G. Perich and Lee E. Miller and Konrad P. Körding},
  title = {{Linear-Nonlinear-Time-Warp-Poisson models of neural activity}},
  journal = {J. Comput. Neurosci.},
  year = {2018},
  doi = {10.1007/s10827-018-0696-6},
}
Figure