Decoding intended speech with an intracortical brain-computer interface in a person with long-standing anarthria and locked-in syndrome.
The 18 matches · 4 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § STAR★METHODS › METHOD DETAILS › Mahalanobis distance and hierarchical clustering ↔ 03) Figure 2 a,b,c,d Hierarchical Clustering Dendograms/my_dendrogram_plot.m, the whole file · a weak match · score 0.78 · hierarchical clustering, distance matrix, Dendrogram, Ward, branch, linkage · Report a mismatch
- [2] § RESULTS › Sentence speech decoding ↔ 04) Figure 3 b,c Online Speech Decoding Accuracy and Speed/Online-Speech-Performance.ipynb, lines 267 to 341 · score 0.70 · raw phoneme error, word error rate, Phoneme error rate, speech decoding, trial day, online · Report a mismatch
- [3] § RESULTS › Sources of error in phoneme decoding › 6v and 55b encode different language units ↔ 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/Phased-Task-Tuning-FVAF.ipynb, lines 1 to 48 · score 0.68 · Faith hungry computer, yes feel, cheldgup, zelwog, phase, word · Report a mismatch
- [4] § STAR★METHODS › METHOD DETAILS › Mahalanobis distance and hierarchical clustering ↔ 03) Figure 2 a,b,c,d Hierarchical Clustering Dendograms/my_Mahalanobis.m, the whole file · a weak match · score 0.68 · distance matrix, hierarchical clustering, Tikhonov, symmetry, Mahalanobis · Report a mismatch
- [5] § RESULTS › Sources of error in phoneme decoding ↔ 05) Figure 4 a,b,c Offline Speech Errors/Offline-Performance-CumulativeSessions.ipynb, the whole file · a weak match · score 0.65 · cumulative sessions, word error rate, phoneme error rate, CL, OL, post · Report a mismatch
- [6] § RESULTS › Sources of error in phoneme decoding › 6v and 55b encode different language units ↔ 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/Phased-Task-GNB-Phrases.ipynb, lines 47 to 58 · score 0.63 · Faith hungry computer, yes feel, GNB, phase, Figure 5, speech · Report a mismatch
- [7] § STAR★METHODS › METHOD DETAILS › Recurrent neural network ↔ utils/brainToText_trainDecoder.py, lines 537 to 622 · score 0.58 · loss function, network, GRU, norm, layer, batches · Report a mismatch
- [8] § STAR★METHODS › METHOD DETAILS › Gaussian Naive Bayes ↔ utils/analysis.py, lines 373 to 413 · score 0.57 · Naive Bayes classifier, Gaussian Naive Bayes, predictor, trained · Report a mismatch
- [9] § STAR★METHODS › METHOD DETAILS › Gaussian Naive Bayes ↔ utils/analysisT17.py, lines 239 to 279 · score 0.57 · Naive Bayes classifier, Gaussian Naive Bayes, predictor, trained · Report a mismatch
- [10] § STAR★METHODS › METHOD DETAILS › Fraction of variance accounted for (FVAF) ↔ utils/analysis.py, lines 118 to 176 · score 0.56 · tuning heatmaps, SSERR, SSTOT, fold, squared, held · Report a mismatch
- [11] § STAR★METHODS › METHOD DETAILS › Fraction of variance accounted for (FVAF) ↔ utils/analysisT17.py, lines 115 to 173 · score 0.56 · tuning heatmaps, SSERR, SSTOT, fold, squared, held · Report a mismatch
- [12] § STAR★METHODS › METHOD DETAILS › Neural signal processing ↔ utils/mat_to_tfrecord_imagined.py, lines 133 to 179 · score 0.56 · Spike band power, threshold crossing, Redis, sums, bin, neural · Report a mismatch
- [13] § STAR★METHODS › METHOD DETAILS › Neural signal processing ↔ utils/mat_to_tfrecord.py, lines 132 to 209 · score 0.54 · standard deviation, threshold crossing, Redis, scored, sums, Spike · Report a mismatch
- [14] § STAR★METHODS › METHOD DETAILS › Mahalanobis distance and hierarchical clustering ↔ utils/mat_to_tfrecord.py, lines 132 to 209 · score 0.54 · global standard deviation, threshold crossing, scored, spike, power · Report a mismatch
- [15] § STAR★METHODS › METHOD DETAILS › Mahalanobis distance and hierarchical clustering ↔ utils/mat_to_tfrecord_imagined.py, lines 181 to 253 · score 0.54 · global standard deviation, threshold crossing, scored, spike, power · Report a mismatch
- [16] § STAR★METHODS › METHOD DETAILS › Recurrent neural network ↔ utils/models.py, the whole file · a weak match · score 0.53 · Dropout, L2, recurrent, weight, GRU, layer · Report a mismatch
- [17] § STAR★METHODS › METHOD DETAILS › Sentence speech decoding ↔ utils/brainToText_trainDecoder.py, lines 537 to 622 · score 0.52 · loss function, Error rate, CTC, Network, RNN, decoder · Report a mismatch
- [18] § RESULTS › Sentence speech decoding ↔ 04) Figure 3 b,c Online Speech Decoding Accuracy and Speed/Online-Speech-Performance.ipynb, lines 267 to 341 · score 0.52 · raw phoneme error, word error rate, speech, decoded, Figure 3 · Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Jupyter notebook · 405 lines · 15 KB · no license · 2 matches
- # %%
- PHONE_DEF_SIL = [
- 'BLANK','SIL','AA', 'AE', 'AH', 'AO', 'AW',
- 'AY', 'B', 'CH', 'D', 'DH',
- 'EH', 'ER', 'EY', 'F', 'G',
- 'HH', 'IH', 'IY', 'JH', 'K',
- 'L', 'M', 'N', 'NG', 'OW',
- 'OY', 'P', 'R', 'S', 'SH',
- 'T', 'TH', 'UH', 'UW', 'V',
- 'W', 'Y', 'Z', 'ZH', ]
- import scipy.io
- import numpy as np
- import matplotlib.pyplot as plt
- import os
- import datetime
- import re
- import time
- import pickle
- import redis
- import argparse
- import json
- from pathlib import Path
- import tensorflow as tf
- from g2p_en import G2p
- g2p = G2p()
- def calc_wer(r, h):
- # initialisation
- import numpy
- d = numpy.zeros((len(r)+1)*(len(h)+1), dtype=numpy.uint8)
- d = d.reshape((len(r)+1, len(h)+1))
- for i in range(len(r)+1):
- for j in range(len(h)+1):
- if i == 0:
- d[0][j] = j
- elif j == 0:
- d[i][0] = i
- # computation
- for i in range(1, len(r)+1):
- for j in range(1, len(h)+1):
- if r[i-1] == h[j-1]:
- d[i][j] = d[i-1][j-1]
- else:
- substitution = d[i-1][j-1] + 1
- insertion = d[i][j-1] + 1
- deletion = d[i-1][j] + 1
- d[i][j] = min(substitution, insertion, deletion)
- return d[len(r)][len(h)]
- def _cer_and_wer(decodedSentences, trueSentences, returnCI=False):
- allCharErr = []
- allChar = []
- allWordErr = []
- allWord = []
- for x in range(len(decodedSentences)):
- decSent = decodedSentences[x]
- trueSent = trueSentences[x]
- trueSent = trueSent.strip()
- trueSent = trueSent.replace('.', '')
- trueSent = trueSent.replace('?', '')
- trueSent = trueSent.replace(',', '')
- trueSent = trueSent.replace("'", '')
- decSent = decSent.strip()
- decSent = decSent.replace('.', '')
- decSent = decSent.replace('?', '')
- decSent = decSent.replace(',', '')
- decSent = decSent.replace("'", '')
- decSent = decSent.lower()
- trueSent = trueSent.lower()
- #print(decSent)
- #print(trueSent)
- nCharErr = calc_wer([c for c in trueSent], [c for c in decSent])
- trueWords = trueSent.split(" ")
- decWords = decSent.split(" ")
- nWordErr = calc_wer(trueWords, decWords)
- allCharErr.append(nCharErr)
- allWordErr.append(nWordErr)
- allChar.append(len(trueSent))
- allWord.append(len(trueWords))
- cer = np.sum(allCharErr) / np.sum(allChar)
- wer = np.sum(allWordErr) / np.sum(allWord)
- if not returnCI:
- return cer, wer, np.array(allCharErr)/np.array(allChar), np.array(allWordErr)/np.array(allWord)
- else:
- allChar = np.array(allChar)
- allCharErr = np.array(allCharErr)
- allWord = np.array(allWord)
- allWordErr = np.array(allWordErr)
- nResamples = 10000
- resampledCER = np.zeros([nResamples,])
- resampledWER = np.zeros([nResamples,])
- for n in range(nResamples):
- resampleIdx = np.random.randint(0, allChar.shape[0], [allChar.shape[0]])
- resampledCER[n] = np.sum(allCharErr[resampleIdx]) / np.sum(allChar[resampleIdx])
- resampledWER[n] = np.sum(allWordErr[resampleIdx]) / np.sum(allWord[resampleIdx])
- cerCI = np.percentile(resampledCER, [2.5, 97.5])
- werCI = np.percentile(resampledWER, [2.5, 97.5])
- return (cer, cerCI[0], cerCI[1]), (wer, werCI[0], werCI[1])
- sessions = ['t17.2024.03.26-Block-27',#Chang
- 't17.2024.04.02.50Chang-Block-5',#Chang
- 't17.2024.04.02-Block-13',#Open
- 't17.2024.04.17-Block-7',#Open
- 't17.2024.04.17-Block-8',#Open
- 't17.2024.04.17-Block-10',#Open
- 't17.2024.05.07-Block-7',#Open
- 't17.2024.05.07-Block-8',#Open
- 't17.2024.05.07-Block-9',#Open
- 't17.2024.05.07-Block-10',#Open
- 't17.2024.05.07-Block-11',#Open
- 't17.2024.05.14-Block-6',#Open
- 't17.2024.05.14-Block-7',#Open
- 't17.2024.05.14-Block-8',#Open
- 't17.2024.05.14-Block-9',#Open
- 't17.2024.05.28-Block-8',#Open
- 't17.2024.05.28-Block-9',#Open
- 't17.2024.08.12-Block-8',#Chang
- 't17.2024.08.12-Block-9',#Chang
- 't17.2024.08.12-Block-10',]#Chang
- for session in sessions:
- session_block = session.split('-')
- session = session_block[0]
- dataDir = str(Path('../Data', 't17', session, 'brainToText'))
- blocks = [int(session_block[2])]
- print(dataDir)
- all_block_mats = []
- for b in blocks:
- filename = [str(x) for x in Path(dataDir, 'RedisMat').glob('*('+str(b)+').mat')][0]
- mat = scipy.io.loadmat(filename)
- all_block_mats.append(mat)
- all_trial_times = []
- trial_decodes = []
- current_logits = []
- all_trial_logits = []
- logit_index = 0
- cue = []
- for b in all_block_mats:
- logit_index = 0
- for trial, (start_time, end_time) in enumerate(zip(b['go_cue_redis_time'][0], b['trial_end_redis_time'][0])):
- current_trial = []
- current_logits = []
- cue.append(b['cue'][trial].strip())
- while b['decoder_output_redis_clock'][0][logit_index] < start_time or (np.argmax(b['decoder_logit_output'][logit_index, :],-1) == 0):
- logit_index += 1
- log_start_time = b['decoder_output_redis_clock'][0][logit_index]
- start_index = logit_index
- while b['decoder_output_redis_clock'][0][logit_index] < end_time:
- l = b['decoder_logit_output'][logit_index, :31]
- if np.any(l):
- current_logits.append(l)
- logit_index += 1
- while (np.argmax(b['decoder_logit_output'][logit_index, :],-1) == 0):
- logit_index-=1
- log_end_time = b['decoder_output_redis_clock'][0][logit_index]
- end_index = logit_index
- new_logits = current_logits
- all_trial_logits.append(np.array(new_logits))
- new_logits = np.expand_dims(np.array(new_logits), axis=1)
- seq_len = np.expand_dims(new_logits.shape[0], axis=0)
- all_trial_times.append((log_end_time-log_start_time)/(1000*60))
- decoded_sequence, _ = tf.nn.ctc_greedy_decoder(new_logits, seq_len, merge_repeated=True, blank_index=0)
- trial_decodes.append(decoded_sequence[0])
- all_decoded_sentences = []
- this_sentence = []
- trial_decodes_dense = []
- trial_remove_dups = []
- last_char = -1
- for trial, t in enumerate(trial_decodes):
- if cue[trial] != '':
- pred_ids = np.zeros([500]).astype(np.int32)
- trial_dense = tf.cast(tf.sparse.to_dense(t), tf.int32).numpy()[0]
- for c in trial_dense:
- if PHONE_DEF_SIL[c] not in ['?','.',',',"'"]:
- this_sentence.append(PHONE_DEF_SIL[c])
- trial_remove_dups.append(c)
- last_char = PHONE_DEF_SIL[c]
- pred_ids[:len(this_sentence)] = trial_remove_dups
- trial_decodes_dense.append(pred_ids)
- all_decoded_sentences.append(this_sentence)
- this_sentence = []
- trial_remove_dups = []
- last_char = -1
- all_seq_ids = []
- all_seq_lens = []
- sum_all_lens = 0
- for thisTranscription in cue:
- if thisTranscription != '':
- seqClassIDs = np.zeros([500]).astype(np.int32)
- characters = []
- if len(thisTranscription) == 0:
- characters = 'SIL'
- else:
- for p in g2p(thisTranscription):
- if p == ' ':
- characters.append('SIL')
- p = re.sub(r'[0-9]', '', p) # Remove stress
- if re.match(r'[A-Z]+', p): # Only keep phonemes
- characters.append(p)
- seqLen = len(characters)
- all_seq_lens.append(seqLen)
- sum_all_lens += seqLen
- seqClassIDs[0:seqLen] = [PHONE_DEF_SIL.index(c) for c in characters]
- all_seq_ids.append(seqClassIDs)
- # create sparse labels from ground truth labels
- batchSize = len(all_seq_ids)
- sparseLabels = tf.cast(tf.sparse.from_dense(np.array(all_seq_ids)), dtype=tf.int32)
- sparseLabels = tf.sparse.SparseTensor(
- indices=sparseLabels.indices,
- values=sparseLabels.values,
- dense_shape=[batchSize, 500])
- sparsePreds = tf.cast(tf.sparse.from_dense(np.array(trial_decodes_dense)), dtype=tf.int32)
- sparsePreds = tf.sparse.SparseTensor(
- indices=sparsePreds.indices,
- values=sparsePreds.values,
- dense_shape=[batchSize, 500])
- editDistance = tf.edit_distance(tf.cast(sparsePreds, tf.int64), tf.cast(sparseLabels, tf.int64), normalize=False)
- all_edit_distances = editDistance.numpy()/np.array(all_seq_lens)
- seqErrorRate = tf.cast(tf.reduce_sum(editDistance), dtype=tf.float32)/tf.cast(tf.reduce_sum(sum_all_lens), dtype=tf.float32)
- all_trial_cpm = []
- for trial_time, current_cue in zip(all_trial_times, cue):
- sen_len = len(current_cue.split(' '))
- all_trial_cpm.append((sen_len)/(trial_time))
- all_final_decoded_sentences = []
- final_cue = []
- final_decoded = []
- for b in all_block_mats:
- for decoded in b['ngram_decoder_final_output'][0]:
- if decoded[0][0] != 0:
- all_final_decoded_sentences.append(decoded[0])
- for gt_sentence, pred_sentence in zip(cue, all_final_decoded_sentences):
- if gt_sentence != '':
- final_cue.append(gt_sentence)
- final_decoded.append(pred_sentence)
- post_lm_cer, wer, all_post_lm_cer, all_wer = _cer_and_wer(all_final_decoded_sentences, cue)
- block = str(blocks[0])
- save_string = session + '-Block-' + block
- np.save(save_string + '-normEditDistances.npy', all_edit_distances)
- np.save(save_string + '-WPM.npy', all_trial_cpm)
- np.save(save_string + '-perPostLM.npy', all_post_lm_cer)
- np.save(save_string + '-wer.npy', all_wer)
- # %%
- import numpy as np
- import matplotlib.pyplot as plt
- import pandas as pd
- import seaborn as sns
- import matplotlib.ticker as ticker
- from datetime import datetime
- plt.rcParams["figure.figsize"] = (20,5)
- num_train_trials = [1,2,2,3,3,4,5,6]
- all_raw_cers = []
- all_postLM_cers = []
- all_postLM_wers = []
- data_frame = []
- sessions = ['t17.2024.03.26-Block-27',#Chang
- 't17.2024.04.02.50Chang-Block-5',#Chang
- 't17.2024.04.02-Block-13',#Open
- 't17.2024.05.07-Block-7',#Open
- 't17.2024.05.07-Block-8',#Open
- 't17.2024.05.07-Block-9',#Open
- 't17.2024.05.07-Block-10',#Open
- 't17.2024.05.07-Block-11',#Open
- 't17.2024.05.14-Block-6',#Open
- 't17.2024.05.14-Block-7',#Open
- 't17.2024.05.14-Block-8',#Open
- 't17.2024.05.14-Block-9',#Open
- 't17.2024.05.28-Block-8',#Open
- 't17.2024.05.28-Block-9',#Open
- 't17.2024.08.12-Block-8',#Chang
- 't17.2024.08.12-Block-9',#Chang
- 't17.2024.08.12-Block-10']#Chang
- last_trial_day = ''
- x_ticks = []
- sns.set_context("paper", rc={"font.size":20,"axes.titlesize":20,"axes.labelsize":32, 'legend.fontsize': 20, 'lines.markersize':18})
- for session in sessions:
- raw_cers = np.load(str(session) + '-normEditDistances.npy')
- postLM_cers = np.load(str(session) + '-perPostLM.npy')
- postLM_wers = np.load(str(session) + '-wer.npy')
- raw_cers[raw_cers>1.0] = 1.0
- postLM_cers[postLM_cers>1.0] = 1.0
- postLM_wers[postLM_wers>1.0] = 1.0
- d1 = datetime.strptime('2024.02.29', "%Y.%m.%d")
- d2 = datetime.strptime(session.split('-')[0][4:14], "%Y.%m.%d")
- trial_day = int(abs((d2 - d1).days))
- block = int(session.split('-')[2])
- xtick = trial_day + block//10
- if trial_day != last_trial_day:
- x_ticks.append(trial_day)
- else:
- x_ticks.append('')
- for trial in range(raw_cers.shape[0]):
- data_frame.append([session, 'Raw Phoneme Error Rate', int(raw_cers[trial]*100)])
- for trial in range(postLM_wers.shape[0]):
- data_frame.append([session, 'Word Error Rate', int(postLM_wers[trial]*100)])
- last_trial_day = trial_day
- df = pd.DataFrame(data_frame, columns=['Trial Day', 'Metric', 'Error Rate (%)'])
- print(df)
- flatui = ['#ff7f00','#e31a1c','#fb9a99',]
- sns.set_palette(flatui)
- g = sns.lineplot(x='Trial Day', y='Error Rate (%)', hue='Metric', estimator='mean',marker='o', data=df, linewidth=3, err_style='bars',errorbar=('ci', 95))
- sns.despine()
- g.set_yticks(np.arange(0,110,10))
- g.set_xticklabels(x_ticks)
- plt.gca().legend().set_title('')
- plt.legend(frameon=False)
- plt.xticks(fontsize=20)
- plt.yticks(fontsize=25)
- plt.savefig('T17SpeechOnlinePerformanceNew.pdf', bbox_inches='tight')
- plt.show()
- # %%
- import numpy as np
- import matplotlib.pyplot as plt
- import pandas as pd
- import seaborn as sns
- import matplotlib.ticker as ticker
- from datetime import datetime
- plt.rcParams["figure.figsize"] = (20,5)
- num_train_trials = [1,2,2,3,3,4,5,6]
- all_raw_cers = []
- all_postLM_cers = []
- all_postLM_wers = []
- data_frame = []
- sessions = ['t17.2024.03.26-Block-27',#Chang
- 't17.2024.04.02.50Chang-Block-5',#Chang
- 't17.2024.04.02-Block-13',#Open
- 't17.2024.05.07-Block-7',#Open
- 't17.2024.05.07-Block-8',#Open
- 't17.2024.05.07-Block-9',#Open
- 't17.2024.05.07-Block-10',#Open
- 't17.2024.05.07-Block-11',#Open
- 't17.2024.05.14-Block-6',#Open
- 't17.2024.05.14-Block-7',#Open
- 't17.2024.05.14-Block-8',#Open
- 't17.2024.05.14-Block-9',#Open
- 't17.2024.05.28-Block-8',#Open
- 't17.2024.05.28-Block-9',#Open
- 't17.2024.08.12-Block-8',#Chang
- 't17.2024.08.12-Block-9',#Chang
- 't17.2024.08.12-Block-10']#Chang
- last_trial_day = ''
- x_ticks = []
- sns.set_context("paper", rc={"font.size":20,"axes.titlesize":20,"axes.labelsize":32, 'legend.fontsize': 20, 'lines.markersize':18})
- for session in sessions:
- cpm = np.load(str(session) + '-WPM.npy')
- for trial in range(cpm.shape[0]):
- data_frame.append([session, 'T17', cpm[trial]])
- d1 = datetime.strptime('2024.02.29', "%Y.%m.%d")
- d2 = datetime.strptime(session.split('-')[0][4:14], "%Y.%m.%d")
- trial_day = int(abs((d2 - d1).days))
- block = int(session.split('-')[2])
- xtick = trial_day + block//10
- if trial_day != last_trial_day:
- x_ticks.append(trial_day)
- else:
- x_ticks.append('')
- last_trial_day = trial_day
- df = pd.DataFrame(data_frame, columns=['Trial Day', 'Metric', 'Words per minute'])
- print(df)
- flatui = ['blue']
- sns.set_palette(flatui)
- g = sns.lineplot(x='Trial Day', y='Words per minute', hue='Metric', estimator='mean',marker='o', data=df, linewidth=3, err_style='band',errorbar=('ci', 95))
- sns.despine()
- plt.gca().legend().set_title('')
- plt.ylim([0, 80])
- g.get_legend().set_visible(False)
- g.set_xticklabels(x_ticks)
- plt.xticks(fontsize=20)
- plt.yticks(fontsize=25)
- plt.savefig('T17SpeechOnlinePerformanceWPM.pdf', bbox_inches='tight')
- plt.show()
Online-Speech-Performance.ipynb at commit c2085ba, no license · at the source
Overview
- Center for Neurotechnology and Neurorecovery, Department of Neurology, Massachusetts General Hospital, Boston, MA, USA
- Department of Neurology, Harvard Medical School, Boston, MA, USA
- School of Engineering, Brown University, Providence, RI, USA
- Lead contact
- Department of Neurological Surgery, University of California, Davis, Davis, CA, USA
- Department of Neurosurgery, Massachusetts General Hospital, Harvard Medical School, Boston, MA, USA
- Harvard-MIT Division of Health Sciences and Technology, Boston, MA, USA
- Harvard Medical School, Program in Neuroscience, Boston, MA, USA
- VA Center for Neurorestoration and Neurotechnology, VA Providence Healthcare System, Providence, RI, USA
- Robert J. and Nancy D. Carney Institute for Brain Science, Brown University, Providence, RI, USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 18 matches between paragraphs and lines of code.
justin-jude/anarthria-speech-bci
c2085baad13a66a415b269d9977adf24098f370a, 4 August 2025Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
31 files
- 01) Figure 1 c,d FVAF Orofacial and Phonemes/
Orofacial_and_Phoneme_FV , Jupyter, 188 linesAF_electrodes.ipynb - 02) Figure 1 e,f,g,h,i,j GNB Orofacial, Phonemes, Words/
Orofacial-GNB-Classifica , Jupyter, 118 linestion.ipynb - 02) Figure 1 e,f,g,h,i,j GNB Orofacial, Phonemes, Words/
Phoneme-GNB-Classificati , Jupyter, 163 lineson.ipynb - 02) Figure 1 e,f,g,h,i,j GNB Orofacial, Phonemes, Words/
Word-GNB-Classification. , Jupyter, 147 linesipynb - 03) Figure 2 a,b,c,d Hierarchical Clustering Dendograms/
my_Mahalanobis.m , MATLAB, 26 lines, 1 match - 03) Figure 2 a,b,c,d Hierarchical Clustering Dendograms/
my_dendrogram_plot.m , MATLAB, 49 lines, 1 match - 04) Figure 3 b,c Online Speech Decoding Accuracy and Speed/
Online-Speech-Performanc , Jupyter, 405 lines, 2 matchese.ipynb - 05) Figure 4 a,b,c Offline Speech Errors/
Offline-Performance-Cumu , Jupyter, 55 lines, 1 matchlativeSessions.ipynb - 05) Figure 4 a,b,c Offline Speech Errors/
Phoneme-Confusion.ipynb , Jupyter, 212 lines - 05) Figure 4 a,b,c Offline Speech Errors/
Phoneme-Error-Heatmap.ip , Jupyter, 43 linesynb - 05) Figure 4 a,b,c Offline Speech Errors/
T17_SessionArgs.py , Python, 34 lines - 05) Figure 4 a,b,c Offline Speech Errors/
T17_train_model.ipynb , Jupyter, 141 lines - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-Phonemes , Jupyter, 146 lines.ipynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-Phrases. , Jupyter, 145 lines, 1 matchipynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-Sentence , Jupyter, 145 liness.ipynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-Words.ip , Jupyter, 145 linesynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-by-Array , Jupyter, 36 lines.ipynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-Tuning-FVAF. , Jupyter, 150 lines, 1 matchipynb - utils/
analysis.py , Python, 924 lines, 2 matches - utils/
analysisT17.py , Python, 779 lines, 2 matches - utils/
analysisT17imagined.py , Python, 850 lines - utils/
analysisT17speech.py , Python, 780 lines - utils/
analysisT17speechorofaci , Python, 780 linesal.py - utils/
brainToText_trainDecoder , Python, 700 lines, 2 matches.py - utils/
calculate_wer.py , Python, 91 lines - utils/
gaussSmooth.py , Python, 34 lines - utils/
jjjutils.py , Python, 242 lines - utils/
mat_to_tfrecord.py , Python, 457 lines, 2 matches - utils/
mat_to_tfrecord_imagined , Python, 501 lines, 2 matches.py - utils/
models.py , Python, 66 lines, 1 match - README.md, Text, 11 lines
Zenodo 18599809
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
31 files
- 01) Figure 1 c,d FVAF Orofacial and Phonemes/
Orofacial_and_Phoneme_FV , Jupyter, 188 linesAF_electrodes.ipynb - 02) Figure 1 e,f,g,h,i,j GNB Orofacial, Phonemes, Words/
Orofacial-GNB-Classifica , Jupyter, 118 linestion.ipynb - 02) Figure 1 e,f,g,h,i,j GNB Orofacial, Phonemes, Words/
Phoneme-GNB-Classificati , Jupyter, 163 lineson.ipynb - 02) Figure 1 e,f,g,h,i,j GNB Orofacial, Phonemes, Words/
Word-GNB-Classification. , Jupyter, 147 linesipynb - 03) Figure 2 a,b,c,d Hierarchical Clustering Dendograms/
my_Mahalanobis.m , MATLAB, 26 lines - 03) Figure 2 a,b,c,d Hierarchical Clustering Dendograms/
my_dendrogram_plot.m , MATLAB, 49 lines - 04) Figure 3 b,c Online Speech Decoding Accuracy and Speed/
Online-Speech-Performanc , Jupyter, 405 linese.ipynb - 05) Figure 4 a,b,c Offline Speech Errors/
Offline-Performance-Cumu , Jupyter, 55 lineslativeSessions.ipynb - 05) Figure 4 a,b,c Offline Speech Errors/
Phoneme-Confusion.ipynb , Jupyter, 212 lines - 05) Figure 4 a,b,c Offline Speech Errors/
Phoneme-Error-Heatmap.ip , Jupyter, 43 linesynb - 05) Figure 4 a,b,c Offline Speech Errors/
T17_SessionArgs.py , Python, 34 lines - 05) Figure 4 a,b,c Offline Speech Errors/
T17_train_model.ipynb , Jupyter, 141 lines - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-Phonemes , Jupyter, 146 lines.ipynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-Phrases. , Jupyter, 145 linesipynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-Sentence , Jupyter, 145 liness.ipynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-Words.ip , Jupyter, 145 linesynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-GNB-by-Array , Jupyter, 36 lines.ipynb - 06) Figure 5 b,c,d,e,f,g Phased Reading, Internal and Attempted Speech Task/
Phased-Task-Tuning-FVAF. , Jupyter, 150 linesipynb - utils/
analysis.py , Python, 924 lines - utils/
analysisT17.py , Python, 779 lines - utils/
analysisT17imagined.py , Python, 850 lines - utils/
analysisT17speech.py , Python, 780 lines - utils/
analysisT17speechorofaci , Python, 780 linesal.py - utils/
brainToText_trainDecoder , Python, 700 lines.py - utils/
calculate_wer.py , Python, 91 lines - utils/
gaussSmooth.py , Python, 34 lines - utils/
jjjutils.py , Python, 242 lines - utils/
mat_to_tfrecord.py , Python, 457 lines - utils/
mat_to_tfrecord_imagined , Python, 501 lines.py - utils/
models.py , Python, 66 lines - README.md, Text, 11 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 60 scripts, each with its path and the digest of its content;
- 18 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- doi:10.5061/
dryad.vq83bk481 , at Dryad; found in the resources table
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: justin-jude/
anarthria-speech-bci , Zenodo 18599809 - it says that the data are available on request
- it says that the code is available on request
Read it in the paper: doi.org/10.1016/j.celrep.2026.117162.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 14 authors, 8 keywords, 9 funders, 54 references, 8 RRIDs.
Cite
This paper
Jude, J. J., Haro, S., Levi-Aharoni, H., Hashimoto, H., Acosta, A. J., Card, N. S., Wairagkar, M., Brandman, D. M., Stavisky, S. D., Williams, Z. M., Cash, S. S., Simeral, J. D., Hochberg, L. R., & Rubin, D. B. (2026). Decoding intended speech with an intracortical brain-computer interface in a person with long-standing anarthria and locked-in syndrome. Cell reports, 45(4), 117162. https://
BibTeX
@article{jude2026decodin
author = {Jude, Justin J and Haro, Stephanie and Levi-Aharoni, Hadar and Hashimoto, Hiroaki and Acosta, Alexander J and Card, Nicholas S and Wairagkar, Maitreyee and Brandman, David M and Stavisky, Sergey D and Williams, Ziv M and Cash, Sydney S and Simeral, John D and Hochberg, Leigh R and Rubin, Daniel B},
title = {{Decoding intended speech with an intracortical brain-computer interface in a person with long-standing anarthria and locked-in syndrome}},
journal = {Cell reports},
year = {2026},
month = mar,
volume = {45},
number = {4},
pages = {117162},
publisher = {Cell Press},
issn = {2211-1247},
doi = {10.1016/
url = {https://
pmid = {41920737},
pmcid = {PMC13335209}
}
RIS
TY - JOUR
AU - Jude, Justin J
AU - Haro, Stephanie
AU - Levi-Aharoni, Hadar
AU - Hashimoto, Hiroaki
AU - Acosta, Alexander J
AU - Card, Nicholas S
AU - Wairagkar, Maitreyee
AU - Brandman, David M
AU - Stavisky, Sergey D
AU - Williams, Ziv M
AU - Cash, Sydney S
AU - Simeral, John D
AU - Hochberg, Leigh R
AU - Rubin, Daniel B
TI - Decoding intended speech with an intracortical brain-computer interface in a person with long-standing anarthria and locked-in syndrome
T2 - Cell reports
J2 - Cell Rep
PY - 2026
DA - 2026/
VL - 45
IS - 4
SP - 117162
SN - 2211-1247
PB - Cell Press
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "Decoding intended speech with an intracortical brain-computer interface in a person with long-standing anarthria and locked-in syndrome",
"container-title": "Cell reports",
"author": [
{
"family": "Jude",
"given": "Justin J"
},
{
"family": "Haro",
"given": "Stephanie"
},
{
"family": "Levi-Aharoni",
"given": "Hadar"
},
{
"family": "Hashimoto",
"given": "Hiroaki"
},
{
"family": "Acosta",
"given": "Alexander J"
},
{
"family": "Card",
"given": "Nicholas S"
},
{
"family": "Wairagkar",
"given": "Maitreyee"
},
{
"family": "Brandman",
"given": "David M"
},
{
"family": "Stavisky",
"given": "Sergey D"
},
{
"family": "Williams",
"given": "Ziv M"
},
{
"family": "Cash",
"given": "Sydney S"
},
{
"family": "Simeral",
"given": "John D"
},
{
"family": "Hochberg",
"given": "Leigh R"
},
{
"family": "Rubin",
"given": "Daniel B"
}
],
"container-title-short":
"volume": "45",
"issue": "4",
"page": "117162",
"DOI": "10.1016/
"PMID": "41920737",
"PMCID": "PMC13335209",
"ISSN": "2211-1247",
"publisher": "Cell Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
30
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41591-026-04414-6 [code]
- Long-term independent use of an intracortical brain-computer interface for speech and cursor control.Journal: Nature medicineIn common: pandas, SciPy, Matplotlib, 1 other tool, cognitive, other condition, 14 references, author Leigh R Hochberg
- [2] doi:10.1038/s41586-026-10653-x [code]
- A mosaic of whole-body representations on the human precentral gyrus.Journal: NatureIn common: Statistics and Machine Learning Toolbox, scikit-learn, SciPy, 2 other tools, other condition, 10 references, 2 authors
- [3] doi:10.1016/j.cell.2025.06.015
- Inner speech in motor cortex and implications for speech neuroprostheses.Journal: CellIn common: 13 references, 2 authors
- [4] doi:10.1088/1741-2552/add0e5
- Speech motor cortex enables BCI cursor control and click.Journal: Journal of neural engineeringIn common: other condition, 15 references, author Leigh R Hochberg
- [5] doi:10.1088/1741-2552/ad88a4 [code]
- Reducing power requirements for high-accuracy decoding in iBCIs.Journal: Journal of neural engineeringIn common: seaborn, scikit-learn, pandas, 3 other tools, 11 references, author Leigh R Hochberg
- [6] doi:10.1038/s41467-026-71284-4 [code]
- Encoding of speech modes and loudness in ventral precentral gyrus.Journal: Nature communicationsIn common: seaborn, scikit-learn, pandas, 3 other tools, cognitive, 10 references, author Leigh R Hochberg
- [7] doi:10.1038/s41598-024-51617-3 [code]
- Brain control of bimanual movement enabled by recurrent neural networks.Journal: Scientific reportsIn common: Numba, Statistics and Machine Learning Toolbox, scikit-learn, 2 other tools, 10 references, author Leigh R Hochberg
- [8] doi:10.1088/1741-2552/ace8be [code]
- Direct speech reconstruction from sensorimotor brain activity with optimized deep learning models.Journal: Journal of neural engineeringIn common: TensorFlow, seaborn, scikit-learn, 4 other tools, 11 references
- [9] doi:10.1038/s41598-024-60277-2 [code]
- Online speech synthesis using a chronically implanted brain-computer interface in an individual with ALS.Journal: Scientific reportsIn common: scikit-learn, pandas, SciPy, 2 other tools, cognitive, other condition, 12 references
- [10] doi:10.1038/s41586-023-06377-x [code]
- A high-performance speech neuroprosthesis.Journal: NatureIn common: Numba, TensorFlow, seaborn, 5 other tools, cognitive, other condition, 6 references, author Leigh R Hochberg
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 60 scripts, and 18 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:67e0812f3c7eeb4f…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1016/j.celrep.2026.117162)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1016/j.celrep.2026.117162.svg
:target: https://openscicode.org/badge/doi/10.1016/j.celrep.2026.117162
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.celrep.2026.117162"><img src="https://openscicode.org/badge/doi/10.1016/j.celrep.2026.117162.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
