Regime shift detection and neurocomputational substrates for under and overreactions to change.
The 1 match · it ties a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Materials and methods › General Linear Models of BOLD signals › Independent regions-of-interest (ROIs) analysis ↔ 2.Analysis/fMRI/code/run_read_beta_rg1_paper_GLM_2.m, the whole file · a weak match · score 0.60 · dmPFC, LOSO ROI, beta, masks, IFG, cluster
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 · 80 lines · 2.2 KB · no license · 1 match
- % Script for running read_beta
- %
- %
- clear all;close all
- analysis_dir = '~/Muchen/Regime_experiment1/Analysis';
- ROI_type = 'LOSO_ROI';
- %beta_dir='~/Muchen/Regime_experiment1/Analysis/model_17_motionE_6mm/copeMask/masked_PE/model_5_motionE_6mm/';
- %beta_file='PE_subjects_cope2_control_B.txt'
- %beta_dir='~/Muchen/Regime_experiment1/Analysis/model_17_motionE_6mm/cope_masks/cope9/masked_PE/ppi_model_5_motionE_6mm_seed_sphere_6mm_GM_Bartra_fig09_vmpfc'
- %beta_dir='~/Muchen/Regime_experiment1/Analysis/model_5_motionE_6mm/LOSO_ROI/GM_Bartra_fig09_vmpfc/masked_PE/model_20_motionE_6mm'
- % Mask info
- mask_model = 'paper_GLM_2_check_3';
- %mask_copeNo=15;roi = {'dmPFC','l_IFG','r_IFG','l_IPS','r_IPS'};
- %mask_copeNo=11;roi = {'r_aINS'}; %logD
- mask_copeNo=10;roi = {'r_fusiform'}; %Qt odds
- n_roi = length(roi);
- % PE info
- PE_model = 'paper_GLM_2_check_3';
- PE_copeNo=15; %cope9,11,or 15
- n_subj=30;
- sigma=0.05;
- UB=0.2;
- LB=-0.2;
- for i=1:n_roi
- cluster_name = ['cluster_cope' num2str(mask_copeNo) '_' roi{i}];
- PE_dir=fullfile(analysis_dir,mask_model,ROI_type,cluster_name,'masked_PE',PE_model)
- PE_file=['PE_subjects_cope' num2str(PE_copeNo) '.txt'];
- PE0 = read_beta(PE_dir,PE_file,n_subj);
- n_realSubj = length(PE0);
- PE(1:n_realSubj,i)=PE0;
- PE(n_realSubj+1:n_subj,i)=NaN;
- [H(i),P(i),CI,STATS{i}] = ttest(PE(:,i));
- t(i) = STATS{i}.tstat;
- end
- H
- P
- t
- mu_PE = nanmean(PE);
- sem_PE = nanstd(PE)./sqrt(n_realSubj);
- t_stat = mu_PE./sem_PE;
- t_threshold = icdf('t',0.95,n_subj-1);
- figure(1);clf
- hold on;
- x_gap = 2;
- x_center = 1:x_gap:(n_roi*x_gap-1);
- bar(x_center,mu_PE,'FaceColor',[1 1 1],'EdgeColor',[0 0 0],'LineWidth',1.5);
- hold on;
- for i=1:n_roi
- l = plot([x_center(i) x_center(i)],[mu_PE(i)-sem_PE(i) mu_PE(i)+sem_PE(i)],'linewidth',3);hold on;
- l.Color = '#0080FF';
- x_grid = x_center(i) + unifrnd(LB,UB,n_subj,1);
- %x_grid = x_center(i) + normrnd(0,sigma,n_subj,1);
- plot(x_grid,PE(:,i),'k.','markersize',10);
- end
- ylabel('mean PE')
- title(['cope ' num2str(PE_copeNo)]);
- data.PE_model = PE_model;
- data.PE_copeNo = PE_copeNo;
- data.script_name = 'run_read_beta_paper_GLM_2_fig5.m';
- data.H = H;
- data.P = P;
- data.t = t;
- data.STATS = STATS;
- fname = ['beta_' PE_model '_cope_' num2str(PE_copeNo) '.mat'];
- save(fullfile('~/Muchen/advanced/data/',fname),'data');
run_read_beta_rg1_paper_GLM_2.m, no license · at the source
Overview
- Institute of Neuroscience, National Yang Ming Chiao Tung University Taipei Taiwan
- Booth School of Business, University of Chicago Chicago United States
- Brain Research Center, National Yang Ming Chiao Tung University Taipei Taiwan
Abstract
The world constantly changes, with the underlying state of the world shifting from one regime to another. The ability to detect a regime shift, such as the onset of a pandemic or the end of a recession, significantly impacts individual decisions, as well as governmental policies. However, determining whether a regime has changed is usually not obvious, as signals are noisy and reflective of the volatility of the environment. We designed an fMRI paradigm that examines a stylized regime-shift detection task. Human participants showed systematic overreaction and underreaction: Overreaction was most commonly seen when signals were noisy, but when environments were stable and change is possible but unlikely. By contrast, underreaction was observed when signals were precise but when environments were unstable and hence change was more likely. These behavioral signatures are consistent with the system-neglect computational hypothesis, which posits that sensitivity or lack thereof to system parameters (noise and volatility) is central to these behavioral biases. Guided by this computational framework, we found that individual subjects’ sensitivity to system parameters was represented by two distinct brain networks. Whereas a frontoparietal network selectively represented individuals’ sensitivity to signal noise but not environment volatility, the ventromedial prefrontal cortex (vmPFC) showed the opposite pattern. Further, these two networks were involved in different aspects of regime-shift computations: while vmPFC correlated with subjects’ beliefs about change, the frontoparietal network represented the strength of evidence in favor of regime shifts. Together, these results suggest that regime-shift detection recruits belief-updating and evidence-evaluation networks and that under- and overreactions arise from how sensitive these networks are to the system parameters.
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 1 match between paragraphs and lines of code.
OSF xh7dy
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
19 files
- 2.Analysis/
fMRI/ , MATLAB, 34 linescode/ exec_create_3rdLevel_fsf _leaveOneOut.m - 2.Analysis/
fMRI/ , Shell, 49 linescode/ run_LOSO_feat.sh - 2.Analysis/
fMRI/ , Shell, 76 linescode/ run_create_LOSO_cluster_ mask.sh - 2.Analysis/
fMRI/ , Shell, 118 linescode/ run_get_pe_subjects_LOSO _clusterMask_125.sh - 2.Analysis/
fMRI/ , MATLAB, 203 linescode/ run_neural_vs_behav_slop e_GLM3.m - 2.Analysis/
fMRI/ , MATLAB, 45 linescode/ run_plot_ppi.m - 2.Analysis/
fMRI/ , MATLAB, 80 lines, 1 matchcode/ run_read_beta_rg1_paper_ GLM_2.m - 2.Analysis/
fMRI/ , MATLAB, 87 linescode/ run_read_beta_rg_125_pap er_GLM1.m - 3.Experiment_code/
Regime_experiment1.zip/ , MATLAB, 17 linesRegime_experiment1/ centerText.m - 3.Experiment_code/
Regime_experiment1.zip/ , MATLAB, 154 linesRegime_experiment1/ input/ createInputs_shift.m - 3.Experiment_code/
Regime_experiment1.zip/ , MATLAB, 72 linesRegime_experiment1/ my_openExperiment.m - 3.Experiment_code/
Regime_experiment1.zip/ , MATLAB, 304 linesRegime_experiment1/ run_regime_shift_behavio r.m - 3.Experiment_code/
Regime_experiment1.zip/ , MATLAB, 286 linesRegime_experiment1/ run_regime_shift_fmri.m - 3.Experiment_code/
Regime_experiment2.zip/ , MATLAB, 17 linesRegime_experiment2/ centerText.m - 3.Experiment_code/
Regime_experiment2.zip/ , MATLAB, 72 linesRegime_experiment2/ my_openExperiment.m - 3.Experiment_code/
Regime_experiment2.zip/ , MATLAB, 298 linesRegime_experiment2/ run_regime_shift_behavio r.m - 3.Experiment_code/
Regime_experiment2.zip/ , MATLAB, 287 linesRegime_experiment2/ run_regime_shift_fmri.m - 3.Experiment_code/
Regime_experiment3.zip/ , MATLAB, 17 linesRegime_experiment3/ centerText.m - 3.Experiment_code/
Regime_experiment3.zip/ , MATLAB, 275 linesRegime_experiment3/ run_keypress_fmri.m
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;
- 1 match 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
All data, including behavioral and fMRI, and analysis code are available at Open Science Framework: https://
The following dataset was generated:
WangM-C WuG S-WWu 2026System Neglect and the Neurocomputational Substrates for Over- and Underreactions to ChangesOpen Science Frameworkxh7dy
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, 28 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 3 authors, 9 keywords, 9 MeSH terms, 1 funder, 62 references.
Cite
This paper
Wang, M.-C., Wu, G., & Wu, S.-W. (2026). Regime shift detection and neurocomputational substrates for under and overreactions to change. eLife, 14, RP104684. https://
BibTeX
@article{wang2026regime,
author = {Wang, Mu-Chen and Wu, George and Wu, Shih-Wei},
title = {{Regime shift detection and neurocomputational substrates for under and overreactions to change}},
journal = {eLife},
year = {2026},
month = may,
volume = {14},
pages = {RP104684},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/
url = {https://
pmid = {42112672},
pmcid = {PMC13160555}
}
RIS
TY - JOUR
AU - Wang, Mu-Chen
AU - Wu, George
AU - Wu, Shih-Wei
TI - Regime shift detection and neurocomputational substrates for under and overreactions to change
T2 - eLife
J2 - eLife
PY - 2026
DA - 2026/
VL - 14
SP - RP104684
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.7554/
"type": "article-journal",
"title": "Regime shift detection and neurocomputational substrates for under and overreactions to change",
"container-title": "eLife",
"author": [
{
"family": "Wang",
"given": "Mu-Chen"
},
{
"family": "Wu",
"given": "George"
},
{
"family": "Wu",
"given": "Shih-Wei"
}
],
"container-title-short":
"volume": "14",
"page": "RP104684",
"DOI": "10.7554/
"PMID": "42112672",
"PMCID": "PMC13160555",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
11
]
]
}
}
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.7554/elife.103846 [code]
- Overt visual attention modulates decision-related signals in the frontal cortex.Journal: eLifeIn common: Psychtoolbox, FSL, Statistics and Machine Learning Toolbox, cognitive, 3 references
- [2] doi:10.3389/fnins.2026.1720206 [code]
- Computational learning phenotypes are not related to individual differences in resting-state fMRI connectivity.Journal: Frontiers in neuroscienceIn common: fMRI, 4 references
- [3] doi:10.1038/s41562-026-02533-1 [code]
- Fluctuations in arousal reflect latent state transitions that facilitate behavioural optimization.Journal: Nature human behaviourIn common: Psychtoolbox, Statistics and Machine Learning Toolbox, cognitive, 2 references
- [4] doi:10.1073/pnas.2536535123 [code]
- Orbitofrontal noradrenaline supports adaptive learning-rate adjustment in probabilistic reversal learning.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: cognitive, 4 references
- [5] doi:10.1371/journal.pbio.3003767 [code]
- Ultrasound neuromodulation reveals distinct roles of the dorsal anterior cingulate cortex and anterior insula in learning.Journal: PLoS biologyIn common: Statistics and Machine Learning Toolbox, cognitive, 3 references
- [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 communicationsIn common: Psychtoolbox, FSL, Statistics and Machine Learning Toolbox, cognitive, 1 reference
- [7] doi:10.1038/s41467-026-71725-0 [code]
- Interactions across hemispheres in prefrontal cortex reflect global cognitive processing.Journal: Nature communicationsIn common: Psychtoolbox, Statistics and Machine Learning Toolbox, cognitive, 2 references
- [8] doi:10.1038/s41586-026-10631-3 [code]
- A prognostic human brain network for diffuse midline glioma.Journal: NatureIn common: Psychtoolbox, FSL, Statistics and Machine Learning Toolbox, 1 reference
- [9] doi:10.1002/epi.70323 [code]
- Individual-specific resting-state networks predict language dominance in drug-resistant epilepsy.Journal: EpilepsiaIn common: FSL, Statistics and Machine Learning Toolbox, fMRI, 2 references
- [10] doi:10.1038/s41467-026-73153-6 [code]
- Latent neural architecture organising shared aesthetic evaluations of visual artworks.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, fMRI, cognitive, 3 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 19 scripts, and 1 match between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:303a389a411ddd05…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
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.
