OSCR

The turbulent brain: Modeling vortex interactions for understanding human cognition.

Code ↔ Paper

7 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 7 matches
  1. [1] § METHODS › CPM ↔ Behavior_Ceff_7T_v1.m, lines 89–144 · score 0.83 · training fold, CPM conventions, feature selection, standardized predictors, behavior, scores
  2. [2] § METHODS › Empirical fMRI Data › Preprocessing and extraction of functional timeseries in fMRI resting data. ↔ spiral_HCP100unrelated.m, lines 1–41 · score 0.69 · ft_read_cifti, FieldTrip, 0.008 Hz, filtering, Schaefer
  3. [3] § METHODS › Theoretical Turbulent Vortices Framework › Spiral vorticity. ↔ spiral_HCP100unrelated.m, lines 43–175 · score 0.68 · phase vector field, smoothed, voxel, width, spiral, curl
  4. [4] § METHODS › CPM ↔ Behavior_Ceff_7T_v1.m, lines 89–144 · score 0.60 · entire training, refitted, outer, fold, behavioral, scores
  5. [5] § RESULTS › Predicting Behavior From Modeling of Interactions Between Turbulent Vortices ↔ Behavior_Ceff_7T_v1.m, lines 21–63 · score 0.58 · Pic Vocab, Card Sort, PMAT24, Speed, behavior
  6. [6] § RESULTS › Predicting Behavior From Modeling of Interactions Between Turbulent Vortices ↔ Behavior_Ceff_7T_v1.m, lines 21–63 · score 0.57 · Card Sorting, crystallized, executive, PMAT24, Speed, behavioral
  7. [7] § METHODS › Theoretical Turbulent Vortices Framework › Spiral vorticity. ↔ spiral_HCP100unrelated.m, lines 43–175 · score 0.52 · phase vector field, spiral, curl, vertex

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 · 180 lines · 4.8 KB · no license · 4 matches

  1. clear all
  2. path2=[ '../../Nonequilibrium/'];
  3. addpath(genpath(path2));
  4. path3=[ '../../Tenet/TENET/'];
  5. addpath(genpath(path3));
  6. path4=[ '../../TaskReservoir/DataHCP100ordered'];
  7. addpath(genpath(path4));
  8. path5=[ '../../TaskReservoir/DMF_Receptors'];
  9. addpath(genpath(path5));
  10. path6=[ '../../QuantumDiffMap/CHARM'];
  11. addpath(genpath(path6));
  12. path7=[ '../../EntropyProdandFlow/HCP'];
  13. addpath(genpath(path7));
  14. path8=[ '../../TurbuThermo/HCPrest'];
  15. addpath(genpath(path8));
  16. NSUB=182;
  17. load results_model_vortex_rest_7T.mat;
  18. %% Behav G-factor
  19. load('hcpbehaviouraldata.mat')
  20. load (['hcp7t_rfMRI_REST1_PA_schaefer1000.mat']);
  21. behav=hcpbehaviouraldata;
  22. for jj=1:1113
  23. behavsub(jj)=behav{jj,1};
  24. end
  25. for nsub=1:NSUB
  26. idsub=subject{nsub}.id;
  27. idx=find(idsub==behavsub);
  28. behav_PMAT24_A_CR(nsub)=behav{idx,122}; %% fluid int
  29. behav_ProcSpeed_Unadj(nsub)=behav{idx,129}; %% speed
  30. behav_CardSort_Unadj(nsub)=behav{idx,118}; %% executive
  31. behav_ListSort_Unadj(nsub)=behav{idx,158};
  32. behav_Flanker_Unadj(nsub)=behav{idx,120};
  33. behav_VSPLOT_TC(nsub)=behav{idx,145};
  34. behav_IWRD_TOT(nsub)=behav{idx,156};
  35. behav_PicSeq_Unadj(nsub)=behav{idx,116};
  36. behav_RedEng_Unadj(nsub)=behav{idx,125};
  37. behav_PicVocab_Unadj(nsub)=behav{idx,127}; %% crystallized int
  38. behav_all(1,nsub)=behav{idx,122};
  39. behav_all(2,nsub)=behav{idx,129};
  40. behav_all(3,nsub)=behav{idx,118};
  41. behav_all(4,nsub)=behav{idx,158};
  42. behav_all(5,nsub)=behav{idx,120};
  43. behav_all(6,nsub)=behav{idx,145};
  44. behav_all(7,nsub)=behav{idx,156};
  45. behav_all(8,nsub)=behav{idx,116};
  46. behav_all(9,nsub)=behav{idx,125};
  47. behav_all(10,nsub)=behav{idx,127};
  48. end
  49. % behav_y=behav_PMAT24_A_CR'; %% 334
  50. behav_y=behav_ProcSpeed_Unadj'; %% 200
  51. % behav_y=behav_CardSort_Unadj'; %% 234
  52. % behav_y=behav_PicVocab_Unadj'; %% 382
  53. [~ , indx]=find(isnan(behav_y'));
  54. behav_y(indx)=[];
  55. %% g factor
  56. [~, indx]=find(isnan(behav_all));
  57. % mean_measure= nanmean(behav_all,2);
  58. % for kk=1:size(a1,1)
  59. % behav_all(a1(kk),b1(kk))=mean_measure(a1(kk));
  60. % end
  61. behav_all(:,indx)=[];
  62. [lambda,psi,T,stats,F] = factoran(behav_all',1);
  63. behav_y=F;
  64. %% Start!!
  65. for nsub=1:NSUB
  66. % C=squeeze(Ceff(nsub,:,:));
  67. C=squeeze(FCempbold(nsub,:,:));
  68. Cvec(nsub,:)=C(:);
  69. end
  70. Cvec(indx,:)=[];
  71. Threshold2=0.14;%0.17
  72. alpha_EN=0.01;
  73. %%
  74. %% ===================================================
  75. % 1. Feature selection on entire dataset
  76. % ====================================================
  77. y = behav_y(:);
  78. Xall = Cvec;
  79. for i = 1:size(Xall,2)
  80. co2(i) = corr(Xall(:,i), y, 'rows','pairwise');
  81. end
  82. selected = find(abs(co2) > Threshold2); %,200);
  83. fprintf("Selected %d features.\n", length(selected));
  84. X = Xall(:, selected);
  85. % 2) Standardize predictors on full data (CPM convention)
  86. X = zscore(X); % you said you want this on full data
  87. % 3) Outer CV to get honest per-subject predictions
  88. for repe=1:100
  89. K = 10;
  90. cv = cvpartition(length(y),'KFold',K);
  91. yhat = zeros(size(y));
  92. for fold = 1:K
  93. % fprintf('Fold %d/%d\n', fold, K);
  94. train_idx = training(cv, fold);
  95. test_idx = test(cv, fold);
  96. Xtrain = X(train_idx, :);
  97. ytrain = y(train_idx);
  98. Xtest = X(test_idx, :);
  99. % Inside-fold: pick lambda with internal CV on the training set
  100. % NOTE: 'Standardize',false because we already z-scored globally by convention
  101. [B, FitInfo] = lasso(Xtrain, ytrain, 'Alpha', alpha_EN, 'CV', 10, 'Standardize', false);
  102. % Get lambda index that minimized MSE *on the training fold's internal CV*
  103. idxMin = FitInfo.IndexMinMSE;
  104. lambda_min = FitInfo.Lambda(idxMin);
  105. % Refit on the entire training set at the selected lambda
  106. % (lasso allows specifying Lambda to fit)
  107. [B_retrain, FitInfo2] = lasso( ...
  108. Xtrain, ytrain, ...
  109. 'Alpha', alpha_EN, ...
  110. 'Lambda', lambda_min, ...
  111. 'Standardize', false);
  112. intercept = FitInfo2.Intercept;
  113. % Predict test set
  114. yhat(test_idx) = Xtest * B_retrain + intercept;
  115. end
  116. %% ===================================================
  117. % 4. Metrics
  118. % ===================================================
  119. SST = sum((y - mean(y)).^2);
  120. SSE = sum((y - yhat).^2);
  121. R2 = 1 - SSE/SST;
  122. Corr = corr(y, yhat);
  123. fprintf('\n========== RESULTS ==========\n');
  124. fprintf('Cross-validated R2 = %.4f\n', R2);
  125. fprintf('Cross-validated Corr = %.4f\n', Corr);
  126. R2all(repe)=R2;
  127. Corrall(repe)=Corr;
  128. yhatall(repe,:)=yhat;
  129. end
  130. yhatall=squeeze(mean(yhatall));
  131. figure;
  132. violinplot([R2all' Corrall']);
  133. figure;
  134. scatter(yhatall,y,'filled');
  135. hold on;
  136. p = polyfit(yhatall, y, 1);
  137. xvals = linspace(min(yhatall), max(yhatall));
  138. plot(xvals, polyval(p, xvals), 'r', 'LineWidth', 2)
  139. hold off;
  140. [cc pp]=corrcoef(y,yhatall)
  141. cc
  142. pp
  143. save results_CPM_style_gfactor_FCbold.mat y yhatall R2all Corrall;

