JOVANA
Explore Library Glossary Getting Started Three Levels Fields How it works Mission
Join the mission
All guides

The Frontier: Learning Stimulation Policies and Governing the Loop

From hand-tuned parameters to learned policies, network-level and multi-site modulation, biomarker discovery under nonstationarity, bidirectional cognitive and affective loops, and the ethics of continuously writing to a brain.

From hand-tuned to learned policies

Today a clinician tunes DBS by trial and error across a large parameter space: which contacts, amplitude, frequency, pulse width, and — with directional leads — steering fractions. Each setting must be judged against slow, noisy symptom feedback, so exhaustive search is hopeless. The frontier is to learn the policy: treat programming as sample-efficient optimization, using Bayesian optimization or reinforcement learning to search the space with far fewer trials, under hard safety constraints.

\pi^{\star} = \arg\max_{\pi}\; \mathbb{E}_{\pi}\!\left[\, B - \lambda_1 S - \lambda_2 E \,\right]

The learned-policy objective: choose a stimulation policy that maximizes expected symptom benefit B, penalized by side-effect burden S and energy use E. The multipliers encode clinical priorities — a formal statement of the therapeutic-window problem from Guide 2.

State the goal of an automatic stimulation policy as a single score to maximize: reward symptom relief B, but subtract penalties for side effects S and energy use E. The weights are where clinical priorities live — they encode how much a bit of side effect or battery drain is "worth" against symptom benefit. This is the therapeutic window, written as math.

\pi^{\star}
The best stimulation policy — the rule mapping brain state to stimulation.
B
Expected symptom benefit (the reward).
S,\,E
Side-effect burden and energy use — the penalties.
\lambda_1,\,\lambda_2
The trade-off weights encoding clinical priorities.

Raising \lambda_1 tells the optimizer that side effects are costlier, so the winning policy will accept a little less symptom relief in exchange for a gentler profile.

a_{\mathrm{UCB}}(\theta) = \mu(\theta) + \kappa\,\sigma(\theta)

A Bayesian-optimization acquisition function over stimulation settings theta: try the setting with the best trade of predicted benefit mu against uncertainty sigma. Exploring high-uncertainty settings is how you find better parameters — but in a patient, exploration must be bounded by safety, which is the crux of learned neuromodulation.

When searching for the best stimulation settings, don't only chase the setting predicted to work best (\mu) — also give credit to settings you're unsure about (\sigma), because those might surprise you. This score balances exploiting what you know against exploring the unknown; in a patient, that exploration must be reined in by safety. See the parameter space.

\theta
A candidate set of stimulation parameters.
\mu(\theta)
The model's predicted benefit for that setting.
\sigma(\theta)
The model's uncertainty about that setting.
\kappa
The exploration weight — how much you reward uncertainty.

Two settings look equally promising on average, but one has been tried many times and the other rarely; a positive \kappa tips the choice toward the less-tested one, hoping to learn something new.

Networks, not points

A single lead in a nucleus is really modulating a network — the activating function already told us we act on tracts, and symptoms live in distributed circuits. The frontier moves accordingly: multi-site stimulation, temporally patterned (rather than constant high-frequency) waveforms, and loops that sense in one region and stimulate another. Each raises the same measurement problem — you now need target-engagement readouts at the network level, via evoked responses or connectivity, not just a local biomarker.

Biomarkers and nonstationarity

Beta is a rare success: a robust, real-time biomarker of a motor symptom. Most therapeutic targets have none. Gait freezing, mood, cognition and impulsivity lack agreed real-time signatures, which is the single biggest bottleneck for closed-loop psychiatric and cognitive DBS. And even good biomarkers suffer nonstationarity: the signal drifts over days as electrodes settle, tissue remodels and disease progresses, so a policy tuned today decays. Self-recalibration — updating thresholds and gains without a clinician in the loop — becomes essential and, itself, a control-and-safety problem.

Bidirectional and affective loops

The most ambitious systems are bidirectional: read and write continuously. Closed-loop psychiatric DBS for treatment-resistant depression or OCD aims to detect a mood-state biomarker and adjust stimulation of a limbic target — a loop that reads and writes affect. On the motor side, an error-related potential read from cortex could gate or correct stimulation, letting the user's own error signal supervise the device. Each closes a tighter loop around richer mental content, which is exactly where the payoff and the peril both grow.

Governing the loop

A device that continuously reads a neural biomarker and writes back to the brain sits uncomfortably close to agency, mood and identity. Who owns the policy that decides when your brain is stimulated? If chronic stimulation slowly shifts personality or a sense of authorship, whose choice was the resulting behavior? Fluctuating conditions complicate consent. These are not side issues — they are neuroethics and cognitive-liberty questions that the closed loop makes concrete rather than hypothetical.