Fast and easy whole-brain network model parameter estimation with automatic differentiation
Background Personalized whole-brain modeling requires constraining biophysical network models with empirical neuroimaging data, yet high-dimensional parameter estimation remains computationally prohibitive. Existing simulation tools trade off speed, usability, and flexibility, and lack the integration of automatic differentiation with general-purpose brain network model frameworks needed for composable gradient-based optimization that enables richer, more realistic individualized models. Methods We developed TVB-Optim, an open-source Python library that provides an intuitive interface for building fast and fully differentiable brain network models directly in Python and JAX. The framework couples local neural mass models through structural connectivity with transmission delays and applies forward observation models to compare simulated activity against functional magnetic resonance imaging, electroencephalography, and magnetoencephalography data through differentiable loss functions. Documented workflows combine coarse parameter-space exploration on distributed hardware with gradient-based refinement, and progressively expand the free parameter space from global to regional to per-connection scales. Results Here we show that automatic differentiation enables direct optimization of thousands of parameters across functional magnetic resonance imaging and magnetoencephalography datasets, spanning global coupling, regional dynamics, and per-connection scaling of structural connectivity. Forward simulations achieve a tenfold CPU speedup over reference implementations and scale efficiently to GPU and multi-device configurations. Hybrid workflows that combine exploration with gradient refinement yield solutions superior to either approach alone, and reach them faster. Conclusions TVB-Optim bridges mechanistic neuroscience with modern machine learning infrastructure, making high-dimensional parameter estimation computationally tractable and providing the computational foundation to advance personalized brain modeling toward clinical translation.
Authors
- Marius Pille (ORCID: https://orcid.org/0009-0000-5087-8450)
- Petra Ritter (ORCID: https://orcid.org/0000-0002-4643-4782)
- Michael Schirner (ORCID: https://orcid.org/0000-0001-8227-8476)
- Dionysios Perdikis (ORCID: https://orcid.org/0000-0003-0103-7094)
- Leon Martin (ORCID: https://orcid.org/0000-0002-2599-0165)
- Emilius Richter (ORCID: https://orcid.org/0009-0003-8113-3904)
Institutions
- Einstein Center Digital Future (DE)
- Berlin Institute of Health at Charité - Universitätsmedizin Berlin (DE)
- Bernstein Center for Computational Neuroscience Berlin (DE)
- Einstein Center for Neurosciences Berlin (DE)
- Charité - Universitätsmedizin Berlin (DE)
Publication Details
- Journal
- Communications AI & Computing
- Published
- 2026-12-02
- DOI
- https://doi.org/10.1038/s44488-026-00026-8
- Citations
- 9
- Primary Topic
- Neural dynamics and brain function
- Type
- article
- Field-Weighted Citation Impact
- 12.42