Reading time: about 7 minutes · 23 November 2026 · Nature, 2021

This paper shows that attempted handwriting, recorded from motor cortex in one person with spinal cord injury, can be turned into text in real time—fast enough to approach typical smartphone typing speeds in his age group.

Background

A brain–computer interface (BCI) reads brain activity and turns it into a command or a message, so a person can act or communicate without using their muscles in the usual way. This matters for people who have lost the ability to move or speak, for example after a high spinal cord injury, a brainstem stroke, or late-stage ALS. When nearly all voluntary muscles are paralyzed, even simple typing can become extremely slow or impossible.

Many communication BCIs have focused on relatively large, simple movements: reaching and grasping, or moving a computer cursor and clicking on letters. In a point-and-click speller, the person steers a cursor to a key, selects it, and then moves to the next key. That works, but each letter costs a complete aiming movement. In a prior intracortical study used here as a comparison, the best reported point-and-click rate was 40 characters per minute (Pandarinath et al., 2017).

Handwriting is a different kind of motor skill. Each letter is a short, shaped trajectory, and letters can be produced in a rapid sequence. If the brain still represents those intended pen movements after paralysis, a decoder might identify letters from neural activity more quickly than it can drive a cursor from key to key.

The recordings come from motor cortex, specifically the hand “knob” of the precentral gyrus—a region involved in preparing and controlling hand movements. After paralysis, this area can still carry the intention to move. The authors ask whether that remains true for a fast, highly dexterous skill such as handwriting, years after injury.

It is important to be precise about what is being decoded. The participant is not having arbitrary thoughts read out. He is asked to attempt handwriting: to try to write as if his hand were not paralyzed, imagining that he is holding a pen on a piece of ruled paper. The interface translates those attempted writing movements into text. It does not read silent speech, inner monologue, or whatever else he might be thinking.

Intracortical here means the electrodes sit in the cortex itself. Two 96-electrode arrays were placed in the left (dominant) hand knob. Each electrode can pick up nearby neural spikes. The paper uses multiunit threshold crossings: brief voltage events that cross a threshold, counted in short time bins as a measure of local firing.

Problem

The practical problem is speed and ease of communication. Existing intracortical point-and-click typers had not exceeded 40 characters per minute. Many other spellers are slower still, or they depend on flashing visual targets that occupy the eyes and are not fully self-paced.

The scientific problem underneath is whether rapid, dexterous attempted handwriting is still encoded clearly enough, years after paralysis, to support real-time text. If the neural patterns of different letters are distinct, a decoder might classify them directly instead of reconstructing a two-dimensional cursor path and waiting for a click.

Two technical difficulties follow. First, because the participant’s hand was paralyzed, the researchers could not see when each letter started and ended in the training data, so they could not simply pair neural snippets with letter labels in the usual supervised way. Second, the amount of data was modest by the standards of recurrent neural networks, so the model could easily overfit—that is, memorize the training sentences instead of learning to decode new ones.

Method

The decoder is a recurrent neural network (RNN): a model that takes a sequence of inputs and keeps an internal memory of what has just happened, which is useful when letters unfold over time. The authors used a two-layer gated recurrent unit (GRU) network, a common RNN design that is good at keeping useful information over short stretches of time. Neural activity on each electrode was binned and smoothed in 20-millisecond steps. The network turned this time series into, at each moment, a probability for each of 31 characters and a “new character” probability that rises when a new letter appears to begin. The top layer ran more slowly, and the network updated its outputs every 100 milliseconds. A one-second output delay gave the network time to see a whole character before naming it.

For real-time use, those probabilities were thresholded. When the new-character probability crossed a threshold at time t, the most likely character at t + 0.3 seconds was printed on the screen. This is the raw online output. Separately, and only offline, a large-vocabulary language model (a custom 50,000-word bigram model, which scores how often one word follows another) could be applied to the same probabilities, like an autocorrect. A further offline analysis trained a bidirectional RNN that could look at an entire sentence at once, which is not how a live letter-by-letter interface works.

