OSCR

Resting-state neural oscillations predict individual differences in verbal learning and encoding strategy use.

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.

2 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 2 matches
  1. [1] § STAR★Methods › Method details › Neuroimaging › Multi-feature machine learning regression analysis ↔ regress_ML_cvlt_7.py, lines 21 to 64 · score 0.54 · square error, fits, fold, SVR, model, Linear · block oscr:b:778KB91W05DTK-0 · Report a mismatch
  2. [2] § STAR★Methods › Method details › Neuroimaging › Multi-feature machine learning regression analysis ↔ regress_ML_cvlt_8.py, lines 21 to 64 · score 0.54 · square error, fits, fold, SVR, model, Linear · block oscr:b:AR8MB4YMYVCV0-4 · 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

Python · 154 lines · 5.2 KB · no license · 1 match

  1. from joblib import Parallel, delayed
  2. from sklearn.svm import SVR
  3. import matplotlib.pyplot as plt
  4. import os.path as op
  5. import scipy.io as sio
  6. import numpy as np
  7. from sklearn.model_selection import KFold
  8. from sklearn.feature_selection import SequentialFeatureSelector
  9. import statsmodels.api as sm
  10. from sklearn.metrics import mean_squared_error
  11. from sklearn.linear_model import LinearRegression
  12. from sklearn.preprocessing import StandardScaler
  13. from sklearn.ensemble import GradientBoostingRegressor
  14. import time
  15. start_time = time.time()
  16. def load_data(freq, root, matrice_name):
  17. X11= sio.loadmat(op.join(root, matrice_name))[lulu[FREQ.index(freq)]]
  18. return X11
  19. def compute_feature(freq, num_feat, X11, target):
  20. reg = SVR(kernel="linear")
  21. #reg = GradientBoostingRegressor()
  22. cv_split = KFold(5)
  23. y_pred = []
  24. target_new = []
  25. for train, test in cv_split.split(X11):
  26. scaler = StandardScaler()
  27. norm = scaler.fit(X11[train])
  28. X1 = norm.transform(X11[train])
  29. X2 = norm.transform(X11[test])
  30. reg = SVR(kernel="linear")
  31. #reg = GradientBoostingRegressor()
  32. cv = KFold(5)
  33. sfs = SequentialFeatureSelector(reg, n_features_to_select=num_feat, cv=cv)
  34. XX1 = sfs.fit_transform(X1, target[train])
  35. XX2 = sfs.transform(X2)
  36. reg = SVR(kernel="linear")
  37. #reg = GradientBoostingRegressor()
  38. reg.fit(XX1, target[train])
  39. y_pred_mini = reg.predict(XX2)
  40. y_pred.append(y_pred_mini)
  41. target_new.append(target[test])
  42. target_new = np.concatenate(target_new, axis=0)
  43. y_pred = np.concatenate(y_pred, axis=0)
  44. lm = LinearRegression().fit(target_new.reshape(-1, 1), y_pred.reshape(-1, 1))
  45. rsq = lm.score(target_new.reshape(-1, 1), y_pred.reshape(-1, 1))
  46. mse = mean_squared_error(target_new.reshape(-1, 1), y_pred.reshape(-1, 1))
  47. coefficient = lm.coef_[0]
  48. print(f"mean square error: {mse}")
  49. XX = sm.add_constant(target_new.reshape(-1, 1))
  50. model = sm.OLS(y_pred.reshape(-1, 1), XX)
  51. result = model.fit()
  52. p_value = result.f_pvalue
  53. return rsq, mse, coefficient, p_value
  54. ## params ##
  55. #matrice_cvlt_2 = 'mat_cvlt.mat'
  56. matrice_cvlt_2 = 'cvlt_2.mat'
  57. matrice_name = 'mat_cvlt_300_4.mat'
  58. FREQ = ['delta', 'theta', 'alpha', 'beta', 'gamma1', 'gamma2', 'gamma3','exp']
  59. lulu = ['mat_d', 'mat_t', 'mat_a', 'mat_b', 'mat_g1', 'mat_g2', 'mat_g3', 'mat_e']
  60. #FREQ = ['delta']
  61. #lulu = ['mat_d']
  62. #test = 'Absorption'
  63. #test ='correct_reponse_raw'
  64. #test ='correct_reponse_std'
  65. #test ='semantic_clustering'
  66. #test ='Serial_Clustering_Forward'
  67. #test ='Serial_Clustering_Bidirectional'
  68. #test ='Subjective_Clustering_Bidirectional'
  69. test ='learning_slope_2_5'
  70. ## path ##
  71. #root = op.join('/Users', 'victoroswald', 'Documents', 'code', 'Trance','result')
  72. root = op.join('/home', 'vicolab', 'projects', 'def-kjerbi', 'vicolab', 'cc', 'hamza')
  73. ## load target ##
  74. target = sio.loadmat(op.join(root, matrice_cvlt_2))['tata'][:,10]
  75. mat_rsq = []
  76. mat_coef = []
  77. mat_p_val = []
  78. mat_mse = []
  79. ## Parallel loop on feature and frequency
  80. results = Parallel(n_jobs=-1)(delayed(compute_feature)(freq, num_feat, load_data(freq, root, matrice_name), target) for freq in FREQ for num_feat in range(2, 300, 1))
  81. ## Unpack results
  82. for result in results:
  83. mat_rsq.append(result[0])
  84. mat_mse.append(result[1])
  85. mat_coef.append(result[2])
  86. mat_p_val.append(result[3])
  87. n=298
  88. ## Save the results in text files
  89. for i, freq in enumerate(FREQ):
  90. np.savetxt(root + '/rsq_' + test + '_' + FREQ[i] + '.txt', mat_rsq[i*n:(i+1)*n])
  91. np.savetxt(root + '/coef_' + test + '_' + FREQ[i]+ '.txt', mat_coef[i*n:(i+1)*n])
  92. np.savetxt(root + '/p_val_' + test + '_' + FREQ[i] + '.txt', mat_p_val[i*n:(i+1)*n])
  93. np.savetxt(root + '/MSE_' + test + '_' + FREQ[i] + '.txt', mat_mse[i*n:(i+1)*n])
  94. ## Save the results in a single file
  95. np.savetxt(root + '/results_' + test + '.txt', np.column_stack((mat_rsq, mat_mse, mat_coef, mat_p_val)),
  96. header="R-squared, Mean Squared Error, Coefficient, P-value", delimiter=",", fmt='%.6f')
  97. ## Plot the results for all frequencies on a single plot
  98. for i, freq in enumerate(FREQ):
  99. plt.plot(range(2, 300), mat_rsq[i*n:(i+1)*n], label=freq)
  100. plt.xlabel('Number of Features')
  101. plt.ylabel('R-squared')
  102. plt.legend()
  103. plt.savefig(root + '/rsq_' + test + '.png')
  104. plt.clf()
  105. for i, freq in enumerate(FREQ):
  106. plt.plot(range(2, 300), mat_coef[i*n:(i+1)*n], label=freq)
  107. plt.xlabel('Number of Features')
  108. plt.ylabel('Coefficient')
  109. plt.legend()
  110. plt.savefig(root + '/coef_' + test + '.png')
  111. plt.clf()
  112. for i, freq in enumerate(FREQ):
  113. plt.plot(range(2, 300), mat_p_val[i*n:(i+1)*n], label=freq)
  114. plt.axhline(y=0.05, color='black', linestyle='--')
  115. plt.xlabel('Number of Features')
  116. plt.ylabel('P-value')
  117. plt.legend()
  118. plt.savefig(root + '/p_val_' + test + '.png')
  119. plt.clf()
  120. for i, freq in enumerate(FREQ):
  121. plt.plot(range(2, 300), mat_mse[i*n:(i+1)*n], label=freq)
  122. plt.xlabel('Number of Features')
  123. plt.ylabel('Mean Squared Error')
  124. plt.legend()
  125. plt.savefig(root + '/MSE_' + test + '.png')
  126. plt.clf()
  127. end_time = time.time() # Enregistrer l'heure de fin
  128. elapsed_time = end_time - start_time # Calculer le temps écoulé
  129. print(f"Elapsed time : {elapsed_time:.2f} seconds")

