Inner Speech in Motor Cortex

Your silent inner voice leaves the same word pattern in motor cortex as spoken effort, only smaller. A decoder can read it on purpose and stay silent when you want privacy.

Switch between attempted and inner speech, then take out the motor-intent dimension and watch the two rings collapse together. Then we build, piece by piece, how Kunz and colleagues recorded this, decoded it, and locked it.

You need a feel for what a spike is (one electrical pulse from one nerve cell) and a little geometry. We build the rest from zero.

Paper: Kunz, Krasa, Kamdar, Avansino, Hahn, Yoon, Singh, Nason-Tomaszewski, Card, Jude, Jacques, Bechefsky, Iacobacci, Hochberg, Rubin, Williams, Brandman, Stavisky, AuYong, Pandarinath, Druckmann, Henderson and Willett, “Inner speech in motor cortex and implications for speech neuroprostheses”, Cell 2025 (open access, PMC12360486). This lesson is a reading of the lecture Measuring a BCI.

Compare attempted and inner speech

45%

Toy geometry, not the paper’s data: seven word points on a ring, noise 0.35, 30 simulated trials per word and behavior, a nearest-centroid classifier trained on half of them. The paper reports the same shape: inner speech is a scaled-down copy of attempted speech (Fig 2D), and the offset between behaviors is comparable to or larger than the word differences (Fig 6E).

Chapter 0

Why a Silent Voice Matters

See why a device that reads speech from the brain raises a hope and a fear in the same breath

Picture a woman who has lived with ALS for years. Her mind is sharp. Her mouth no longer forms clear words. Doctors implanted tiny sensor grids in the speech part of her brain. Today she sits at a screen and a sentence appears on it: I need good music. She did not type it or say it. She tried to say it, and a computer read the effort from her brain.

That is a speech brain-computer interface, or speech BCI: a device that reads the brain signals behind speech and turns them into text or sound. The earlier lessons in this series built the parts. The speech neuroprosthesis paper showed that it works, and the streaming voice paper made it fast.

But there is a catch. These devices ask the user to attempt speech: to try, as hard as possible, to move the lips, tongue and breath. That is tiring. It can also be slow, because the body limits how fast a person can try. So a natural question follows. What if the person only imagined the words?

Two questions in one paper

Imagining words in your head without moving is inner speech. It is the quiet voice you hear when you read, plan or rehearse a phone call. Researchers also call it imagined speech, covert speech or self-talk. The paper by Erin Kunz and colleagues, published in Cell in 2025, asks two questions about it.

The first is a hope. If inner speech lives in the same brain area as attempted speech, a BCI could decode it. The user would need less effort and could look more natural to others. This is the comfort question.

The second is a fear. If the device can read inner speech on purpose, can it also read it by accident? Many people have an inner monologue they never mean to share. A speech BCI that leaks it would break what researchers call mental privacy. This is the privacy question.

Who took part

Four people volunteered in the BrainGate2 clinical trial. The paper calls them T12, T15, T16 and T17. Each had microelectrode arrays implanted: small silicon grids, each 1.5 mm long, with 64 electrodes that listen to nearby nerve cells. Most arrays sit along the precentral gyrus (T12 also had two in a nearby frontal area), the ridge of cortex that controls movement, including the muscles of speech. This area is called motor cortex.

ParticipantConditionArrays in precentral gyrusWhat they could do
T12ALS, bulbar onset2Partial vocalizing, unintelligible to strangers
T15ALS4Severe dysarthria, no limb use
T16Pontine stroke4Slow, quiet, limited face movement
T17ALS, ventilator dependent6Anarthric: only eye muscles move

Source: Results and STAR Methods of the paper. Dysarthria means speech muscles are weak and slurred. Anarthria means no usable speech at all.

The four findings

The paper gives four answers. Each one has its own chapter, and the hero at the top of this page plays with the first three.

  1. How the signal is recorded: spikes become 128 numbers per array, every 10 or 20 ms.
  2. A spectrum of speech: attempted, inner, heard and read words all show up in motor cortex.
  3. A shared code: inner speech is a smaller copy of attempted speech, not a separate code.
  4. The inner speech BCI: a recurrent network and a language model decode imagined sentences live.
  5. Free thought: some uninstructed inner speech, during recall and counting, can be decoded.
  6. The motor-intent dimension: one direction in neural space tells trying from imagining.
  7. Keeping thoughts private: silence training and a keyword lock.
  8. Field guide: numbers, code and what comes next.

The hero shows the idea in one picture. The warm ring is the pattern of seven words during attempted speech. The purple ring is the same seven words imagined. It has the same shape, but it is smaller and shifted. The shift is the motor-intent dimension. Slide it away and the two rings sit on top of each other, so telling them apart gets harder. That is what lets a designer choose: keep the shift so the device knows when you mean to speak, or use it to keep thoughts out.

What are the two questions this paper asks about inner speech?

Chapter 1

From Voltage to Numbers

Follow the raw electrode signal until it becomes the feature table every later chapter uses

