OSCR

Quantifying the Influence of Lexical Surprisal on Acoustic Speech Encoding While Controlling for Within-Speaker Variability.

Code ↔ Paper

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

6 blocks of code here have 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 8 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › Data Acquisition and Preprocessing ↔ Code/gmdlDataset_preprocess.m, lines 1 to 68 · score 0.88 · passband attenuation, stopband attenuation, Noisy channels, deviant trials, kurtosis, downsampled · block oscr:b:A0SBFWXTGNX86-L · Report a mismatch
  2. [2] § Results › EEG Signatures of Acoustic Speech Processing Are Stronger for Less Predictable Words, Beyond Variations in Speaker Articulation ↔ Code/gmdlDataset_fw_lme_4D_array_calc.m, lines 1 to 36 · score 0.69 · 100–200 ms, 0–100 ms, stage regression, NP surprisal, window, LME · block oscr:b:1VAXSXNFMFJ2R-3 · Report a mismatch
  3. [3] § Methods › Modeling the Relationship Between Speech Features and EEG Responses ↔ Code/gmdlDataset_fw_lme_4D_array_calc.m, lines 1 to 36 · score 0.66 · 100–300 ms, stage regression, surprisal models, forward models, trained, 100 ms · block oscr:b:1VAXSXNFMFJ2R-3 · Report a mismatch
  4. [4] § Results › EEG Signatures of Acoustic Speech Processing Are Stronger for Less Predictable Words, Beyond Variations in Speaker Articulation ↔ Code/gmdlDataset_fw_lme_prep.m, lines 1 to 34 · score 0.63 · 100–200 ms, 0–100 ms, LME model, NP surprisal, window, envelope · block oscr:b:A0DRSF64QD2RV-O · Report a mismatch
  5. [5] § Results › EEG Signatures of Acoustic Speech Processing Are Stronger for Less Predictable Words, Beyond Variations in Speaker Articulation ↔ Code/singleWordProsody.m, the whole file · a weak match · score 0.61 · single word, 0–100 ms, resolvability, rows, onset, envelope · block oscr:b:S84J29GCG1QWW-B · Report a mismatch
  6. [6] § Methods › Data Acquisition and Preprocessing ↔ Code/gmdlDataset_preprocess.m, lines 71 to 181 · score 0.56 · EEG space, PCA, denoise, MCCA, Preprocessing, neural · block oscr:b:0MHAFTQGHW4TB-E · Report a mismatch
  7. [7] § Methods › Assessing the Influence of Context‐Based Predictions on Acoustic Encoding ↔ Code/gmdlDataset_fw_mod.m, lines 1 to 46 · score 0.54 · word onset, 100–300 ms, speech envelope, lags, 100 ms, surprisal · block oscr:b:TZE6R71AX0EQ8-N · Report a mismatch
  8. [8] § Methods › Modeling the Relationship Between Speech Features and EEG Responses ↔ Code/gmdlDataset_fw_mod.m, lines 1 to 46 · score 0.53 · 100–700 ms, 100–300 ms, lags, trained, TRF, envelope · block oscr:b:TZE6R71AX0EQ8-N · 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

