Papers
Topics
Authors
Recent
Search
2000 character limit reached

Online MicroStimulation Optimization (OMiSO)

Updated 14 July 2026
  • Online MicroStimulation Optimization (OMiSO) is a brain stimulation framework that leverages pre-stimulation states and adaptive refinement to guide neural activity toward target latent states.
  • It employs a state-dependent forward model and an inverse policy trained via behavioral cloning to optimally select electrode patterns in real time.
  • Experimental results show that OMiSO achieves lower latent-state error compared to static methods, advancing precision in closed-loop neuromodulation.

Online MicroStimulation Optimization (OMiSO) is a brain stimulation framework designed to use pre-stimulation neural population activity and ongoing response observations to select stimulation parameters that drive neural population activity toward specified latent target states. It was introduced for intracortical electrical microstimulation in a monkey and is formulated around two linked advances: it leverages the pre-stimulation brain state to choose optimal stimulation parameters, and it adaptively refines those parameters by considering newly observed stimulation responses (Minai et al., 10 Jul 2025). In the reported experiments, OMiSO achieved greater accuracy in steering latent population activity than competing methods that do not incorporate these advances, positioning it within the broader class of closed-loop neuromodulation methods that use online measurements to guide stimulation (Minai et al., 10 Jul 2025).

1. Formal problem definition

OMiSO is posed in terms of latent neural population dynamics. Let nn denote the number of recorded electrodes and m<nm<n the dimensionality of the latent manifold. On each trial kk, pre-stimulation spike counts xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n} are collected over tt consecutive time bins, with the summary giving the example t=5t=5 bins of 50ms50\,\mathrm{ms} each. A factor-analysis model projects these counts into an mm-dimensional latent vector zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m} according to

zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},

with m<nm<n0, m<nm<n1, and diagonal m<nm<n2 (Minai et al., 10 Jul 2025).

The stimulation parameters on trial m<nm<n3 are represented by choosing m<nm<n4 electrodes from a set of m<nm<n5 candidates, where m<nm<n6 for a full m<nm<n7 array. This choice is encoded either as a binary vector m<nm<n8 or equivalently as a grid m<nm<n9. After stimulation, the post-stimulation latent state kk0 is measured kk1 after stimulation offset and projected into the same latent space:

kk2

The experimenter specifies a target latent state kk3 with kk4, and the goal is to choose kk5 so that the evoked post-stimulation state on the kk6 target dimensions matches kk7 (Minai et al., 10 Jul 2025).

The formulation uses truncated pre- and post-states on the target dimensions, denoted kk8 and kk9. The optimization objective is to find xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}0 that minimizes a deviation xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}1. In the online reinforcement step, the per-trial “advantage” is defined with an xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}2 norm:

xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}3

This choice makes target-state error the explicit scalar quantity driving policy refinement (Minai et al., 10 Jul 2025).

A plausible implication is that OMiSO treats microstimulation design as a state-conditioned control problem in a learned latent manifold rather than as a fixed mapping from stimulation pattern to response.

2. Latent-state construction and state dependence

A central component of OMiSO is the construction of a common latent space across sessions. Factor analysis identifies session-specific xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}4, xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}5, and xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}6 on no-stimulation trials. These session-specific loadings are then aligned to a reference loading matrix xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}7 by Procrustes alignment through orthogonal matrices xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}8 minimizing xkPreRnx^{Pre}_{k}\in\mathbb{R}^{n}9. The result is a common latent space in which both tt0 and tt1 are represented (Minai et al., 10 Jul 2025).

Within that aligned latent space, OMiSO defines a stimulation-response forward model tt2. The inputs are the truncated pre-stimulation state tt3 and the stimulation pattern tt4; the output is a predicted post-stimulation latent state tt5. The forward model is implemented as a convolutional network over tt6 plus an MLP or LSTM over tt7, as described in Supplementary Figure S3. Training minimizes the mean-squared error

tt8

using AdamW with learning rate tt9, weight decay t=5t=50, 20 epochs, and 5-fold cross-validation (Minai et al., 10 Jul 2025).

The experimental evidence summarized for Figure 2B indicates that adding pre-stimulation state to the forward model reduced MSE significantly relative to a “pattern only” model, using a one-tailed t=5t=51-test with t=5t=52 (Minai et al., 10 Jul 2025). This establishes state dependence as an empirical property of the measured stimulation responses, rather than merely an architectural assumption.

The reported hyperparameter summary further specifies t=5t=53 factor-analysis dimensions, chosen by cross-validated likelihood, and t=5t=54 target dimensions, with t=5t=55 (Minai et al., 10 Jul 2025). These values define the low-dimensional control space in which OMiSO evaluates success.

3. Inverse mapping through behavioral cloning