Hold a microphone above a football crowd. You do not hear one fan. You hear a roar, and now and then one loud shout. An electrode in the brain works the same way. It sits among thousands of nerve cells and picks up a hiss of far-off activity, plus a sharp blip when a nearby cell fires.

That blip is a spike, a pulse of voltage that lasts about a millisecond. A nerve cell, or neuron, sends a spike to talk to the next cell. When the brain plans a word, the neurons that drive the lips and tongue spike more often or less often. The BCI reads that rate. The lesson The Spike builds the idea from zero, and Spike Detection covers the methods in depth.

The signal chain

The paper records with Utah-style silicon arrays from Blackrock Microsystems. Each array has 64 electrodes. The path from electrode to number has four steps, and each step has a reason.

  1. Analog filter and digitize. A 4th-order Butterworth filter keeps 0.3 Hz to 7.5 kHz. The system then samples the voltage 30,000 times per second, with a resolution of 250 nV.
  2. High-pass at 250 Hz. Slow waves swamp spikes, so a filter removes everything below 250 Hz. The paper applies it on each electrode with a 1 ms or 4 ms delay.
  3. Linear regression referencing (LRR). Noise that hits many electrodes at once, such as a loose cable, is predicted from the other electrodes and subtracted.
  4. Two features per electrode, per bin. Every 10 ms or 20 ms the system computes a threshold crossing count and a spike band power.

A threshold crossing is a count of how many times the voltage dips below a line. The line is set at 3.5 or 4.5 times the standard deviation (SD) of the voltage. The SD measures how big the usual noise wiggle is. A dip of 4.5 SDs is rare for noise, so it is probably a spike. Spike band power is the sum of the squared voltages inside the bin. Loud activity gives a big number even if no single dip crossed the line.

cb
The threshold crossing count for bin b: how many times the voltage first dips under the line inside that bin.
v[n]
The filtered voltage at sample number n. At 30 kHz, a 20 ms bin holds 600 samples.
kσ
The threshold: k times the noise SD σ. The paper uses k = 3.5 or 4.5, so the line is at −3.5σ or −4.5σ.
pb
The spike band power of bin b: each squared sample, added up.

Why not find each neuron exactly? That job is called spike sorting (Spike Sorting). The paper skips it. It cites earlier work showing that crossing rates and spike band power decode about as well as sorted single neurons. They are also cheap and work online.

Move the threshold line

The trace is 100 ms of toy voltage with 8 real spikes hidden in noise. Drag the threshold from 2 to 8 SDs. Green rings are real spikes found, red crosses are noise counted as spikes, grey rings are missed spikes. The bars show the two features for each 20 ms bin.

−4.5 SD

Toy data, seeded: Gaussian noise with SD 1, eight spikes with peak depths from 3.9 to 9 SDs, a 1 ms refractory rule. The paper’s thresholds are −3.5 or −4.5 SD (STAR Methods, Neural signal processing).

Worked example: one electrode, one bin

Say the noise SD is 10 µV (a made-up value). At k = 4.5 the line sits at −45 µV. In one 20 ms bin the electrode records 600 samples. Two dips reach −52 µV and −61 µV and each crosses the line once. So c = 2. The sum of the 600 squared samples might be 71,000 µV², which is p. That electrode contributes the pair (2, 71,000) to this bin.

Do the same for all 64 electrodes and you get 64 counts + 64 powers = 128 features per array per bin. In one second of 20 ms bins, an array produces a table of shape [50, 128]. A participant with four arrays could give up to 512 features per bin. Every later chapter starts from this table.

Cleaning for drift

Firing rates on a microelectrode array wander over minutes and hours. Cells move a little, and electrode contact changes. This is nonstationarity: the average level is not stable. If you ignore it, a decoder may learn the time of day instead of the word.

The paper's fix has two steps. Inside each recording block, for each electrode, subtract the block's mean crossing rate and mean spike band power. Then divide by the SD, so loud electrodes do not dominate. This leaves the changes around the baseline. Chapter 6 shows why this fix has a hidden cost: it also erases real baseline differences between behaviors unless the behaviors are mixed inside each block.

The failure mode

The symptom: a rest recording shows a busy electrode when the person is doing nothing. The measurement: count crossings in a rest block, where almost no real spikes should occur. The fix: raise the threshold, or set it from a diagnostic block recorded at the start of each session, which is what the paper does for its thresholds and LRR coefficients.

You lower the threshold from −4.5 SD to −2.5 SD. What happens to the crossing counts?

Chapter 2

One Word, Seven Ways

Learn how the study asked each person to use a word in seven ways, and how a simple classifier showed the brain tells them all apart

Imagine a researcher shows you the word “were”. First she asks you to say it out loud. Then to mouth it with no sound. Then to imagine saying it, in three different ways. Then to hear it played. Then to just read it. The brain activity behind these seven acts is the raw material of the paper.

The seven behaviors are: attempted vocalized speech, attempted mimed speech, three kinds of inner speech, listening and silent reading. The three inner speech kinds come from how people describe their own inner voice. In motoric inner speech you imagine moving your mouth. In first person auditory inner speech you hear your own voice in your head. In third person auditory inner speech you hear someone else’s voice.