regress_ML_cvlt_7.py at commit 8500f5b, no license · at the source

Overview

Authors: Victor Oswald1,2, Mathieu Landry1,2, Hamza Abdelhedi1,3, Sarah Lippé2,4, Philippe Robaey4,5,6,7, Karim Jerbi1,2,3,8
ORCID iDs: Victor Oswald
  1. Computational and Cognitive Neuroscience Laboratory, University of Montreal, Montreal, QC, Canada
  2. Department of Psychology, University of Montreal, Montreal, QC, Canada
  3. Mila – Quebec AI Institute, Montreal, QC, Canada
  4. CHU Sainte-Justine Research Center, Montreal, QC, Canada
  5. Department de Psychiatry, University of Montreal, Montreal, QC, Canada
  6. Children’s Hospital of Eastern Ontario, Ottawa, ON, Canada
  7. Department de Psychiatry, University of Ottawa, Ottawa, ON, Canada
  8. UNIQUE Center (Unifying Neuroscience and Artificial Intelligence – Québec), Montreal, QC, Canada
Journal: iScience, volume 29, issue 9, article 117377
Dates: received 26 September 2025; accepted 13 August 2026; published online 31 August 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1016/j.isci.2026.117377 · PMID 42729535 · PMCID PMC13562390 · OpenAlex W7204782202
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: MEG (modality), cognitive (subfield)
Methods: Preprocessing, Spectral & time-frequency, Smoothing, state filtering, decompositions, Machine learning, Statistics, Connectivity, fMRI & imaging, Physiology & signal measures
Keywords: resting-state, MEG, encoding strategies, verbal memory
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 78 references in the paper
Research resources: MATLAB; Python RRID:SCR_001622, Brainstorm (MEG analysis) RRID:SCR_001761, scikit-learn (SVR regression) RRID:SCR_002577, MATLAB; Python RRID:SCR_008394

