Learning to Control a Brain–Machine Interface for Reaching and Grasping by Primates

Jose M. Carmena, Mikhail Lebedev, Roy E. Crist, Joseph E. O’Doherty, David M. Santucci, Dragan F. Dimitrov, Parag G. Patil, Craig S. Henriquez, Miguel A. L. NicolelisView original
OverviewBalancedalloy voice
Imagine watching a robot hand glide across a screen, close its gripper on cue, and do it all because a brain decided to. Not hands on a joystick. Not muscles tugging tendons. Just a frontoparietal chorus of neurons singing the right patterns while the animal’s own arm rests quietly in its chair. That’s the scene Carmena and colleagues created: a closed-loop brain-machine interface that lets macaques reach and grasp with a six degree of freedom robot arm and a simple gripper, guided only by what their brains are doing and what their eyes are seeing. The challenge is not a single dial to turn. Reaching and grasping is a bundle of moving parts—hand position, hand velocity, gripping force, even the echoes of muscle activity—that all have to be predicted from neural activity and driven in concert. So the team tapped into a broad network: the premotor cortex, supplementary motor area, primary motor and somatosensory cortices, and posterior parietal cortex. The monkeys started with a pole in hand to establish the mapping. Then, as the models learned, control shifted from muscles to neurons. Three tasks walked them there: moving a cursor to a target, squeezing to match a desired force, and then doing both at once—the real reach-and-grasp challenge. Under the hood, the decoder is simple on purpose. Think of it like this: at any moment, the system takes a stack of recent firing rates—binned in 100 millisecond windows, looking back across ten of those bins—and asks, “How much should each of these past snapshots count toward the output I want right now?” The answer is a set of weights, one for each time lag and each neuron. Add up weighted activity across those lags, include an intercept, and you get a prediction for position, velocity, and grip force. In equation form, it says the output at time t equals a constant plus the sum, over past time lags, of weights times firing rates, plus a residual. Fit those weights by least squares, and you have a Wiener filter—a linear workhorse that, in their hands, beat out fancier options like a Kalman filter, adaptive least mean squares, and a backpropagation neural network. How well does that actually work? Surprisingly well. In their best-trained sessions, those linear models captured up to 95 percent of the variance in gripping force, about 85 percent for hand position, and around 80 percent for velocity. That’s not an offline party trick; it held up in real time. One clear example: the decoded grip force in steady brain control tracked with a correlation around 0.84. In other words, when the model said “squeeze a bit,” the robot squeezed a bit, and when the model said “ease off,” it eased off—consistently. Behavior followed the math. As training progressed, the percentage of successful trials climbed and trial times fell. And when they raised the stakes by putting the real robot in the loop—where the physics can surprise you—performance dipped at first and then rebounded, stabilizing after roughly seven sessions. Critically, when the monkeys moved from pole control to pure brain control, their muscles went quiet. Electromyography in the wrist flexors, extensors, and biceps flattened out during brain-controlled runs. That silence matters. It shows that the decoder wasn’t just piggybacking on covert muscle twitches; the brain was truly in the driver’s seat, guided by continuous visual feedback. Now, where in the brain did the signal come from? Everywhere they looked helped. But some places helped more. Neurons in the primary motor cortex were the single best source on their own, predicting about 73 percent of hand-position variance, 66 percent of velocity, and 83 percent of gripping force. The posterior parietal cortex was a close second for force, hitting roughly 73 percent there and providing solid velocity information, while the premotor, supplementary motor, and somatosensory cortices contributed usefully to position and velocity. The punchline is population. Any single area, by itself, left performance on the table. Combining neurons across areas always helped, and adding neurons kept paying dividends—exactly what neuron-dropping analyses, where you intentionally withhold cells to see how accuracy erodes, are designed to show. What kind of neurons you count also shapes the result. When the team compared spike-sorted single units to multiunits—those cluster-of-spikes signals you get without the fuss of sorting—single units did better, by roughly 17 to 20 percent across position, velocity, and grip-force predictions. But here’s the practical twist. You can buy back that gap with channel count. About thirty additional multiunits compensated for using twenty single units when predicting hand position. And, crucially, the animals still achieved high brain-machine interface performance using multiunits alone. For any device that aims to live in the clinic, where spike sorting can be brittle, that’s very good news. All of this decoding is a means to an end: driving a physical machine. The engineers took a pragmatic route. The brain’s decoded velocity became the robot’s command. That velocity was integrated into position and then passed through a gentle high-pass filter—around two hertz—to keep the virtual hand from drifting. Commands updated about every 60 milliseconds. The robot’s response lag, from brain estimate to physical motion, sat around 60 to 90 milliseconds. Meanwhile, feedback stayed visual and continuous. Cursor position told the monkey where the robot hand was; the size of that cursor told the monkey how hard the gripper was squeezing. Fast enough to feel responsive. Simple enough to stay stable. Learning didn’t just tune a set of weights in a computer. It reshaped the brain’s own patterns. During pole control, directional tuning—how strongly neurons prefer movements in particular directions—grew across the cortex. When the switch flipped to brain control and the animal’s arm went still, that picture changed. About 68 percent of neurons showed reduced tuning depth, 14 percent didn’t budge much, and 18 percent actually became more tuned. Preferred directions, taken across the population, rotated in a consistent clockwise way as the animals practiced. And neurons started moving together. Mean pairwise correlations crept up from about 0.02 to 0.06, strongest within motor and somatosensory cortex and prominent between motor and premotor areas. That’s a network knitting itself around a new task—the dynamics of a robot that’s now part of the loop. You can see the payoff in the models’ anatomy over time. Early on, the primary motor cortex pulled the most weight for predicting hand position. With practice, the contributions from supplementary motor, premotor, and somatosensory cortices rose, approaching motor cortex levels. It’s as if the brain started with its usual suspect and then recruited the rest of the frontoparietal team, distributing the job so the whole system could run more smoothly. By the end of training, hand-position predictions were consistently strong—around 0.75 correlation for horizontal position and 0.72 for vertical—and the matching velocity components sat around 0.70 to 0.71. Not perfect. But reliable, and good enough to move a real arm in the world. A detail that’s easy to miss but tells you how much the loop matters: the linear models, once fixed, stayed stable over long runs. You might expect that as neurons drift a bit and attention waxes and wanes, performance would wander. It did, a little. But under continuous visual feedback, the predictions held—grip force, in particular, stayed locked, with only transient hiccups. And in every task, brain-control performance beat a conservative random-walk baseline, a sanity check that says the decoder wasn’t just inflating confidence with noise. It’s worth pausing on the equation again, not because the math is fancy, but because it explains the result. The output depends on a weighted history of neural activity. That history bridges the brain’s own dynamics—its natural rhythm of planning and execution—with the robot’s. Using only past lags, and fitting the weights by ordinary least squares, the model learns the simplest mapping that works. And because the system commands velocity, which is more closely tied to instantaneous firing than absolute position, it stays agile. Ask any control engineer: if your plant—the robot in this case—introduces delay, commanding velocity often buys you smoother behavior. Together, these pieces make a clear statement. A distributed frontoparietal network can learn to drive a multi-parameter brain-machine interface that controls a real, embodied robot, and it can do so without the body moving. Large ensembles matter, not just to raise accuracy, but to spread the work across areas that each carry a different slice of the signal. Linear decoders, fed by short histories of activity, are enough to extract hand position, velocity, grip force, and even a meaningful chunk of muscle activity. And with continuous visual feedback, the brain reorganizes—tuning sharpens and then softens in the right places, correlations rise—to assimilate the robot as part of the action-perception loop. If you’re thinking ahead to translation, the design lessons are pretty concrete. Record broadly and record many neurons. Favor velocity-based commands for responsiveness. Keep the physical device in the training loop so the brain can learn its dynamics. And don’t insist on spike sorting if you can afford channels; multiunit signals can get you there. Carmena and colleagues didn’t just show brain control; they mapped the path to durable, body-inclusive neuroprostheses that respect how a brain actually learns. There’s still room to grow—longer-term stability, richer hand shaping, and more natural feedback—but the direction is set. A brain can learn the quirks of a machine. A machine can close the loop fast enough to feel like part of the body. And somewhere between those two facts is a future where reaching for a glass with a prosthetic hand feels less like commanding a device and more like, well, reaching.