Behavior_Ceff_7T_v1.m at commit 0e40319, no license · at the source

Overview

Authors: Gustavo Deco1,2,3, Yonatan Sanz Perl1,3,4, Jianfeng Feng5, Morten L Kringelbach3,6,7,8
  1. Center for Brain and Cognition, Computational Neuroscience Group, Faculty of Medicine and Life Science, Universitat Pompeu Fabra, Barcelona, Spain
  2. Institució Catalana de la Recerca i Estudis Avançats (ICREA), Barcelona, Spain
  3. International Centre for Flourishing, Universities of Oxford (UK), Aarhus (Denmark), and Pompeu Fabra (Spain)
  4. Department of Engineering, Universidad de San Andrés, Buenos Aires, Argentina
  5. Institute of Science and Technology for Brain-Inspired Intelligence, Fudan University, Shanghai, China
  6. Centre for Eudaimonia and Human Flourishing, Linacre College, University of Oxford, Oxford, UK
  7. Department of Psychiatry, University of Oxford, Oxford, UK
  8. Center for Music in the Brain, Department of Clinical Medicine, Aarhus University, Aarhus, Denmark
Journal: Network neuroscience (Cambridge, Mass.), volume 10, issue 3, pages 630-654
Dates: received 29 September 2025; accepted 23 February 2026; published online 20 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1162/netn.a.554 · PMID 42529694 · PMCID PMC13418524 · OpenAlex W7135198311
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Smoothing, state filtering, decompositions, Machine learning, Statistics, Connectivity, Preprocessing, fMRI & imaging
Keywords: Turbulence, Brain dynamics, Oscillators, Hopf, Whole-brain modeling, Cognition
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Research Foundation (DNRF117); Danmarks Grundforskningsfond (PID2022-136216NB-I00, DNRF 117, MICIU/AEI/10.13039/501100011033); HORIZON EUROPE Framework Programme (MICIU/AEI/10.13039/501100011033); Agència de Gestió d'Ajuts Universitaris i de Recerca (AEI/10.13039/501100011033, 10.13039/501100011033, 2021SGR00917, MICIU/AEI/ 10.13039/501100011033, 13039/501100011033); European Commission (PID2022-136216NB-I00, 101071900, 10.13039/501100011033, 13039/501100011033, MICIU/ AEI /10.13039/501100011033, AEI/10.13039/501100011033, 501100011033, MICIU/AEI/10); Agencia Estatal de Investigación (AEI//10.13039/501100011033/, 501100011033, PID2022-136216NB-I00, MICIU/AEI /10.13039/501100011033, 10.13039/501100011033, 13039, 13039/501100011033, 10.13039, AEI/10)
Citations: cited by 1 paper (Europe PMC); 59 references in the paper

