OSCR

Capturing the multimodal dynamics of acute stress responses: Evidence from the Montreal Imaging Stress Task (MIST).

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 · 160 lines · 5.1 KB · GPL-3.0

  1. function batchFileConverter_Dataset1()
  2. % batchFileConverter_Dataset1 Example of how to converts EDF files to MATLAB.
  3. %
  4. % This function is specifically written for the accompanying dataset, use
  5. % it only as a guide on how to implement the edfDataConverter function
  6. % and the RawFileModel class.to convert your files.
  7. %
  8. %--------------------------------------------------------------------------
  9. %
  10. % This code is part of the supplement material to the article:
  11. %
  12. % Preprocessing Pupil Size Data. Guideline and Code.
  13. % Mariska Kret & Elio Sjak-Shie. 2018.
  14. %
  15. %--------------------------------------------------------------------------
  16. %
  17. % Pupil Size Preprocessing Code (v1.1)
  18. % Copyright (C) 2018 Elio Sjak-Shie
  19. % [email hidden].
  20. %
  21. % This program is free software: you can redistribute it and/or
  22. % modify it under the terms of the GNU General Public License as
  23. % published by the Free Software Foundation, either version 3 of
  24. % the License, or (at your option) any later version.
  25. %
  26. % This program is distributed in the hope that it will be useful,
  27. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  29. % General Public License for more details.
  30. %
  31. % You should have received a copy of the GNU General Public License
  32. % along with this program. If not, see
  33. % <http://www.gnu.org/licenses/>.
  34. %
  35. %--------------------------------------------------------------------------
  36. %% Process Directory:
  37. % Get files:
  38. sourceFolderName = './rawData/';
  39. destFolderName = './matlabData/';
  40. rawFiles = dir([sourceFolderName '*.edf']);
  41. % Process subset of files:
  42. nFiles = length(rawFiles);
  43. % Disp file information:
  44. printToConsole('L1');
  45. printToConsole(1, 'Processing %i files...\n', nFiles);
  46. % Loop through files:
  47. for fileIndx = 1:nFiles
  48. edfDataConverter([sourceFolderName rawFiles(fileIndx).name]...
  49. ,[destFolderName rawFiles(fileIndx).name(1:end-4) '.mat'])
  50. printToConsole(2, 'Done with file %i.\n',fileIndx);
  51. end
  52. printToConsole(2, 'Done with folder.\n');
  53. printToConsole('L2');
  54. end
  55. %% edfDataConverter Function:
  56. function edfDataConverter(edfFilename,matFilename)
  57. % edfDataConverter Converts a single edf file to a matlab file.
  58. % Read raw edf file:
  59. hMex = @edfmex; %#ok<NASGU>
  60. [~,rawEDF] = evalc(['edfmex(''' edfFilename ''');']);
  61. t_ms = double(rawEDF.FSAMPLE.time)';
  62. zeroTime_ms = t_ms(1);
  63. t_ms = (t_ms - zeroTime_ms);
  64. L_raw = double(rawEDF.FSAMPLE.pa(1,:)');
  65. R_raw = double(rawEDF.FSAMPLE.pa(2,:)');
  66. % Only keep the correct eye, and label it the left for convenience:
  67. if all(L_raw == intmin('int16'))
  68. L = R_raw;
  69. curEye = 'right';
  70. else
  71. L = L_raw;
  72. curEye = 'left';
  73. end
  74. % Remove the 0 samples:
  75. L(L==0) = NaN;
  76. % Process events (only extract relevant events):
  77. evtRows = arrayfun(@(f) ~isempty(f.message),rawEDF.FEVENT);
  78. eventData.t = (double(vertcat(rawEDF.FEVENT(evtRows).sttime))...
  79. -zeroTime_ms)/1000;
  80. eventData.name = {rawEDF.FEVENT(evtRows).message}';
  81. % Find trials start and end times:
  82. trailStartRows = find(strcmp(eventData.name,'pictureTrial_Start'));
  83. assert(length(trailStartRows)==36);
  84. segmentStart = eventData.t(trailStartRows);
  85. segmentEnd = eventData.t(trailStartRows+9);
  86. % Extract trial metadata:
  87. trialNum = regexp(eventData.name...
  88. ,'!V TRIAL_VAR trial (\d{2,3})','tokens','once');
  89. assert(isequal(find(~cellfun(@isempty,trialNum)),trailStartRows+5))
  90. trial = str2double([trialNum{:}]');
  91. % Extract CA metadata:
  92. trialCA = regexp(eventData.name...
  93. ,'!V TRIAL_VAR CA (\d|?)','tokens','once');
  94. assert(isequal(find(~cellfun(@isempty,trialCA)),trailStartRows+7))
  95. CA = str2double([trialCA{:}]');
  96. % Extract Condition metadata:
  97. trialCondition = regexp(eventData.name...
  98. ,'!V TRIAL_VAR Condition (\d)','tokens','once');
  99. assert(isequal(find(~cellfun(@isempty,trialCondition)),trailStartRows+8))
  100. Condition = str2double([trialCondition{:}]');
  101. % Extract picture metadata:
  102. trialPicture = regexp(eventData.name...
  103. ,'!V TRIAL_VAR picture (.)+$','tokens','once');
  104. assert(isequal(find(~cellfun(@isempty,trialPicture)),trailStartRows+6))
  105. picture = [trialPicture{:}]';
  106. % Make table:
  107. segmentName = strcat('pictureSeq_'...
  108. ,strrep(cellstr(num2str((1:36)')),' ','0'));
  109. SegmentSource = segmentName;
  110. [~,justFileName,~] = fileparts(edfFilename);
  111. SegmentSource(:) = {justFileName};
  112. fileType = SegmentSource;
  113. fileType(:) = regexp(edfFilename...
  114. ,'.+(F|B|iCB1|iCB2).edf','tokens','once');
  115. eyeUsed = segmentName;
  116. eyeUsed(:) = {curEye};
  117. segmentData = table(...
  118. segmentStart,segmentEnd,segmentName,SegmentSource...
  119. ,fileType,trial,CA,Condition,picture,eyeUsed);
  120. % Build RawFileModel instance, which saves the data to a mat file that is
  121. % compatible with the other data models:
  122. diameterUnit = 'px';
  123. diameter = struct('t_ms',t_ms,'L',L,'R',[]);
  124. RawFileModel(diameterUnit,diameter,segmentData...
  125. ,zeroTime_ms,matFilename);
  126. end

batchFileConverter_Dataset1.m at commit 944523b, under GPL-3.0 · at the source

Overview

Authors: Wei Zhao1, Pengrui Li1, Dezhong Yao1,2, Yun Qin1,2, Tiejun Liu1,2
ORCID iDs: Wei Zhao
  1. The Clinical Hospital of Chengdu Brain Science Institute, MOE-K Lab for NeuroInformation, Brain-Apparatus Communication Institute, University of Electronic Science and Technology of China, Chengdu, China
  2. Sichuan Institute for Brain Science and Brain-Inspired Intelligence, Chengdu, China
Journal: International journal of clinical and health psychology : IJCHP, volume 26, issue 2, article 100713
Dates: received 27 February 2026; accepted 1 August 2026; published online 7 August 2026; in print April 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1016/j.ijchp.2026.100713 · PMID 42603950 · PMCID PMC13476487 · OpenAlex W7201866644
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), human (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Smoothing, state filtering, decompositions, Evoked potentials, Physiology & signal measures
Keywords: Acute stress, Montreal Imaging Stress Task (MIST), Electroencephalogram (EEG), Pupil diameter, Multimodal dynamics
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Natural Science Foundation of China; Science and Technology Department of Sichuan Province
Citations: not cited yet (Europe PMC); 41 references in the paper

Abstract

Background: Capturing multimodal acute stress responses is important for understanding how stress is expressed across psychophysiological systems. Pupil diameter and electroencephalogram (EEG) are important indices for assessing acute stress responses. However, the relationships among behavioral, pupillary, and EEG responses during sustained stress exposure remain less well understood.

Methods: We collected multimodal data, including self-reported stress, salivary cortisol, electrocardiogram (ECG), pupil diameter, behavioral performance, and EEG from 33 healthy young adults during the Montreal Imaging Stress Task (MIST). Differences in responses between the training and testing conditions across difficulty levels were analyzed to characterize changes in the multimodal dynamics of acute stress responses across MIST blocks, and exploratory correlation analyses were conducted to examine associations between pupil diameter changes and relative EEG power changes

Results: The testing condition successfully elicited an acute stress response profile, reflected by increased self-reported stress, salivary cortisol, heart rate, and pupil diameter, alongside decreased behavioral performance and a shift in relative EEG power from lower to higher frequency bands. During the testing condition, behavioral performance improved and pupil diameter decreased from the medium to the hard difficulty block, accompanied by changes in relative alpha, beta (beta1, beta2, beta3), and gamma power. These findings may reflect adaptive-like changes over the course of the testing condition. Exploratory analyses showed limited associations between pupil diameter changes and relative EEG power changes, restricted to changes from the medium to the hard difficulty block in the testing condition and mainly involving frontal relative beta2 power.

Conclusion: Our findings suggest that acute stress involves coordinated but partly dissociable multimodal dynamics across MIST blocks and highlight the value of integrating behavioral, pupillary, and EEG measures to characterize acute stress responses.

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

Repository

Its files are read in the Code ↔ Paper reader above.

ElioS-S/pupil-size

License: GPL-3.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 944523bff0ca583039039a3008ac1171ab46400a, 9 October 2019
Languages: MATLAB (15)
Size: 42 files, 15 scripts
Software Heritage: not archived
Found in: the text, “Pupillary data processing and analysis”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
17 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;
  • 15 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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 accessibility statement

Data in the present study can be made available upon request to the primary contact author.

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 Wei Zhao (0009-0000-8091-2728); removed Wei Zhao

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 5 keywords, 2 funders, 40 references.

Cite

This paper

Zhao, W., Li, P., Yao, D., Qin, Y., & Liu, T. (2026). Capturing the multimodal dynamics of acute stress responses: Evidence from the Montreal Imaging Stress Task (MIST). International journal of clinical and health psychology : IJCHP, 26(2), 100713. https://doi.org/10.1016/j.ijchp.2026.100713

BibTeX

@article{zhao2026capturing,
author = {Zhao, Wei and Li, Pengrui and Yao, Dezhong and Qin, Yun and Liu, Tiejun},
title = {{Capturing the multimodal dynamics of acute stress responses: Evidence from the Montreal Imaging Stress Task (MIST)}},
journal = {International journal of clinical and health psychology : IJCHP},
year = {2026},
month = apr,
volume = {26},
number = {2},
pages = {100713},
publisher = {Asociacion Espanola de Psicologia Conductual},
issn = {1697-2600},
doi = {10.1016/j.ijchp.2026.100713},
url = {https://doi.org/10.1016/j.ijchp.2026.100713},
pmid = {42603950},
pmcid = {PMC13476487}
}

RIS

TY - JOUR
AU - Zhao, Wei
AU - Li, Pengrui
AU - Yao, Dezhong
AU - Qin, Yun
AU - Liu, Tiejun
TI - Capturing the multimodal dynamics of acute stress responses: Evidence from the Montreal Imaging Stress Task (MIST)
T2 - International journal of clinical and health psychology : IJCHP
J2 - Int J Clin Health Psychol
PY - 2026
DA - 2026/04/01
VL - 26
IS - 2
SP - 100713
SN - 1697-2600
PB - Asociacion Espanola de Psicologia Conductual
DO - 10.1016/j.ijchp.2026.100713
UR - https://doi.org/10.1016/j.ijchp.2026.100713
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.ijchp.2026.100713",
"type": "article-journal",
"title": "Capturing the multimodal dynamics of acute stress responses: Evidence from the Montreal Imaging Stress Task (MIST)",
"container-title": "International journal of clinical and health psychology : IJCHP",
"author": [
{
"family": "Zhao",
"given": "Wei"
},
{
"family": "Li",
"given": "Pengrui"
},
{
"family": "Yao",
"given": "Dezhong"
},
{
"family": "Qin",
"given": "Yun"
},
{
"family": "Liu",
"given": "Tiejun"
}
],
"container-title-short": "Int J Clin Health Psychol",
"volume": "26",
"issue": "2",
"page": "100713",
"DOI": "10.1016/j.ijchp.2026.100713",
"PMID": "42603950",
"PMCID": "PMC13476487",
"ISSN": "1697-2600",
"publisher": "Asociacion Espanola de Psicologia Conductual",
"URL": "https://doi.org/10.1016/j.ijchp.2026.100713",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
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.1523/eneuro.0417-25.2026 [code]
Learning and Motivation State Fluctuations from Motoric and Neurophysiologic Metrics during a Somatosensory Task in Mice.
Journal: eNeuro
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 2 references
[2] doi:10.1016/j.isci.2026.115767
Acute stress impairs attentional control and emotional processing in social anxiety.
Journal: iScience
In common: EEG, cognitive, 3 references
[3] doi:10.1038/s41562-026-02533-1 [code]
Fluctuations in arousal reflect latent state transitions that facilitate behavioural optimization.
Journal: Nature human behaviour
In common: Statistics and Machine Learning Toolbox, EEG, cognitive, 3 references
[4] doi:10.1111/ejn.70543 [code]
Neural Oscillations Track Subjective and Pupillary Arousal During Naturalistic Movie Viewing.
Journal: The European journal of neuroscience
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, EEG, cognitive, 2 references
[5] doi:10.1038/s41467-026-71725-0 [code]
Interactions across hemispheres in prefrontal cortex reflect global cognitive processing.
Journal: Nature communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, cognitive, 2 references
[6] doi:10.1162/imag.a.1200 [code]
An fMRI examination of the role of the Locus Coeruleus in state regulation in ADHD.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 3 references
[7] doi:10.7554/elife.108408 [code]
Frequency and laminar profile of feature-specific visual activity revealed by interleaved EEG-fMRI.
Journal: eLife
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, EEG, 1 reference
[8] doi:10.1126/sciadv.adv5652 [code]
The anterior cingulate cortex modulates pupil-linked arousal.
Journal: Science advances
In common: 3 references
[9] doi:10.1016/j.neuroimage.2026.122115 [code]
Midfrontal theta power relates to response speeding following frustrative nonreward.
Journal: NeuroImage
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, EEG, cognitive, 1 reference
[10] doi:10.1523/jneurosci.0154-26.2026 [code]
Faster but less precise: expectation enhances response speed while reducing sensory fidelity.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, EEG, cognitive, 1 reference

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.