Methods and considerations for estimating parameters in biophysically detailed neural models with simulation based inference

Nicholas Tolley, Pedro L. C. Rodrigues, Alexandre Gramfort, Stephanie R. Jones · DOI

Introduction

Computational neuroscience relies heavily on biophysically detailed models, such as the Human Neocortical Neurosolver (HNN), to bridge the gap between cellular-level activity and macro-scale signals like EEG or MEG. However, these models are mathematically complex "black boxes," making it impossible to define an explicit likelihood function—the mathematical formula required to calculate the probability of a specific brain wave given a set of biological parameters.

Without a likelihood function, traditional Bayesian inference is inapplicable. Researchers have historically relied on manual "hand-tuning" or optimization algorithms that provide only a single "best guess" for parameters. This approach ignores the phenomenon of indeterminacy, where multiple distinct biological configurations can produce identical EEG signals. This paper introduces a robust framework using Simulation-Based Inference (SBI) to map out entire probabilistic distributions of these parameters, providing a principled way to handle uncertainty in neural modeling.

Methods: The SBI Framework

The authors utilize Neural Posterior Estimation (NPE), a specific SBI technique that leverages deep learning to bypass the need for a likelihood function. The workflow follows four primary stages:

  1. Simulate: The researchers generated 100,000 simulations using models ranging from simple RC circuits to full neocortical columns. Parameters were sampled from a "prior" distribution representing biologically plausible ranges.
  2. Summarize: High-dimensional time-series waveforms were converted into lower-dimensional summary statistics. The study compared standard methods like Principal Component Analysis (PCA) against hand-crafted features such as peak timing and frequency band power.
  3. Train: An artificial neural network—specifically a Masked Autoregressive Flow (MAF)—was trained to learn the complex mapping from summary statistics back to the underlying parameter distributions.
  4. Infer: Once trained, the network can take a novel brain recording and instantly output a "posterior distribution," revealing the most likely parameters along with their associated uncertainties and correlations.
The core of the SBI process involves training a neural network to map summary statistics to parameter distributions.

Key Insights and Ideas

The Power of Waveform Shape

A significant finding was that PCA (using 30 components) consistently outperformed hand-crafted features like "Band Power." This suggests that the subtle, non-linear "shape" of a brain wave contains vital information about the underlying circuit that traditional frequency analysis overlooks.

Visualizing Indeterminacy

The SBI approach excels at revealing "compensatory interactions." For instance, in Event-Related Potentials (ERPs), the model demonstrated that an increase in excitatory input could be effectively canceled out by a specific increase in inhibitory input, resulting in the same observed signal. SBI visualizes this relationship as a diagonal ridge in a 2D posterior plot, explicitly showing the trade-offs between parameters.

Subthreshold vs. Suprathreshold Dynamics

The study noted that parameters are significantly easier to identify when neurons are in a "subthreshold" (quiet) state. Once neurons begin spiking (suprathreshold), the system's non-linearity increases, leading to higher indeterminacy where multiple biological states appear identical in the macro-scale recording.

Key Results and Diagnostics

The paper establishes a "gold standard" for diagnostic rigor to ensure the deep learning model provides reliable estimates rather than "hallucinating" parameters.

  • Parameter Recovery: Using the Parameter Recovery Error (PRE) diagnostic, the authors demonstrated that PCA-based SBI could accurately recover ground-truth parameters in both toy models and complex HNN simulations.
  • Subject Differentiation: When applied to real human MEG data of "Beta Events" (15–29 Hz oscillations), the framework successfully distinguished between two subjects. It identified non-overlapping distributions in their "proximal drive variance," providing a biological explanation for individual differences in brain activity.
  • Posterior Predictive Checks (PPC): By sampling from the inferred posterior and re-simulating the model, the authors confirmed that the predicted waveforms closely matched the original experimental data.
The full inference pipeline moves from waveform input to parameter recovery and posterior predictive checks to validate the model.

Limitations and Future Directions

While powerful, the authors acknowledge the "curse of dimensionality." It is currently impossible to infer all 1,000+ parameters of a detailed model simultaneously; researchers must still use domain expertise to select a relevant subset. Future work will explore the use of Embedding Networks (like CNNs or RNNs) to automatically learn the most informative features directly from raw data, potentially replacing PCA. Additionally, moving beyond simplified Gaussian noise to more realistic, "colored" noise profiles will be essential for ensuring the robustness of parameters inferred from real-world clinical data.

Summary updated

BibTeX
@article{tolley2024methods,
  author = {Nicholas Tolley and Pedro L. C. Rodrigues and Alexandre Gramfort and Stephanie R. Jones},
  title = {{Methods and considerations for estimating parameters in biophysically detailed neural models with simulation based inference}},
  journal = {PLOS Computational Biology},
  year = {2024},
  doi = {10.1371/journal.pcbi.1011108},
}
Figure