Abstract

The human brain needs distributed, time-critical computation to efficiently solve complex problems. Turbulence provides such highly efficient spacetime information processing and transmission across widespread brain networks, yet we have been missing a mechanistic understanding of the interactions of turbulent vortices underlying human cognition. Here, we build the first whole-brain model of turbulent vortices as defined by the levels of local synchronization in brain signals quantifying turbulent interactions in vortex space. Specifically, using large-scale human neuroimaging data, we found that the interactions of turbulent vortices is an excellent framework for understanding cognition and brain computation. In particular, we show that when combined with connectome-based predictive modeling, this significantly predict the g-factor and the scores on the underlying tasks. In addition, turbulent vortices also distinguish the detailed spacetime dynamics of rest and cognition—and can even distinguish between subtle subcomponents of cognitive tasks, where manipulation of vortices can be shown to change cognition. Overall, this whole-brain framework creates a natural vortex space for the brain computation underlying cognition, as well as potentially providing novel ways of controlling turbulent interactions in disease.

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

decolab/TTB_modellingvortexinteraction

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 0e403199f9523a399083a028e71f0299d552af4b, 11 February 2026
Languages: MATLAB (19)
Size: 19 files, 19 scripts
Software Heritage: not archived
Found in: “DATA AND CODE AVAILABILITY”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
19 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;
  • 19 scripts, each with its path and the digest of its content;
  • 7 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

