Abstract
Low-intensity focused ultrasound (LIFU) is a promising neuromodulation modality, but challenges related to high response variability and the poorly understood parameter space undermine progress in clinical applications. To facilitate the development of therapeutic LIFU protocols, we developed an approach for Bayesian-enhanced adaptive control of ultrasound neuromodulation (BEACUN). BEACUN enables efficient, data-driven parameter mapping using a limited number of stimulation-response evaluations. We used functional ultrasound imaging (fUSI) to measure the neural responses to LIFU stimulation in real time, and we carried out in vivo experiments in rats to optimize and validate the performance of the BEACUN search. In live optimizations, we show that BEACUN produces more effective inhibitory LIFU neuromodulation protocols than conventional parameter exploration methods and converges to the optimal solution in 23 ± 3.67 stimulation-response evaluations. Our approach realizes a platform for efficient optimization of neuromodulation parameters that could pave the way for personalized LIFU protocol development in patients.
Introduction
Low-intensity focused ultrasound (LIFU) is an emerging noninvasive neuromodulation technique that combines high spatiotemporal resolution with the ability to target deep brain structures1–3. Despite its promise, several factors continue to limit broader clinical application of LIFU, chief among which is a poor understanding of how stimulation parameters relate to neural outcomes4. Relevant LIFU stimulation parameters include acoustic intensity, pulse repetition frequency (PRF) – i.e., the rate at which ultrasound pulses are delivered – duty cycle (DC) – i.e., the fraction of time over which the stimulation is delivered – and stimulus duration5,6. Higher-order features of the stimulation protocol, such as the temporal patterning of pulse trains or the choice of target brain region, further expand the parameter space7,8. This challenge is not unique to LIFU, as parameter optimization remains an open problem across non-invasive (e.g., transcranial magnetic stimulation) and invasive (e.g., deep brain stimulation) neuromodulation modalities9. However, the broad ensemble of parameter combinations and the possibility of targeting multiple putative therapeutic sites across virtually the entire human brain make parameter mapping in LIFU neuromodulation a particularly onerous endeavor.
Parameter exploration in LIFU neuromodulation research typically relies on grid search, in which a pre-determined, fixed sampling of the parameter space is evaluated. The grid is defined a priori based on existing and often incomplete knowledge of the LIFU stimulation-response function and fixed budget constraints limiting how many stimulation-response evaluations can be performed in each subject. As a result, only a small subset of all possible conditions is tested in typical experimental settings. Furthermore, this approach has a key limitation in that observations are treated as independent, and no information from previous experiments is used to guide subsequent parameter choices. These challenges are particularly restrictive for the development of optimized LIFU protocols in clinical applications, where time and resource constraints, along with substantial neurobiological heterogeneity, make it difficult to carry out an exhaustive parameter search. In addition, the high complexity of the parameter mapping task precludes treatment personalization, which has been shown to be critical to enhancing the safety and therapeutic efficacy of neuromodulation treatments9–11.
To address these limitations, here we developed and validated a method for Bayesian-enhanced adaptive control of ultrasound neuromodulation (BEACUN). BEACUN is a machine learning-based approach for effective mapping of LIFU parameters using Bayesian optimization (BO) with Gaussian process (GP) regression. BO enables data-driven parameter mapping by estimating the optimum of an unknown (black-box) objective function using a limited number of stimulation-response evaluations12,13. Compared to other optimization methods frequently used in experimental settings, BO converges faster and yields more robust solutions, as demonstrated in varied applications including chemical reaction development14,15, robotic chemistry16, and optimization of computational imaging approaches17. Versions of BO have been used previously for protocol optimization with other neurostimulation modalities including deep brain stimulation18–22, transcranial magnetic stimulation23, transcranial current stimulation24, vagus nerve stimulation25, and neuroprosthetics26–29.
We validated our BEACUN approach for effective online mapping of LIFU neuromodulation parameters through in silico and in vivo experiments in a rat model. To this end, we combined LIFU with functional ultrasound imaging (fUSI), a neuroimaging modality that tracks changes in cerebral blood volume (CBV) in the brain microvasculature with high resolution and sensitivity30–32. The CBV signal provides an indirect measure of local neural activity via neurovascular coupling33. In our experiments, we used the fUSI readout as a measure of the neural responses to the LIFU stimulation. We performed an extensive mapping of the fUSI-LIFU parameter space and built a virtual experimental model based on the ground-truth data to benchmark the performance of the BEACUN approach against conventional optimization methods. We then deployed the BEACUN platform in a live, fully automated LIFU parameter search in the presence of event-related neural activations, demonstrating substantially greater efficiency compared to conventional stimulation mapping methods.
Results
Bayesian optimization in LIFU neuromodulation
We define the LIFU parameter space X as the n-dimensional set of independent variables representing the stimulation parameters. The objective function (X) is the unknown stimulation-response function, which represents the evolution of a response biomarker (e.g., functional neural activity, network connectivity, behavioral measure) modulated by the LIFU stimulation as a function of the parameters X (Figure 1).
Figure 1: Bayesian-enhanced adaptive control of ultrasound neuromodulation.
Schematic representation of the Bayesian optimization loop in low-intensity focused ultrasound neuromodulation.
In the initialization phase, ninit stimulations are carried out with randomly distributed parameter configurations Xinit. A response is recorded after each evaluation, and all the initial responses are used to build the first surrogate model of the objective function (prior) via GP regression. An acquisition function selects the next candidate Xn to test (Supplementary Figure 2b, 2e), the physical device delivers the LIFU stimulation using the chosen parameter set, and a response is recorded (Figure 1). The surrogate model (posterior) is then updated via GP regression, and the process is repeated iteratively until a stopping criterion is met. The stopping criterion can be defined based on a fixed, predetermined budget (e.g., the number of evaluations that are deemed feasible in a patient population or the resources allocated to the optimization procedure), or it can be automated using probabilistic measures of success. At the end of the BEACUN loop, the optimum of the GP model tends to the optimum of the objective function f(X) (Figure 1). To tune our BEACUN implementation in LIFU optimization tasks, we optimized the acquisition function, the number ninit of initial points, and the initialization strategy.
fUSI-LIFU ground-truth parameter mapping
To determine the impact of relevant BO hyperparameters and benchmark the performance of our BEACUN approach against a realistic ground-truth objective function, we carried out an extensive parameter mapping in a LIFU neuromodulation application in rats (Figure 2). We first characterized the LIFU acoustic field through hydrophone measurements in water (Figure 2b). Then, we directed LIFU stimuli to the superior colliculus (SC) unilaterally (Figure 2a–c) and interleaved the stimuli with fUSI recordings to measure the neural responses to the stimulation. We tested five combinations of PRF and DC. For each pulsing protocol, we varied the pressure at the target between 0 and 2.2 MPa within a single experimental session with a randomized design (Figure 2d).
Figure 2: fUSI-LIFU parameter mapping.
(a) Schematic of fUSI imaging in coronal view with LIFU stimulation of the rat superior colliculus (SC). (b) Beam profiles measured along the x and z directions at the SC target position. (c) LIFU target position in all the experimental sessions registered to the rat brain atlas (N = 48 sessions in 14 rats). The thick blue contour indicates the SC. (d) Representative fUSI time series at the SC target from an entire session of shuffled LIFU stimuli with different pressure values (3 repetitions per pressure). (e) LIFU-evoked fUSI responses for the configuration with pulse repetition frequency (PRF) of 100 Hz, duty cycle (DC) of 10%, and 2.2 MPa pressure overlaid on a representative power Doppler coronal image for orientation. Statistically significant T-scores (P < 10−4) were cluster-corrected to obtain PFWER < 10−4. N = 10 rats. Scale bar: 1 mm. DR: dorsal raphe. (f) Stimulation-locked fUSI time series with different emitted pressures and pulsing protocols (defined as PRF-DC pairs). (g) Group-level analysis of the mean fUSI response in the 0-30 s interval during the LIFU stimulation. P = 0.01 (*) and P = 2.55 × 10−11 (***) in a mixed-effects model followed by ANOVA. N = 9-11 rats/group. (h) fUSI responses evaluated in brain regions adjacent to the target. P = < 0.01 (**) in a B-H–corrected Wilcoxon Rank Sum Test. TGT: target; V1M: monocular primary visual cortex; IC: inferior colliculus; Cli: caudal linear nucleus of the raphe; DRD: dorsal part of the dorsal raphe nucleus. (i) Generative model used for the in-silico BEACUN experiments in the SC based on the in-vivo parameter mapping. Only the cases for the (2 Hz, 1%) and (100 Hz, 10%) pulsing protocols are shown.
With the parameters tested, we only found putatively inhibitory responses, which appeared as a reduction in the ΔCVB/CBV signal (Figure 2e; PFWER < 10−4). Specifically, we observed a large cluster of bilateral inhibition in the SC and a ventral cluster encompassing the raphe nuclei, which receive direct projections from the SC34,35. To quantify the response to each parameter configuration, we measured LIFU-evoked fUSI activity changes at the SC target (Figure 2f–g) and in adjacent brain regions (Figure 2h) time-locked to the stimulus onset. These responses varied with the pulsing protocol and dose-dependently increased as a function of the pressure. Specifically, we found significant effects for protocol (F4,278 = 3.29; P = 0.012), pressure (F1,278 = 48.35; P < 0.001), and interaction (F4,278 = 14.39; P < 0.001) (Figure 2g).
BEACUN hyperparameter tuning
Based on the results of the experimental fUSI-LIFU parameter mapping, we built a generative model that we used to carry out in-silico stimulation-response experiments (Figure 2h). These virtual experiments served as a platform to systematically determine the impact of relevant BO hyperparameters and to benchmark the performance of the BEACUN approach under different noise levels. To simulate noisy experimental conditions, we injected into the model white Gaussian noise with standard deviation equivalent to 1- or 2-fold the estimated noise standard deviation of the experimental ground-truth distribution (Figure 2h; Supplementary Figure 1). For each BO hyperparameter configuration, we carried out 50 independent optimization trials, each consisting of 100 evaluations, and benchmarked the BO performance against a random search.
The acquisition function is a critical component of the BO optimization loop, and different acquisition functions have been developed for noise-free and noisy environments12. We tested eight different acquisition functions to identify the one that would converge to the best solution in the least number of evaluations in our inhibitory fUSI-LIFU neuromodulation application. In the condition with 1-fold noise standard deviation, log-expected improvement36 (LogEI) and quasi-log noisy expected improvement36 (qLogNEI) achieved nearly equivalent results in terms of optimization regret and performed significantly better than the random search (P < 0.001) (Figure 3a–c). However, the LogEI acquisition function yielded a higher success rate than qLogNEI, with 96% of trials converging after 25 evaluations (Figure 3d). Similarly, in the condition with 2-fold noise standard deviation, the LogEI and qLogNEI acquisition functions outperformed the random search (P < 0.001) (Figure 3e), but LogEI converged more quickly and at consistently higher rate (Figure 3f).
Figure 3: BEACUN hyperparameter tuning.
(a) Optimization regret for all the BEACUN acquisition functions and random search with 1-fold noise. All the optimizations used 5 Sobol-distributed initialization points. The plots display the mean of 50 independent trials. (b) Regret time series for the optimization with the log-expected improvement (LogEI) acquisition function and random search. Solid lines display the mean and shaded areas show the standard deviation of 50 optimization trials. (c) Regret at evaluation 25 (5 initializations + 20 Bayesian optimization iterations) for the LogEI and quasi-log noisy expected improvement (qLogNEI) acquisition functions compared to the random search in the condition with 1-fold noise. LogEI vs. Random: P = 2.87 × 10−13 (***); qLogNEI vs. Random: P = 2.07 × 10−10 (***); LogEI vs. qLogNEI: P = 1.15 × 10−2 (*); B-H–corrected Mann-Whitney U-tests. (d) Success rate in the condition with 1-fold noise quantified as the number of trials (out of 50) converging with a regret lower than 1% of the ground-truth minimum. (e) Regret at evaluation 25 for the LogEI and quasi-log noisy expected improvement (qLogNEI) acquisition functions compared to the random search in the condition with 2-fold noise. LogEI vs. Random: P = 9.17 × 10−9 (***); qLogNEI vs. Random: P = 2.31 × 10−8 (***); LogEI vs. qLogNEI: P = 0.051 (n.s.); B-H–corrected Mann-Whitney U-tests. (f) Success rate in the condition with 2-fold noise. (g) Regret at evaluation 25 with varying Sobol-distributed initial points in the condition with 1-fold noise. We observed a significant effect for the number of initial points (P = 1.22 × 10−36 in a Kruskal-Wallis test). P = 0.03 (*) and P = 1.31 × 10−11 (***) in B-H–corrected Mann-Whitney U-tests. There was no significant difference between random and Sobol sampling (P = 0.20 in a Kruskal-Wallis test). (h) Success rate for the condition with 1-fold noise and varying Sobol-distributed initial points. (i) Regret at evaluation 25 with varying Sobol-distributed initial points in the condition with 2-fold noise. We observed a significant effect for the number of initial points (P = 7.41 × 10−27 in a Kruskal-Wallis test). P = 0.04 (*) and P = 1.96 × 10−8 (***) in B-H–corrected Mann-Whitney U-tests. There was no significant difference between random and Sobol sampling (P = 0.30 in a Kruskal-Wallis test). (j) Success rate for the condition with 2-fold noise and varying Sobol-distributed initial points. (k) Schematic representation of the BEACUN engine interfacing with the fUSI-LIFU platform in the in-vivo BEACUN optimization experiments. (l) LIFU target position registered to the rat brain atlas in the live BEACUN optimizations in vivo (N = 5 sessions in 5 rats). The thick contour indicates the SC region. (m) Stimulation-locked fUSI time series during the LIFU stimulation with the BEACUN and random searches. The plots show the parameter combinations that minimized the CBV response in each configuration after a total of 45 evaluations (5 initialization points + 40 search iterations). The pressure was limited to 1.6 MPa in these experiments. (n) Mean fUSI response in the 0-30 s interval for the random and BEACUN optimizations. P = 1.12 × 10−3 (**) in a paired two-tailed t-test. Hedge’s g effect size: −4.24; 95% confidence interval: (−6.5322, −1.8878).
Next, we investigated the effect of the number and distribution of initialization evaluations Xinit. We repeated the optimizations with the LogEI acquisition function using ninit between 5 and 25, and we compared random and Sobol sequence sampling. In both the conditions with 1- and 2-fold noise, we observed a significant effect for the number of initial points (P < 0.001) but found no differences between random and Sobol sampling (P > 0.20) (Figure 3g, 3i, Supplementary Figure 5a–h). We found converging evidence in the success rate analysis (Figure 3h, 3j). Finally, we evaluated the effect of different GP kernels, namely the radial basis function (RBF) and the 5/2 Matérn. We observed no difference in the 1-fold noise condition, whereas RBF performed better than Matérn in the 2-fold noise condition for the selected hyperparameters combination with ninit = 5, Sobol sampling, and logEI acquisition function (P = 0.027) (Supplementary Figure 6a–d). Taken together, these results show that, given a fixed budget quantified in terms of stimulation-response evaluations, BEACUN with the LogEI acquisition function consistently outperformed random search and yielded better results when using the minimum number of initial evaluations. These results highlight the benefits of the smart parameter search guided by the acquisition function. These trends were especially prominent in the early phase of the search, i.e., within the first 60 evaluations, and are particularly relevant for real-world experimental conditions where scarce resources (e.g., limited budget, patient time, patient volumes) pose severe limitations to the number of feasible stimulation-response evaluations.
To further validate the findings of our in-silico hyperparameter tuning, we implemented a live BEACUN engine and carried out in-vivo experiments to benchmark its performance against a real-world random search (Figure 3k). We matched the experimental conditions to our ground-truth parameter mapping, and we directed LIFU stimuli to the SC target (Figure 3l). Importantly, in the live implementation we treated pressure, PRF, and DC as continuous parameters, expanding the search space and the complexity of the optimization relative to the in-silico experiments. After each stimulation, we quantified in real time the LIFU-evoked fUSI activity at the target time-locked to the stimulus onset (Figure 3m), and the mean ΔCVB/CBV value was used to update the GP model in the BEACUN engine. The parameters of the next LIFU stimulation were updated at runtime based on the next protocol candidate selected by the acquisition function. The live BEACUN implementation with 5 Sobol-distributed initialization points and LogEI acquisition function performed significantly better than the random search (P < 0.01; Hedge’s g effect size −4.24) and produced a ΔCVB/CBV signal reduction of −7.3% ± 1.19% (median ± IQR) (Figure 3m–n). These results provide a real-world validation of our in silico experimental setup and demonstrate that our BEACUN implementation generalized to an in vivo experimental setup.
In-silico BEACUN validation with a behavioral LIFU stimulation model
We carried out additional in-silico experiments in our virtual environment to validate the performance of the BEACUN platform in a different LIFU stimulation application. We used a generative model based on real-world behavioral data recorded during LIFU stimulation of the centromedial thalamus (CMT) in rats5 (Figure 4, Supplementary Figure 4a). The search space included the acoustic pressure, the LIFU target (CMT or control region), and the stimulus duration (1 or 3 bursts). Unlike the SC objective function, which is largely monotonic with a boundary optimum (Figure 2g–h), the CMT landscape is non-monotonic with a local optimum (Figure 4a). This model allowed a meaningful characterization of the BEACUN optimization performance against a conventional grid search with increasing sampling density (Figure 4b). We introduced random displacements in the grid sampling in different trials to mimic realistic experimental conditions where the objective function is unknown and the sampled positions do not necessarily overlap with the ground-truth optimum (Supplementary Figure 4b).
Figure 4: In-silico BEACUN optimization in a behavioral model of arousal.
(a) Generative model used for the in-silico BEACUN experiments in the centromedial thalamus (CMT). Only the cases for the CMT target are shown. (b) Configurations used for the grid sampling approach with increasing number of samples. (c) Optimization regret for all the acquisition functions tested and comparison to the grid search with varying grid density. All the optimizations used 5 Sobol-distributed initialization points. The plots display the mean of 50 independent trials. (d) Regret at evaluation 50 (5 initializations + 45 Bayesian optimization iterations) for the JES and grid search with 6 and 48 samples. JES vs. Grid 6: P = 1.93 × 10−6 (***); JES vs. Grid 48: P = 8.55 × 10−11 (***); B-H–corrected Mann-Whitney U-tests. (e) Success rate quantified as 1) the number of trials (out of 50) converging with a regret lower than 5% of the ground-truth maximum; 2) the number of trials converging to the optimum target (CMT); 3) the number of trials converging to the optimum stimulation duration (3 bursts); 4) the number of trials converging within α 5% of the optimum pressure.
In contrast to the SC environment, joint entropy search (JES) was the best-performing acquisition function in this environment (Figure 4c); furthermore, no significant differences among initialization strategies were observed here, unlike in the SC environment (Supplementary Figure 5i–n). These results reinforce the notion that optimization problems that appear similar and have comparable dimensionality and smoothness – e.g., SC and CMT objectives – may require fine-tuning of BO hyperparameters to achieve optimal performance. While JES performed significantly better than the grid search with all grid densities (P < 0.001) (Figure 4d), the convergence was slower than in the SC experiments (Figure 4e), possibly due to the higher complexity of the CMT optimization landscape (Supplementary Video 1). To further characterize the cause of this slower convergence, we calculated the success rate based on the optimum target, stimulus duration, and pressure. This analysis highlights that the pressure parameter is the main source of error in these optimization experiments. Interestingly, increasing the density of the grid sampling did not improve the performance of the grid search. A potential explanation for this behavior is that, while a finer sampling reduces the occurrence of systematic discretization errors, it exponentially increases the complexity of the optimization problem. Notably, these results show that BEACUN was able to effectively discriminate between the target of interest (CMT) and a control target located in a brain region decoupled from the neurobehavioral phenotype under investigation5. Using such control conditions is critical to ensure that the observed responses ensue from a direct LIFU-related mechanism and not from a nonspecific confounding effect37–39. Taken together, these results underscore the advantages of using a data-driven approach like BEACUN to effectively optimize LIFU neuromodulation protocols without relying on a fixed sampling of the parameter space determined a priori.
Live BEACUN optimization of a LIFU protocol for suppression of event-related activations
To determine the performance of the BEACUN optimizer in the presence of event-related neural activities, we used a rat model of visual stimulation. In these experiments, we aimed to determine whether BEACUN could search for the optimal parameter configuration to inhibit the response to an external stimulus, akin to a symptom-specific neural biomarker. In addition, we implemented the probabilistic regret bound (PRB) stopping criterion to make the optimization fully automated40.
We performed binocular green light stimulation and directed concurrent blocks of LIFU stimuli to the thalamic dorsal lateral geniculate (DLG) nucleus (Figure 5a–b). At the baseline, visual stimulation produced significant activations in the DLG, primary visual cortex (V1), and postsubiculum (PoSub), consistent with previous reports41 (Figure 5c; PFWER < 0.01). We carried out BEACUN optimization sessions in N = 5 rats, and in all sessions BEACUN was able to suppress visual-evoked responses measured by fUSI at the DLG target (Figure 5d–f, Supplementary Figure 7, Supplementary Videos 2–3). At the optimum, the PRF was 95.81 ± 9.38 Hz, the DC was 10%, and the pressure was 1 MPa (max pressure allowed in these experiments). The BEACUN-optimized LIFU stimulation produced a ΔCVB/CBV signal reduction of −5.7% ± 1% (median ± IQR) relative to the visual stimulation baseline (Figure 5g; P < 0.001; Hedge’s g effect size −12.68). Notably, the stopping criterion with a probability of success of 0.95 (P95) was met at evaluation 23 ± 3.67 (mean ± s.d.), which is a substantial budget reduction compared to the ground-truth parameter search (Figure 5h; P < 0.001). These results underscore the ability of our BEACUN approach to quickly and reliably identify effective LIFU stimulation parameters to inhibit event-related neural responses. In addition, our results demonstrate the ability of the BEACUN optimizer with the P95 probabilistic stopping criterion to carry out fully automated optimizations that stop when further stimulation-response evaluations are deemed of marginal benefit. Altogether, our findings demonstrate the potential of the BEACUN optimizer to effectively identify LIFU protocols in real-world experimental settings in a variety of brain states.
Figure 5: Live BEACUN optimization of inhibitory LIFU for suppression of visual-evoked activations in the dorsal lateral geniculate nucleus.
(a) Schematic of fUSI imaging in sagittal view with concurrent visual stimulation and LIFU targeting of the thalamic dorsal lateral geniculate (DLG) nucleus. (b) Target position of the LIFU stimulation registered to the rat brain atlas (N = 5 rats). The thick blue contour indicates the DLG region. (c) Visual-evoked fUSI responses overlaid on a representative power Doppler sagittal image for orientation. PFWER < 10−2. Scale bar: 1 mm. V1: primary visual cortex. PoSub: postsubiculum. (d) Representative time series showing the temporal evolution of the Gaussian process (GP) optimum and probability of success. The orange shaded area represents the 95% confidence interval of the success probability. In this experiment, the P95 stopping criterion was met after 18 evaluations (5 initialization points + 13 BO iterations). (e) Group-level time series of GP optimum and probability of success. Gray lines display the individual sessions. Thick colored lines display the group-level means. (f) Parameter landscape showing the evolution of the BEACUN search at relevant checkpoints. (g) Stimulation-locked fUSI time series during the visual/LIFU stimulation for the baseline and optimum conditions. The pressure was limited to 1 MPa in these experiments. (h) Mean fUSI response in the 0-30 s interval evaluated at the baseline and optimum. P = 7.16 × 10−5 (***) in a paired two-tailed t-test. Hedge’s g effect size: −12.68; 95% confidence interval: (−18.86, −6.5). (i) Number of BEACUN evaluations (including 5 initialization points) to reach the P95 stopping criterion compared to the number of trials (90; red dashed line) performed in individual rats in the grid-search parameter mapping. P = 2.16 × 10−6 (***) in a one-sample two-tailed t-test.
Discussion
LIFU neuromodulation is an emerging modality for the noninvasive treatment of neuropsychiatric conditions. Preliminary evidence of LIFU’s potential has been reported in applications spanning modulation of emotional processing for mood disorders3, reduction of beta-band power in Parkinson’s disease42, modulation of sleep patterns43, and reduction of depression symptoms1. Despite these advances, the LIFU parameter space remains poorly characterized, and additional challenges related to the high variability in the treatment response7, precise target identification in each subject2, and lacking confirmation of target engagement continue to slow clinical adoption of LIFU stimulation.
Closed-loop parameter mapping is an impactful approach that aims to identify optimal settings for the patient-specific neurobiology and symptom profile by testing different stimulation configurations while monitoring the ensuing neural responses9. Variations of this approach have been successfully deployed in deep brain stimulation in major depressive disorder, where precise circuit-targeted protocols have been developed through expansive individualized stimulation-response mapping10,44. Similarly, in transcranial magnetic stimulation, the target location can be refined based on patient-specific resting-state functional magnetic resonance imaging (fMRI) connectivity11. Nevertheless, optimizing stimulation parameters and brain targets remains challenging and costly. Furthermore, time-dependent factors like disease progression and neuroplastic adaptations to the stimulation may decrease the therapeutic efficacy over time, making repeated optimizations necessary45,46.
To enable closed-loop parameter mapping in LIFU neuromodulation, we developed BEACUN, a method for data-driven, adaptive, and automated parameter exploration. BEACUN significantly reduces the cost of the optimization routine while converging to better and more robust stimulation protocols. We carried out extensive validations in silico and in vivo to tune relevant hyperparameters and benchmarked the optimization performance against conventional parameter exploration methods. Our results demonstrate that BEACUN provides a framework for effective stimulation-response mapping that could pave the way for personalized LIFU protocol optimization in clinical populations. While in our live BEACUN experiments we primarily focused on temporal pulsing parameters like the PRF, DC, and stimulus duration, other parameters like the brain target could be included in the optimization, as demonstrated by our CMT experiments. In the future, this open-target approach could be used for unbiased, brain-wide stimulation-response mapping integrating active control targets1,5.
Combining LIFU with concurrent functional neuroimaging provides a unique opportunity to confirm target engagement by monitoring real-time stimulation-evoked responses in a wide field of view. This has been demonstrated using Ca2+ imaging6,47 and photoacoustic tomography48 in rodents and fMRI in humans2. We based our live BEACUN experiments on fUSI measures to capitalize on the high sensitivity of this modality and to leverage its ease of use in rodent models30,49. Our fUSI-LIFU implementation realizes a robust and flexible platform that is easily reproducible, as it uses only off-the-shelf ultrasound components, and could promote the development and validation of other novel neuroimaging-based methods.
Another important component of our BEACUN design is the rule used to terminate the optimization. Prior optimization studies based on Bayesian approaches have generally relied on simple heuristics to halt the search, e.g., stopping after a fixed budget is exhausted or after the recommended optimum has not changed for a predetermined number of consecutive iterations20,26,28. In contrast, we used the PRB criterion40, a principled approach that bases the stopping decision directly on the GP posterior.
There are several limitations to this study. First, the high frequency used in the fUSI-LIFU experiments differs from transcranial LIFU applications in humans, which typically use sub-MHz LIFU stimuli. However, we demonstrated that the BEACUN optimization performance generalized well across experimental settings independent of the specific setup and stimulation-response function. This was the case under both in silico and in vivo conditions. In addition, the high frequency produces a narrow beam profile (0.1-0.2 mm) that is better suited for experimentation in the rodent brain. Our fUSI-LIFU findings are also directly relevant to intracranial LIFU applications where higher stimulation frequencies can be used for increased spatial specificity. Another limitation is that in the fUSI-LIFU experiments we quantified cerebrovascular neural correlates, which are an indirect measure of neural activity. While previous studies have confirmed the neural basis of the fUSI signal30,50, we cannot rule out a direct vascular effect of the LIFU stimuli.
In summary, our results establish BEACUN as a platform for efficient, data-driven optimization of LIFU neuromodulation parameters. Our live BEACUN implementation converged to the optimal LIFU stimulation protocol after only 23 ± 3.67 stimulation-response evaluations, and it performed significantly better than conventional parameter mapping methods in all the experimental settings tested. Importantly, BEACUN addresses two key limitations that are currently slowing the development of clinically relevant LIFU neuromodulation protocols, i.e., the poorly characterized parameter space and the high inter- and intra-subject response variability. In doing so, BEACUN could pave the way for personalized, subject-specific LIFU optimization.
Methods
Acoustic field characterization
To characterize the acoustic field of the LIFU emissions, we performed hydrophone measurements using an HGL-0085 hydrophone (Onda Corporation, Sunnyvale, CA, USA) immersed in degassed water. The field was scanned using a 3-axis positioning system (AIMS III, Onda Corporation), and the precise hydrophone position was determined based on the ultrasound time of arrival. Beam profiles were scanned with a resolution of 10 μm. At the SC target, the measured focal full-width at half maximum (FWHM) was 0.13 mm laterally, 0.41 mm in the elevation direction, and 1.18 mm along the depth. At the DLG target, the FWHM was 0.23 mm laterally, 0.69 mm in the elevation direction, and 2.58 mm along the depth.
For the voltage-pressure calibrations at the SC and DLG target positions, we measured the peak-negative pressure at the spatial peak position as a function of the Verasonics transmit power controller (TPC) voltage. The TPC voltage was varied between 1.6 and 8 V in steps of 0.2 V. The pulse length was adjusted to ensure that a steady state was reached while avoiding reflections between the transducer and hydrophone. Each measurement was repeated three times to filter out experimental noise. We derated the measured pressure by 0.3 dB cm−1 MHz−1. In the fUSI-LIFU parameter mapping, the acoustic pressure was limited to 2.2 MPa (MI = 0.56). In the live BEACUN experiments, the acoustic pressure was limited to 1.6 MPa (SC; MI = 0.41) or 1 MPa (DLG; MI = 0.26).
Animals
All animal procedures were approved by the Institutional Animal Care and Use Committee at the University of California San Francisco. We used male and female Long Evans rats that were 8-10 weeks old at the time of the surgery. Rats had ad libitum access to water and food for the entire duration of the experiments and were housed in a temperature-controlled vivarium on a 12-h light-dark cycle (lights on at 7 AM; lights off at 7 PM). Following the surgical procedures, we maintained postoperative analgesia with buprenorphine (0.1 mg/kg; subcutaneously). Rats were singly housed and were allowed to recover for at least 7 days before any further experimentation.
Surgical preparation
Rats received a surgical craniotomy and chronic prosthesis implantation as described previously30. Briefly, the animals were kept under isoflurane anesthesia (3.5% induction; 1% maintenance) in a digital stereotaxic frame for head fixation and orientation (Stoelting Co.), and body temperature was maintained at 37 °C using a warming pad (RightTemp Jr.; Kent Scientific). The incision site was shaved and disinfected by applying povidone-iodine and 75% EtOH. For imaging in coronal view, the cranial window extended from bregma −3 mm to bregma −9 mm AP, with an ML span of ±6 mm. For imaging in sagittal view, the cranial window extended from bregma to bregma −9 mm AP and from bregma +1 mm to bregma +5 mm ML. The bone was pretreated using a bonding agent (iBOND Total Etch; Kulzer). Bone flaps were cut using a high-speed drill with a 0.7-mm drill bit (Fine Science Tools) and were gently removed avoiding any damage to the dura mater. The craniotomy was then covered using a 125-μm polymethylpentene film sealed with dental cement (Tetric EvoFlow; Ivoclar Vivadent). The space between the dura and the film was filled with 0.9% sterile saline.
fUSI-LIFU parameter mapping
fUSI-LIFU acquisition
We implemented the fUSI-LIFU sequence on a Vantage NXT 256-channel research scanner (Verasonics Inc., Kirkland, WA, USA) connected to a linear array transducer (Vermon, France; 15-MHz center frequency; 128 elements; 0.1-mm pitch). We used centrifuged ultrasound gel for acoustic coupling. The fUSI sequence consisted of nine tilted plane waves with uniformly distributed angles in the −8° to 8° range emitted with a pulse repetition frequency of 24 kHz. The frames were beamformed in a regular grid of pixels with in-plane resolution of 0.1 × 0.1 mm2. Beamforming was performed in real-time in an NVIDIA RTX A6000 GPU.
We used 200 compounded frames per power Doppler image acquired at a rate of 1 kHz. To eliminate the clutter signal originating from the tissue, we used a 5th-order temporal high-pass Butterworth filter with a cutoff frequency of 40 Hz and a singular value decomposition filter that eliminates the first singular value17,30. The power Doppler intensity was computed at each pixel, yielding a final frame rate of approximately 1 frame/s.
fUSI-LIFU pulsing sequence
We used the same ultrasound probe to acquire fUSI data and to transmit interleaved LIFU emissions. LIFU transmit events consisted of focused beams emitted by a 6-mm sub-aperture. The target coordinates were defined based on the rat brain atlas51. To increase the volume of brain tissue engaged by the LIFU stimuli, we used two foci laterally displaced around the nominal target by 500 μm. Transmit events for the two foci were interleaved to ensure that the same acoustic dose was delivered at each location. To prevent transducer overheating, the duration of individual LIFU pulses was limited to 5 ms based on thermal measurements performed using an infrared camera.
To map the parameter space of the fUSI-LIFU stimulation in the SC target, we used repeated stimulation sessions during which we tested the following protocols defined as combinations of PRF and DC: 1) 100 Hz, 10%; 2) 100 Hz, 5%; 3) 100 Hz, 1%; 4) 10 Hz, 1%; 5) 2 Hz, 1%. In each session, we fixed the PRF and DC and varied the pressure in six steps between 0 and 2.2 MPa. For each pressure, we performed three trials. The order of the trials with the different LIFU protocols was shuffled within individual sessions, and the order of the protocols was shuffled at the animal level to control for order and carry-over effects.
Each stimulation trial lasted 110 s and consisted of three phases: a 20-s baseline, a 30-s period of interleaved fUSI and LIFU stimuli, and a 60-s post-stimulation period. During the 30-s stimulation period, a 500-ms LIFU pulse train was delivered (alternatively between the two foci), followed by a 750-ms delay before the next fUSI acquisition to minimize interference between the two modalities. The frame rate during the 30-s stimulation period was approximately 0.5 frame/s.
fUSI data processing
We registered the fUSI frames from each session through rigid transformations to a high-resolution intra-session template calculated as the median of 50 fUSI images. Motion artifacts were filtered in each data set following previously described protocols30. Each fUSI acquisition was then manually aligned to the brain atlas51 using anatomical landmarks and was temporally interpolated to obtain a uniform frame rate (1 Hz).
We segmented the target as a rectangular region of interest (ROI) of 0.63 (lateral) × 1.18 (axial) mm2 in the SC experiments and 0.73 (lateral) × 1.5 (axial) mm2 in the DLG experiments. The ROI lateral dimensions were determined based on the lateral FWHM and lateral focus displacement; the axial ROI dimensions were determined based on the axial FWHM in the SC experiments and the axial span of the target region in the DLG experiments. We time-locked the CBV signals from each trial to the LIFU stimulation onset, then we calculated the ΔCBV/CBV signals from each pre-LIFU 20-sec baseline. The signals were temporally smoothed by a moving average filter (3 time points).
For the statistical analyses comparing the effects of the different pulsing protocols and emitted pressures, we quantified the mean response in each animal and each session (average of three repetitions) during the 0-30 s time interval. Then, a mixed-effects model was fitted to the mean responses using protocol and pressure as fixed effects and subject and session as random effects using the MATLAB fitlme.m function and the following model design:
The mixed-effects model was followed by ANOVA to evaluate the significance of the fixed-effects terms and interactions.
fUSI-LIFU functional maps
To generate the functional maps, we first quantified the pixel-wise mean from the stimulation-locked ΔCBV/CBV signals in the 0-30 s time interval (average of three repetitions per session). Then, we applied spatial smoothing using a Gaussian filter with a FWHM of 0.3 × 0.3 mm2, and we performed pixel-level inference by calculating the group-level t-scores. We masked the pixel values for statistical significance at P < 10−4 (two-tailed) and applied a cluster correction threshold of 13 pixels (PFWER < 10−4) calculated using the 3dClustSim.m program of the AFNI library52.
BEACUN implementation
Gaussian process surrogate model
The surrogate model was a Gaussian process (GP) implemented via BoTorch. For the live experiments, a SingleTaskGP was used since the search space was treated as continuous. For the offline simulations, a MixedSingleTaskGP was used to handle the mixed categorical-continuous input space. In both cases, the continuous dimension was normalized to the [0, 1] range and observed responses were standardized to zero mean and unit variance. We evaluated two kernels for the continuous component of the GP: a radial basis function (RBF) kernel and a 5/2 Matérn kernel. The RBF kernel assumes infinitely differentiable sample paths, whereas the Matérn kernel provides a less smooth prior over functions. Both used automatic relevance determination (ARD) lengthscales. For the SingleTaskGP, this kernel acted directly on the continuous inputs. For the MixedSingleTaskGP, it was combined with a categorical kernel (also using ARD) and was defined as:
where xp and xc are the continuous (pressure) and categorical (parameter condition) components, θ1, θ2, θ3 are learned scale parameters, kcont is a continuous kernel over the pressure dimension, and kcat is a categorical kernel. The additive component captures marginal effects of pressure and condition independently, while the interaction component captures condition-dependent pressure responses. The lengthscale prior was set to the BoTorch default (LogNormal), which is scaled to dimensionality53. The noise variance prior was set to the legacy BoTorch Gamma (1.1, 0.05), which is nearly uninformative and allows the noise level to be determined primarily by the data. GP hyperparameters were optimized at each iteration by maximizing the exact marginal log-likelihood via L-BFGS-B with multiple random restarts.
Acquisition functions
We evaluated 8 acquisition functions that we considered as hyperparameters:
Log-expected improvement (LogEI).
The expected improvement (EI) quantifies the expected amount by which a new observation will improve upon the current best. LogEI computes EI in log-space, which provides better numerical stability when the improvement probability is very small36.
Upper confidence bound (UCB).
UCB selects the point that maximizes , where μ(x) and σ(x) are the GP posterior mean and standard deviation (for minimization problems, the corresponding lower-confidence-bound form was used). The parameter β controls the exploration–exploitation trade-off: larger β favors querying uncertain regions (exploration), while smaller β favors querying near the current best estimate (exploitation). Three settings were evaluated: β = 0.25 (exploitation-focused), β = 1.0 (balanced), and β = 4.0 (exploration-focused).
Monte Carlo noisy expected improvement (qLogNEI).
Standard EI assumes the current best observation is known exactly, but under noisy observations this information is not available. qLogNEI addresses this by computing a Monte Carlo estimate of the expected improvement, marginalizing over the uncertainty in the current best36.
Max-value entropy search (MES).
MES is an information-theoretic acquisition function that selects the point maximizing the mutual information between the next observation and the unknown maximum value f* of the objective54. The mutual information is approximated via a Gumbel-based lower bound.
Predictive entropy search (PES).
PES maximizes the mutual information between the next observation and the optimal input location x*. The acquisition value is computed via expectation propagation (EP), which approximates the intractable posterior over the optimum location55.
Joint entropy search (JES).
JES extends entropy-based approaches by maximizing the mutual information between the next observation and the joint distribution of the optimal input-output pair (x*, f*). Optimal input-output samples were obtained from the GP posterior, and entropy was estimated using a lower-bound estimator56.
Live BEACUN optimization
For the live BEACUN experiments, we implemented a real-time fUSI processing pipeline and quantified the ΔCBV/CBV signal after each LIFU stimulation trial in an ROI centered at the LIFU target location (SC or DLG). The mean ΔCBV/CBV during the 30-s stimulation period was fed into the BEACUN engine to update the GP regression and obtain the parameters for the next LIFU stimulation. The LIFU parameters were then updated at runtime in the Verasonics fUSI-LIFU platform before the next stimulation was delivered.
Stopping Criterion
We implemented the probabilistic regret bound (PRB) stopping criterion40. PRB stops the optimization when a candidate point X is deemed (ε, δ)-optimal, i.e., the probability that its regret is at most ε exceeds 1 – δ under the GP posterior. At each iteration t, the posterior GP model was used to draw approximate function samples from which the model-based regret was estimated yielding Monte Carlo estimates . To guard against premature stopping due to Monte Carlo estimation error, Clopper-Pearson confidence intervals were used to ensure that Ψt(X) is estimated with sufficient precision. The total error tolerance δ is partitioned between a model error component δmod and an estimation error component δest, ensuring that any point passing the stopping criterion is ε-optimal with probability at least 1 – δ.
In our live experiments, we fixed the total error tolerance at δ = 0.05, split equally between δmod and δest. The estimation budget δest was divided uniformly across iterations via a constant schedule, allocating each iteration an equal share. The regret tolerance ε was set at 0.5% ΔCVB/CBV signal change.
Benchmarks
We used two benchmark strategies to provide reference performance levels against which different BO arms were compared. In the random search, a query point was drawn from a uniform random distribution at each optimization iteration. A GP was fit at each step to estimate the current optimum via the posterior mean but was not used to guide point selection. In the grid search, the pressure domain was discretized into an equally spaced grid within each condition, with a random proportional offset drawn once for each trial. At each optimization iteration, a random pair was queried. The optimum was estimated as the grid coordinate with the best average noisy response. We evaluated three grid densities: 6, 12, 24, and 48 points per condition.
Live BEACUN optimization in the DLG target
Visual stimulation
We performed binocular green light stimulation as reported previously17. Briefly, anesthetized rats were habituated in a dark chamber for at least 30 min prior to visual stimulation. Bilateral stimulation blocks were delivered using green-light LEDs controlled by a microcontroller board (Arduino Uno) interfaced with the Verasonics scanner for precise synchronization with the imaging sequence. For each stimulation block, the LEDs were flashed for 30 s at a frequency of 3 Hz with a 60-s pause. We recorded fUSI data continuously in sagittal view (bregma +3.4 ML). Five initial blocks were used image the baseline response to the visual stimulation.
Visual activation maps
To generate the visual activation maps, we performed pixel-level inference using a general linear model (GLM) implemented in MATLAB based on the glmfit.m function. We calculated the ΔCBV/CBV signals from an initial 20-sec baseline. The signals were detrended using a 4th-order polynomial fit and were temporally smoothed by a moving average pixel-wise filter (3 time points). We applied spatial smoothing using a Gaussian filter with a FWHM of 0.3 × 0.3 mm2. We generated the activation model regressor for the GLM by convolving the stimulation blocks (visual) with a single-gamma hemodynamic response function (HRF)57. We used an HRF time constant of 0.7, a time delay of 1 s, and a phase delay of 3 s (Ref. 58). To compute the group-level functional maps, we performed 2nd-level inference by calculating the t scores from the GLM γ values. We masked the pixel values for statistical significance at P < 10−2 (two-tailed) and applied a cluster correction threshold of 25 pixels (PFWER < 10−2) calculated using the 3dClustSim.m program of the AFNI library52.
Software
All BEACUN experiments were carried out in Python. GP models and acquisition functions were built using BoTorch59 and GPyTorch60. The probabilistic regret bound stopping criterion, originally implemented in Trieste40,61, was translated to BoTorch.
Supplementary Material
Acknowledgements
We would like to thank Prof. Andrew Krystal, Prof. Leo Sugrue, Prof. Khaled Moussawi, and all members of the UCSF Focused Ultrasound in Neuroscience Program for the support and for engaging discussions on LIFU neuromodulation and LIFU parameter mapping. We would like to express our appreciation to Prof. Joshua Berke for the continued support to our lab. We thank all present and past members of the Di Ianni Lab for thoughtful discussions and feedback on this work.
Funding
This work was supported in part by the National Institute of Biomedical Imaging and Bioengineering under grant 1R01EB036474 (to T.D.I.), by a UCSF RAP Award (to T.D.I.), by the John Pritzker Family Fund (to T.D.I.), by a Catalyst Award from the UCSF Catalyst Program and UCSF Weill Institute for Neurosciences (to T.D.I.), and by a National Science Foundation NAIRR Pilot award under grant NAIRR250046 (to T.D.I.). A.B. is partly supported by a Brain and Behavior Research Foundation Young Investigator Award.
Footnotes
Competing Interests
The authors declare no competing interests.
Data and materials availability
Data and codes will be released on Figshare and GitHub at the time of publication.
References
- 1.Fan J. M. et al. Thalamic transcranial ultrasound stimulation in treatment resistant depression. Brain Stimulation 17, 1001–1004 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Martin E. et al. Ultrasound system for precise neuromodulation of human deep brain circuits. Nature Communications 16, 8024 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Algermissen J. et al. Low-intensity focused ultrasound to human amygdala reveals a causal role in ambiguous emotion processing and alters local and network activity. Neuron 114, 1269–1289.e8 (2026). [DOI] [PubMed] [Google Scholar]
- 4.Davidson B. et al. A roadmap for focused ultrasound applications in psychiatry: Proceedings of the 2024 symposium on focused ultrasound in psychiatry (FUS-PULSE). Brain Stimulation 18, 1651–1662 (2025). [DOI] [PubMed] [Google Scholar]
- 5.Di Ianni T. et al. High-throughput ultrasound neuromodulation in awake and freely behaving rats. Brain Stimulation 16, 1743–1752 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Murphy K. R. et al. Optimized ultrasound neuromodulation for non-invasive control of behavior and physiology. Neuron 112, 3252–3266.e5 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Yaakub S. N. et al. Transcranial focused ultrasound-mediated neurochemical and functional connectivity changes in deep cortical regions in humans. Nat Commun 14, 5318 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Legon W., Strohman A., In A. & Payne B. Noninvasive neuromodulation of subregions of the human insula differentially affect pain processing and heart-rate variability: a within-subjects pseudo-randomized trial. Pain 165, 1625–1641 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Cline C. C. & Keller C. J. Personalizing Brain Stimulation for Psychiatric Disorders: From Circuits to Closed-Loop Control. AJP 183, 169–179 (2026). [DOI] [PubMed] [Google Scholar]
- 10.Scangos K. W., Makhoul G. S., Sugrue L. P., Chang E. F. & Krystal A. D. State-dependent responses to intracranial brain stimulation in a patient with depression. Nat Med 27, 229–231 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Cole E. J. et al. Stanford Neuromodulation Therapy (SNT): A Double-Blind Randomized Controlled Trial. AJP 179, 132–141 (2022). [DOI] [PubMed] [Google Scholar]
- 12.Frazier P. I. A Tutorial on Bayesian Optimization. Preprint at 10.48550/arXiv.1807.02811 (2018). [DOI] [Google Scholar]
- 13.Shahriari B., Swersky K., Wang Z., Adams R. P. & De Freitas N. Taking the Human Out of the Loop: A Review of Bayesian Optimization. Proc. IEEE 104, 148–175 (2016). [Google Scholar]
- 14.Shields B. J. et al. Bayesian reaction optimization as a tool for chemical synthesis. Nature 590, 89–96 (2021). [DOI] [PubMed] [Google Scholar]
- 15.Braconi E. Bayesian optimization as a valuable tool for sustainable chemical reaction development. Nat Rev Methods Primers 3, 74 (2023). [Google Scholar]
- 16.Burger B. et al. A mobile robotic chemist. Nature 583, 237–241 (2020). [DOI] [PubMed] [Google Scholar]
- 17.Di Ianni T. & Airan R. D. Deep-fUS: A Deep Learning Platform for Functional Ultrasound Imaging of the Brain Using Sparse Data. IEEE Trans. Med. Imaging 41, 1813–1825 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Stieve B. J., Richner T. J., Krook-Magnuson C., Netoff T. I. & Krook-Magnuson E. Optimization of closed-loop electrical stimulation enables robust cerebellar-directed seizure control. Brain 146, 91–108 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Fleming J. E. et al. From dawn till dusk: Time-adaptive bayesian optimization for neurostimulation. PLoS Comput Biol 19, e1011674 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Cole E. R. et al. SAFE-OPT: a Bayesian optimization algorithm for learning optimal deep brain stimulation parameters with safety constraints. J. Neural Eng. 21, 046054 (2024). [DOI] [PubMed] [Google Scholar]
- 21.Grado L. L., Johnson M. D. & Netoff T. I. Bayesian adaptive dual control of deep brain stimulation in a computational model of Parkinson’s disease. PLoS Comput Biol 14, e1006606 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Dixon T. C. et al. Movement-responsive deep brain stimulation for Parkinson’s disease using a remotely optimized neural decoder. Nature Biomedical Engineering 10, 110–124 (2026). [DOI] [PubMed] [Google Scholar]
- 23.Oliver L. D. et al. Bayesian Optimization Of NeuroStimulation (BOONStim). Brain Stimulation 18, 112–115 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Lorenz R. et al. Efficiently searching through large tACS parameter spaces using closed-loop Bayesian optimization. Brain Stimulation 12, 1484–1489 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Wernisch L. et al. Online Bayesian optimization of vagus nerve stimulation. J. Neural Eng. 21, 026019 (2024). [DOI] [PubMed] [Google Scholar]
- 26.Bonizzato M. et al. Autonomous optimization of neuroprosthetic stimulation parameters that drive the motor cortex and spinal cord outputs in rats and monkeys. Cell Reports Medicine 4, 101008 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Aiello G., Valle G. & Raspopovic S. Recalibration of neuromodulation parameters in neural implants with adaptive Bayesian optimization. J. Neural Eng. 20, 026037 (2023). [DOI] [PubMed] [Google Scholar]
- 28.Laferriere S., Bonizzato M., Cote S. L., Dancause N. & Lajoie G. Hierarchical Bayesian Optimization of Spatiotemporal Neurostimulations for Targeted Motor Outputs. IEEE Trans. Neural Syst. Rehabil. Eng. 28, 1452–1460 (2020). [DOI] [PubMed] [Google Scholar]
- 29.Losanno E. et al. Bayesian optimization of peripheral intraneural stimulation protocols to evoke distal limb movements. J. Neural Eng. 18, 066046 (2021). [DOI] [PubMed] [Google Scholar]
- 30.Di Ianni T. et al. Sex dependence of opioid-mediated responses to subanesthetic ketamine in rats. Nat. Commun. 15, 893 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Macé E. et al. Functional ultrasound imaging of the brain. Nat. Methods 8, 662–664 (2011). [DOI] [PubMed] [Google Scholar]
- 32.Grasso V., Tennyson J., Airan R. D. & Di Ianni T. Ketamine-induced static and dynamic functional connectivity changes are modulated by opioid receptors and biological sex in rats. Neuropsychopharmacol. 50, 1695–1705 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Iadecola C. The Neurovascular Unit Coming of Age: A Journey through Neurovascular Coupling in Health and Disease. Neuron 96, 17–42 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Benavidez N. L. et al. Organization of the inputs and outputs of the mouse superior colliculus. Nat Commun 12, 4004 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Dringenberg H. C., Vanderwolf C. H. & Noseworthy P. A. Superior colliculus stimulation enhances neocortical serotonin release and electrocorticographic activation in the urethane-anesthetized rat. Brain Research 964, 31–41 (2003). [DOI] [PubMed] [Google Scholar]
- 36.Ament S., Daulton S., Eriksson D., Balandat M. & Bakshy E. Unexpected Improvements to Expected Improvement for Bayesian Optimization. in Proceedings of the 37th International Conference on Neural Information Processing Systems (2023). doi: 10.48550/arXiv.2310.20708. [DOI] [Google Scholar]
- 37.Kop B. R. et al. Auditory confounds can drive online effects of transcranial ultrasonic stimulation in humans. eLife 12, RP88762 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Guo H. et al. Ultrasound Produces Extensive Brain Activation via a Cochlear Pathway. Neuron 98, 1020–1030.e4 (2018). [DOI] [PubMed] [Google Scholar]
- 39.Sato T., Shapiro M. G. & Tsao D. Y. Ultrasonic Neuromodulation Causes Widespread Cortical Activation via an Indirect Auditory Mechanism. Neuron 98, 1031–1041.e5 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Wilson J. T. Stopping Bayesian Optimization with Probabilistic Regret Bounds. in Proceedings of the 38th International Conference on Neural Information Processing System (2024). [Google Scholar]
- 41.Siegenthaler D. et al. Visual objects refine head direction coding. Science 389, eadu9828 (2025). [DOI] [PubMed] [Google Scholar]
- 42.Eraifej J. et al. Suppression of pathological oscillations with transcranial focused ultrasound in Parkinson’s disease. Nat Commun 17, 4471 (2026). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Tang K. W. K. et al. Skin-attached bioadhesive patch enabling ultrasound deep brain stimulation and real-time electrophysiological monitoring for REM sleep enhancement. Nature Communications (2026). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Scangos K. W. et al. Closed-loop neuromodulation in an individual with treatment-resistant depression. Nat Med 27, 1696–1700 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Limousin P. & Foltynie T. Long-term outcomes of deep brain stimulation in Parkinson disease. Nat Rev Neurol 15, 234–242 (2019). [DOI] [PubMed] [Google Scholar]
- 46.Hartmann C. J. et al. Long-term evaluation of impedance levels and clinical development in subthalamic deep brain stimulation for Parkinson’s disease. Parkinsonism & Related Disorders 21, 1247–1250 (2015). [DOI] [PubMed] [Google Scholar]
- 47.Estrada H. et al. Holographic transcranial ultrasound neuromodulation enhances stimulation efficacy by cooperatively recruiting distributed brain circuits. Nature Biomedical Engineering 10, 6–15 (2026). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Chen Y. et al. Decoding paradoxical BOLD responses to transcranial ultrasound stimulation with concurrent optoacoustic magnetic resonance imaging. Science Advances 11, eadz1309 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Sieu L.-A. et al. EEG and functional ultrasound imaging in mobile rats. Nat Methods 12, 831–834 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Nunez-Elizalde A. O. et al. Neural correlates of blood flow measured by ultrasound. Neuron 110, 1631–1640.e4 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Paxinos G. & Watson C. The Rat Brain in Stereotaxic Coordinates - The New Coronal Set. (Academic Press, 2004). [Google Scholar]
- 52.Cox R. W. & Hyde J. S. Software tools for analysis and visualization of fMRI data. NMR in Biomedicine 10, 171–178 (1997). [DOI] [PubMed] [Google Scholar]
- 53.Hvarfner C., Hellsten E. O. & Nardi L. Vanilla Bayesian Optimization Performs Great in High Dimensions. in Proceedings of the 41st International Conference on Machine Learning (eds Salakhutdinov R. et al.) vol. 235 20793–20817 (PMLR, 2024). [Google Scholar]
- 54.Wang Z. & Jegelka S. Max-value Entropy Search for Efficient Bayesian Optimization. Preprint at 10.48550/ARXIV.1703.01968 (2017). [DOI] [Google Scholar]
- 55.Hernández-Lobato J. M., Hoffman M. W. & Ghahramani Z. Predictive Entropy Search for Efficient Global Optimization of Black-box Functions. Preprint at 10.48550/ARXIV.1406.2541 (2014). [DOI] [Google Scholar]
- 56.Hvarfner C., Hutter F. & Nardi L. Joint Entropy Search for Maximally-Informed Bayesian Optimization. Preprint at 10.48550/arXiv.2206.04771 (2023). [DOI] [Google Scholar]
- 57.Boynton G. M., Engel S. A., Glover G. H. & Heeger D. J. Linear Systems Analysis of Functional Magnetic Resonance Imaging in Human V1. J. Neurosci. 16, 4207–4221 (1996). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Rabut C. et al. Functional ultrasound imaging of human brain activity through an acoustically transparent cranial window. Sci. Transl. Med. 16, eadj3143 (2024). [DOI] [PubMed] [Google Scholar]
- 59.Balandat M. et al. BoTorch: A Framework for Efficient Monte-Carlo Bayesian Optimization. https://doi.org/10.48550/ARXIV.1910.06403 (2019) doi: 10.48550/ARXIV.1910.06403. [DOI] [Google Scholar]
- 60.Gardner J. R., Pleiss G., Bindel D., Weinberger K. Q. & Wilson A. G. GPyTorch: Blackbox Matrix-Matrix Gaussian Process Inference with GPU Acceleration. Preprint at 10.48550/ARXIV.1809.11165 (2018). [DOI] [Google Scholar]
- 61.Picheny V. et al. Trieste: Efficiently Exploring The Depths of Black-box Functions with TensorFlow. Preprint at 10.48550/ARXIV.2302.08436 (2023). [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Data and codes will be released on Figshare and GitHub at the time of publication.





