OSCR

MEG state dynamics of sentence generation: evidence for a compensatory segmentation mechanism in healthy aging.

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
  1. [1] § Materials and methods › Statistics › PLS inference ↔ myPLS_functions/myPLS_bootstrapping.m, lines 1–57 · score 0.77 · confidence interval, standard deviation, covariance matrix, Bootstrap Sampling, latent component, saliences
  2. [2] § Materials and methods › Statistics › PLS inference ↔ myPLS_functions/myPLS_analysis.m, lines 1–75 · score 0.76 · confidence interval, standard deviation, covariance matrix, latent component, Bootstrap Sampling, saliences

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

MATLAB · 157 lines · 6.3 KB · GPL-2.0 · 1 match

  1. function boot_results = myPLS_bootstrapping(X0,Y0,U,V,S,grouping,pls_opts)
  2. % This function computes bootstrap resampling with replacement on X and Y,
  3. % with option to either ignore or account for groups (e.g. diagnosis).
  4. % The PLS analysis is re-computed for each bootstrap sample.
  5. %
  6. % Inputs:
  7. % - X0 : N x M matrix, N is #subjects, M is #imaging,
  8. % brain data (not normalized!)
  9. % - Y0 : N x B matrix, B is #behaviors/design scores,
  10. % behavior/design data (not normalized!)
  11. % - U : B x L matrix, L is #latent components (LCs),
  12. % behavior/design saliences
  13. % - V : B x L matrix, imaging saliences
  14. % - S : L x L matrix, singular values (diagonal matrix)
  15. % - grouping : N x 1 vector, subject grouping (e.g. diagnosis)
  16. % e.g. [1,1,2] = subjects 1 and 2 belong to group 1,
  17. % subject 3 belongs to group 2
  18. % - pls_opts : options for the PLS analysis
  19. % Necessary fields for this function:
  20. % - .nBootstraps : number of bootstrap samples
  21. % - .grouped_PLS : binary variable indicating if groups
  22. % should be considered when computing R
  23. % 0 = PLS will computed over all subjects
  24. % 1 = R will be constructed by concatenating group-wise
  25. % covariance matrices (as in conventional behavior PLS)
  26. % - .grouped_boot : binary variable indicating if groups should be
  27. % considered during bootstrapping
  28. % 0 = bootstrapping ignoring grouping
  29. % 1 = bootstrapping within group
  30. % - .boot_procrustes_mod : mode for bootstrapping procrustes transform
  31. % 1 = standard (rotation computed only on U)
  32. % 2 = average rotation of U and V
  33. % - .save_boot_resampling: indicator whether to save bootstrap
  34. % resampling data or not
  35. % 0 = no saving of bootstrapping resampling data
  36. % 1 = save bootstrapping resampling data
  37. % - .normalization_img : normalization options for imaging data
  38. % - .normalization_behav : normalization options for behavior/design data
  39. % 0 = no normalization
  40. % 1 = zscore across all subjects
  41. % 2 = zscore within groups (default)
  42. % 3 = std normalization (no centering) across subjects
  43. % 4 = std normalization (no centering) within groups
  44. %
  45. % Outputs:
  46. % - boot_results : struct containing all results from bootstrapping
  47. % - .Ub_vect : B x S x P matrix, S is #LCs, P is #bootstrap samples,
  48. % bootstrapped behavior saliences for all LCs
  49. % - .Vb_vect : M x S xP matrix, bootstrapped brain saliences for all LCs
  50. % - .Lxb,.Lyb,.LC_img_loadings_boot,.LC_behav_loadings_boot :
  51. % bootstrapping scores (see myPLS_get_PLSscores for
  52. % details)
  53. % - .*_mean : mean of bootstrapping distributions
  54. % - .*_std : standard deviation of bootstrapping distributions
  55. % - .*_lB : lower bound of 95% confidence interval of bootstrapping distributions
  56. % - .*_uB : upper bound of 95% confidence interval of bootstrapping distributions
  57. % Set up random number generator
  58. rng(1);
  59. % Check that dimensions of X & Y are correct
  60. if(size(X0,1) ~= size(Y0,1))
  61. error('Input arguments X and Y should have the same number of rows');
  62. end
  63. nBehav = size(Y0,2);
  64. nGroups = size(unique(grouping),1);
  65. disp('... Bootstrapping ...')
  66. % Compute the bootstrapping orders (under consideration of the grouping, if asked for)
  67. all_boot_orders = myPLS_get_boot_orders(pls_opts.nBootstraps,grouping,pls_opts.grouped_boot);
  68. % Run PLS in each bootstrap sample
  69. for iB = 1:pls_opts.nBootstraps
  70. % Resampling X
  71. Xb = X0(all_boot_orders(:,iB),:);
  72. Xb = myPLS_norm(Xb,grouping,pls_opts.normalization_img);
  73. % Resampling Y
  74. Yb = Y0(all_boot_orders(:,iB),:);
  75. Yb = myPLS_norm(Yb,grouping,pls_opts.normalization_behav);
  76. % Generate cross-covariance matrix between resampled X and Y
  77. Rb = myPLS_cov(Xb,Yb,grouping,pls_opts.grouped_PLS);
  78. % Singular value decomposition of Rb
  79. [Ub,Sb,Vb] = svd(Rb,'econ');
  80. % Procrustas transform (correction for axis rotation/reflection)
  81. switch pls_opts.boot_procrustes_mod
  82. case 1
  83. % Computed on U only
  84. rotatemat_full = rri_bootprocrust(U, Ub);
  85. % Rotate and re-scale Ub and Vb
  86. Vb = Vb * Sb * rotatemat_full;
  87. Ub = Ub * Sb * rotatemat_full;
  88. Vb = Vb./repmat(diag(S)',size(Vb,1),1);
  89. Ub = Ub./repmat(diag(S)',size(Ub,1),1);
  90. case 2
  91. % Computed on both U and V
  92. rotatemat1 = rri_bootprocrust(U, Ub);
  93. rotatemat2 = rri_bootprocrust(V, Vb);
  94. % Full rotation
  95. rotatemat_full = (rotatemat1 + rotatemat2)/2;
  96. % Apply full rotation to Vb and Ub
  97. Vb = Vb * rotatemat_full;
  98. Ub = Ub * rotatemat_full;
  99. otherwise
  100. error('invalid value in pls_opts.boot_procrustes_mod!');
  101. end
  102. % Vectors with all bootstrap samples -> needed for percentile computation
  103. Ub_vect(:,:,iB) = Ub;
  104. Vb_vect(:,:,iB) = Vb;
  105. % Compute bootstrapping PLS scores
  106. [Lxb,Lyb,corr_Lxb_Xb,corr_Lyb_Yb,corr_Lxb_Yb,corr_Lyb_Xb] = ...
  107. myPLS_get_PLS_scores_loadings(Xb,Yb,Vb,Ub,grouping,pls_opts);
  108. boot_results.Lxb(:,:,iB) = Lxb;
  109. boot_results.Lyb(:,:,iB) = Lyb;
  110. boot_results.LC_img_loadings_boot(:,:,iB) = corr_Lxb_Xb;
  111. boot_results.LC_behav_loadings_boot(:,:,iB) = corr_Lyb_Yb;
  112. end
  113. % Compute bootstrapping statistics
  114. boot_stats = myPLS_bootstrap_stats(Ub_vect,Vb_vect,boot_results);
  115. % Save all the statistics fields in the boot_results (I am coding it like
  116. % this to facilitate adding more stats
  117. fN = fieldnames(boot_stats);
  118. for iF = 1:length(fN)
  119. boot_results.(fN{iF}) = boot_stats.(fN{iF});
  120. end
  121. % Save bootstrapping resampling data if asked for
  122. if pls_opts.save_boot_resampling
  123. boot_results.Ub_vect = Ub_vect;
  124. boot_results.Vb_vect = Vb_vect;
  125. else
  126. boot_results = rmfield(boot_results,'LC_img_loadings_boot');
  127. boot_results = rmfield(boot_results,'LC_behav_loadings_boot');
  128. end
  129. if mod(iB,200); fprintf('\n'); end
  130. disp(' ')

myPLS_bootstrapping.m at commit 351b892, under GPL-2.0 · at the source

Overview

Authors: Clément Guichet1, Sylvain Harquel1, Raouf Zouglech1, Camille Lemaire2, Émilie Cousin1, Vincent Auboiroux3, Aurélie Campagne1, Monica Baciu1,4
  1. Université Grenoble Alpes, CNRS LPNC UMR 5105, Grenoble, France
  2. Department of Neurorehabilitation, CHU Grenoble Alpes, Grenoble, France
  3. Université Grenoble Alpes, CEA LETI, Grenoble, France
  4. Department of Neurology, CHU Grenoble Alpes Université Grenoble Alpes, Grenoble, France
Journal: Frontiers in computational neuroscience, volume 20, article 1816522
Dates: received 24 February 2026; accepted 11 June 2026; published online 1 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.3389/fncom.2026.1816522 · PMID 42460388 · PMCID PMC13369244 · OpenAlex W7166846679
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: MEG (modality), human (organism), healthy (population), cognitive (subfield)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, fMRI & imaging
Keywords: brain state dynamics, cognition, healthy aging, hidden markov model, language, MEG, predictive processing, SENECA
Topic: Neurobiology of Language and Bilingualism (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Université Grenoble Alpes (ANR-15-IDEX-02); Agence Nationale de la Recherche (IDEX-02, ANR‐15‐IDEX‐02, 15-IDEX-02)
Citations: not cited yet (Europe PMC); 116 references in the paper

Abstract

Healthy aging is accompanied by subtle difficulties in language production. While behavioral and neuroimaging studies suggest that older adults rely on acute semantic access to maintain language abilities, the underlying neurophysiological mechanisms remain poorly understood. In particular, it is still unclear how large-scale brain dynamics reorganize to support naturalistic sentence generation with age. In this study, we investigated the spatiotemporal brain-state dynamics during covert sentence generation (GE2REC protocol) in younger and older adults using magnetoencephalography (MEG). Source-reconstructed MEG signals were analyzed using a Hidden Markov Model which identified five recurrent brain states, encompassing language-semantic, language-control, sensorimotor, and visual domains. Latent modeling was then used to relate the spectral and temporal properties of these brain states to age and language performance. Spectrally, older adults appear to redistribute oscillatory activity from sensorimotor-related states toward semantic-related states across alpha, beta, and low-gamma frequency bands. Temporally, older adults exhibit a more segmented processing sequence between semantic and sensorimotor processing which interfaces with visuo-posterior processing. These changes robustly covaried with age and better verbal fluency (semantic and lexical). Taken together, these results suggest that the older adult brain undergoes a coordinated time-frequency reorganization to support sentence production. Older individuals likely establish an embodied semantic strategy that involves a more segmented processing sequence during sentence production via visuo-posterior information processing. We speculate that this may help shape a resource-efficient, predictive route for complex cognition in older adulthood.

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.

MIPLabCH/myPLS

License: GPL-2.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 351b892883eab1b7afba236917f1b25e937880e7, 13 June 2022
Languages: MATLAB (35)
Size: 48 files, 35 scripts
Software Heritage: not archived
Found in: the end of the paper
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Statistics and Machine Learning Toolbox (2 files), SPM (2 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
37 files

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;
  • 35 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 statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

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

  • Funding: added Université Grenoble Alpes: ANR-15-IDEX-02; Agence Nationale de la Recherche: IDEX-02, ANR‐15‐IDEX‐02, 15-IDEX-02

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 8 authors, 8 keywords, 109 references.

Cite

This paper

Guichet, C., Harquel, S., Zouglech, R., Lemaire, C., Cousin, É., Auboiroux, V., Campagne, A., & Baciu, M. (2026). MEG state dynamics of sentence generation: evidence for a compensatory segmentation mechanism in healthy aging. Frontiers in computational neuroscience, 20, 1816522. https://doi.org/10.3389/fncom.2026.1816522

BibTeX

@article{guichet2026meg,
author = {Guichet, Clément and Harquel, Sylvain and Zouglech, Raouf and Lemaire, Camille and Cousin, Émilie and Auboiroux, Vincent and Campagne, Aurélie and Baciu, Monica},
title = {{MEG state dynamics of sentence generation: evidence for a compensatory segmentation mechanism in healthy aging}},
journal = {Frontiers in computational neuroscience},
year = {2026},
month = jul,
volume = {20},
pages = {1816522},
publisher = {Frontiers Media SA},
issn = {1662-5188},
doi = {10.3389/fncom.2026.1816522},
url = {https://doi.org/10.3389/fncom.2026.1816522},
pmid = {42460388},
pmcid = {PMC13369244}
}

RIS

TY - JOUR
AU - Guichet, Clément
AU - Harquel, Sylvain
AU - Zouglech, Raouf
AU - Lemaire, Camille
AU - Cousin, Émilie
AU - Auboiroux, Vincent
AU - Campagne, Aurélie
AU - Baciu, Monica
TI - MEG state dynamics of sentence generation: evidence for a compensatory segmentation mechanism in healthy aging
T2 - Frontiers in computational neuroscience
J2 - Front Comput Neurosci
PY - 2026
DA - 2026/07/01
VL - 20
SP - 1816522
SN - 1662-5188
PB - Frontiers Media SA
DO - 10.3389/fncom.2026.1816522
UR - https://doi.org/10.3389/fncom.2026.1816522
LA - en
ER -

CSL-JSON

{
"id": "10.3389/fncom.2026.1816522",
"type": "article-journal",
"title": "MEG state dynamics of sentence generation: evidence for a compensatory segmentation mechanism in healthy aging",
"container-title": "Frontiers in computational neuroscience",
"author": [
{
"family": "Guichet",
"given": "Clément"
},
{
"family": "Harquel",
"given": "Sylvain"
},
{
"family": "Zouglech",
"given": "Raouf"
},
{
"family": "Lemaire",
"given": "Camille"
},
{
"family": "Cousin",
"given": "Émilie"
},
{
"family": "Auboiroux",
"given": "Vincent"
},
{
"family": "Campagne",
"given": "Aurélie"
},
{
"family": "Baciu",
"given": "Monica"
}
],
"container-title-short": "Front Comput Neurosci",
"volume": "20",
"page": "1816522",
"DOI": "10.3389/fncom.2026.1816522",
"PMID": "42460388",
"PMCID": "PMC13369244",
"ISSN": "1662-5188",
"publisher": "Frontiers Media SA",
"URL": "https://doi.org/10.3389/fncom.2026.1816522",
"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.1162/imag.a.1190 [code]
Canonical Hidden Markov Model Networks for studying M/EEG.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: MEG, 7 references
[2] doi:10.1038/s41531-026-01372-1 [code]
Varying patterns of association between cortical large-scale networks and subthalamic nucleus activity in Parkinson's disease.
Journal: NPJ Parkinson's disease
In common: 6 references
[3] doi:10.1002/advs.77857 [code]
Brain Network Dynamics of Local and Global Predictive Processing in Aging.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: SPM, Statistics and Machine Learning Toolbox, cognitive, 4 references
[4] doi:10.1162/imag.a.1237 [code]
Modelling discrete states and long-term dynamics in functional brain networks.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: MEG, 5 references
[5] doi:10.1038/s41467-026-75841-9 [code]
Model-based semantic distance reveals adaptive coordination of distinct cognitive systems in flexible knowledge retrieval.
Journal: Nature communications
In common: SPM, Statistics and Machine Learning Toolbox, cognitive, 3 references
[6] doi:10.1038/s42003-026-10751-6 [code]
Frequency-specific cortical subnetworks support fast human swallowing.
Journal: Communications biology
In common: MEG, 5 references
[7] doi:10.1111/nyas.70349 [code]
FREQ-NESS Reveals Age-Related Differences in Frequency-Resolved Brain Networks During Auditory Recognition and Resting State.
Journal: Annals of the New York Academy of Sciences
In common: SPM, Statistics and Machine Learning Toolbox, MEG, cognitive, 2 references
[8] doi:10.1002/hbm.70516 [code]
Effects of Age on Resting-State Cortical Networks.
Journal: Human brain mapping
In common: MEG, 4 references
[9] doi:10.1093/braincomms/fcag236 [code]
Dynamic, state-dependent characteristics of cognitive fluctuations in Lewy body dementia: a magnetoencephalography study.
Journal: Brain communications
In common: MEG, 4 references
[10] doi:10.1162/imag.a.1301 [code]
MEG-GPT: A transformer-based foundation model for magnetoencephalography data.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: MEG, 4 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.