Imagine watching a robot hand glide across a screen, close its gripper on cue, and do it all because a brain decided to. Not hands on a joystick. Not muscles tugging tendons.

Just a frontoparietal chorus of neurons singing the right patterns while the animal’s own arm rests quietly in its chair. That’s the scene Carmena and colleagues created: a closed-loop brain-machine interface that lets macaques reach and grasp with a six degree of freedom robot arm and a simple gripper, guided only by what their brains are doing and what their eyes are seeing.

The challenge is not a single dial to turn. Reaching and grasping is a bundle of moving parts—hand position, hand velocity, gripping force, even the echoes of muscle activity—that all have to be predicted from neural activity and driven in concert. So the team tapped into a broad network: the premotor cortex, supplementary motor area, primary motor and somatosensory cortices, and posterior parietal cortex.

The monkeys started with a pole in hand to establish the mapping. Then, as the models learned, control shifted from muscles to neurons. Three tasks walked them there: moving a cursor to a target, squeezing to match a desired force, and then doing both at once—the real reach-and-grasp challenge.

Under the hood, the decoder is simple on purpose. Think of it like this: at any moment, the system takes a stack of recent firing rates—binned in 100 millisecond windows, looking back across ten of those bins—and asks, “How much should each of these past snapshots count toward the output I want right now?” The answer is a set of weights, one for each time lag and each neuron. Add up weighted activity across those lags, include an intercept, and you get a prediction for position, velocity, and grip force.

