Cortical speech envelope tracking reflects lesion-symptom profiles in post-stroke aphasia.
The 2 matches · all tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Continuous speech comprehension EEG paradigm › Statistical analyses › LMER of behavioural and neural data ↔ Statistical Analyses Code.zip/LME_Behavioural_and_Decoding_Reconstruction_Accuracy.R, the whole file · a weak match · score 0.81 · decoding reconstruction accuracy, Linear mixed, subjective alertness, modelled, covariates, LMER
- [2] § Results › Behavioural results › EEG paradigm behavioural scores ↔ Statistical Analyses Code.zip/LME_Behavioural_and_Decoding_Reconstruction_Accuracy.R, the whole file · a weak match · score 0.68 · Linear mixed, behaviour matched, emmeans, stimulus matched, interaction, models
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 89 lines · 3.9 KB · no license · 2 matches
- ### Linear Mixed Effects Modelling Code for Behavioural and Decoding Data ###
- ### Data should be organised by stimulus-matched or behaviour-matched conditions ###
- ###### Load required packages ######
- library(dplyr) # Data manipulation
- library(lmerTest) # Linear mixed-effects models with significance testing
- library(lme4) # Linear mixed-effects models
- library(readxl) # Reading Excel files
- library(emmeans) # Estimated marginal means (post hoc comparisons)
- library(lattice) # Visualization of random effects
- library(effects) # Visualization of model effects
- ## Load the dataset from an Excel file ##
- df <- read_excel("path to df.xlsx")
- ###### Convert predictor variables and covariates to factors ######
- df$Group_code <- as.factor(df$Group) # Convert Group to a categorical variable
- df$Experiment_version <- as.factor(df$Experiment_version) # Convert Experiment Version to a categorical variable
- df$Speech_condition <- as.factor(df$Speech_condition) # Convert Speech Condition to a categorical variable
- df$Frequency_band <- as.factor(df$Frequency_band) # Convert Frequency Band to a categorical variable
- df$Participant <- as.factor(df$Participant) # Convert Participant ID to a categorical variable
- #### Fit a Linear Mixed Effects Model for Behavioural Data #######
- # Model formula:
- # - Dependent variable: d-prime (behavioral measure)
- # - Fixed effects: Group, Speech Condition, Age, Hearing Threshold, Subjective Alertness
- # - Random effects: Participant (to account for individual differences)
- Behavioural_mod <- lmer(`d-prime` ~ Group * Speech_condition + Age + Hearing_Threshold_Ave + Subjective_Alertness + (1|Participant), data = df)
- # Display model summary including estimates, standard errors, and p-values
- summary(Behavioural_mod)
- # Compute and plot effects of fixed variables
- eff <- allEffects(Behavioural_mod)
- plot(eff)
- # Compute R-squared values for the model
- Behavioural_mod_r2_values <- r.squaredGLMM(Behavioural_mod)
- # Extract fixed effects coefficients
- Behavioural_mod_fixed_effects <- summary(Behavioural_mod)$coefficients
- # Extract model residuals
- Behavioural_mod_res <- residuals(Behavioural_mod)
- # Q-Q plot for checking normality of residuals
- qqnorm(Behavioural_mod_res, main = "Q-Q Plot of Residuals for Behavioural Model")
- qqline(Behavioural_mod_res, col = "red")
- # Shapiro-Wilk test for normality of residuals
- shapiro.test(Behavioural_mod_res)
- ###### Fit a Linear Mixed Effects Model for Decoding Reconstruction Accuracy ######
- # Model formula:
- # - Dependent variable: Decoding data (reconstruction accuracy)
- # - Fixed effects: Group, Speech Condition, Frequency Band, Age, Hearing, Subjective Alertness
- # - Random effects: Participant and EEG Version (to account for individual differences and experiment variability)
- Decoding_mod <- lmer(Decoding_data ~ Group * Speech_condition * Frequency_band + Age + Hearing + Subjective_Alertness + (1|Participant) + (1|EEG_version), data = df)
- # Display model summary including estimates, standard errors, and p-values
- summary(Decoding_mod)
- # Compute and plot effects of fixed variables
- eff <- allEffects(Decoding_mod)
- plot(eff)
- # Conduct pairwise comparisons for Speech Condition x Frequency Band interaction
- # Conduct pairwise comparisons for Group variable
- emmeans(Decoding_mod, pairwise ~ Group_code)
- emmeans(Decoding_mod, pairwise ~ Speech_condition * Frequency_band)
- # Compute R-squared values for the model
- Decoding_mod_r2_values <- r.squaredGLMM(Decoding_mod)
- # Extract fixed effects coefficients
- Decoding_mod_fixed_effects <- summary(Decoding_mod)$coefficients
- # Extract model residuals
- Decoding_mod_res <- residuals(Decoding_mod)
- # Q-Q plot for checking normality of residuals
- qqnorm(Decoding_mod_res, main = "Q-Q Plot of Residuals for Decoding Model")
- qqline(Decoding_mod_res, col = "red")
- # Shapiro-Wilk test for normality of residuals
- shapiro.test(Decoding_mod_res)
LME_Behavioural_and_Decoding_Reconstruction_Accuracy.R, no license · at the source
Overview
- Department of Language and Cognition, Psychology and Language Sciences, University College London, London WC1E 6AE, UK
- MRC Cognition and Brain Sciences Unit, University of Cambridge, Cambridge CB2 7EF, UK
- Newcastle University Medical School, Newcastle University, Newcastle upon Tyne NE2 4HH, UK
- Department of Imaging Neuroscience, UCL Queen Square Institute of Neurology, University College London, London WC1E 6AE, UK
- Department of Translational Neuroscience and Stroke, UCL Queen Square Institute of Neurology, University College London, London WC1E 6AE, UK
- University College London Hospitals NHS Trust, London NW1 2BU, UK
- Institute of Cognitive Neuroscience, University College London, London WC1E 6AE, UK
Abstract
Comprehending connected speech is critical for human interaction and is vulnerable in post-stroke aphasia. Understanding the neural mechanisms underlying impaired speech listening is necessary for accurate and effective assessment and treatment. Neural speech tracking methods offer a window into naturalistic speech processing and may reveal causal contributions to comprehension. EEG was recorded during story listening in 15 people with aphasia with left temporal lesions (temporal group), 14 people with aphasia with left frontal lesions (frontal group) and 15 age- and hearing-matched controls (control group). All participants listened to clear and unintelligible stories (∼12 min per condition). Controls additionally listened to low-intelligibility stories that equated comprehension success to the temporal group. Envelope tracking was measured at syllable- (theta) and multi-syllable- (delta) rates. Neural decoding and encoding analyses measured global (whole-brain) and local (sensor-wise) speech tracking, respectively. Group comparisons used linear mixed-effects regression. Linear and quadratic relationships assessed associations between neural tracking and behavioural measures of comprehension while accounting for covariates. Behavioural measures of comprehension showed the temporal group were significantly impaired compared to both frontal and control groups. Comparison of intelligible and unintelligible speech found that intelligibility affected delta but not theta tracking—suggesting that delta tracking is linked to higher-order linguistic processing and theta tracking reflects sensory responses. Theta and delta envelope decoding reflected group/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
OSF hqs2e
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
2 files
- Statistical Analyses Code.zip/
LME_Behavioural_and_Deco , R, 89 lines, 2 matchesding_Reconstruction_Accu racy.R - Statistical Analyses Code.zip/
Neuropsychology_data_imp , R, 92 linesutation.R
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:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 2 scripts, each with its path and the digest of its content;
- 2 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
No dataset and no data link were found in the paper.
Data availability
Preprocessed EEG data (post ICA), restructured EEG, speech envelope and tracking results are available in the UCL data repository at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 15 authors, 5 keywords, 5 funders, 61 references.
Cite
This paper
Mai, G., Upton, E., Griffiths, T. D., Leff, A. P., Crinion, J. T., Mills, G., Neville, D., Anderson, S., Price, C. J., Halai, A. D., Blairs, M. I., Aller, M., MacGregor, L. J., Davis, M. H., & Robson, H. (2026). Cortical speech envelope tracking reflects lesion-symptom profiles in post-stroke aphasia. Brain communications, 8(4), fcag261. https://
BibTeX
@article{mai2026cortical
author = {Mai, Guangting and Upton, Emily and Griffiths, Timothy D and Leff, Alexander P and Crinion, Jennifer T and Mills, Gordon and Neville, Douglas and Anderson, Storm and Price, Cathy J and Halai, Ajay D and Blairs, Martyn I and Aller, Máté and MacGregor, Lucy J and Davis, Matthew H and Robson, Holly},
title = {{Cortical speech envelope tracking reflects lesion-symptom profiles in post-stroke aphasia}},
journal = {Brain communications},
year = {2026},
month = jul,
volume = {8},
number = {4},
pages = {fcag261},
publisher = {Oxford University Press},
issn = {2632-1297},
doi = {10.1093/
url = {https://
pmid = {42500552},
pmcid = {PMC13397126}
}
RIS
TY - JOUR
AU - Mai, Guangting
AU - Upton, Emily
AU - Griffiths, Timothy D
AU - Leff, Alexander P
AU - Crinion, Jennifer T
AU - Mills, Gordon
AU - Neville, Douglas
AU - Anderson, Storm
AU - Price, Cathy J
AU - Halai, Ajay D
AU - Blairs, Martyn I
AU - Aller, Máté
AU - MacGregor, Lucy J
AU - Davis, Matthew H
AU - Robson, Holly
TI - Cortical speech envelope tracking reflects lesion-symptom profiles in post-stroke aphasia
T2 - Brain communications
J2 - Brain Commun
PY - 2026
DA - 2026/
VL - 8
IS - 4
SP - fcag261
SN - 2632-1297
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"type": "article-journal",
"title": "Cortical speech envelope tracking reflects lesion-symptom profiles in post-stroke aphasia",
"container-title": "Brain communications",
"author": [
{
"family": "Mai",
"given": "Guangting"
},
{
"family": "Upton",
"given": "Emily"
},
{
"family": "Griffiths",
"given": "Timothy D"
},
{
"family": "Leff",
"given": "Alexander P"
},
{
"family": "Crinion",
"given": "Jennifer T"
},
{
"family": "Mills",
"given": "Gordon"
},
{
"family": "Neville",
"given": "Douglas"
},
{
"family": "Anderson",
"given": "Storm"
},
{
"family": "Price",
"given": "Cathy J"
},
{
"family": "Halai",
"given": "Ajay D"
},
{
"family": "Blairs",
"given": "Martyn I"
},
{
"family": "Aller",
"given": "Máté"
},
{
"family": "MacGregor",
"given": "Lucy J"
},
{
"family": "Davis",
"given": "Matthew H"
},
{
"family": "Robson",
"given": "Holly"
}
],
"container-title-short":
"volume": "8",
"issue": "4",
"page": "fcag261",
"DOI": "10.1093/
"PMID": "42500552",
"PMCID": "PMC13397126",
"ISSN": "2632-1297",
"publisher": "Oxford University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
7
]
]
}
}
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.1523/eneuro.0069-26.2026 [code]
- Electrophysiological Indices of Hierarchical Speech Processing Differentially Reflect the Comprehension of Speech in Noise.Journal: eNeuroIn common: emmeans, lmerTest, cognitive, 10 references
- [2] doi:10.1162/nol.a.249 [code]
- How Low-Frequency Neural Activity Structures Language in Time.Journal: Neurobiology of language (Cambridge, Mass.)In common: emmeans, lme4, tidyverse, cognitive, 8 references
- [3] doi:10.1162/imag.a.1305
- Can you &
lt;i& gt;feel& lt;/ i& gt; what I am saying? Speech-based vibrotactile stimulation enhances the cortical tracking of attended speech in a multi-talker background. Journal: Imaging neuroscience (Cambridge, Mass.)In common: cognitive, 10 references - [4] doi:10.1111/ejn.70569 [code]
- Quantifying the Influence of Lexical Surprisal on Acoustic Speech Encoding While Controlling for Within-Speaker Variability.Journal: The European journal of neuroscienceIn common: emmeans, lmerTest, cognitive, 6 references
- [5] doi:10.1038/s42003-026-10394-7 [code]
- Cognitive load weakens neural speech tracking without altering response timing.Journal: Communications biologyIn common: cognitive, 8 references
- [6] doi:10.1111/ejn.70598 [code]
- Enhanced Time-Locked Decoding for Spoken Words but Not Environmental Sounds in Natural-Like Auditory Conditions.Journal: The European journal of neuroscienceIn common: cognitive, 7 references
- [7] doi:10.3389/fnhum.2026.1692628 [code]
- The effects of vocal emotions and emotional context on the neural tracking of speech envelopes and listeners' vigilance states.Journal: Frontiers in human neuroscienceIn common: cognitive, 7 references
- [8] doi:10.1038/s41598-026-57256-0 [code]
- Pupil- and gaze dynamics track emotion content in naturalistic speech.Journal: Scientific reportsIn common: cognitive, 6 references
- [9] doi:10.1038/s41597-025-06397-4 [code]
- MEG-SCANS - A comprehensive magnetoencephalography speech dataset with Stories, Chirps and Noisy SentencesJournal: n/aIn common: 6 references
- [10] doi:10.1016/j.isci.2026.116458 [code]
- Neural tracking of prosodic and statistical rhythms jointly supports artificial language learning.Journal: iScienceIn common: emmeans, lmerTest, lme4, 1 other tool, cognitive, 2 references
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: 1 repository of the authors' code, each at its verified commit and with its license, 2 scripts, and 2 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:2ce50b046579f84d…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
