Error detection and correction in intracortical brain–machine interfaces controlling two finger groups

Dylan M Wallace, Miri Benyamini, Samuel R. Nason, Joseph T. Costello, Luis H. Cubillos, Matthew J. Mender, Hisham Temmar, Matthew S. Willsey, Parag G. Patil, Cynthia A. Chestek, Miriam ZacksenhouseJournal of Neural Engineering 2023

Abstract

Objective. While brain-machine interfaces (BMIs) are promising technologies that could provide direct pathways for controlling the external world and thus regaining motor capabilities, their effectiveness is hampered by decoding errors. Previous research has demonstrated the detection and correction of BMI outcome errors, which occur at the end of trials. Here we focus on continuous detection and correction of BMI execution errors, which occur during real-time movements. Approach. Two adult male rhesus macaques were implanted with Utah arrays in the motor cortex. The monkeys performed single or two-finger group BMI tasks where a Kalman filter decoded binned spiking-band power into intended finger kinematics. Neural activity was analyzed to determine how it depends not only on the kinematics of the fingers, but also on the distance of each finger-group to its target. We developed a method to detect erroneous movements, i.e. consistent movements away from the target, from the same neural activity used by the Kalman filter. Detected errors were corrected by a simple stopping strategy, and the effect on performance was evaluated. Main results. First we show that including distance to target explains significantly more variance of the recorded neural activity. Then, for the first time, we demonstrate that neural activity in motor cortex can be used to detect execution errors during BMI controlled movements. Keeping false positive rate below 5%, it was possible to achieve mean true positive rate of 28.1% online. Despite requiring 200 ms to detect and react to suspected errors, we were able to achieve a significant improvement in task performance via reduced orbiting time of one finger group. Significance. Neural activity recorded in motor cortex for BMI control can be used to detect and correct BMI errors and thus to improve performance. Further improvements may be obtained by enhancing classification and correction strategies.

Introduction

Brain-machine interfaces (BMIs) offer a transformative pathway for individuals with paralysis by translating neural activity directly into control signals for external devices. Despite their potential, current BMIs are limited by "decoding errors" that result in unintended movements. While previous research has successfully identified "outcome errors"—the neural signals occurring after a failed trial—this study addresses "execution errors," which are deviations that occur in real-time during a movement.

The primary objective of this research was to determine if the motor cortex contains sufficient information to distinguish correct movements from erroneous ones mid-flight and whether correcting these errors in real-time could enhance user performance.

Methods

The study involved two male rhesus macaques, Monkey W and Monkey N, implanted with Utah microelectrode arrays in the motor cortex. Monkey W performed a single-finger group task, while Monkey N controlled two finger groups (index and middle-ring-small) independently.

Experimental setup showing Utah array locations and the closed-loop task for error detection and correction.

Signal Processing and Control

Researchers utilized spiking-band power (SBP) as the primary neural feature. A standard Kalman filter was employed to decode this activity into finger velocity. A key innovation was the hypothesis that motor cortex neurons encode the distance to the target. By incorporating this distance metric, the researchers developed a model that explained significantly more variance in neural firing than models relying solely on kinematics (velocity and position).

Error Detection and Correction

Using Step-wise Linear Discriminant Analysis (SWLDA), the system classified 200ms segments of movement as either "toward" or "away" from the target. If an "away" movement (an execution error) was detected, a "stopping strategy" was triggered, setting the virtual finger's velocity to zero for 200–250ms to prevent further deviation.

Results

The inclusion of "distance to target" in the neural model provided a superior fit for the recorded activity, suggesting that the motor cortex acts as both a "steering wheel" for velocity and a "GPS" for relative goal location.

Performance Metrics

In online testing, the error detection system achieved a mean True Positive Rate (TPR) of 28.1% while maintaining a low False Positive Rate (FPR) of 4.7%. Despite the modest TPR, the impact on performance was substantial. For Monkey N, the error correction strategy reduced "orbiting time"—the time spent stabilizing the finger within the target—by 30% and 23% across different test days.

The system also improved overall efficiency. Even with the 200ms detection latency, the "stop" command prevented large deviations, leading to a faster "Total Time to Target." Notably, detection was most accurate when the finger was outside the target area rather than jittering within it.

Discussion

This research demonstrates that the same neural channels used for BMI control also provide an inherent error-monitoring signal. This dual-purpose nature eliminates the need for additional implants specifically for error sensing.

Future work will focus on more sophisticated correction strategies, such as reversing movement or "snapping" to the target, and reducing detection latency. While these results in non-human primates are promising, translation to human clinical trials is necessary to confirm if similar distance-encoding and error-processing patterns exist in patients with spinal cord injuries.

Summary updated

BibTeX
@article{wallace2023error,
  author = {Dylan M Wallace and Miri Benyamini and Samuel R. Nason and Joseph T. Costello and Luis H. Cubillos and Matthew J. Mender and Hisham Temmar and Matthew S. Willsey and Parag G. Patil and Cynthia A. Chestek and Miriam Zacksenhouse},
  title = {{Error detection and correction in intracortical brain–machine interfaces controlling two finger groups}},
  journal = {Journal of Neural Engineering},
  year = {2023},
  doi = {10.1088/1741-2552/acef95},
}
Figure