Fast and Easy Whole-Brain Network Model Parameter Estimation with Automatic Differentiation

Read the full article See related articles

Discuss this preprint

Start a discussion What are Sciety discussions?

Listed in

This article is not in any list yet, why not save it to one of your lists.
Log in to save this article

Abstract

Personalized brain modeling at clinically relevant scales requires integrating biophysical models with empirical neuroimaging data, yet high-dimensional parameter estimation in whole-brain network models remains computationally prohibitive. We present TVB-Optim, an open-source Python library providing a general and extensible framework for gradient-based optimization of brain network models build on JAX. Leveraging automatic differentiation, we demonstrate direct optimization of thousands of parameters, from global coupling (N=2) to regional dynamics (N=168) to full structural connectivity matrices (N=14,028), across functional MRI and magnetoencephalography data. Forward simulations achieve 10× CPU speedup over reference implementations and scale efficiently to GPU and multi-device configurations. We establish best practices through documented workflows that combine coarse parameter space exploration with gradient refinement, often yielding superior solutions faster than gradient methods alone. By bridging mechanistic neuroscience with modern machine learning infrastructure, TVB-Optim enables large-scale personalized brain models, bringing computational neuroscience closer to clinical translation.

Article activity feed