The character set had 31 symbols: the 26 lowercase English letters, plus comma, apostrophe, question mark, period (written as “~”) and space (written as “>”). The participant printed each character, not in cursive, and stacked each new character on top of the previous one, as if writing in place.

To train the network despite unknown letter timings, the authors adapted methods from speech recognition. They built templates from isolated letters, used hidden Markov models to estimate when each letter occurred in a sentence, and cut and rearranged neural snippets to make synthetic training sentences. A day-specific affine transform—a simple linear adjustment of the neural features—helped the same network absorb day-to-day changes in the recordings.

Experiments

All results come from one participant, identified as T5: a right-handed man, 65 years old at the time of data collection, with a C4 AIS-C spinal cord injury. He was paralyzed from the neck down; hand movements were limited to twitching and micromotion. The arrays had been implanted in August 2016; the sessions reported here were collected about 994 to 1,246 days after implant.

In isolated-character sessions, T5 attempted one character at a time from an on-screen prompt. These data were used to visualize neural patterns, reconstruct pen trajectories, and test offline classification.

In copy typing, T5 copied sentences shown on the screen, letter by letter, at his own pace, while decoded characters appeared in real time (after an estimated delay of 0.4–0.7 seconds once a character was completed). Evaluation ran over five days, each with four blocks of 7–10 sentences the decoder had never been trained on. Before the first evaluation day, 242 sentences from three pilot days were used for training. On later days, additional calibration sentences were collected, reaching 572 training sentences by the last day (7.3 hours, 30.4 thousand characters). There was no backspace; if a letter was wrong, he was asked to keep going.

In free typing, on two further days, T5 used the same interface to type answers to open-ended questions, so the sentences were self-generated rather than copied.

The main speed metric is characters per minute. The main accuracy metric is character error rate, the edit distance—insertions, deletions, and substitutions needed to match the intended text—divided by the number of characters. Word error rate counts a word as wrong if any of its characters is wrong, so it is typically higher. The headline online numbers are the raw, thresholded output. Language-model and bidirectional-RNN numbers are offline analyses.

The authors also compared, in a controlled analysis, 16 letters with 16 attempted straight-line movements, to test whether temporally richer letter trajectories are easier to tell apart than the point-to-point motions a cursor decoder relies on.

Results

Neural patterns of attempted letters

The activity associated with each letter was strong and repeatable. After aligning trials in time, each character had a distinctive pattern. A linear decoder, trained with each character held out, could reconstruct recognizable pen-tip trajectories from trial-averaged activity; the neural dimensions related to pen-tip velocity accounted for 30% of the total variance. A two-dimensional visualization (t-SNE) showed tight clusters, with letters that are written similarly sitting closer together. An offline k-nearest-neighbor classifier identified isolated characters with 94.1% accuracy (95% CI 92.6–95.8). This 94.1% is a letter-classification result on isolated characters, not the later sentence-typing accuracy.

Figure 1. Neural patterns of attempted handwriting. (A) Participant T5 attempted one character at a time, following an on-screen prompt. (B) The top three principal components of neural activity for the letters d, e and m, each repeated 27 times. (C) After time-warping to remove changes in writing speed, each letter has a consistent, distinctive pattern. (D) Intended pen-tip velocity, linearly decoded from neural activity with each character held out, yields recognizable letter shapes; orange circles mark the start of each trajectory. (E) A t-SNE map of single trials: similarly written characters lie closer together. From Willett et al., 2021, Figure 1.

Figure 1. Neural patterns of attempted handwriting. (A) Participant T5 attempted one character at a time, following an on-screen prompt. (B) The top three principal components of neural activity for the letters d, e and m, each repeated 27 times. (C) After time-warping to remove changes in writing speed, each letter has a consistent, distinctive pattern. (D) Intended pen-tip velocity, linearly decoded from neural activity with each character held out, yields recognizable letter shapes; orange circles mark the start of each trajectory. (E) A t-SNE map of single trials: similarly written characters lie closer together. From Willett et al., 2021, Figure 1.