Abstract

Individuals adopt different encoding strategies to facilitate learning, yet few studies have examined the neurophysiological basis of these strategies across individuals. The present work addresses this gap by extending our previous findings on the direct relationship between cortical spectral power, measured via resting-state magnetoencephalography, and standard cognitive performance, to test whether resting-state neural features predict individual differences in encoding strategy preferences. Our results highlight the complex interactions between endogenous brain oscillations, learning, and verbal encoding strategies assessed by the California Verbal Learning Test-Second Edition (CVLT-2). First, resting-state theta oscillations were significantly associated with verbal learning and subjective clustering strategies. Second, semantic clustering was facilitated by oscillatory patterns in the left sensory-motor regions. Finally, serial and semantic clustering strategies showed opposite regression patterns, indicating a competitive interaction. Together, these findings provide insights into resting-state neural markers associated with diverse encoding strategies in verbal learning.

Reproduced under the paper's license (CC BY-NC), from the paper cited above.

Repositories

Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.

Zenodo 21395000

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Data and code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Matplotlib (3 files), NumPy (3 files), scikit-learn (3 files), SciPy (3 files), statsmodels (3 files)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
6 files

LIKACT/CVLT_MEG_ML

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 8500f5b209f2f696773739267fda2473d4236868, 16 July 2026
Languages: Shell (3), Python (3)
Size: 6 files, 6 scripts
Software Heritage: not archived
Found in: the text, “Multi-feature machine learning regression analys”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Matplotlib (3 files), NumPy (3 files), scikit-learn (3 files), SciPy (3 files), statsmodels (3 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
6 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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 12 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 and code availability

Data: All data reported in this paper have been deposited at Zenodo and are publicly available as of the date of publication. The DOI is listed in the key resources table (https://doi.org/10.5281/zenodo.21499549). No restrictions apply to the accessibility of these data, which are openly available under a Creative Commons Attribution 4.0 (CC BY 4.0) license; no material transfer agreement or additional authorization is required.

Code: All original code used in this study (the multi-feature machine learning regression and mediation analyses) has been deposited at Zenodo and is publicly available as of the date of publication. The DOI is listed in the key resources table (https://doi.org/10.5281/zenodo.21395000).

Additional information: Any additional information required to reanalyze the data reported in this paper is available from the lead contact upon request.

Reproduced under the paper's license (CC BY-NC), 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

  • Authors: added Victor Oswald (0000-0002-4684-3965); removed Victor Oswald
  • Funding: added Canada Research Chairs: RGPIN-2015-04854; Université de Montréal; Natural Sciences and Engineering Research Council of Canada: RGPIN-2015, RGPIN-2015-04854; Fonds de recherche du Québec – Nature et technologies: RGPIN-2015-04854, RQT00121

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 4 keywords, 75 references, 4 RRIDs.

Cite

This paper

Oswald, V., Landry, M., Abdelhedi, H., Lippé, S., Robaey, P., & Jerbi, K. (2026). Resting-state neural oscillations predict individual differences in verbal learning and encoding strategy use. iScience, 29(9), 117377. https://doi.org/10.1016/j.isci.2026.117377

BibTeX

@article{oswald2026resting,
author = {Oswald, Victor and Landry, Mathieu and Abdelhedi, Hamza and Lippé, Sarah and Robaey, Philippe and Jerbi, Karim},
title = {{Resting-state neural oscillations predict individual differences in verbal learning and encoding strategy use}},
journal = {iScience},
year = {2026},
month = aug,
volume = {29},
number = {9},
pages = {117377},
publisher = {Elsevier},
issn = {2589-0042},
doi = {10.1016/j.isci.2026.117377},
url = {https://doi.org/10.1016/j.isci.2026.117377},
pmid = {42729535},
pmcid = {PMC13562390}
}

RIS

TY - JOUR
AU - Oswald, Victor
AU - Landry, Mathieu
AU - Abdelhedi, Hamza
AU - Lippé, Sarah
AU - Robaey, Philippe
AU - Jerbi, Karim
TI - Resting-state neural oscillations predict individual differences in verbal learning and encoding strategy use
T2 - iScience
J2 - iScience
PY - 2026
DA - 2026/08/31
VL - 29
IS - 9
SP - 117377
SN - 2589-0042
PB - Elsevier
DO - 10.1016/j.isci.2026.117377
UR - https://doi.org/10.1016/j.isci.2026.117377
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.isci.2026.117377",
"type": "article-journal",
"title": "Resting-state neural oscillations predict individual differences in verbal learning and encoding strategy use",
"container-title": "iScience",
"author": [
{
"family": "Oswald",
"given": "Victor"
},
{
"family": "Landry",
"given": "Mathieu"
},
{
"family": "Abdelhedi",
"given": "Hamza"
},
{
"family": "Lippé",
"given": "Sarah"
},
{
"family": "Robaey",
"given": "Philippe"
},
{
"family": "Jerbi",
"given": "Karim"
}
],
"container-title-short": "iScience",
"volume": "29",
"issue": "9",
"page": "117377",
"DOI": "10.1016/j.isci.2026.117377",
"PMID": "42729535",
"PMCID": "PMC13562390",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.isci.2026.117377",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
31
]
]
}
}

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.1034 [code]
Top-down selection of visual working memory contents is supported by alpha-band phase-synchronized oscillatory networks
Journal: n/a
In common: scikit-learn, SciPy, Matplotlib, 1 other tool, MEG, cognitive, 4 references
[2] doi:10.3390/brainsci14101014 [code]
Pre-Stimulus Activity of Left and Right TPJ in Linguistic Predictive Processing: A MEG Study.
Journal: Brain sciences
In common: MEG, cognitive, 6 references
[3] doi:10.1038/s42003-024-06083-y [code]
Rhythmicity of neuronal oscillations delineates their cortical and spectral architecture.
Journal: Communications biology
In common: scikit-learn, SciPy, Matplotlib, 1 other tool, MEG, 6 references
[4] doi:10.1038/s42003-023-05168-4 [code]
Comparative analysis of multifaceted neural effects associated with varying endogenous cognitive load.
Journal: Communications biology
In common: SciPy, Matplotlib, NumPy, cognitive, 6 references
[5] doi:10.1371/journal.pbio.3001735 [code]
Human electromagnetic and haemodynamic networks systematically converge in unimodal cortex and diverge in transmodal cortex.
Journal: PLoS biology
In common: statsmodels, scikit-learn, SciPy, 2 other tools, MEG, 4 references
[6] doi:10.7554/elife.97107 [code]
A dynamic generative model can extract interpretable oscillatory components from multichannel neurophysiological recordings.
Journal: eLife
In common: statsmodels, scikit-learn, SciPy, 2 other tools, MEG, 4 references
[7] doi:10.1016/j.isci.2024.111111 [code]
Linking the microarchitecture of neurotransmitter systems to large-scale MEG resting state networks.
Journal: iScience
In common: statsmodels, scikit-learn, SciPy, 2 other tools, MEG, 4 references
[8] doi:10.1038/s42003-024-07397-7 [code]
Aperiodic and oscillatory systems underpinning human domain-general cognition.
Journal: Communications biology
In common: statsmodels, SciPy, Matplotlib, 1 other tool, MEG, cognitive, 4 references
[9] doi:10.1073/pnas.2411098122 [code]
Temporal autocorrelation is predictive of age-An extensive MEG time-series analysis.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: statsmodels, SciPy, NumPy, MEG, 5 references
[10] doi:10.1038/s41598-025-92490-y [code]
Neural representation of consciously seen and unseen information.
Journal: Scientific reports
In common: statsmodels, scikit-learn, SciPy, 2 other tools, cognitive, 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.

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.1016/j.isci.2026.117377.svg)](https://openscicode.org/badge/doi/10.1016/j.isci.2026.117377)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1016/j.isci.2026.117377.svg
   :target: https://openscicode.org/badge/doi/10.1016/j.isci.2026.117377
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.isci.2026.117377"><img src="https://openscicode.org/badge/doi/10.1016/j.isci.2026.117377.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

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)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.