The task: plan, then go

The word set was small on purpose: seven common single-syllable English words, similar in length, with no shared sounds, and spread across the mouth’s positions and manners. Repeating a few words many times gives clean averages. Common words matter too, because a person with ALS practiced them for decades before the disease.

The trial uses an instructed-delay task. A text cue appears above a red square. The red square means: do nothing yet. This is the delay, where the brain plans. When the square turns green and the text disappears, the person performs the behavior. This is the go period. Listening and reading have no delay: the word just plays or appears.

Why split plan from go? Because the plan can be read before any movement. A device that works on the delay period works for people who cannot move at all.

A classifier that is simple on purpose

To ask “which word was it?” the paper uses a Gaussian naive Bayes (GNB) classifier. Think of seven piles of past trials, one per word. For each electrode feature, each pile has an average and a spread. A new trial is scored against every pile, and the best-fitting pile wins.

The formula uses two simplifying ideas. “Gaussian” means each feature in a pile is a bell curve. “Naive” means we treat features as independent, so we can just add their log scores.

ŵ
The predicted word. The hat means “our guess”.
log πw
The log of the prior: how likely word w is before we look at the brain. With seven equal words, every prior is 1/7, so it does not change the winner.
log N(xj; μwj, σ2wj)
How well the value xj of feature j fits word w’s bell curve, which has centre μwj and spread σ2wj. Expanded, it is −½ log(2πσ2) − (x − μ)2 / (2σ2).

Worked example with three words and two features. Say the piles have centres A = (2, 0), B = (0, 2) and C = (−1, −1), all with spread 1. A new trial reads x = (1.5, 0.5). The squared distances to the centres are 0.5 for A (since 0.52 + 0.52), 4.5 for B and 8.5 for C. With equal spreads the log score is a constant minus half the distance, so the scores are −0.25, −2.25 and −4.25 plus the same constant. Turning these into probabilities gives 87% for A, 12% for B and 2% for C. A wins.

Classify seven toy words

The matrix shows what the classifier said (columns) for each true word (rows). A bright diagonal means correct. Drag the signal strength and the number of electrode features. Watch accuracy cross the chance line.

0.30
64

Toy data, seeded: 20 training and 30 test trials per word, word centres drawn at random and scaled by the signal strength, noise SD 1. The interval is exact binomial (Clopper-Pearson), the paper’s method. Chance is 1/7 = 14.3%.

What the paper found

Before decoding, the paper smooths each feature with a 60 ms Gaussian kernel and averages over a 500 ms window. Which 500 ms? The best start time differs by behavior and person. The authors choose it inside nested cross-validation: an inner 10-fold loop picks the start time on the training data only, and the outer fold scores it on data it never saw. Without the nesting, picking the best window on all the data quietly inflates accuracy.

The result (Figure 1): in three participants, arrays in the lowest part of area 6v (called i6v) decoded the words above chance (14.3%) in all seven behaviors. Inner speech, listening and reading are all present in the precentral gyrus. Some numbers stand out:

One worry: the words differ in length, so maybe the classifier just reads duration. The authors checked. They measured each word’s duration with a text-to-speech voice and tested whether pairs of words that differ in length also differ more in neural activity. Across all arrays and behaviors, tuning to length did not predict decoding accuracy (p = 0.25). A shorter 360 ms window gave broadly similar results. So the classifier uses what each word sounds and moves like, not how long it lasts.

Why does the paper pick the 500 ms window inside nested cross-validation?

Chapter 3

The Same Code, Turned Down

Measure how alike attempted and inner speech are, and how much smaller the inner copy is

Two choirs stand in a hall. One sings loudly. The other sings quietly. Are they singing the same song at a lower volume, or two different songs? The paper asks the same thing of the brain. The loud choir is attempted speech. The quiet choir is inner speech.

The answer matters for safety. Inner speech must not make your mouth move. If the brain keeps it in a separate place, the BCI could be built to ignore that place. If the brain uses the same place and only turns it down, the BCI could read it by mistake. The paper states the two ideas as hypotheses.

Neural space, in two minutes

For one array, one word and one trial, Chapter 1 gave you a vector of 128 numbers: fw,i ∈ R128. Treat it as a point in a 128-dimensional space. Each word is a spot in that space. Seven words make seven spots. Two behaviors make two sets of seven. The questions become geometric. Do the two sets have the same shape? Is one just a smaller copy of the other? PCA lets us look: it finds the three directions with the most spread and draws the points in those three. Researchers call the loop through the seven words a “word ring”.

Two measurements

The first measurement is correlation: do the same words sit in the same places in both behaviors? The paper first subtracts the average over the seven words inside each behavior. That removes any overall offset and keeps only the word-to-word pattern. Then it correlates the patterns. A value near 1 means the same pattern. Near 0 means unrelated.

