Brain stimulation treatments such as transcranial magnetic stimulation (magnetic pulses delivered through the scalp), transcranial direct current stimulation (a weak constant current through scalp electrodes), and electroconvulsive therapy help patients with depression and stroke. Nobody can say which physiological quantities they change, in which brain regions, or over what time course. Imaging studies report statistical summaries such as how often regions switch network membership or how long the brain dwells in a connectivity "state." Simulation studies run the physics forward with one fixed set of parameters shared by every region. Neither recovers the quantity a mechanism would name: how a specific region's excitability or coupling changes over time as stimulation turns on, persists, and fades.
We propose to estimate these region-specific, time-varying parameters by fitting a whole-brain model to brain imaging data. The key move is to use what the experimenter already knows. The stimulation schedule (onset, offset, pulse times) and the computed electric-field map across regions are known in advance. We build both into the prior over parameter trajectories. That converts two problems that break generic time-varying estimators into known structure. The first is sudden jumps, where the parameter changes abruptly at a moment the estimator must otherwise detect. The second is too many unknowns per region. What remains is a small number of per-region response gains plus a low-rank smooth drift. We expect this to be both identifiable and cheap enough for 68 or more regions.
Core Claim
Consider a whole-brain neural mass model. It simulates each region as an averaged population of excitatory and inhibitory neurons, wired together by the diffusion-MRI connectome and observed through a hemodynamic model that turns neural activity into the blood-oxygen (BOLD) signal. In this model, we claim that region-specific stimulation effects become recoverable from BOLD when each region's parameter trajectory is written as
$$\theta_i(t) = \theta_i^0 + g_i\, E_i\, h(t; s, \tau_i) + \sum_{k=1}^{K} w_{ik}\, z_k(t).$$
The symbols are as follows. $\theta_i(t)$ is a physiological parameter of region $i$, such as synaptic gating gain or excitation–inhibition balance. $\theta_i^0$ is its baseline. $E_i$ is the normal electric-field component in region $i$, computed from a finite-element head model. $h(t; s, \tau_i)$ is a response kernel that is locked to the known stimulation schedule $s$: it jumps at onset and offset and decays with a region-specific time constant $\tau_i$. $g_i$ is the region's gain to that drive. $z_k(t)$ are $K$ shared smooth Gaussian-process drifts with loadings $w_{ik}$. The discontinuities sit exactly where stimulation happens and nowhere else. Spatial structure comes from physics rather than from free parameters. The drift term absorbs slow non-stationarity unrelated to stimulation.
We test the claim first on synthetic data with known ground truth. We then ask whether the recovered gains predict clinical recovery better than the phenomenological network metrics currently reported.
Relation to Prior Work
Three papers set up the gap from the neuroscience side. Effects of tDCS of the DLPFC on brain networks: A hybrid brain modeling study couples a SimNIBS electric-field model to a 68-region mean-field model. It predicts an initial drop and then a rebound in dynamic connectivity during stimulation. However, it only simulates forward, with homogeneous, static parameters. We reuse its forward model and electric-field mapping as the generative backbone and solve the inverse problem it leaves open. Mechanism of Neural Interference by Transcranial Magnetic Stimulation: Network or Single Neuron? shows that a single pulse can abruptly reset a network from an active to a silent attractor. This is direct evidence that stimulation-induced changes are discontinuous, and it motivates our jump-at-known-times kernel. Bifurcation analysis of two coupled Jansen-Rit neural mass models inferred a jump in a hidden input parameter at seizure onset from intracranial recordings, but only in a two-node model and without exogenous stimulation. We scale the idea to whole-brain networks where the jump times are supplied by the experiment.
Methods come from time-varying estimation in epidemiology. Manifold-constrained Gaussian process inference for time-varying parameters in dynamic systems (TVMAGI) places Gaussian-process priors on states and parameters and enforces the differential equation as a derivative constraint, avoiding numerical solvers. It reports over 50% lower parameter RMSE than ensemble adjustment Kalman filters on SEIRD benchmarks, a 3x speedup over Runge–Kutta integration, and calibrated credible intervals. It also acknowledges two limits: its smooth priors blur sudden jumps, and its cost grows cubically with dimension. We keep its solver-free inference for the smooth component. We sidestep both limits: jumps enter through the known-schedule kernel, and only $K$ shared drifts carry Gaussian-process cost.
How (Not) to Hybridize Neural and Mechanistic Models for Epidemiological Forecasting constrains our design. It shows that unanchored neural parameter estimators drift and become non-identifiable when states are hidden, which is exactly the BOLD situation. Identifiability and predictability of integer- and fractional-order epidemiological models using physics-informed neural networks likewise finds flexible physics-informed networks unidentifiable without structural constraints. We take these as reasons not to give each region a free neural-network trajectory. Change-point models such as Bayesian SIR model with change points with application to the Omicron wave in Singapore handle jumps but must search for breakpoints and cannot represent smooth recovery between them. Our breakpoints are given, and recovery is modeled by $\tau_i$.
Clinical studies supply the target phenomena and the downstream benchmark. Examples are the stroke rTMS trial reporting increased switching rates (Transcranial magnetic stimulation regulates brain functional network dynamics in stroke patients: a randomised controlled trial) and the ECT study reporting changed state occupancy (Dynamic Functional Connectivity Predicts Treatment Response to Electroconvulsive Therapy in Major Depressive Disorder).
Research Program
We will build the model on the Human Connectome Project retest structural connectomes used by the hybrid tDCS model. We will extend it from 68 cortical regions to include subcortical regions, following the 116-region parcellation of Whole-Brain Causal Discovery Using fMRI, because deep targets matter clinically.
Inference proceeds in two stages. First, a MAP fit optimizes the baselines, gains, time constants, and drift loadings. Second, Hamiltonian Monte Carlo runs over the same low-dimensional set. The neural and hemodynamic states are handled through TVMAGI-style manifold constraints for the smooth segments. At each known stimulation boundary we restart the state explicitly, so the Gaussian process never has to fit across a jump.
The analysis centers on identifiability. For each parameter type, we will map which of $g_i$ and $\tau_i$ are recoverable as a function of three things: electric-field magnitude, scan length, and repetition time. This yields a practical statement of what BOLD can and cannot reveal about a stimulation mechanism.
Baselines
The naive reference point is the current practice in the clinical papers. It computes sliding-window Pearson correlations, then either clusters windows into states with k-means (40-second windows, as in the ECT study) or detects communities with GenLouvain to compute switching rates (as in the stroke trial). It is run on identical scans and parcellations. On synthetic data it cannot recover parameters at all. Its role is therefore in the clinical comparison, where it is a real competitor. The stroke trial reports $r = 0.409$ between left inferior parietal switching-rate change and upper-limb motor improvement (FMA-UE), and an adjusted $R^2 = 0.258$ for baseline dynamics predicting improvement. The ECT study reports $R = 0.23$ between pre-treatment State 1 occupancy and depression score (HDRS) improvement. Because in-sample figures inflate, we will recompute these metrics under the same nested cross-validation as our model. Beating the baseline means higher cross-validated predictive $R^2$ with a confidence interval excluding the baseline's.
The strongest existing time-varying estimator is TVMAGI. It is applied to the same whole-brain model with a smooth Gaussian-process prior on each region's parameter. Where cubic cost forbids the full model, we give it the same low-rank shared-drift structure, so that the only difference is the missing stimulation-locked kernel. Its reported advantage over Kalman filtering is the >50% RMSE reduction on SEIRD. No reported result was found on Lacuna for TVMAGI or any time-varying estimator on neural mass models. We will give it the same compute and hyperparameter-search budget.
We also run an ensemble adjustment Kalman filter with parameters appended to the state. This follows the approach of Using a population-based Kalman estimator to model the COVID-19 epidemic in France: estimating associations between disease transmission and non-pharmaceutical interventions, with its process noise tuned on held-out simulations.
We run a static two-fit baseline, described under the next section.
Finally, a vanilla physics-informed network gives each region a neural-network trajectory, representing the unconstrained hybrid that the epidemiology work warns against.
Beating the baselines on synthetic data means lower parameter RMSE, especially within a few repetition times of onset and offset, together with nominal 95% interval coverage.
Two ablations isolate the key ingredients. The first removes the electric-field loading, freeing each $g_i$. The second removes knowledge of stimulation timing, replacing $h$ with a learned change point. If either ablation matches the full model, the corresponding ingredient is not doing the work.
Why not just…?
Why not just keep sliding-window connectivity, which is simple and already predicts outcome? It does predict outcome modestly, and we treat that as the bar, not a straw man. Its window length acts as an uncalibrated low-pass filter. More fundamentally, it measures correlations between signals rather than any regional quantity a stimulus could act on. If our gains fail to beat its cross-validated prediction, we will say so. In that case we will report the method's value as explanatory only, and back that claim with the synthetic recovery results.
Why not just fit a separate static regional model before and after stimulation? This is the most serious threat, because most of the available clinical data are pre/post scans. Two static fits might capture everything those data contain. Our model contains this baseline as a special case when $\tau_i$ is long and the drift is zero. We therefore compare them head-to-head by held-out BOLD likelihood and clinical prediction. The time-varying model must earn its complexity in two places. The first is within-scan structure in post-stimulation scans, where aftereffects fading over minutes should show as a measurable $\tau_i$. The second is synthetic online-stimulation data, where the hybrid tDCS model predicts a drop-then-rebound that two static fits cannot represent. If the static fits tie on real pre/post data, we will restrict our claims to online and aftereffect designs.
Why not just use a Kalman filter, which tracks drifting parameters in real time? TVMAGI's benchmark shows Kalman filtering losing more than half its accuracy to manifold-constrained inference on nonlinear, partially observed systems. Neural mass models observed through BOLD are more nonlinear and more hidden still. The filter also has no way to exploit known electric-field spatial structure except through hand-set process noise. The synthetic comparison settles this directly.
Why not just train a sequence model end to end on scans and outcomes? Pure neural forecasters lost to structured hybrids by up to 57% RMSE on CDC surveillance data in the EpiNode study. More importantly for this question, they return no regional parameter to interpret, which leaves the mechanism unexplained. Clinical cohorts of tens to low hundreds of patients are also too small to train such models reliably.
Proposed Experiments
The decisive synthetic experiment simulates the extended tDCS hybrid model on Human Connectome Project retest connectomes. Ground-truth parameters are heterogeneous across regions, with jumps at onset and offset and region-specific recovery times, under a DLPFC montage and a parietal montage. Noise and repetition times are matched to real scanners. We report parameter RMSE and interval coverage for all baselines and ablations. The prediction is that the full model wins mainly near stimulation boundaries and in regions with strong electric fields, and that gains become unidentifiable below a field threshold we will quantify.
A second check tests identifiability honestly. We fit the model to Human Connectome Project S1200 resting scans with a fake stimulation schedule. Recovered gains should be indistinguishable from zero. A false-positive rate above nominal would invalidate real-data claims.
On real data, we first use the nine-subject parietal tDCS–spectroscopy dataset from Baseline effects of transcranial direct current stimulation on glutamatergic neurotransmission and large-scale network connectivity as a sign-level sanity check. The excitatory gain estimated under the electrode should be positive and should track the measured glutamate-plus-glutamine increase more than the contralateral estimate does. The sample is too small for more than that.
If we obtain access to the stroke rTMS and ECT cohorts, we compare cross-validated prediction of FMA-UE and HDRS change from recovered regional gains against the recomputed switching-rate and occupancy metrics. We also test whether the recovered parameters reproduce the reported network signatures when simulated forward. Those signatures are increased switching in the stroke cohort and increased cognitive-control–default-mode occupancy after ECT.
References
- Effects of tDCS of the DLPFC on brain networks: A hybrid brain modeling study
- Mechanism of Neural Interference by Transcranial Magnetic Stimulation: Network or Single Neuron?
- Bifurcation analysis of two coupled Jansen-Rit neural mass models
- Manifold-constrained Gaussian process inference for time-varying parameters in dynamic systems
- How (Not) to Hybridize Neural and Mechanistic Models for Epidemiological Forecasting
- Identifiability and predictability of integer- and fractional-order epidemiological models using physics-informed neural networks
- Bayesian SIR model with change points with application to the Omicron wave in Singapore
- Transcranial magnetic stimulation regulates brain functional network dynamics in stroke patients: a randomised controlled trial
- Dynamic Functional Connectivity Predicts Treatment Response to Electroconvulsive Therapy in Major Depressive Disorder
- Whole-Brain Causal Discovery Using fMRI
- Using a population-based Kalman estimator to model the COVID-19 epidemic in France: estimating associations between disease transmission and non-pharmaceutical interventions
- Baseline effects of transcranial direct current stimulation on glutamatergic neurotransmission and large-scale network connectivity