The open-source MATLAB code can be found here: https://github.com/decolab/TTB_modellingvortexinteraction.

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 National Research Foundation: DNRF117; Danmarks Grundforskningsfond: PID2022-136216NB-I00, DNRF 117, MICIU/AEI/10.13039/501100011033; HORIZON EUROPE Framework Programme: MICIU/AEI/10.13039/501100011033; Agència de Gestió d'Ajuts Universitaris i de Recerca: AEI/10.13039/501100011033, 10.13039/501100011033, 2021SGR00917, MICIU/AEI/ 10.13039/501100011033, 13039/501100011033; European Regional Development Fund: PID2022-136216NB-I00, 101071900, 10.13039/501100011033, 13039/501100011033, MICIU/ AEI /10.13039/501100011033, AEI/10.13039/501100011033, 501100011033, MICIU/AEI/10; Agencia Estatal de Investigación: AEI//10.13039/501100011033/, 501100011033, PID2022-136216NB-I00, MICIU/AEI /10.13039/501100011033, 10.13039/501100011033, 13039, 13039/501100011033, 10.13039, AEI/10

Version 1, 27 September 2026: the first record

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

Cite

This paper

Deco, G., Sanz Perl, Y., Feng, J., & Kringelbach, M. L. (2026). The turbulent brain: Modeling vortex interactions for understanding human cognition. Network neuroscience (Cambridge, Mass.), 10(3), 630-654. https://doi.org/10.1162/netn.a.554

BibTeX

