Back

BUDAPEST: A Fast and Reliable Bayesian Algorithm for TMS Threshold Estimation with an Open-Source GUI and Human Validation

Bhutto, D. F.; Kim, E.; Pajankar, N.; Vahedifard, F.; Daneshzand, M.; Edwards, D.; Nummenmaa, A.

2026-03-04 radiology and imaging
10.64898/2026.03.03.26347528 medRxiv
Show abstract

BackgroundMotor threshold (MT) estimation is fundamental to transcranial magnetic stimulation (TMS), guiding individualized stimulation intensity in research and therapy. Conventional methods such as the 5-out-of-10 rule require many stimuli, while adaptive approaches like Parameter Estimation by Sequential Testing (PEST) improve efficiency but can exhibit poor convergence under certain conditions. ObjectiveThis study introduces the Bayesian Uncertainty Dynamic Algorithm for Parameter Estimation by Sequential Testing (BUDAPEST), a Bayesian adaptive method for fast, accurate MT estimation with user-controlled uncertainty. The aims were to validate its accuracy in simulations and human data, promote usability through a MATLAB-based graphical interface, and evaluate experimental utility through resting and active MT comparisons and session-to-session reliability. MethodsBUDAPEST infers MT from binary MEP responses using sequential Bayesian updating and terminates when a user-defined uncertainty threshold is reached. Performance was evaluated in 10,000 virtual simulations and in human rMT and aMT measurements across two sessions per subject, including 3x5 cortical motor mapping to assess physiological spatial patterns. ResultsIn simulations, BUDAPEST achieved a mean absolute error of 1.9% MSO within ~10 pulses using a 2% uncertainty criterion while avoiding PEST misestimations. In human data, MT estimates were accurate within {+/-}4% MSO and robust to initialization; rMT showed strong session-to-session reliability (r = 0.78), whereas aMT exhibited greater variability. Motor mapping revealed coherent excitability gradients centered on the hotspot. ConclusionBUDAPEST enables rapid, reliable, and uncertainty-controlled MT estimation while reducing procedure time and participant burden. The accompanying GUI facilitates immediate adoption in research and clinical TMS environments. HighlightsO_LIIntroduces BUDAPEST, a Bayesian uncertainty-aware algorithm for rapid and reliable TMS motor threshold estimation. C_LIO_LIAchieves accurate MT estimates ({approx}2% MSO error) in ~10 pulses with user-controlled trade-offs between precision and procedure duration. C_LIO_LIDemonstrates robust performance in simulations and human data, with strong resting MT reliability and an open-source GUI enabling immediate adoption. C_LI

Matching journals

The top 5 journals account for 50% of the predicted probability mass.

1
Imaging Neuroscience
242 papers in training set
Top 0.1%
12.5%
2
Journal of Neural Engineering
197 papers in training set
Top 0.3%
12.4%
3
Brain Stimulation
112 papers in training set
Top 0.3%
10.1%
4
NeuroImage
813 papers in training set
Top 1%
9.2%
5
Scientific Reports
3102 papers in training set
Top 17%
6.4%
50% of probability mass above
6
Journal of Magnetic Resonance Imaging
14 papers in training set
Top 0.2%
3.6%
7
Frontiers in Neuroinformatics
38 papers in training set
Top 0.1%
3.6%
8
Human Brain Mapping
295 papers in training set
Top 2%
2.7%
9
PLOS ONE
4510 papers in training set
Top 45%
2.5%
10
NeuroImage: Clinical
132 papers in training set
Top 2%
2.4%
11
Physics in Medicine & Biology
17 papers in training set
Top 0.2%
2.1%
12
Nature Communications
4913 papers in training set
Top 54%
1.5%
13
Frontiers in Physiology
93 papers in training set
Top 4%
1.3%
14
Neuroinformatics
40 papers in training set
Top 0.7%
1.2%
15
Journal of Neuroscience Methods
106 papers in training set
Top 1%
1.2%
16
Ear & Hearing
15 papers in training set
Top 0.2%
1.0%
17
Frontiers in Neurology
91 papers in training set
Top 4%
0.9%
18
iScience
1063 papers in training set
Top 26%
0.9%
19
Neuroscience
88 papers in training set
Top 3%
0.8%
20
European Radiology
14 papers in training set
Top 0.7%
0.7%
21
Computers in Biology and Medicine
120 papers in training set
Top 5%
0.7%
22
eLife
5422 papers in training set
Top 58%
0.7%
23
Brain Research
35 papers in training set
Top 2%
0.7%
24
Frontiers in Human Neuroscience
67 papers in training set
Top 3%
0.7%
25
GigaScience
172 papers in training set
Top 3%
0.7%
26
Neuroscience Letters
28 papers in training set
Top 1%
0.6%
27
Cerebral Cortex Communications
36 papers in training set
Top 0.4%
0.6%
28
Journal of Affective Disorders Reports
10 papers in training set
Top 0.4%
0.6%
29
Magnetic Resonance in Medicine
72 papers in training set
Top 0.6%
0.6%
30
IEEE Access
31 papers in training set
Top 1%
0.6%