Principled BCI Decoder Design and Parameter Selection Using a Feedback Control Model

Francis R. Willett, Daniel R. Young, Brian Murphy, William D. Memberg, Christine H Blabe, Chethan Pandarinath, Sergey D. Stavisky, Paymon G. Rezaii, Jad Saab, Benjamin L. Walter, Jennifer A. Sweet, Jonathan P. Miller, Jaimie M. Henderson, Krishna V. Shenoy, John D. Simeral, Beata Jarosiewicz, Leigh R. Hochberg, Robert F. Kirsch, A. Bolu AjiboyeScientific 2019

Abstract

Decoders optimized offline to reconstruct intended movements from neural recordings sometimes fail to achieve optimal performance online when they are used in closed-loop as part of an intracortical brain-computer interface (iBCI). This is because typical decoder calibration routines do not model the emergent interactions between the decoder, the user, and the task parameters (e.g. target size). Here, we investigated the feasibility of simulating online performance to better guide decoder parameter selection and design. Three participants in the BrainGate2 pilot clinical trial controlled a computer cursor using a linear velocity decoder under different gain (speed scaling) and temporal smoothing parameters and acquired targets with different radii and distances. We show that a user-specific iBCI feedback control model can predict how performance changes under these different decoder and task parameters in held-out data. We also used the model to optimize a nonlinear speed scaling function for the decoder. When used online with two participants, it increased the dynamic range of decoded speeds and decreased the time taken to acquire targets (compared to an optimized standard decoder). These results suggest that it is feasible to simulate iBCI performance accurately enough to be useful for quantitative decoder optimization and design.

Introduction

Intracortical brain-computer interfaces (iBCIs) aim to restore communication and mobility by translating neural activity into control signals. However, decoders optimized offline often fail to reach peak performance in closed-loop settings. This "reality gap" arises because traditional calibration treats decoding as a static mapping, neglecting the dynamic feedback loop between the user, the decoder, and the task parameters. Currently, finding the optimal balance for parameters like gain (speed scaling) and smoothing (jitter reduction) requires extensive and exhausting online trial-and-error. This work introduces a principled, computational framework to simulate and optimize these interactions offline.

Methods: The Piecewise-Linear Model (PLM)

The core innovation is the Piecewise-Linear Model (PLM), which provides a fully computational simulation of the BCI control loop. The model incorporates a simulated user who processes delayed visual feedback and applies a control policy to guide the cursor. It accounts for both signal-independent noise (the "noise floor") and signal-dependent noise that scales with user effort.

Figure 6: Heatmap of mean movement time across the gain and smoothing parameter space.

The PLM is highly efficient, simulating 100 seconds of movement in just 3 milliseconds. This speed enables exhaustive grid searches—testing thousands of parameter combinations in minutes—to find the mathematical optimum for a specific user and task, effectively quantifying the speed-accuracy tradeoff.

Results and Discussion

Validation against data from the BrainGate2 clinical trial showed that the PLM predicts performance metrics like movement time and path efficiency with high accuracy (Fraction of Variance Accounted For, FVAF > 0.7).

Figure 4: Cursor trajectories for small and large targets under different calibration regimes.

The model reveals that standard calibration methods, such as ReFIT, are often suboptimal. For instance, they may produce decoders that are too fast for small targets, leading to overshooting and increased "dial-in" time. By using the PLM to optimize a nonlinear speed scaling function, the researchers achieved a superior dynamic range, allowing for both rapid travel and precise stopping. This task-specific tuning allows for "pre-tuning" the BCI for specific user interfaces, such as typing versus large-scale reaching.

Conclusion

This study demonstrates that simulating iBCI performance is accurate enough to be useful for quantitative decoder optimization and design. By accurately modeling the user-in-the-loop, researchers can design high-performance decoders that bridge the gap between offline metrics and online utility, significantly reducing the burden of clinical calibration.

Summary updated

BibTeX
@inproceedings{willett2019principled,
  author = {Francis R. Willett and Daniel R. Young and Brian Murphy and William D. Memberg and Christine H Blabe and Chethan Pandarinath and Sergey D. Stavisky and Paymon G. Rezaii and Jad Saab and Benjamin L. Walter and Jennifer A. Sweet and Jonathan P. Miller and Jaimie M. Henderson and Krishna V. Shenoy and John D. Simeral and Beata Jarosiewicz and Leigh R. Hochberg and Robert F. Kirsch and A. Bolu Ajiboye},
  title = {{Principled BCI Decoder Design and Parameter Selection Using a Feedback Control Model}},
  booktitle = {Scientific},
  year = {2019},
  doi = {10.1038/s41598-019-44166-7},
}
Figure