There is a trap. Real data is noisy, and noise makes the usual correlation too small. The usual formula divides by the length of each pattern. Noise adds length, so the denominator grows while the top does not. The estimate is pulled toward zero even when the true value is 1. The paper uses a cross-validated estimator that fixes this. It splits the trials into two halves, A and B, and measures the length of a pattern with one half against the other half. The noise in A and B is independent, so it cancels.

rcv
The bias-reduced correlation between attempted and inner speech patterns. It can exceed 1 when the data is very noisy, which the authors read as “the true value is near 1”.
½(aA·iB + aB·iA)
The overlap between attempted pattern a and inner pattern i, always taken between different halves of the trials. The dot means: multiply feature by feature and add.
(aA·aB)(iA·iB)
The squared length of each pattern, measured across halves so noise does not inflate it.

The second measurement is neural distance. For each behavior, take every pair of the seven words and measure the straight-line distance between their average patterns. Average these 21 distances. Divide by the same number for attempted vocalized speech, which was the largest. The result is the behavior’s relative size: 1.0 means as big as attempted speech. The same cross-validation trick makes this unbiased.

Measure a smaller copy

Inner speech here is built as an exact scaled-down copy of attempted speech, so the true correlation is 1. Add noise and watch the usual measurements drift while the cross-validated ones stay near the truth.

45%
3.0

Toy simulation, seeded: 128 features, 7 words, 10 trials per word split into halves A and B. The attempted patterns are random; the inner patterns are the same patterns times the true size. The paper uses the estimators of its reference 83 (Willett et al. 2023); this device shows the split-half idea in simple form.

What the paper found

Figure 2A shows a correlation matrix across behaviors. The strong off-diagonal bands mean each word is encoded alike in all behaviors, including listening and reading. Across the arrays that responded to inner speech (Figure 2B), correlations were high. The one exception was one of T17’s s6v arrays. Word-to-word structure is shared: for example, the words “though” and “were” correlate positively, while “though” and “ban” correlate negatively, in every behavior.

Figure 2C puts the points in the top three PCA directions, fitted on attempted speech. Word rings for vocalized, mimed and inner speech have the same layout. Figure 2D shows the sizes: inner and perceived speech are scaled down relative to attempted speech, which had the largest modulation. The paper says this supports the activation-threshold hypothesis for why listening, reading and inner speech do not move the mouth. Chapter 6 adds a twist: there is a second thing that separates them.

One result stands out. T17 cannot move anything but the eyes. His correlations and size differences look like those of the people who can still partly speak. So even with no speech output at all, the brain still produces a clear difference between trying and imagining.

The take-away. Inner speech is not stored in a hidden corner. It is the same pattern as attempted speech, drawn smaller. That is good news for a BCI that wants to read it and a warning for one that does not.

Why does the paper use a cross-validated correlation instead of the usual formula?

Chapter 4

Turning Imagined Sentences into Text

Follow one imagined sentence through the network and the language model, and learn how word error rate counts mistakes

T16 sits in front of a screen. A text cue appears: a sentence from a phone-call corpus. She imagines saying it, with no movement and no sound. Seconds later, words appear below the cue. Some are right. Some are not. This is the proof-of-concept inner speech BCI of the paper: a system that decodes self-paced imagined sentences live, from a vocabulary of 125,000 words.

Chapter 3 said inner speech looks like attempted speech, only smaller. That is why the team could reuse the decoder from their earlier speech BCI papers (the speech neuroprosthesis and the streaming voice BCI). Only the training data changed.

The pipeline, step by step

  1. Features in. Every 10 or 20 ms the system produces 128 numbers per array (Chapter 1). A 4 s sentence gives a long table of shape [T bins, 128 × arrays].
  2. A recurrent network. A 5-layer stacked GRU (RNN and GRU) reads the table in order and keeps a memory of what came before. Every 80 ms it outputs a probability for each of 39 phonemes and a silence token. A phoneme is a basic speech sound, like the “n” in “need”. So a 4 s sentence gives about 4000 / 80 = 50 frames of 40 probabilities: [50, 40].
  3. A language model. An n-gram model scores which word sequences are likely English. It was built with Kaldi from the OpenWebText2 corpus, with a 125,000-word dictionary (CMU), and runs as a weighted finite-state transducer, a graph that maps phoneme strings to candidate sentences in real time. For T15 a pretrained transformer language model (OPT) rescored the final candidates.
  4. Words out. The best sentence appears on screen and is spoken by text-to-speech.

One design choice matters. Each recording session has its own tiny input layer at the front of the network. The rest of the network is shared. Neural signals drift from day to day (Chapter 1), and the per-day layer absorbs the drift. This lets the team train on attempted speech from earlier days together with today’s inner speech, without hurting inner speech accuracy.

Learning without timing labels

To train the network you need to know which phoneme goes with which 80 ms frame. For healthy speakers you can record the voice and align it. These participants cannot make intelligible speech, and imagined speech makes no sound at all. So the paper uses the CTC loss (connectionist temporal classification). CTC only needs the target phoneme list, not when each phoneme happened.