In equation form, it says the output at time t equals a constant plus the sum, over past time lags, of weights times firing rates, plus a residual. Fit those weights by least squares, and you have a Wiener filter—a linear workhorse that, in their hands, beat out fancier options like a Kalman filter, adaptive least mean squares, and a backpropagation neural network.

How well does that actually work? Surprisingly well. In their best-trained sessions, those linear models captured up to 95 percent of the variance in gripping force, about 85 percent for hand position, and around 80 percent for velocity.

That’s not an offline party trick; it held up in real time. One clear example: the decoded grip force in steady brain control tracked with a correlation around 0.84. In other words, when the model said “squeeze a bit,” the robot squeezed a bit, and when the model said “ease off,” it eased off—consistently.

Behavior followed the math. As training progressed, the percentage of successful trials climbed and trial times fell. And when they raised the stakes by putting the real robot in the loop—where the physics can surprise you—performance dipped at first and then rebounded, stabilizing after roughly seven sessions.

Critically, when the monkeys moved from pole control to pure brain control, their muscles went quiet. Electromyography in the wrist flexors, extensors, and biceps flattened out during brain-controlled runs. That silence matters.

It shows that the decoder wasn’t just piggybacking on covert muscle twitches; the brain was truly in the driver’s seat, guided by continuous visual feedback.

Now, where in the brain did the signal come from? Everywhere they looked helped. But some places helped more.

Neurons in the primary motor cortex were the single best source on their own, predicting about 73 percent of hand-position variance, 66 percent of velocity, and 83 percent of gripping force. The posterior parietal cortex was a close second for force, hitting roughly 73 percent there and providing solid velocity information, while the premotor, supplementary motor, and somatosensory cortices contributed usefully to position and velocity. The punchline is population.

Any single area, by itself, left performance on the table. Combining neurons across areas always helped, and adding neurons kept paying dividends—exactly what neuron-dropping analyses, where you intentionally withhold cells to see how accuracy erodes, are designed to show.

What kind of neurons you count also shapes the result. When the team compared spike-sorted single units to multiunits—those cluster-of-spikes signals you get without the fuss of sorting—single units did better, by roughly 17 to 20 percent across position, velocity, and grip-force predictions. But here’s the practical twist.

You can buy back that gap with channel count. About thirty additional multiunits compensated for using twenty single units when predicting hand position. And, crucially, the animals still achieved high brain-machine interface performance using multiunits alone.

For any device that aims to live in the clinic, where spike sorting can be brittle, that’s very good news.