MATLAB · 181 lines · 6.6 KB · no license · 2 matches

  1. %% Shyanthony Synigal Fall 2023
  2. % Preprocessing G.M. di Liberto's 2018 vocoding experiment data (his raw data)
  3. % Applying MCCA using standard trials only
  4. % Uses kurtosis, spectra, and probability to identify noisy channels
  5. % reref to the average of all channels
  6. % Dependencies: EEGLAB, Fieldtrip (for filtfilthd), NoiseTools (Alain de Cheveigne's toolbox)
  7. % This script loads the CND data
  8. % My data wasn't originally in CND format when I analyzed it and saved it
  9. % for the first time, so I tried to write it in at the end
  10. study_dir = pwd;
  11. eegRaw_dir = [study_dir '\rawNeural\'];
  12. eeg_dir = [study_dir '\dataCND\'];
  13. mcca_dir = [eeg_dir '\MCCA\'];
  14. dev_dir = [study_dir '\Data\'];
  15. if ~exist(eeg_dir,'dir'), mkdir(eeg_dir); end
  16. if ~exist(mcca_dir,'dir'), mkdir(mcca_dir); end
  17. % Bandpass filter
  18. fs = 512; % Sampling frequency (Hz)
  19. fs_new = 128; % what we'll downsample to
  20. fstop1 = 0.5; % Lower stopband frequency (Hz)
  21. fpass1 = 1; % Lower passband frequency (Hz)
  22. astop1 = 60; % Stopband attenuation (dB)
  23. apass = 1; % Passband attenuation (dB)
  24. fpass2 = 8; % Upper passband frequency (Hz)
  25. fstop2 = 8.5; % Upper stopband frequency (Hz)
  26. astop2 = 80; % Stopband attenuation (dB)
  27. h = fdesign.highpass(fstop1,fpass1,astop1,apass,fs);
  28. hpf = design(h,'cheby2','MatchExactly','stopband'); clear h
  29. h = fdesign.lowpass(fpass2,fstop2,apass,astop2,fs);
  30. lpf = design(h,'cheby2','MatchExactly','stopband'); clear h
  31. clear fpass2 fstop2 apass astop2 fstop1 fpass1 astop1 h
  32. % Other info: subjects, conditions, etc.
  33. subs = 1:14;
  34. nsubs = length(subs);
  35. conditions = {'np','c','p'}; % the presentation order
  36. ncond = numel(conditions);
  37. nchans = 128;
  38. badchans_all = cell(1,nsubs);
  39. tsec = 10; % 10 sec trials
  40. tlen = fs_new*tsec; %% of samp for 10 sec trials
  41. nPCs = 40; % number of PCs
  42. nMCCs = 110; % numbr of CCs
  43. % load([dev_dir 'chanlocs.mat']) % also saved in CND file
  44. load([dev_dir 'Deviants.mat']);
  45. standards = 1:120;
  46. standards(ismember(standards,deviants))=[]; %removing the deviant trials
  47. ntrials = numel(standards); % should be 93;
  48. %% Preprocess
  49. for cond = 1:ncond
  50. disp(['** Processing condition' int2str(cond) ' **']);
  51. for s = 1:nsubs
  52. allEEG = zeros(tlen,nchans,ntrials); %needs to be time x chann x trials
  53. load([eegRaw_dir, 'dataSub', int2str(s), '_', conditions{cond}, '.mat'],'neural')
  54. row = 1;
  55. for trial = standards
  56. % using standard trials only. even for clean condition.
  57. disp(['subject ' int2str(s) ' trial ' int2str(trial)])
  58. load([eegRaw_dir 'dataSub' int2str(s) '_' conditions{cond} '.mat'],'neural');
  59. eeg = neural.data{trial}; % [neural.data{trial} neural.extChan{1}.data{trial}]; % time x chan
  60. %'** Filtering **'
  61. EEG = filtfilthd(hpf,eeg');
  62. EEG = filtfilthd(lpf,EEG);
  63. EEG = EEG(:,1:nchans);
  64. % What Giovanni used to find trial beginning and endings
  65. startSample = neural.trialStart(1,trial);
  66. endSample = neural.trialEnd(1,trial);
  67. EEG = EEG(startSample:endSample,:); %still tim x chan
  68. % mastoids = mastoids(startSample:endSample,:);
  69. clear startSample endSample
  70. % '** Interpolating bad channels **' % Spline interpolate bad channels (time x chans) w/ eeglab
  71. EEGstruct = create_eegstruct(EEG,fs,neural.chanlocs); % input data: time x chann
  72. elecind1 = []; elecind2 = []; elecind3 = []; badchans = []; elecind4 = []; % for bad channels
  73. [~,elecind1,~,~] = pop_rejchan(EEGstruct, 'elec',1:nchans,'threshold',10,'norm','on','measure','kurt');
  74. [~,elecind2,~,~] = pop_rejchan(EEGstruct, 'elec',1:nchans,'threshold',5,'norm','on','measure','spec');
  75. [~,elecind3,~,~] = pop_rejchan(EEGstruct, 'elec',1:nchans,'threshold',10,'norm','on','measure','prob');
  76. elecind4 = findBadChansMean(EEGstruct,3);
  77. badchans = unique([elecind1 elecind2 elecind3 elecind4]); % indecies of bad channels
  78. badchans_all{row,s} = badchans;
  79. EEGstruct.badchans = badchans; % keep info about bad channels
  80. EEGstruct = eeg_interp(EEGstruct,badchans); % do and save interp data
  81. data = double(EEGstruct.data'); clear EEG eeg % time x chan x trials
  82. % '** Downsampling **'
  83. eegData = downsample(data,(fs/fs_new)); %still time x chan
  84. % '** Rereferening to global avg **'
  85. % input data = chan x time, so transpose
  86. eegData = reref(eegData',[],'keepref','off');
  87. allEEG(1:length(eegData),:,row) = eegData'; %needs to be time x chann x trials
  88. row = row+1;
  89. clear badchans data eegData %mastoids
  90. end
  91. %
  92. disp('** Run PCA and save **')
  93. % save each subject's data here and run MCCA on all subjects at once
  94. % xAll = sub x time x PC x trial; topcs = sub x chan x chan
  95. [xAll(s,:,:,:), topcs(s,:,:)] = alainPCA(allEEG,nPCs);
  96. clear allEEG %startIdx EEGdata
  97. end
  98. save([mcca_dir 'pca_and_badchans_standards_' conditions{cond} '.mat'],'xAll','topcs','badchans_all'); %
  99. disp('** Denoise **')
  100. filename = ([mcca_dir 'MCCA_standards_' conditions{cond} '_subject_']); %fn save name,subject#,mat
  101. alainMCCAdenoise(xAll,nPCs,nMCCs,filename); % xOut (denoised) = sub x chann x pc x trial
  102. % Data is expressed in CC space. map back to EEG space for each subject and each trial and save
  103. for s = 1:nsubs
  104. load([mcca_dir 'MCCA_standards_' conditions{cond} '_subject_' int2str(s) 'mat.mat']);
  105. tt = size(xx,2); % xx = time x trial x PC
  106. eeg_clean = NaN(size(xx,1),nchans,tt); % time, chan, trial
  107. for trial = 1:tt
  108. eeg_clean(:,:,trial) = squeeze(xx(:,trial,:))*squeeze(topcs(s,:,1:nPCs))';
  109. end
  110. disp('** Save **')
  111. eeg.trialPosition = 1:size(eeg_clean,3);
  112. eeg.data = squeeze(num2cell(eeg_clean,[1 2]))';
  113. eeg.chanlocs = chanlocs;
  114. save([eeg_dir, 'dataSub', int2str(s), '_', conditions{cond}, '.mat'],'eeg', '-v7.3')
  115. end
  116. clear xAll topcs badchans_all
  117. end

gmdlDataset_preprocess.m, no license · at the source

Overview

Authors: Shyanthony R Synigal1,2, Michael P Broderick3, Edmund C Lalor1,2,4,5
ORCID iDs: Edmund C Lalor
  1. Department of Neuroscience, University of Rochester, Rochester, New York, USA
  2. Del Monte Institute for Neuroscience, University of Rochester, Rochester, New York, USA
  3. School of Engineering, Trinity Centre for Bioengineering and Trinity College Institute of Neuroscience, Trinity College Dublin, Dublin, Ireland
  4. Department of Biomedical Engineering, University of Rochester, Rochester, New York, USA
  5. Center for Visual Science, University of Rochester, Rochester, New York, USA
Institutions: University of Rochester Medicine (United States); University of Rochester (United States); Trinity College Dublin (Ireland)
Journal: The European journal of neuroscience, volume 64, issue 1, article e70569
Dates: received 6 April 2026; accepted 18 May 2026; published online 2 July 2026; in print July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1111/ejn.70569 · PMID 42390025 · PMCID PMC13325525 · OpenAlex W7167016697
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), human (organism), cognitive (subfield)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Spectral & time-frequency, Preprocessing, Physiology & signal measures
Keywords: EEG, speaker variability, speech, surprisal, vocoding
MeSH: Brain*, Speech Acoustics*, Speech Perception*, Adult, Electroencephalography, Female, Humans, Male, Young Adult (* major topic)
Topic: Neuroscience and Music Perception (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Irish Research Council; Simons Foundation Autism Research Initiative; Del Monte Institute for Neuroscience
Citations: cited by 1 paper (Europe PMC); 76 references in the paper

Abstract

There is substantial support for the idea that the listening brain makes predictions about upcoming speech and that these predictions are integrated with sensory input to influence perception. For example, the early auditory encoding of words appears to vary based on how those words semantically relate to their preceding context, suggesting that top‐down information might feed back to affect acoustic speech processing. However, the way in which speakers enunciate words can vary based on how well those words fit with their preceding context. This presents a potential confound to the interpretation of top‐down prediction in the listener. In this study, we address this possibility by assessing the influence of probability‐based predictions (word surprisal) on electroencephalographic (EEG) indices of acoustic speech processing while controlling for variations in speaker dynamics. We analyzed EEG from 14 adults who undertook a perceptual pop‐out task in which prior information enhanced the comprehensibility of degraded speech while acoustic information was held constant. Behavioral results confirmed the manipulation's effectiveness and were mirrored in the neural indices of word surprisal processing. Importantly, a positive relationship between word surprisal and EEG tracking of word acoustics emerged for degraded speech when prior information rendered it intelligible, but was absent when it was unintelligible, despite identical acoustic input across conditions. The difference in neural effects between conditions also correlated with the corresponding difference in behavioral pop‐out. These findings support the claim that top‐down word predictability influences the acoustic encoding of natural speech, independent of variations in speaker enunciation.

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 8 matches between paragraphs and lines of code.

OSF 756xn

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: MATLAB (12), R (1)
Size: 62 files, 13 scripts
Software Heritage: not checked
Found in: “Data Availability Statement”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Statistics and Machine Learning Toolbox (6 files), EEGLAB (1 file), emmeans (1 file), ggplot2 (1 file), lmerTest (1 file), psych (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
13 files

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;
  • 13 scripts, each with its path and the digest of its content;
  • 8 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 Statement

The data and scripts associated with this study are available at https://doi.org/10.17605/OSF.IO/756XN.

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 2, 28 September 2026

  • Publisher: n/a → Wiley

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 5 keywords, 9 MeSH terms, 3 funders, 62 references.

Cite

This paper

Synigal, S. R., Broderick, M. P., & Lalor, E. C. (2026). Quantifying the Influence of Lexical Surprisal on Acoustic Speech Encoding While Controlling for Within-Speaker Variability. The European journal of neuroscience, 64(1), e70569. https://doi.org/10.1111/ejn.70569

BibTeX

@article{synigal2026quantifying,
author = {Synigal, Shyanthony R and Broderick, Michael P and Lalor, Edmund C},
title = {{Quantifying the Influence of Lexical Surprisal on Acoustic Speech Encoding While Controlling for Within-Speaker Variability}},
journal = {The European journal of neuroscience},
year = {2026},
month = jul,
volume = {64},
number = {1},
pages = {e70569},
publisher = {Wiley},
issn = {0953-816X},
doi = {10.1111/ejn.70569},
url = {https://doi.org/10.1111/ejn.70569},
pmid = {42390025},
pmcid = {PMC13325525}
}

RIS

TY - JOUR
AU - Synigal, Shyanthony R
AU - Broderick, Michael P
AU - Lalor, Edmund C
TI - Quantifying the Influence of Lexical Surprisal on Acoustic Speech Encoding While Controlling for Within-Speaker Variability
T2 - The European journal of neuroscience
J2 - Eur J Neurosci
PY - 2026
DA - 2026/07/01
VL - 64
IS - 1
SP - e70569
SN - 0953-816X
PB - Wiley
DO - 10.1111/ejn.70569
UR - https://doi.org/10.1111/ejn.70569
LA - en
ER -

CSL-JSON

{
"id": "10.1111/ejn.70569",
"type": "article-journal",
"title": "Quantifying the Influence of Lexical Surprisal on Acoustic Speech Encoding While Controlling for Within-Speaker Variability",
"container-title": "The European journal of neuroscience",
"author": [
{
"family": "Synigal",
"given": "Shyanthony R"
},
{
"family": "Broderick",
"given": "Michael P"
},
{
"family": "Lalor",
"given": "Edmund C"
}
],
"container-title-short": "Eur J Neurosci",
"volume": "64",
"issue": "1",
"page": "e70569",
"DOI": "10.1111/ejn.70569",
"PMID": "42390025",
"PMCID": "PMC13325525",
"ISSN": "0953-816X",
"publisher": "Wiley",
"URL": "https://doi.org/10.1111/ejn.70569",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
1
]
]
}
}

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: psych, emmeans, EEGLAB, 2 other tools, EEG, cognitive, 16 references, author Edmund C. Lalor
[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, EEGLAB, Statistics and Machine Learning Toolbox, EEG, cognitive, 18 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 mapping
In common: EEGLAB, Statistics and Machine Learning Toolbox, EEG, cognitive, 13 references
[4] doi:10.1073/pnas.2309166120 [code]
Neural tracking measures of speech intelligibility: Manipulating intelligibility while keeping acoustics unchanged.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: cognitive, 12 references
[5] doi:10.1038/s41467-024-53782-5 [code]
Convergent neural signatures of speech prediction error are a biological marker for spoken word recognition.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, cognitive, 12 references
[6] doi:10.1093/cercor/bhae155 [code]
Linguistic modulation of the neural encoding of phonemes.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: Statistics and Machine Learning Toolbox, cognitive, 12 references
[7] doi:10.1016/j.neuroimage.2023.120391 [code]
A representation of abstract linguistic categories in the visual system underlies successful lipreading.
Journal: NeuroImage
In common: EEGLAB, Statistics and Machine Learning Toolbox, EEG, cognitive, 7 references, author Edmund C. Lalor
[8] 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, EEGLAB, lmerTest, EEG, cognitive, 9 references
[9] doi:10.1371/journal.pbio.3003588 [code]
Sensory sharpening and semantic prediction errors unify competing models of predictive processing in human speech comprehension.
Journal: PLoS biology
In common: emmeans, lmerTest, ggplot2, EEG, cognitive, 9 references
[10] doi:10.1073/pnas.2201968119
A hierarchy of linguistic predictions during natural language comprehension.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: EEG, cognitive, 12 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1111/ejn.70569.svg)](https://openscicode.org/badge/doi/10.1111/ejn.70569)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1111/ejn.70569.svg
   :target: https://openscicode.org/badge/doi/10.1111/ejn.70569
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1111/ejn.70569"><img src="https://openscicode.org/badge/doi/10.1111/ejn.70569.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.