CTC works by counting every possible alignment. A frame-by-frame path of labels is turned into a phoneme string by two rules: merge repeats, then delete silence. Many paths give the same string. CTC adds up the probability of all of them.

P(y | x)
The probability that the network, given neural features x, produces the target phoneme string y. Training makes this big; the loss is its negative log.
π ∈ B−1(y)
Every frame-by-frame path π that collapses to y. B is the collapse rule: merge repeats, then drop silence.
pt(πt)
The network’s probability, at frame t, for the label that path π uses there. Multiply along the path, add across paths.

A tiny case: three frames, target “a”, and a gap symbol. At every frame the network gives “a” 0.6 and gap 0.4. Six paths collapse to “a”. Three have one “a” (such as a-- and -a-), each worth 0.6 × 0.4 × 0.4 = 0.096, total 0.288. Two have two “a”s (aa- and -aa), each 0.144, total 0.288. One is aaa, worth 0.216. Add them: 0.792. The path a-a is not counted: it collapses to “aa”.

Decode one imagined sentence

The target sentence is “I need good music”. Pick what the network’s frames looked like. Step through the collapse, then switch the language model on and off and watch the word error rate.

Illustrative: the frame rows and the outputs with and without the language model are made up to show how collapsing and error counting work. The sentence and its phoneme labels come from the paper’s keyword example (STAR Methods). The device uses SIL as the gap symbol of CTC for clarity.

Word error rate

The score is word error rate (WER): the smallest number of word changes that turn the decoded sentence into the target, divided by the target length. A change is a substitution (wrong word), a deletion (missing word) or an insertion (extra word).

WER
Word error rate. It can pass 100% if the decoder adds many extra words.
S + D + I
Substitutions, deletions and insertions in the best alignment of the two sentences.
N
The number of words in the target sentence. The paper sums errors over all sentences first, then divides by the total N, so short sentences do not count too much.

What the paper found

Training used up to one hour of cued inner speech from that day plus earlier attempted speech. Each person chose the inner speech style they could do most steadily: T12 used motoric inner speech, T16 used first person auditory, and T15 used motoric for the 50-word test and a hybrid for the large vocabulary. He imagined moving his mouth and hearing a well-known actor’s voice.

SettingWord error rate (95% CI)Note
T12, 50 words24% (18.5 to 28.0)Motoric inner speech
T15, 50 words14% (9.9 to 20.2)Motoric inner speech
T16, 50 words33% (21.8 to 41.1)First person auditory
T15 and T16, 125,000 words26% (15.5 to 32.3) up to 54% (42.5 to 65.3)Range over three sessions
T16 example block, 125,000 words52% (42.1 to 61.8)Shown in Fig 3C

Word error rate with 95% bootstrap intervals, from the Results text and the Figure 3 caption. The text gives the large-vocabulary range without naming which session is which. The three sessions used 15, 29 and 25 evaluation sentences.

Two more checks. First, a decoder trained only on attempted speech still decoded inner speech above chance for all three people (Figure 3E). Second, with the same sentences recorded both ways, attempted speech decoded better for T15 and T16 and about the same for T12. Inner speech is easier on the user and somewhat less accurate.

A decoded sentence has 5 words. The target has 4 words. Two words are substituted and one extra word is inserted. What is the WER?

Chapter 5

Can the Device Overhear You?

Test whether inner speech that nobody asked for leaves a readable trace, and learn how to judge that evidence

So far every inner word was requested. A cue said “imagine saying this” and the person did. But a privacy worry is about the other inner speech: the quiet running commentary nobody asks for. You mutter a phone number to yourself so you will not forget it. You count items one by one. Does a speech BCI pick that up?

The authors cannot read minds, so they design tasks where inner speech is a likely side effect and then look for it with a decoder. They never tell the person to talk to themselves. Each task has controls that remove the explanation “it is just hand movement” or “it is just chance”.

Task 1: remembering a sequence

T12 sees three arrows, then the arrows vanish, then she moves a joystick in those three directions from memory. Nothing says how to remember them. The authors guess that many people would quietly say “up, right, up” to themselves, as a mnemonic. That would put the sequence in speech cortex.

To test one position at a time, they train a binary decoder on pairs of sequences that differ in a single place, such as ↑→↑ against ↓→↑ for the first place. The tool is linear discriminant analysis (LDA): it draws the best straight dividing line between two clouds of points, using their average and shared spread. The input is the threshold crossing counts summed over the 2 s before the go cue, a 64-number vector per array. Five-fold cross-validation scores the decoder. If accuracy is above 0.5, the brain activity in that area carries the arrow at that position.

Result: in area i6v all three positions were decodable. But hand-motor planning could cause this too. So there are two controls with the same hand movement or a similar plan:

Then came a direct test. T12 repeated the task, once told to use a verbal strategy and once a visual one. Her recall accuracy was 100% both ways. With the verbal strategy, tuning rose at every position in i6v. Last, decoders trained on attempted speech of the direction words worked above chance on her verbal-strategy delay activity (Figure S2). Her memory trace shares a code with her spoken words.

