OSCR

Regime shift detection and neurocomputational substrates for under and overreactions to change.

Code ↔ Paper

1 match 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.

One block of code here has 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 1 match · it ties a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [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 · block oscr:b:Y3KR541BEWWKG-X · 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 · 80 lines · 2.2 KB · no license · 1 match

  1. % Script for running read_beta
  2. %
  3. %
  4. clear all;close all
  5. analysis_dir = '~/Muchen/Regime_experiment1/Analysis';
  6. ROI_type = 'LOSO_ROI';
  7. %beta_dir='~/Muchen/Regime_experiment1/Analysis/model_17_motionE_6mm/copeMask/masked_PE/model_5_motionE_6mm/';
  8. %beta_file='PE_subjects_cope2_control_B.txt'
  9. %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'
  10. %beta_dir='~/Muchen/Regime_experiment1/Analysis/model_5_motionE_6mm/LOSO_ROI/GM_Bartra_fig09_vmpfc/masked_PE/model_20_motionE_6mm'
  11. % Mask info
  12. mask_model = 'paper_GLM_2_check_3';
  13. %mask_copeNo=15;roi = {'dmPFC','l_IFG','r_IFG','l_IPS','r_IPS'};
  14. %mask_copeNo=11;roi = {'r_aINS'}; %logD
  15. mask_copeNo=10;roi = {'r_fusiform'}; %Qt odds
  16. n_roi = length(roi);
  17. % PE info
  18. PE_model = 'paper_GLM_2_check_3';
  19. PE_copeNo=15; %cope9,11,or 15
  20. n_subj=30;
  21. sigma=0.05;
  22. UB=0.2;
  23. LB=-0.2;
  24. for i=1:n_roi
  25. cluster_name = ['cluster_cope' num2str(mask_copeNo) '_' roi{i}];
  26. PE_dir=fullfile(analysis_dir,mask_model,ROI_type,cluster_name,'masked_PE',PE_model)
  27. PE_file=['PE_subjects_cope' num2str(PE_copeNo) '.txt'];
  28. PE0 = read_beta(PE_dir,PE_file,n_subj);
  29. n_realSubj = length(PE0);
  30. PE(1:n_realSubj,i)=PE0;
  31. PE(n_realSubj+1:n_subj,i)=NaN;
  32. [H(i),P(i),CI,STATS{i}] = ttest(PE(:,i));
  33. t(i) = STATS{i}.tstat;
  34. end
  35. H
  36. P
  37. t
  38. mu_PE = nanmean(PE);
  39. sem_PE = nanstd(PE)./sqrt(n_realSubj);
  40. t_stat = mu_PE./sem_PE;
  41. t_threshold = icdf('t',0.95,n_subj-1);
  42. figure(1);clf
  43. hold on;
  44. x_gap = 2;
  45. x_center = 1:x_gap:(n_roi*x_gap-1);
  46. bar(x_center,mu_PE,'FaceColor',[1 1 1],'EdgeColor',[0 0 0],'LineWidth',1.5);
  47. hold on;
  48. for i=1:n_roi
  49. l = plot([x_center(i) x_center(i)],[mu_PE(i)-sem_PE(i) mu_PE(i)+sem_PE(i)],'linewidth',3);hold on;
  50. l.Color = '#0080FF';
  51. x_grid = x_center(i) + unifrnd(LB,UB,n_subj,1);
  52. %x_grid = x_center(i) + normrnd(0,sigma,n_subj,1);
  53. plot(x_grid,PE(:,i),'k.','markersize',10);
  54. end
  55. ylabel('mean PE')
  56. title(['cope ' num2str(PE_copeNo)]);
  57. data.PE_model = PE_model;
  58. data.PE_copeNo = PE_copeNo;
  59. data.script_name = 'run_read_beta_paper_GLM_2_fig5.m';
  60. data.H = H;
  61. data.P = P;
  62. data.t = t;
  63. data.STATS = STATS;
  64. fname = ['beta_' PE_model '_cope_' num2str(PE_copeNo) '.mat'];
  65. save(fullfile('~/Muchen/advanced/data/',fname),'data');

run_read_beta_rg1_paper_GLM_2.m, no license · at the source

Overview

Authors: Mu-Chen Wang1, George Wu2, Shih-Wei Wu1,3
  1. Institute of Neuroscience, National Yang Ming Chiao Tung University Taipei Taiwan
  2. Booth School of Business, University of Chicago Chicago United States
  3. Brain Research Center, National Yang Ming Chiao Tung University Taipei Taiwan
Institutions: National Yang Ming Chiao Tung University (Taiwan); University of Chicago (United States)
Journal: eLife, volume 14, article RP104684
Dates: published online 11 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.104684 · PMID 42112672 · PMCID PMC13160555 · OpenAlex W4406898815
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: fMRI (modality), human (organism), cognitive (subfield)
Methods: Connectivity, Statistics, Machine learning, fMRI & imaging, Single-unit activity, calcium imaging
Keywords: change detection, regime shift, system neglect, underreactions to change, overreactions to change, decision making, fMRI, Bayesian modeling, Human
MeSH: Brain*, Decision Making*, Adult, Brain Mapping, Female, Humans, Magnetic Resonance Imaging, Male, Young Adult (* major topic)
Journal subjects: Neuroscience
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Science and Technology Council (108-2410-H-010-012-MY3, 110-2410-H-A49A-504 -MY3)
Citations: not cited yet (Europe PMC); 65 references in the paper

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

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Languages: MATLAB (5), Shell (3)
Size: 27 files, 8 scripts
Software Heritage: not checked
Found in: the text, “Materials and methods”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Psychtoolbox (10 files), Statistics and Machine Learning Toolbox (3 files), FSL (2 files)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
19 files
At the source: osf.io/xh7dy/

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://osf.io/xh7dy/.

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://doi.org/10.7554/elife.104684

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/elife.104684},
url = {https://doi.org/10.7554/elife.104684},
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/05/11
VL - 14
SP - RP104684
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.104684
UR - https://doi.org/10.7554/elife.104684
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.104684",
"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": "eLife",
"volume": "14",
"page": "RP104684",
"DOI": "10.7554/elife.104684",
"PMID": "42112672",
"PMCID": "PMC13160555",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.104684",
"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.1093/cercor/bhaf219 [code]
Neural variability in the default mode network compresses with increasing belief precision during Bayesian inference.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: FSL, Statistics and Machine Learning Toolbox, fMRI, cognitive, 10 references
[2] doi:10.1038/s41467-023-42092-x [code]
Electrophysiological population dynamics reveal context dependencies during decision making in human frontal cortex.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, cognitive, 6 references, author Shih-Wei Wu
[3] doi:10.1038/s41467-024-55416-2 [code]
Broadscale dampening of uncertainty adjustment in the aging brain.
Journal: Nature communications
In common: Psychtoolbox, Statistics and Machine Learning Toolbox, cognitive, 6 references
[4] doi:10.3758/s13415-025-01285-1 [code]
People display consistent recency and primacy effects in behavior and neural activity across perceptual and value-based judgments.
Journal: Cognitive, affective & behavioral neuroscience
In common: Psychtoolbox, fMRI, cognitive, 6 references
[5] doi:10.1162/opmi_a_00139 [code]
Two Determinants of Dynamic Adaptive Learning for Magnitudes and Probabilities.
Journal: Open mind : discoveries in cognitive science
In common: cognitive, 7 references
[6] doi:10.1038/s41467-025-66444-x [code]
Neural variability in the medial prefrontal cortex contributes to efficient adaptive behavior.
Journal: Nature communications
In common: 7 references
[7] doi:10.1038/s41467-023-38709-w [code]
Task state representations in vmPFC mediate relevant and irrelevant value signals and their behavioral influence.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, cognitive, 7 references
[8] doi:10.1038/s42003-024-05821-6 [code]
The parieto-occipital cortex is a candidate neural substrate for the human ability to approximate Bayesian inference.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, 6 references
[9] doi:10.1038/s42003-024-06927-7 [code]
A neural code supporting prospective probabilistic reasoning for instrumental information demand in humans.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, 6 references
[10] doi:10.7554/elife.104222 [code]
Dynamic estimation of the attentional field from visual cortical activity.
Journal: eLife
In common: Statistics and Machine Learning Toolbox, fMRI, 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.

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.7554/elife.104684.svg)](https://openscicode.org/badge/doi/10.7554/elife.104684)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.7554/elife.104684.svg
   :target: https://openscicode.org/badge/doi/10.7554/elife.104684
   :alt: OSCR

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