@article{deco2026turbulent,
author = {Deco, Gustavo and Sanz Perl, Yonatan and Feng, Jianfeng and Kringelbach, Morten L},
title = {{The turbulent brain: Modeling vortex interactions for understanding human cognition}},
journal = {Network neuroscience (Cambridge, Mass.)},
year = {2026},
month = jul,
volume = {10},
number = {3},
pages = {630--654},
publisher = {MIT Press},
issn = {2472-1751},
doi = {10.1162/netn.a.554},
url = {https://doi.org/10.1162/netn.a.554},
pmid = {42529694},
pmcid = {PMC13418524}
}

RIS

TY - JOUR
AU - Deco, Gustavo
AU - Sanz Perl, Yonatan
AU - Feng, Jianfeng
AU - Kringelbach, Morten L
TI - The turbulent brain: Modeling vortex interactions for understanding human cognition
T2 - Network neuroscience (Cambridge, Mass.)
J2 - Netw Neurosci
PY - 2026
DA - 2026/07/20
VL - 10
IS - 3
SP - 630
EP - 654
SN - 2472-1751
PB - MIT Press
DO - 10.1162/netn.a.554
UR - https://doi.org/10.1162/netn.a.554
LA - en
ER -

CSL-JSON

{
"id": "10.1162/netn.a.554",
"type": "article-journal",
"title": "The turbulent brain: Modeling vortex interactions for understanding human cognition",
"container-title": "Network neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Deco",
"given": "Gustavo"
},
{
"family": "Sanz Perl",
"given": "Yonatan"
},
{
"family": "Feng",
"given": "Jianfeng"
},
{
"family": "Kringelbach",
"given": "Morten L"
}
],
"container-title-short": "Netw Neurosci",
"volume": "10",
"issue": "3",
"page": "630-654",
"DOI": "10.1162/netn.a.554",
"PMID": "42529694",
"PMCID": "PMC13418524",
"ISSN": "2472-1751",
"publisher": "MIT Press",
"URL": "https://doi.org/10.1162/netn.a.554",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
20
]
]
}
}

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.64898/2026.06.08.26355206
A canary in the mind: A single baseline brain scan predicts adolescent depression and anxiety one year later
Journal: medRxiv (preprint)
In common: 18 references
[2] doi:10.1016/j.bpsgos.2026.100787 [code]
Dynamic Functional Synchronization Profiles in Autism Differ by Spatial Scale and Along Hierarchical Cortical Gradients.
Journal: Biological psychiatry global open science
In common: Optimization Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 6 references
[3] doi:10.21203/rs.3.rs-9326213/v1 [code]
Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brain
Journal: Research Square (preprint)
In common: GIfTI library for MATLAB, cognitive, 8 references
[4] doi:10.1162/imag.a.1222 [code]
Network-based near-scalp personalized brain stimulation targets.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: GIfTI library for MATLAB, FieldTrip, Statistics and Machine Learning Toolbox, 5 references
[5] doi:10.1038/s41467-026-74565-0 [code]
The functional neurobiology of dispositions towards negative emotions.
Journal: Nature communications
In common: Violinplot-Matlab, GIfTI library for MATLAB, Optimization Toolbox, 3 other tools, cognitive
[6] doi:10.1038/s41467-026-71151-2 [code]
Common and distinct neural correlates of social interaction processing and theory of mind in narratives.
Journal: Nature communications
In common: Violinplot-Matlab, GIfTI library for MATLAB, Optimization Toolbox, 3 other tools, cognitive
[7] doi:10.1038/s41467-026-76011-7 [code]
Human cortex organizes dynamic co-fluctuations along the sensorimotor-association axis.
Journal: Nature communications
In common: GIfTI library for MATLAB, FieldTrip, Signal Processing Toolbox, 1 other tool, 4 references
[8] doi:10.1002/hbm.70577 [code]
Disgust Propensity, Not Disgust Sensitivity, Shapes the Reactivity of a Subjective Disgust Circuit in Humans.
Journal: Human brain mapping
In common: Violinplot-Matlab, GIfTI library for MATLAB, Optimization Toolbox, 3 other tools
[9] doi:10.1038/s41586-026-10631-3 [code]
A prognostic human brain network for diffuse midline glioma.
Journal: Nature
In common: GIfTI library for MATLAB, Optimization Toolbox, FieldTrip, 2 other tools, 2 references
[10] doi:10.1038/s41467-026-73153-6 [code]
Latent neural architecture organising shared aesthetic evaluations of visual artworks.
Journal: Nature communications
In common: GIfTI library for MATLAB, Statistics and Machine Learning Toolbox, cognitive, 5 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.