T16 showed the same pattern, weaker and only after the go cue (Figure S3). Telling her to use a verbal strategy raised first-position accuracy to 0.61 (95% CI 0.53 to 0.68). People differ in how strongly they use inner speech to remember.

Is it really above chance?

A toy binary decoder gets some trials right. The bars show 2,000 re-draws of those trials (a bootstrap). If the shaded 95% band stays to the right of the 0.5 line, the paper calls the result above chance. Try a weak effect with few trials, then add trials.

0.62
60

Toy simulation: each trial is correct with the true accuracy; the bootstrap resamples the trials with replacement 2,000 times and takes the 2.5th and 97.5th percentiles. The paper resamples 10,000 times and compares the 2.5th percentile with the chance level of 0.5 (STAR Methods).

Task 2: counting

Participants T15 and T16 see a 10 by 10 grid of colored shapes. They must count one kind, such as the red triangles. There are 10 to 20 of them. The other shapes act as distractors, so a person scans and counts in their head. Afterward they say the total aloud. Again, nobody is told to use inner speech.

The decoder here is the same network trained on instructed inner speech, but with a twist. The language model is a unigram list of number words from “one” to “twenty”. It scores each word on its own and knows nothing about order. So if the decoded numbers rise across the trial, that rise comes from the brain, not from the model guessing “one, two, three”.

They rose. Fitting a line to decoded number against position gave slopes of 0.48 and 0.33 for the two participants (p = 1.69 × 10−9 and 4.84 × 10−9). As a control, they stitched together three instructed sentences to match the counting duration and ran the same analysis. No rising trend appeared. With the regular 5-gram model, a counting trial produced 0.45 number words on average for T15 (95% CI 0.2 to 0.75) and 2.0 for T16 (0.85 to 3.45). Sentence trials gave 0.0 and 0.09.

Task 3: prompted thinking

Last, people got prompts such as “think about your favorite movie quote” or “clear your mind”. Verbal prompts produced more decoded words than “clear your mind”. But the authors report that most of the output was gibberish with a few plausible phrases. They chose not to print it, because they cannot know whether it reflects what the person truly thought.

The honest summary. Some structure in private inner speech leaks: a sequence being held in memory, or a running count. Complete, readable sentences from free thought were not decoded. The paper says so in its limitations, and it adds that this may change as recording technology improves.

Why did the counting analysis use a unigram number-only language model?

Chapter 6

One Direction Tells Trying from Imagining

Find the baseline shift that separates attempted from inner speech, and see why the experiment had to mix the two

Back to the two choirs. Chapter 3 showed they sing the same song, one louder. But suppose the loud choir also stands on a stage and the quiet one stands on the floor. Even with the sound off, you could tell them apart by where they stand. A decoder could use that too.

In the brain, “where they stand” is the baseline: the average activity of the whole population, before any word is considered. If attempted speech sits at a higher baseline than inner speech, then a single direction in neural space separates the two behaviors. The paper calls it the motor-intent dimension, because it seems to carry whether the person means to move.

A trap: drift looks like a baseline shift

In Chapters 2 and 3, each behavior was recorded in its own blocks, one after another. But Chapter 1 said that firing rates drift over time. So a difference in baseline between a block of attempted speech and a block of inner speech could be real, or it could be drift. Worse, the paper subtracts each block’s mean (Chapter 1), which hides real baseline differences between behaviors measured in different blocks.

The fix is to interleave. In a new experiment, attempted speech, inner speech and listening trials were mixed at random inside the same block. Drift now hits all behaviors alike, and the block-mean subtraction keeps the between-behavior gap. Seven words times two behaviors gives 14 conditions. The behaviors were: vocalized and motoric inner speech for T12, vocalized and third person auditory for T15, mimed and first person auditory for T16, and attempted and third person auditory for T17.

Why mix the trials

Each dot is one trial’s position along one neural direction, across the session. Warm is attempted and purple is inner. The line is the drift. Switch the design and read the gap each one measures. Try a true offset of zero.

0.30
1.0

Toy simulation, seeded: 80 attempted and 80 inner trials with noise SD 0.4. A straight drift of the chosen size is added over the session. Separate blocks put all attempted trials first. The paper’s own motivation is in Results, “Evidence of a robust motor-intent dimension”.

Defining the dimension

With interleaved data, the definition is simple. Take all the attempted trials, all seven words together, and average them into one point: the attempted centroid. Do the same for inner speech. The vector between the two centroids, scaled to length 1, is the motor-intent dimension.

v
The motor-intent direction: a vector of length 1 in the 128-dimensional space of one array.
cas − cis
Attempted centroid minus inner centroid. Each centroid is the mean of all trials of all seven words in that behavior.
xres
The data with the direction removed. (x · v) is how far x lies along v. Subtracting that much leaves only the part at a right angle to v.

Worked example in two dimensions. Say cas = (3, 1) and cis = (1, 1). The difference is (2, 0), length 2, so v = (1, 0). A trial at x = (3.4, 0.7) lies 3.4 along v. Removing it gives xres = (3.4, 0.7) − 3.4 × (1, 0) = (0, 0.7). The word information in the second coordinate survives. The baseline information in the first is gone.

