BraiNN: A Modern Simulator for Clinically Feasible Personalized Whole-Brain Network Modeling
Alessandro FasseiD, Chiara BilliiD, Victor GarvaloviD, Matthew Morvan, Taylor NewtoniD, Niels KusteriD, Esra NeufeldiD
Abstract
Personalized whole-brain modeling aims to transform treatment planning for neurological disorders by enabling patient-specific simulations of brain network dynamics. Neural mass models (NMMs) offer a tractable compromise between biophysical detail and computational cost and can be directly linked to macroscopic observables such as EEG. However, scaling NMMs to whole-brain networks with realistic connectivity, conduction delays, and cortical surface resolution--and fitting them to individual patient data--imposes computational demands that existing frameworks cannot meet at clinically relevant timescales. Here we introduce BraiNN, a JAX-based Python framework for large-scale neural mass modeling that achieves speedups of up to two to three orders of magnitude over existing tools by leveraging GPU/TPU-accelerated, XLA-compiled array computation. BraiNN combines a region-level Jansen-Rit network with a subject-specific cortical surface mesh of coupled neural mass models and biophysically grounded EEG forward modeling via reciprocity-based lead fields. Its fully differentiable computational graph enables a hybrid personalization pipeline that pairs Bayesian optimization for global parameter exploration with gradient-based refinement, completing EEG-driven spectral fitting of an eight-dimensional parameter space in approximately 2-3 hours on a single consumer GPU--compared to multiple days with conventional neural mass modeling software. Numerical verification against established benchmarks confirms that BraiNN faithfully reproduces canonical synchronization and bifurcation dynamics of Jansen-Rit networks. By reducing the time requirements for personalizing a high-detail whole-brain surface model from days to a few hours on consumer-grade hardware, BraiNN brings personalized brain network modeling closer to practical use in clinical contexts. We anticipate that BraiNN will serve as a foundation for patient-specific digital twins and EEG-guided neuromodulation planning.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Organism
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Fast and Easy Whole-Brain Network Model Parameter Estimation with Automatic Differentiation
Marius Pille, Leon Martin, … Petra Ritter·bioRxiv·Nov 18, 2025
- Optimizing Biophysical Large-Scale Brain Circuit Models With Deep Neural Networks
Tianchu Zeng, Tian Fang, … B.T. Thomas Yeo·bioRxiv·Apr 7, 2025
- NetPyNE: a tool for data-driven multiscale modeling of brain circuits
Salvador Durá-Bernal, Benjamin A. Suter, … William W. Lytton·eLifePeer-reviewed·Apr 26, 2019
- cuBNM: GPU-Accelerated Brain Network Modeling
Amin Saberi, Bin Wan, … Sofie Louise Valk·bioRxiv·Nov 13, 2025
- neurolib: a simulation framework for whole-brain neural mass modeling
Caglar Cakan, Nikola Jajcay, Klaus Obermayer·Cognitive ComputationPeer-reviewed·Oct 12, 2021
- Personalization of hybrid brain models from neuroimaging and electrophysiology data
Roser Sanchez-Todo, Ricardo Salvador, … Giulio Ruffini·bioRxiv·Nov 4, 2018