Real-time copy typing

On held-out sentences, raw online decoding was already readable. Typing speed plateaued at 90 characters per minute, with a 5.4% character error rate on those later blocks (the average of the last day’s points in Figure 2c). Across all five evaluation days, the raw online character error rate was 5.9% (95% CI 5.3–6.5). That is the 94.1% raw online accuracy reported in the abstract: 100% minus 5.9%. The corresponding word error rate was 25.1%.

When a language model was applied offline to the same online probabilities, the character error rate fell to 0.89% (95% CI 0.61–1.2) and the word error rate to 3.4% (2.5–4.4)—greater than 99% character accuracy after this simulated autocorrect. A fully offline bidirectional RNN plus language model reached a 0.17% character error rate, a performance ceiling that would not provide letter-by-letter feedback.

The 90-character-per-minute rate can be compared with typical smartphone typing in the participant’s age group (115 characters per minute; Palin et al., 2018) and with the prior intracortical point-and-click record of 40 characters per minute (Pandarinath et al., 2017).

Decoder Character error rate [95% CI] Word error rate [95% CI]
Raw online output 5.9% [5.3, 6.5] 25.1% [22.5, 27.4]
Online output + offline language model 0.89% [0.61, 1.2] 3.4% [2.5, 4.4]
Offline bidirectional RNN + language model 0.17% [0, 0.36] 1.5% [0, 3.2]

Mean error rates across all five copy-typing days (Willett et al., 2021, Table 1). The abstract’s 94.1% raw online accuracy is 100% minus the 5.9% character error rate.

Figure 2. Real-time decoding of attempted handwriting. (A) Neural activity is binned every 20 ms and passed through an RNN that outputs character probabilities and a “new character” signal; thresholding those probabilities produces the raw online text, while a language model can be applied offline. (B) Two example held-out sentences: raw output is already understandable, with errors marked in red and spaces shown as “>”. (C) Over five days, copy-typing speed plateaus at 90 characters per minute, more than twice the prior intracortical point-and-click rate; open squares show lower error rates after the offline language model. From Willett et al., 2021, Figure 2.

Figure 2. Real-time decoding of attempted handwriting. (A) Neural activity is binned every 20 ms and passed through an RNN that outputs character probabilities and a “new character” signal; thresholding those probabilities produces the raw online text, while a language model can be applied offline. (B) Two example held-out sentences: raw output is already understandable, with errors marked in red and spaces shown as “>”. (C) Over five days, copy-typing speed plateaus at 90 characters per minute, more than twice the prior intracortical point-and-click rate; open squares show lower error rates after the offline language model. From Willett et al., 2021, Figure 2.

Free typing

When T5 answered open-ended questions, the rate was 73.8 characters per minute, with an 8.54% raw online character error rate and 2.25% after the offline language model. The previous state of the art for free typing with an intracortical BCI was 24.4 correct characters per minute (Pandarinath et al., 2017).

Retraining with less daily data

The online results above used about 50 calibration sentences each day. Offline simulations of the copy-typing data found that 10 sentences (8.7 minutes) yielded an 8.5% raw error rate (1.7% with a language model), while 30 sentences were needed to match the 5.9% raw online rate. When sessions were only 2–7 days apart, even no retraining gave an 11.1% raw error rate (1.5% with a language model). Unsupervised retraining that used a language model to correct and update the decoder reached 7.3% raw error (0.84% with a language model) for sessions separated by 7 days or less. Neural patterns for each character were relatively stable over a week (mean correlation 0.85 when sessions were 7 days apart or less). These retraining numbers are offline simulations, not new online tests.