OMiSO does not select stimulation patterns by directly solving an online combinatorial inverse problem from scratch on every trial. Instead, it trains an inverse policy t=5t=56 that maps t=5t=57 to continuous suitabilities t=5t=58. The role of t=5t=59 is to propose which candidate electrodes are most suitable for stimulation, conditional on the observed pre-stimulation latent activity and the desired target state (Minai et al., 10 Jul 2025).

The inverse policy is trained using Behavioral Cloning (BC). Expert data

50ms50\,\mathrm{ms}0

are generated by sampling a pre-state and a random stimulation vector 50ms50\,\mathrm{ms}1, then computing 50ms50\,\mathrm{ms}2 through the forward model. The policy 50ms50\,\mathrm{ms}3 is implemented as an MLP and optimized with binary cross-entropy loss:

50ms50\,\mathrm{ms}4

The reported BC hyperparameters are batch size 50ms50\,\mathrm{ms}5, maximum epochs 50ms50\,\mathrm{ms}6, and early stopping on 20 validation failures every 100 epochs (Minai et al., 10 Jul 2025).

The inversion analysis reported for Figure 3B states that BC inversion error, measured as 50ms50\,\mathrm{ms}7 error in the 2-D latent target space, saturated near 50ms50\,\mathrm{ms}8, while trial-to-trial variability was approximately 50ms50\,\mathrm{ms}9 (Minai et al., 10 Jul 2025). This indicates that the inverse model’s residual error was small relative to observed response variability. A plausible implication is that most of the remaining online difficulty lies in stochasticity or nonstationarity of neural responses, not in amortized inversion alone.

The framework therefore separates two estimation problems: first, learning a state-dependent forward map from stimulation to latent response; second, amortizing its inversion into a policy that can be queried in real time.

4. Online trial selection and adaptive refinement

On each trial, OMiSO combines the inverse policy with an mm0-greedy exploration scheme. Given observed mm1 and target mm2, the algorithm first computes mm3. It then converts these suitabilities into softmax probabilities

mm4

With probability mm5, OMiSO picks the top mm6 electrodes by mm7; with probability mm8, it samples mm9 electrodes according to the softmax probabilities. The exploration parameter decays according to

zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}0

with zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}1, zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}2, and zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}3–zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}4 (Minai et al., 10 Jul 2025).

After stimulation, the framework observes zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}5 and stores the tuple zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}6. Every zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}7 trials, it updates the policy parameters zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}8 using Proximal Policy Optimization (PPO). The PPO objective is written as

zkPreRmz^{Pre}_{k}\in\mathbb{R}^{m}9

zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},0

The clip parameter is chosen from zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},1, the baseline zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},2 from zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},3, the PPO learning rate from zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},4, and weight decay is zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},5 (Minai et al., 10 Jul 2025).

The online algorithm can therefore be summarized as a sequence of policy inference, stochastic action selection, stimulation delivery, latent-state observation, and periodic PPO updates. The summary’s narrative workflow states the sequence explicitly: pool no-stim trials across sessions, perform factor analysis and latent alignment, collect random microstimulation trials to train zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},6, generate expert data and train zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},7 by BC, then run the closed-loop experiment with zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},8-greedy selection and PPO updates every 5 trials until session end (Minai et al., 10 Jul 2025).

This suggests that OMiSO is neither purely model-based nor purely model-free. Its initial policy is learned by supervised inversion of a forward model, while its online refinement uses reinforcement learning against actual stimulation outcomes.

5. Experimental configuration and reported performance

The reported experimental configuration used zkPre=β(xkPreμ),β=Λ(ΛΛ+Ψ)1,z^{Pre}_{k}=\beta(x^{Pre}_{k}-\mu),\qquad \beta=\Lambda^\top(\Lambda\Lambda^\top+\Psi)^{-1},9 candidate electrodes, selected m<nm<n00 for stimulation on each trial, and therefore operated over a total of m<nm<n01 possible patterns. The stimulation amplitude was m<nm<n02, frequency m<nm<n03, and duration m<nm<n04 (Minai et al., 10 Jul 2025). These values define the discrete action space and fixed pulse parameters under which electrode subset selection was optimized.

Several benchmark comparisons were reported. In Figure 3D, a static method with pre-stimulation information slightly outperformed a static method without pre-stimulation information, but the difference was not significant under a Wilcoxon test with m<nm<n05 (Minai et al., 10 Jul 2025). This result is consistent with the broader claim that state information is useful, while also indicating that state dependence alone was not sufficient to yield a significant advantage in that specific static comparison.

