Efficient Electric Field Simulations for Transcranial Brain Stimulation
Abstract
ObjectiveTranscranial magnetic stimulation (TMS) and transcranial electric stimulation (TES) modulate brain activity non-invasively by generating electric fields either by electromagnetic induction or by injecting currents via skin electrodes. Numerical simulations based on anatomically detailed head models of the TMS and TES electric fields can help us to understand and optimize the spatial stimulation pattern in the brain. However, most realistic simulations are still slow, and their numerical accuracy and the factors that influence it have not been evaluated in detail so far. ApproachWe present and validate a new implementation of the Finite Element Method (FEM) for TMS and TES that is based on modern algorithms and libraries. We also evaluate the convergence of the simulations and give estimates for the discretization errors. Main resultsComparisons with analytical solutions for spherical head models validate our new FEM implementation. It is five to ten times faster than previous implementations. The convergence results suggest that accurately capturing the tissue geometry in addition to choosing a sufficiently high mesh density is of fundamental importance for accurate simulations. SignificanceThe new implementation allows for a substantial increase in computational efficiency of TMS and TES simulations. This is especially relevant for applications such as the systematic assessment of model uncertainty and the optimization of multi-electrode TES montages. The results of our systematic error analysis allow the user to select the best tradeoff between model resolution and simulation speed for a specific application. The new FEM code will be made openly available as a part of our open-source software SimNIBS 3.0.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility 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 FEM-based Electric Field Calculations for Transcranial Magnetic Stimulation
Fang Cao, Kristoffer Hougaard Madsen, … Axel Thielscher·Journal of Neural EngineeringPeer-reviewed·May 12, 2025
- Conditions for numerically accurate TMS electric field simulation
L. Gomez, M. Dannhauer, … A. V. Peterchev·bioRxiv·Dec 25, 2018
- A Software Toolkit for TMS Electric-Field Modeling with Boundary Element Fast Multipole Method: An Efficient MATLAB Implementation
S. N. Makarov, W. A. Wartman, … A. Nummenmaa·bioRxiv·Feb 9, 2020
- Real-time computation of the TMS-induced electric field in a realistic head model
Matti Stenroos, Lari M. Koponen·NeuroImagePeer-reviewed·Sep 5, 2019
- Comparative Performance of the Finite Element Method and the Boundary Element Fast Multipole Method for Problems Mimicking Transcranial Magnetic Stimulation (TMS)
A. T. Htet, G. B. Saturnino, … S. N. Makarov·bioRxiv·Dec 21, 2018
- Measuring Transcranial Magnetic Stimulation-Induced Electric Fields in Anatomically and Conductively Accurate Rat Head Phantoms
Wesley Lohr, Mohannad Tashli, … Ravi L. Hadimani·Journal of Neural EngineeringPeer-reviewed·Feb 1, 2026