All of this decoding is a means to an end: driving a physical machine. The engineers took a pragmatic route. The brain’s decoded velocity became the robot’s command.

That velocity was integrated into position and then passed through a gentle high-pass filter—around two hertz—to keep the virtual hand from drifting. Commands updated about every 60 milliseconds. The robot’s response lag, from brain estimate to physical motion, sat around 60 to 90 milliseconds.

Meanwhile, feedback stayed visual and continuous. Cursor position told the monkey where the robot hand was; the size of that cursor told the monkey how hard the gripper was squeezing. Fast enough to feel responsive. Simple enough to stay stable.

Learning didn’t just tune a set of weights in a computer. It reshaped the brain’s own patterns. During pole control, directional tuning—how strongly neurons prefer movements in particular directions—grew across the cortex.

When the switch flipped to brain control and the animal’s arm went still, that picture changed. About 68 percent of neurons showed reduced tuning depth, 14 percent didn’t budge much, and 18 percent actually became more tuned. Preferred directions, taken across the population, rotated in a consistent clockwise way as the animals practiced.

And neurons started moving together. Mean pairwise correlations crept up from about 0.02 to 0.06, strongest within motor and somatosensory cortex and prominent between motor and premotor areas. That’s a network knitting itself around a new task—the dynamics of a robot that’s now part of the loop.

You can see the payoff in the models’ anatomy over time. Early on, the primary motor cortex pulled the most weight for predicting hand position. With practice, the contributions from supplementary motor, premotor, and somatosensory cortices rose, approaching motor cortex levels.

It’s as if the brain started with its usual suspect and then recruited the rest of the frontoparietal team, distributing the job so the whole system could run more smoothly. By the end of training, hand-position predictions were consistently strong—around 0.75 correlation for horizontal position and 0.72 for vertical—and the matching velocity components sat around 0.70 to 0.71. Not perfect. But reliable, and good enough to move a real arm in the world.

A detail that’s easy to miss but tells you how much the loop matters: the linear models, once fixed, stayed stable over long runs. You might expect that as neurons drift a bit and attention waxes and wanes, performance would wander. It did, a little.

But under continuous visual feedback, the predictions held—grip force, in particular, stayed locked, with only transient hiccups. And in every task, brain-control performance beat a conservative random-walk baseline, a sanity check that says the decoder wasn’t just inflating confidence with noise.

It’s worth pausing on the equation again, not because the math is fancy, but because it explains the result. The output depends on a weighted history of neural activity. That history bridges the brain’s own dynamics—its natural rhythm of planning and execution—with the robot’s.

Using only past lags, and fitting the weights by ordinary least squares, the model learns the simplest mapping that works. And because the system commands velocity, which is more closely tied to instantaneous firing than absolute position, it stays agile. Ask any control engineer: if your plant—the robot in this case—introduces delay, commanding velocity often buys you smoother behavior.

Together, these pieces make a clear statement. A distributed frontoparietal network can learn to drive a multi-parameter brain-machine interface that controls a real, embodied robot, and it can do so without the body moving. Large ensembles matter, not just to raise accuracy, but to spread the work across areas that each carry a different slice of the signal.

Linear decoders, fed by short histories of activity, are enough to extract hand position, velocity, grip force, and even a meaningful chunk of muscle activity. And with continuous visual feedback, the brain reorganizes—tuning sharpens and then softens in the right places, correlations rise—to assimilate the robot as part of the action-perception loop.

If you’re thinking ahead to translation, the design lessons are pretty concrete. Record broadly and record many neurons. Favor velocity-based commands for responsiveness.

Keep the physical device in the training loop so the brain can learn its dynamics. And don’t insist on spike sorting if you can afford channels; multiunit signals can get you there. Carmena and colleagues didn’t just show brain control; they mapped the path to durable, body-inclusive neuroprostheses that respect how a brain actually learns.

There’s still room to grow—longer-term stability, richer hand shaping, and more natural feedback—but the direction is set. A brain can learn the quirks of a machine. A machine can close the loop fast enough to feel like part of the body.

And somewhere between those two facts is a future where reaching for a glass with a prosthetic hand feels less like commanding a device and more like, well, reaching.

More in Neuroscience