The principal comparison is reported in Figure 4E. Across 14 test sessions, OMiSO’s mean m<nm<n06 error to m<nm<n07 in 2-D latent space was significantly smaller than both Static with pre-stim (m<nm<n08) and MiSO (m<nm<n09), using Wilcoxon signed-rank tests (Minai et al., 10 Jul 2025). The paper summary therefore attributes OMiSO’s performance gain to the combination of state-dependent parameter selection and adaptive online refinement, rather than to either component in isolation.

The same summary concludes that OMiSO provides greater accuracy in achieving specified activity states and thereby advances neuromodulation technologies for understanding the brain and for treating brain disorders (Minai et al., 10 Jul 2025). Within the experimental scope reported, the documented evidence is specifically accuracy improvement in latent-state steering under intracortical electrical microstimulation in a monkey.

Component Reported setting Purpose
FA latent dimensionality m<nm<n10 Latent manifold
Target dimensionality m<nm<n11 Controlled target subspace
Candidate electrodes m<nm<n12 Discrete stimulation pool
Stimulated electrodes m<nm<n13 Per-trial pattern size
Total patterns m<nm<n14 Action-space size
Amplitude m<nm<n15 Stimulation intensity
Frequency m<nm<n16 Pulse train frequency
Duration m<nm<n17 Stimulation duration
PPO update interval Every 5 trials Online adaptation

6. Relation to neighboring closed-loop stimulation paradigms

OMiSO belongs to a broader methodological landscape in which stimulation is selected on the basis of ongoing measurements and updated online. Closed-loop brain stimulation has been described as a process that captures neurophysiological measures, quickly identifies neural events of interest, and produces auditory, magnetic, or electrical stimulation so as to interact with brain processes precisely (Valenchon et al., 2021). In that general sense, OMiSO instantiates a closed-loop architecture centered on latent neural population state rather than event detection.

Several neighboring research programs illuminate the design space around OMiSO. Real-time systems such as the Portiloop emphasize embedded detection, timing, and hardware constraints for stimulation targeting of specific oscillations (Valenchon et al., 2021). Bayesian-optimization approaches in auditory BCIs and real-time fMRI-guided tACS frame stimulation tuning as optimization of a noisy black-box objective under limited evaluation budgets, with Gaussian-process surrogates and exploration-exploitation control (Sosulski et al., 2021, Lorenz et al., 2016). Human-in-the-loop optimization for visual prostheses combines a learned forward model, deep inverse encoding, and preference-based Bayesian optimization to personalize stimulus encoders under binary feedback (Granley et al., 2023). Active learning in two-photon holographic optogenetics focuses on choosing perturbations that most efficiently identify neural population dynamics and reports up to a two-fold reduction in required data in some settings (Wagenmaker et al., 2024).

These neighboring frameworks differ in modality, objective, and optimization formalism, but they share structural themes with OMiSO: online adaptation, explicit treatment of uncertainty or variability, and the use of reduced representations to make high-dimensional stimulation control tractable. A plausible implication is that OMiSO can be situated at the intersection of latent-state control, inverse modeling, and adaptive experimental design.

7. Interpretation, scope, and common points of confusion

A common misunderstanding would be to regard OMiSO as a generic optimization method over stimulation parameters without regard to neural state. The defining feature of the framework is precisely that pre-stimulation activity is part of the decision variable through m<nm<n18 and the state-dependent forward model m<nm<n19 (Minai et al., 10 Jul 2025). Another possible misunderstanding is to treat OMiSO as a purely reinforcement-learning method. In fact, the policy initialization relies on Behavioral Cloning from synthetic expert data generated by the learned forward model, and PPO enters as a periodic adaptive refinement step rather than as the sole learning mechanism (Minai et al., 10 Jul 2025).

It is also important not to overstate the empirical evidence. The reported results establish significant reductions in target-state error relative to Static with pre-stim and MiSO across 14 test sessions, but the summary does not report broader clinical outcomes, long-term stability, or transfer across species, tasks, or stimulation modalities (Minai et al., 10 Jul 2025). Similarly, although the abstract notes scientific and clinical potential for manipulating coordinated neural population activity, the demonstrated experiment is specifically intracortical electrical microstimulation in a monkey (Minai et al., 10 Jul 2025).

The framework’s conceptual significance lies in the explicit claim that the state of the brain affects how neural populations respond to incoming sensory stimuli, and therefore taking into account pre-stimulation neural population activity may be crucial to achieve a desired causal manipulation using stimulation (Minai et al., 10 Jul 2025). OMiSO operationalizes that claim in a concrete workflow: aligned latent-state estimation, state-dependent forward prediction, inverse policy learning, stochastic online trial selection, and continual policy improvement. Within the evidence summarized for the paper, this combination is what distinguishes OMiSO from methods that ignore state dependence or remain static (Minai et al., 10 Jul 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Online MicroStimulation Optimization (OMiSO).