That is the toggle in the hero. Go back and flip it: the two rings slide on top of each other.

What the paper found

So the dimension carries “which behavior” and little about “which word”. A decoder can use it to ignore inner speech while still reading attempted speech. Chapter 7 does exactly that.

Implication. The brain gives the engineer two handles. Size separates the behaviors weakly. The motor-intent offset separates them strongly. Pull on the second handle and the BCI knows when you really mean it.

Why did the authors run an interleaved experiment before defining the motor-intent dimension?

Chapter 7

Two Locks for Private Thought

Build a decoder that stays quiet on inner speech, then add a keyword that opens the lock on purpose

You keep a diary. A friend can read your handwriting, so you buy a lock. The lock does not change what you wrote. It changes what happens when someone tries to read it. The paper builds two locks for a speech BCI, one for each kind of device.

The first device is the usual one: an attempted speech BCI. Chapter 3 says inner speech uses the same code as attempted speech. So a decoder trained only on attempted speech could read inner speech by accident. The paper calls this training imagery-naive: the decoder never saw imagined speech and was never told what to do with it.

The second device is the inner speech BCI of Chapter 4. It is meant to read inner speech. But it should not read every inner thought, only the sentence the user chooses to send.

Lock 1: teach silence

The imagery-silenced strategy adds one idea. Record inner speech sentences too, but label them with a single target: SIL, the silence token. Attempted speech sentences keep their phoneme labels. Now the network is trained on two kinds of trials and one rule: when you see a pattern with the motor-intent offset (Chapter 6), speak the phonemes. When you see the pattern without it, say silence.

In the CTC loss of Chapter 4, an inner trial with target SIL has an easy job: make every frame output SIL. Summed over the two kinds of training trials:

L
The total training loss: a number the network tries to make small.
yphonemes
The phoneme string of an attempted sentence, as in Chapter 4.
SIL
The silence-only target for every inner speech trial. The probability is high only if all frames output silence.

Set the lock threshold

Each bell curve is how strong the decoder’s readout is on trials of one behavior. The decoder speaks when the readout passes the teal line. Choose a training style, or drag the line yourself.

0.20
50%

Toy model, not the paper’s data: readouts are bell curves with mean 1.0 (attempted, SD 0.22) and the chosen size (inner, SD 0.18). Imagery-naive puts the line near the noise floor because the decoder never learned a quieter level; imagery-silenced puts it halfway between the means. The paper’s results are in Figure 7A and 7B.

What the paper found for lock 1

One caution is in the paper itself. This lock was tested offline. It still has to be checked in real-time use.

Lock 2: a spoken key

The inner speech BCI needs a different lock, because it reads inner speech on purpose. The paper uses a keyword. The system stays locked and decodes nothing until it hears the keyword in the user’s inner speech. The keyword they chose is “chittychittybangbang”, picked because it is phonetically unusual and rarely spoken by chance.

  1. Cue. A star in front of a sentence tells T12 to imagine the keyword first, then the sentence.
  2. Labels. The phoneme target for a starred trial is the keyword’s phonemes followed by the sentence’s. For “* I need good music” it starts CH IH T IY CH IH T IY B AE NG B AE NG, then SIL, AY and so on.
  3. Language model. The training text is the 50-word corpus plus a copy with the keyword added at the start of every sentence, so the model finds “keyword present” and “keyword absent” equally likely.
  4. Gate. Real-time logic suppresses all output unless the language model detects the keyword.

Lock and unlock

Each tile is one imagined sentence. Tap a tile to say the keyword before it. Without the keyword the decoder stays blank, even though the neural signal for the sentence is still there.

Illustrative sentences from the 50-word style; the gate logic is the paper’s. The ten tiles stand for the paper’s 80 test trials (40 sentences, each with and without the keyword). The device assumes perfect detection; the paper measured 79 of 80.

Test: T12 did 80 trials, the same 40 sentence cues once with the keyword and once without. A trial succeeded if a starred trial produced output or an unstarred trial produced none. The result was 98.75% (95% CI 93.23% to 99.97%), which is 79 of 80. For keyword trials where the decoder produced words, the 50-word word error rate was 43.45% (95% CI 35.7% to 49.4%).

In imagery-silenced training, what is the CTC target for an inner speech sentence?

Chapter 8

Field Guide

Keep the numbers, the checklist and the core code, and see what the paper does not claim

Here is the whole paper in one paragraph. Four people with severe speech loss had microelectrode arrays in motor cortex. Inner speech, listening and reading all leave word patterns in the speech areas, and those patterns match attempted speech in shape but are smaller (Chapters 2 and 3). The same decoder design can read imagined sentences live, at 14% to 54% word error rate depending on person and vocabulary (Chapter 4). Some uninstructed inner speech, such as a memorized sequence or a running count, can be found, but complete free thoughts cannot (Chapter 5). A baseline offset, the motor-intent dimension, separates trying from imagining (Chapter 6). Two locks, silence training and a keyword, keep private inner speech out of the output (Chapter 7).