Figure 3. Performance when daily retraining is shortened or left unsupervised. (A) Offline simulations reduce the original 50 calibration sentences: 10 sentences already reach a low language-model-corrected error rate, while 30 sentences are needed to match the 5.9% raw online rate. Lines are means; shading is 95% confidence intervals. (B) When two sessions are closer in time, less calibration is required; unsupervised retraining also keeps error rates low if the gap is 7 days or less. From Willett et al., 2021, Figure 3.

Figure 3. Performance when daily retraining is shortened or left unsupervised. (A) Offline simulations reduce the original 50 calibration sentences: 10 sentences already reach a low language-model-corrected error rate, while 30 sentences are needed to match the 5.9% raw online rate. Lines are means; shading is 95% confidence intervals. (B) When two sessions are closer in time, less calibration is required; unsupervised retraining also keeps error rates low if the gap is 7 days or less. From Willett et al., 2021, Figure 3.

Analysis

The 90-character-per-minute copy-typing rate, and the 94.1% raw online accuracy averaged across the five copy days, describe real-time performance in one person, T5, writing prompted sentences. The jump to greater than 99% character accuracy comes from an offline language model, not from what appeared on the screen during the session. Free typing, which is closer to everyday use, was slower and had a higher raw error rate, though it still far exceeded the previous intracortical free-typing benchmark.

The comparison with cursor typing is about more than practice or motivation. In point-and-click BCIs, speed is raised by turning up cursor gain until decoding errors make the cursor hard to control. Handwritten letters, the authors argue, may simply be easier to tell apart, because they have richer time-varying shapes than straight point-to-point movements.

They tested this with 16 letters and 16 straight-line movements. Nearest-neighbor distances between neural patterns were 72% larger for letters than for lines (95% CI 60–86%). Spatial dimensionality was only modestly higher for letters (1.24 times; 95% CI 1.19–1.30), but temporal dimensionality was 2.65 times higher (2.58–2.72). In a small toy model, adding a bend in time was enough to push trajectories farther apart and improve classification when noise was high. This is a reason handwriting may be fundamentally easier to decode than cursor-like point-to-point motion; the authors treat it as one important factor, not necessarily the only one.

Figure 4. Why temporally rich movements can be easier to decode. (A, B) Neural patterns for 16 handwritten characters are compared with 16 straight-line movements. (C) Letters have larger nearest-neighbor distances, so they are less easily confused. (D) In a noise simulation, letters remain easier to classify. (E) Spatial dimensionality is similar, but temporal dimensionality is more than twice as high for letters. (F–H) A toy example with two hypothetical neurons: adding a bend in time increases nearest-neighbor distances and classification accuracy. From Willett et al., 2021, Figure 4.

Figure 4. Why temporally rich movements can be easier to decode. (A, B) Neural patterns for 16 handwritten characters are compared with 16 straight-line movements. (C) Letters have larger nearest-neighbor distances, so they are less easily confused. (D) In a noise simulation, letters remain easier to classify. (E) Spatial dimensionality is similar, but temporal dimensionality is more than twice as high for letters. (F–H) A toy example with two hypothetical neurons: adding a bend in time increases nearest-neighbor distances and classification accuracy. From Willett et al., 2021, Figure 4.

What the evidence supports, then, is this: years after paralysis, attempted handwriting in this participant’s motor cortex is still richly patterned; those patterns can be decoded, letter by letter, into general-purpose text in real time; and the geometry of those patterns helps explain why this approach can outrun a two-dimensional cursor.

Summary

  • In one participant with cervical spinal cord injury, attempted handwriting—not the readout of arbitrary thoughts—was decoded from motor cortex and turned into text in real time.
  • On copy-typing days, speed plateaued at 90 characters per minute. Raw online accuracy across five days was 94.1% (a 5.9% character error rate). An offline language model raised character accuracy above 99% (0.89% character error rate).
  • Free answers to open-ended questions reached 73.8 characters per minute, with 8.54% raw and 2.25% language-model-corrected character error rates.
  • Letters were more separable than straight-line movements, largely because their neural patterns varied more over time, which helps explain why handwriting can be easier to decode than point-and-click cursor typing.

References and resources