Cortical speech envelope tracking reflects lesion-symptom profiles in post-stroke aphasia.
One block of code here has a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 2 matches · all tie a paragraph to a whole file without 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 · block
oscr:b:4AGFW0WP6Z75X-5· Report a mismatch - [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 · block
oscr:b:4AGFW0WP6Z75X-5· 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
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.1177/23312165241266316
- Neural Decoding of the Speech Envelope: Effects of Intelligibility and Spectral Degradation.Journal: Trends in hearingIn common: cognitive, 14 references
- [2] doi:10.1093/cercor/bhac094 [code]
- Expectations boost the reconstruction of auditory features from electrophysiological responses to noisy speech.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: emmeans, lme4, tidyverse, cognitive, 11 references
- [3] doi:10.1002/hbm.26503 [code]
- Distinct roles of delta- and theta-band neural tracking for sharpening and predictive coding of multi-level speech features during spoken language processing.Journal: Human brain mappingIn common: cognitive, 9 references, author Guangting Mai
- [4] doi:10.1162/imag_a_00539 [code]
- Are you talking to me? How the choice of speech register impacts listeners' hierarchical encoding of speech.Journal: Imaging neuroscience (Cambridge, Mass.)In common: emmeans, lmerTest, lme4, cognitive, 10 references
- [5] 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
- [6] doi:10.1126/sciadv.ado8915 [code]
- The human auditory cortex concurrently tracks syllabic and phonemic timescales via acoustic spectral flux.Journal: Science advancesIn common: emmeans, lmerTest, lme4, 9 references
- [7] 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
- [8] 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 - [9] doi:10.1523/eneuro.0368-24.2024 [code]
- Neural Speech Tracking Contribution of Lip Movements Predicts Behavioral Deterioration When the Speaker's Mouth Is Occluded.Journal: eNeuroIn common: lmerTest, lme4, tidyverse, cognitive, 7 references
- [10] doi:10.7554/elife.100830 [code]
- Enhanced neural speech tracking through noise indicates stochastic resonance in humans.Journal: eLifeIn common: cognitive, 9 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:7821632b1270c1de…
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.1093/braincomms/fcag261)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1093/braincomms/fcag261.svg
:target: https://openscicode.org/badge/doi/10.1093/braincomms/fcag261
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/braincomms/fcag261"><img src="https://openscicode.org/badge/doi/10.1093/braincomms/fcag261.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->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)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
