OSCR

Cortical speech envelope tracking reflects lesion-symptom profiles in post-stroke aphasia.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches · all tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [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. [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

  1. ### Linear Mixed Effects Modelling Code for Behavioural and Decoding Data ###
  2. ### Data should be organised by stimulus-matched or behaviour-matched conditions ###
  3. ###### Load required packages ######
  4. library(dplyr) # Data manipulation
  5. library(lmerTest) # Linear mixed-effects models with significance testing
  6. library(lme4) # Linear mixed-effects models
  7. library(readxl) # Reading Excel files
  8. library(emmeans) # Estimated marginal means (post hoc comparisons)
  9. library(lattice) # Visualization of random effects
  10. library(effects) # Visualization of model effects
  11. ## Load the dataset from an Excel file ##
  12. df <- read_excel("path to df.xlsx")
  13. ###### Convert predictor variables and covariates to factors ######
  14. df$Group_code <- as.factor(df$Group) # Convert Group to a categorical variable
  15. df$Experiment_version <- as.factor(df$Experiment_version) # Convert Experiment Version to a categorical variable
  16. df$Speech_condition <- as.factor(df$Speech_condition) # Convert Speech Condition to a categorical variable
  17. df$Frequency_band <- as.factor(df$Frequency_band) # Convert Frequency Band to a categorical variable
  18. df$Participant <- as.factor(df$Participant) # Convert Participant ID to a categorical variable
  19. #### Fit a Linear Mixed Effects Model for Behavioural Data #######
  20. # Model formula:
  21. # - Dependent variable: d-prime (behavioral measure)
  22. # - Fixed effects: Group, Speech Condition, Age, Hearing Threshold, Subjective Alertness
  23. # - Random effects: Participant (to account for individual differences)
  24. Behavioural_mod <- lmer(`d-prime` ~ Group * Speech_condition + Age + Hearing_Threshold_Ave + Subjective_Alertness + (1|Participant), data = df)
  25. # Display model summary including estimates, standard errors, and p-values
  26. summary(Behavioural_mod)
  27. # Compute and plot effects of fixed variables
  28. eff <- allEffects(Behavioural_mod)
  29. plot(eff)
  30. # Compute R-squared values for the model
  31. Behavioural_mod_r2_values <- r.squaredGLMM(Behavioural_mod)
  32. # Extract fixed effects coefficients
  33. Behavioural_mod_fixed_effects <- summary(Behavioural_mod)$coefficients
  34. # Extract model residuals
  35. Behavioural_mod_res <- residuals(Behavioural_mod)
  36. # Q-Q plot for checking normality of residuals
  37. qqnorm(Behavioural_mod_res, main = "Q-Q Plot of Residuals for Behavioural Model")
  38. qqline(Behavioural_mod_res, col = "red")
  39. # Shapiro-Wilk test for normality of residuals
  40. shapiro.test(Behavioural_mod_res)
  41. ###### Fit a Linear Mixed Effects Model for Decoding Reconstruction Accuracy ######
  42. # Model formula:
  43. # - Dependent variable: Decoding data (reconstruction accuracy)
  44. # - Fixed effects: Group, Speech Condition, Frequency Band, Age, Hearing, Subjective Alertness
  45. # - Random effects: Participant and EEG Version (to account for individual differences and experiment variability)
  46. Decoding_mod <- lmer(Decoding_data ~ Group * Speech_condition * Frequency_band + Age + Hearing + Subjective_Alertness + (1|Participant) + (1|EEG_version), data = df)
  47. # Display model summary including estimates, standard errors, and p-values
  48. summary(Decoding_mod)
  49. # Compute and plot effects of fixed variables
  50. eff <- allEffects(Decoding_mod)
  51. plot(eff)
  52. # Conduct pairwise comparisons for Speech Condition x Frequency Band interaction
  53. # Conduct pairwise comparisons for Group variable
  54. emmeans(Decoding_mod, pairwise ~ Group_code)
  55. emmeans(Decoding_mod, pairwise ~ Speech_condition * Frequency_band)
  56. # Compute R-squared values for the model
  57. Decoding_mod_r2_values <- r.squaredGLMM(Decoding_mod)
  58. # Extract fixed effects coefficients
  59. Decoding_mod_fixed_effects <- summary(Decoding_mod)$coefficients
  60. # Extract model residuals
  61. Decoding_mod_res <- residuals(Decoding_mod)
  62. # Q-Q plot for checking normality of residuals
  63. qqnorm(Decoding_mod_res, main = "Q-Q Plot of Residuals for Decoding Model")
  64. qqline(Decoding_mod_res, col = "red")
  65. # Shapiro-Wilk test for normality of residuals
  66. shapiro.test(Decoding_mod_res)

LME_Behavioural_and_Decoding_Reconstruction_Accuracy.R, no license · at the source

Overview

Authors: Guangting Mai1,2, Emily Upton1, Timothy D Griffiths3,4, Alexander P Leff5,6, Jennifer T Crinion7, Gordon Mills1, Douglas Neville4, Storm Anderson4, Cathy J Price4, Ajay D Halai2, Martyn I Blairs2, Máté Aller2, Lucy J MacGregor2, Matthew H Davis2, Holly Robson1
  1. Department of Language and Cognition, Psychology and Language Sciences, University College London, London WC1E 6AE, UK
  2. MRC Cognition and Brain Sciences Unit, University of Cambridge, Cambridge CB2 7EF, UK
  3. Newcastle University Medical School, Newcastle University, Newcastle upon Tyne NE2 4HH, UK
  4. Department of Imaging Neuroscience, UCL Queen Square Institute of Neurology, University College London, London WC1E 6AE, UK
  5. Department of Translational Neuroscience and Stroke, UCL Queen Square Institute of Neurology, University College London, London WC1E 6AE, UK
  6. University College London Hospitals NHS Trust, London NW1 2BU, UK
  7. Institute of Cognitive Neuroscience, University College London, London WC1E 6AE, UK
Journal: Brain communications, volume 8, issue 4, article fcag261
Dates: received 31 July 2025; accepted 13 April 2026; published online 7 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/braincomms/fcag261 · PMID 42500552 · PMCID PMC13397126 · OpenAlex W4416705481
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), stroke (population), cognitive (subfield)
Methods: Statistics, Preprocessing
Keywords: neural tracking, aphasia, speech comprehension, speech envelope, intelligibility
Topic: Neurobiology of Language and Bilingualism (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Medical Research Council (MR/T028629/1); Medical Research Council (MC_UU_00030/6); National Institute for Health and Care Research (RP-2015-06-012); Wellcome Trust (224562/Z/21/Z); Medical Research Council Career Development Award (MR/V031481/1)
Citations: not cited yet (Europe PMC); 68 references in the paper

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/comprehension status: tracking was reduced in the temporal group compared to the control group, but tracking was not significantly different when control comprehension was behaviour-matched via speech degradation. Delta encoding produced a similarly behaviour-linked pattern, but theta encoding was lesion—rather than behaviour-sensitive, in that reduced tracking was observed in temporo-parietal sensors in both aphasia groups. Theta tracking correlated with comprehension in a lesion-specific manner. Positive correlations between theta tracking and comprehension were found in the temporal group and negative correlations in the frontal and control groups. This produced a quadratic (inverted-U) relationship between theta tracking and comprehension success across all participants. The control-like, negative theta tracking–comprehension correlations in the frontal group are consistent with listening effort effects in which greater task difficulty result in greater tracking. In the temporal group, where comprehension was impaired, better envelope tracking at syllable rates may help build a stable representation of the speech stream supporting phonological and lexical analysis and comprehension. These results indicate that envelope tracking reflects a combination of lesion and symptom profiles and is a viable method for investigating the mechanisms of speech comprehension in aphasia.

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

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 3 files
Software Heritage: not checked
Found in: “Data availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: emmeans (1 file), lme4 (1 file), lmerTest (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
2 files
At the source: osf.io/hqs2e/

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://doi.org/10.5522/04/31231285. Binary lesion maps and analysis codes are available in an Open Science Framework repository at https://osf.io/hqs2e/. Neuropsychological data are available in Supplementary Materials.

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://doi.org/10.1093/braincomms/fcag261

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/braincomms/fcag261},
url = {https://doi.org/10.1093/braincomms/fcag261},
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/07/07
VL - 8
IS - 4
SP - fcag261
SN - 2632-1297
PB - Oxford University Press
DO - 10.1093/braincomms/fcag261
UR - https://doi.org/10.1093/braincomms/fcag261
LA - en
ER -

CSL-JSON

{
"id": "10.1093/braincomms/fcag261",
"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": "Brain Commun",
"volume": "8",
"issue": "4",
"page": "fcag261",
"DOI": "10.1093/braincomms/fcag261",
"PMID": "42500552",
"PMCID": "PMC13397126",
"ISSN": "2632-1297",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/braincomms/fcag261",
"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: eNeuro
In 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 neuroscience
In 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 biology
In 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 neuroscience
In 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 neuroscience
In 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 reports
In 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 Sentences
Journal: n/a
In 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: iScience
In 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.

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: 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.