The numbers

QuantityValueWhere in the paper
Participants4 (T12, T15, T16, T17)BrainGate2, NCT00912041
Arrays in precentral gyrus2, 4, 4, 6Results; 64 electrodes each, 1.5 mm
Sampling and high-pass30 kHz; 250 HzSTAR Methods, neural signal processing
Thresholds and bins−3.5 or −4.5 SD; 10 or 20 msSTAR Methods
Features per array128 (64 crossings + 64 powers)STAR Methods
Word set and chance7 words; 14.3%Figure 1E
T12 inner vs attempted72.6% vs 97.9%Figure 1F
T16 listening vs attempted92.1% vs 80.0%Figure 1F
PCA variance in top three62% to 86%Figure 6
RNN output rateevery 80 ms; 39 phonemes + SILFigure 3A
Online WER, 50 words24%, 14%, 33%Figure 3D (T12, T15, T16)
Online WER, 125,000 words26% to 54%Figure 3D; T16 example 52%
Counting slopes0.48 and 0.33Figure 5C and 5D
Keyword accuracy98.75% (93.23 to 99.97)Figure 7E; 80 trials, T12

The terms

The core as code

pythonimport numpy as np

# 1. Features: 64 threshold-crossing counts + 64 spike-band powers per bin -> [T, 128]
def features(v, fs=30000, bin_ms=20, k=4.5):
    sd = v.std(axis=1, keepdims=True)                       # v: [64 electrodes, samples], already high-passed
    below = v < -k * sd
    cross = below[:, 1:] & ~below[:, :-1]                    # first sample under the line
    n = int(fs * bin_ms / 1000)                             # 600 samples per 20 ms bin
    T = v.shape[1] // n
    c = np.stack([cross[:, t*n:(t+1)*n].sum(1) for t in range(T)], 1)
    p = np.stack([(v[:, t*n:(t+1)*n] ** 2).sum(1) for t in range(T)], 1)
    x = np.concatenate([c, p], 0).T                         # [T, 128]
    return (x - x.mean(0)) / (x.std(0) + 1e-8)              # per-block mean and SD

# 2. Seven-word Gaussian naive Bayes on a 500 ms window
def gnb_fit(X, y):                                          # X: [trials, 128], y: word id
    mu = np.stack([X[y == w].mean(0) for w in range(7)])
    var = np.stack([X[y == w].var(0) + 1e-3 for w in range(7)])
    return mu, var
def gnb_predict(X, mu, var):
    ll = -0.5 * (np.log(var)[None] + (X[:, None] - mu[None]) ** 2 / var[None]).sum(-1)
    return ll.argmax(1)                                     # equal priors

# 3. Motor-intent dimension and its removal (Methods 8.4)
def motor_intent(x_att, x_inn):                             # [trials, 128] each, all words pooled
    d = x_att.mean(0) - x_inn.mean(0)
    return d / np.linalg.norm(d)
def remove(x, v):
    return x - (x @ v)[:, None] * v[None]

# 4. Imagery-silenced CTC targets: attempted -> phonemes, inner -> a single SIL
def ctc_target(is_inner, phonemes):
    return [SIL] if is_inner else phonemes                  # train with nn.CTCLoss over [T/80ms, 40] outputs

# 5. Keyword gate: print nothing until the keyword appears in the decoded stream
def gate(decoded_words, key="chittychittybangbang"):
    if key not in decoded_words: return []
    return decoded_words[decoded_words.index(key) + 1:]

A sketch of the ideas, not the authors’ code. The paper’s own analysis code and data are listed in its resource availability section.

The checklist

What the paper does not claim

The authors list their own limits. Four participants is a small group, and people use inner speech in different ways. The privacy strategies are first explorations. Complete, intelligible sentences were not decoded from free-form thinking, and the paper says they might be with better recordings. The imagery-silenced lock needs an online test. Whether language is used for thought at all is still debated, and the paper says only concrete verbal strategies such as memory or counting are likely to be decodable.

Keep going

The take-away. Motor cortex holds a quiet copy of every word you imagine. A good speech BCI uses that on purpose and is designed so that the copy never leaves without your say-so.

Credit: all results are from Kunz, Krasa, Kamdar, Avansino, Hahn, Yoon, Singh, Nason-Tomaszewski, Card, Jude, Jacques, Bechefsky, Iacobacci, Hochberg, Rubin, Williams, Brandman, Stavisky, AuYong, Pandarinath, Druckmann, Henderson and Willett, Cell 2025, doi:10.1016/j.cell.2025.06.015, open access (PMC12360486), CC BY 4.0. Several authors declare ties to BCI companies, listed in the paper. The toy simulations in this lesson are ours and labeled as such.

A friend says: “This paper proves a speech BCI can read your private thoughts.” What is the best reply?

Want to say it back in your own words? Open Teach and draw it, or play with the rings at the top once more.

Inner Speech in Motor Cortex
Kunz et al., Cell 2025 · Read the paper · Back to Measuring a BCI