TL;DR
This paper introduces DFINE, a novel neural network model that can flexibly infer the underlying dynamics of neural population activity, even with noisy or incomplete data. DFINE achieves this by separating neural activity into nonlinear "manifold" factors and linear "dynamic" factors, allowing for more accurate predictions of neural activity and behavior, and a better understanding of brain structure.
What Problem Does This Paper Address?
Understanding the complex, dynamic patterns in neural population activity is crucial for both neuroscience research and the development of advanced neurotechnology like brain-machine interfaces (BMIs). While models can capture these patterns using lower-dimensional "latent factors," existing methods struggle to simultaneously achieve:
- Accuracy: Capturing the inherent nonlinearities in neural activity.
- Flexibility: Enabling inference in real-time (causal), using all available data (non-causal), and handling missing data (crucial for wireless interfaces).
Many current models are either linear (good for inference but miss nonlinearities) or nonlinear (capture nonlinearities but lack flexible inference). This gap hinders the development of robust and versatile tools for studying the brain and building advanced neuroprosthetics.
Methods
The core innovation is the DFINE (Dynamical Flexible Inference for Nonlinear Embeddings) model. It tackles the problem by:
- Separating Latent Factors: DFINE uses two sets of latent factors:
- Manifold Latent Factors: Capture the nonlinear embedding of neural activity into a lower-dimensional space. This is handled by an autoencoder with MLP encoder/decoder.
- Dynamic Latent Factors: Model the temporal evolution of activity on this nonlinear manifold. Crucially, this dynamics part is modeled as a linear system.
- Joint Training: The manifold and dynamic factors are trained end-to-end. This allows DFINE to learn the best nonlinear manifold where the dynamics can be approximated linearly.
- Flexible Inference: This separation enables flexible inference through a Kalman filter applied to the linear dynamics on the nonlinear manifold. This allows for:
- Causal (Filtering): Real-time inference.
- Non-causal (Smoothing): Using all available data for more accurate inference.
- Missing Data Handling: Robust inference even when neural observations are missing, without needing to impute values.
- Future-Step-Ahead Prediction: The model is trained by minimizing the error in predicting future neural activity, a more direct goal for dynamical systems than optimizing evidence lower bounds.
- Supervised DFINE: An extension allows for simultaneous training with behavior data, making the extracted latent factors more predictive of behavior.
Datasets
The authors validated DFINE using:
- Simulated Datasets: Including trajectories on ring-like, torus, and Swiss roll manifolds, and the stochastic Lorenz attractor system.
- Four Real-World Neural Datasets:
- Saccade Task: Macaque monkey eye movements (LFP data).
- 3D Naturalistic Reach-and-Grasp Task: Macaque monkey arm movements (smoothed firing rates and LFP data).
- 2D Random-Target Reaching Task: Macaque monkey cursor control (smoothed firing rates data).
- 2D Grid Reaching Task: Macaque monkey cursor control (smoothed firing rates data).
These datasets represent diverse behavioral tasks, brain regions, and neural signal modalities.
Key Insights and Ideas
- Linear Dynamics on a Nonlinear Manifold is Powerful: The key insight is that by first mapping neural activity to a nonlinear manifold and then modeling dynamics on that manifold linearly, one can achieve both accuracy and flexible inference. This is a clever way to leverage the strengths of both linear and nonlinear models.
- Flexibility is Crucial for Real-World Applications: The ability to perform causal, non-causal, and missing-data inference is not just an academic curiosity; it's essential for practical neurotechnology (like wireless BMIs) and for conducting more naturalistic neuroscience experiments.
- Robustness to Missing Data: DFINE's ability to handle missing neural observations without significant performance degradation is a major step forward, especially for wireless neural interfaces where data dropouts are common.
- Manifold Structure Matters: The paper highlights that neural data often exhibits a "ring-like" manifold structure, and DFINE is particularly good at robustly extracting this structure in single trials, which is important for understanding neural coding.
Key Results
- Improved Prediction Accuracy: DFINE significantly outperformed benchmark models (LDM, SAE) in predicting neural activity and behavior across all datasets. For example, in the 3D reach-and-grasp task, DFINE improved neural prediction accuracy by up to 49% over LDM and 20% over SAE.
- Robust Inference: DFINE maintained high behavior prediction accuracy even when up to 40% of neural observations were missing, and remained well above chance even with 80% missing data.
- Better Manifold Extraction: DFINE more robustly captured the latent manifold structure (specifically a ring-like structure) in single-trial data compared to LDM and SAE, as evidenced by Topological Data Analysis (TDA).
- Faster Inference: DFINE's learning and inference runtimes were faster than other nonlinear benchmark methods.
- Supervised DFINE: The supervised version improved behavior prediction accuracy by up to 24.5% in the 2D grid reaching task compared to the unsupervised DFINE.
Limitations and Future Work
- Suboptimal Results in Some Datasets: The authors acknowledge that the linearity of dynamics on the nonlinear manifold might lead to suboptimal results in some datasets due to model mismatch.
- Piecewise Linear Dynamics: Future work could extend DFINE to learn piecewise linear dynamics on the manifold to potentially improve modeling accuracy while retaining flexible inference.
- Combining Data Across Experiments: Integrating data from multiple experiments or sessions is a direction for future research.
- Other Observation Distributions: While DFINE supports Gaussian distributions (suitable for firing rates and LFPs), extending it to other distributions (e.g., Poisson for spike trains) is a future direction.
- Modeling Inputs: Incorporating external inputs (like stimulation) into the LDM part of the model is another avenue for future work.
Summary updated