Linking brain structure to stress reactivity: cingulate surface area predicts acute cortisol responses.
A correction to this paper has been published: the notice, 42047098, from Europe PMC.
3 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 6 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods and materials › Data analysis ↔ 01_palm/code/03_plot_results.ipynb, lines 124 to 214 · score 0.91 · rostral anterior cingulate, caudal anterior cingulate, posterior cingulate, Cortical thickness, parahippocampus, precuneus · Report a mismatch
- [2] § Methods and materials › Data analysis ↔ 03_stress-ml/code/01_predict.py, lines 252 to 317 · score 0.85 · nested cross validation, outer folds, model evaluation, SHAP, inner, optimization · block
oscr:b:BSG4816351XF9-Q· Report a mismatch - [3] § Results › Permutation analysis of linear models (PALM) results ↔ 01_palm/code/03_plot_results.ipynb, lines 124 to 214 · score 0.71 · rostral anterior cingulate, caudal anterior cingulate, lateral orbitofrontal, posterior cingulate, insula, PALM · Report a mismatch
- [4] § Methods and materials › Data analysis ↔ 02_whole-brain/code/04_run_cluster-sim.sh, the whole file · a weak match · score 0.64 · mri_glmfit, FreeSurfer, Simulation, spaces, cluster, thickness · block
oscr:b:FQJZJJEYS38YC-Z· Report a mismatch - [5] § Methods and materials › Data analysis ↔ 01_palm/code/00_prepare_files.ipynb, lines 30 to 85 · score 0.59 · parahippocampus, precuneus, accumbens, putamen, thalamus, rostral · Report a mismatch
- [6] § Methods and materials › Data analysis ↔ 02_whole-brain/code/03_run-glms.sh, the whole file · a weak match · score 0.58 · mri_glmfit, FreeSurfer, fsaverage, cortex, thickness, volume · block
oscr:b:0QEQGXEMSYYYE-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
Jupyter notebook · 214 lines · 5.8 KB · GPL-3.0 · 2 matches
- # %%
- import os
- import os.path as op
- import matplotlib.pyplot as plt
- import pandas as pd
- import seaborn as sns
- from scipy import stats
- from sklearn.linear_model import LinearRegression
- from sklearn.preprocessing import OneHotEncoder
- # %%
- WORKING_PATH = "..." # Set your working path here.
- beh = pd.read_csv(
- op.join(WORKING_PATH, "data/beh/beh_residualized_extended_050225.csv")
- )
- aparc = pd.read_csv(
- op.join(WORKING_PATH, "data/fs-measures/aparcstats2table_combined.csv")
- )
- aseg = pd.read_csv(
- op.join(WORKING_PATH, "data/fs-measures/aseg_stats_combined.csv")
- ).rename(columns={"Measure:volume": "id"})
- beh = beh[beh["site"] == "regensburg"]
- db = pd.merge(beh, aparc, on="id", how="inner").merge(aseg, on="id", how="inner")
- db
- # %%
- def plot_brain_correlations(data, x, y, y_label, out_path=None):
- # Set style and color palette
- sns.set_style(
- "whitegrid",
- {"axes.grid": False, "xtick.bottom": False, "ytick.left": False},
- )
- palette = {"male": "#2E86AB", "female": "#F24236"}
- # Create figure
- plt.figure(figsize=(12, 11), dpi=300)
- # Create jointplot with enhanced styling
- g = sns.jointplot(
- data=data,
- x=x,
- y=y,
- hue="sex",
- kind="scatter",
- height=10,
- ratio=8,
- palette=palette,
- marginal_kws=dict(common_norm=False, fill=True),
- joint_kws=dict(alpha=0.7, s=100),
- )
- # Add regression lines with confidence intervals
- for sex_group in data["sex"].unique():
- subset = data[data["sex"] == sex_group]
- sns.regplot(
- data=subset,
- x=x,
- y=y,
- scatter=False,
- line_kws={"linestyle": "--", "linewidth": 2},
- ci=95,
- ax=g.ax_joint,
- color=palette[sex_group],
- )
- # Add overall regression line
- sns.regplot(
- data=data,
- x=x,
- y=y,
- scatter=False,
- color="black",
- line_kws={"linewidth": 2},
- ci=95,
- ax=g.ax_joint,
- )
- # Customize labels and appearance
- g.ax_joint.set_xlabel(
- "Cortisol increase (nmol/l)".title(), fontsize=20, fontweight="bold"
- ).set_visible(False) ## To set the visibility off.
- g.ax_joint.set_ylabel(y_label, fontsize=20, fontweight="bold").set_visible(
- False
- ) ## To set the visibility off.
- g.ax_joint.tick_params(labelsize=18)
- # Remove axis values
- # g.ax_joint.set_xticklabels([])
- # g.ax_joint.set_yticklabels([])
- # Customize legend
- g.ax_joint.legend(
- title="Sex",
- title_fontsize=12,
- fontsize=11,
- bbox_to_anchor=(0.95, 0.15),
- frameon=True,
- edgecolor="black",
- ).set_visible(False)
- # Make axes thicker
- g.ax_joint.spines["bottom"].set_linewidth(2)
- g.ax_joint.spines["left"].set_linewidth(2)
- g.ax_joint.tick_params(width=2)
- # Adjust layout and save
- plt.tight_layout()
- if out_path:
- plt.savefig(out_path, dpi=500, bbox_inches="tight")
- plt.close()
- def correct_for_site(data, area, site_col="site"):
- # Correct for site effects using linear regression
- site = OneHotEncoder(sparse_output=False, drop="first").fit_transform(
- data[[site_col]]
- )
- data[area] = data[area] - LinearRegression().fit(site, data[area]).predict(site)
- return data
- # %%
- # Prepare Brain Imaging Data for PALM
- corr_plot_path = op.join(WORKING_PATH, "palm_regensburg_cycle/plots")
- os.makedirs(corr_plot_path, exist_ok=True)
- cortical_areas = {
- "rostralanteriorcingulate": "Rostral Anterior Cingulate",
- "caudalanteriorcingulate": "Caudal Anterior Cingulate",
- "posteriorcingulate": "Posterior Cingulate",
- "parahippocampal": "Parahippocampal Gyrus",
- "lateralorbitofrontal": "Lateral Orbitofrontal Gyrus",
- "medialorbitofrontal": "Medial Orbitofrontal Gyrus",
- "insula": "Insula",
- "precuneus": "Precuneus",
- }
- subcortical_areas = {
- "Thalamus-Proper": "Thalamus",
- "Caudate": "Caudate Nucleus",
- "Accumbens-area": "Nucleus Accumbens",
- "Putamen": "Putamen",
- "Hippocampus": "Hippocampus",
- "Amygdala": "Amygdala",
- }
- # Cortical Thickness
- for hemi in ["lh", "rh"]:
- for area, area_name in cortical_areas.items():
- data = db[
- [
- "site",
- "sex",
- "increase",
- f"{hemi}_{area}_thickness",
- ]
- ]
- out_file = f"{corr_plot_path}/{hemi}_{area}_thickness_increase.png"
- if op.exists(out_file):
- continue
- plot_brain_correlations(
- data,
- "increase",
- f"{hemi}_{area}_thickness",
- f"{area_name} thickness (mm)",
- out_file,
- )
- # Surface Area
- for hemi in ["lh", "rh"]:
- for area, area_name in cortical_areas.items():
- data = db[
- [
- "site",
- "sex",
- "increase",
- f"{hemi}_{area}_area",
- ]
- ]
- out_file = f"{corr_plot_path}/{hemi}_{area}_area_increase.png"
- if op.exists(out_file):
- continue
- plot_brain_correlations(
- data,
- "increase",
- f"{hemi}_{area}_area",
- f"{area_name} surface area (mm²)",
- out_file,
- )
- # Subcortical Volume
- for hemi in ["Left", "Right"]:
- for area, area_name in subcortical_areas.items():
- area_ = f"{hemi}-{area}"
- data = db[
- [
- "site",
- "sex",
- "increase",
- area_,
- ]
- ]
- out_file = f"{corr_plot_path}/{hemi}_{area}_volume_increase.png"
- if op.exists(out_file):
- continue
- plot_brain_correlations(
- data,
- "increase",
- area_,
- f"{area_name} volume (mm³)",
- out_file,
- )
03_plot_results.ipynb at commit acc8c93, under GPL-3.0 · at the source
Overview
- Department of Psychiatry and Neurosciences CCM, Charité – Universitätsmedizin Berlin, Corporate Member of Freie Universität Berlin and Humboldt-Universität zu Berlin, Berlin, Germany
- German Center for Mental Health (DZPG), Partner Site Berlin-Potsdam, Berlin, Germany
- Institute of Psychology, University of Regensburg, Regensburg, Germany
- Department of Epidemiology and Preventive Medicine, University of Regensburg, Regensburg, Germany
Abstract
Background: Altered stress responses are closely linked to mental disorders, but the role of brain structure in acute cortisol responses to psychosocial stress remains underexplored, particularly in healthy individuals. Previous studies, with predominantly small samples, primarily focused on selected limbic regions and functional measures. Thus, this study investigates associations between brain structure and cortisol responses to psychosocial stress, exploring if hypothalamic–pituitary–a
Methods: Our study included 291 subjects (157 females, 18–62 years) and consisted of two parts. First, a confirmatory analysis examined associations between specific cortical surface area, thickness, and subcortical volume with stress-induced cortisol increases using Permutation Analysis of Linear Models (PALM). Second, we conducted an exploratory whole-brain vertex-wise analysis, followed by out-of-sample prediction of cortisol increases from structural measures.
Results: We found consistent negative associations between cingulate cortex (CC) sub-structures and acute cortisol increases. In PALM- and whole-brain analysis, a smaller surface area of the left rostral and caudal anterior cingulate cortex (cACC), posterior cingulate cortex, and right cACC were associated with higher cortisol stress responses, particularly in males. The left cACC surface area emerged as the most promising predictor in machine learning analyses. Additionally, other fronto-limbic structures were also associated with or predictive of acute cortisol reactivity.
Conclusions: Our findings demonstrate that cortical and subcortical structural measures, particularly smaller surface areas of the CC, predict acute hormonal stress responses. Notably, the left cACC emerged as the most consistent predictor, emphasizing its important role in stress reactivity.
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 6 matches between paragraphs and lines of code.
eminSerin/stress-fs-paper
acc8c93412d132e3e3c783d1030c95960009fa2b, 22 January 2026Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
22 files
- 00_organize_data/
combine_aparcstats2table , Python, 26 lines.py - 00_organize_data/
combine_asegstats.py , Python, 10 lines - 00_organize_data/
remove_covariate.ipynb , Jupyter, 165 lines - 01_palm/
code/ , Jupyter, 177 lines, 1 match00_prepare_files.ipynb - 01_palm/
code/ , MATLAB, 78 lines01_run_palm.m - 01_palm/
code/ , Python, 88 lines02_extract_reports.py - 01_palm/
code/ , Jupyter, 214 lines, 2 matches03_plot_results.ipynb - 02_whole-brain/
code/ , Jupyter, 113 lines00_prepare-files.ipynb - 02_whole-brain/
code/ , Python, 37 lines01_smooth-fs.py - 02_whole-brain/
code/ , Shell, 17 lines02_preproc-fs.sh - 02_whole-brain/
code/ , Shell, 23 lines, 1 match03_run-glms.sh - 02_whole-brain/
code/ , Shell, 19 lines, 1 match04_run_cluster-sim.sh - 02_whole-brain/
code/ , Python, 21 lines05_create-reports.py - 02_whole-brain/
code/ , Python, 76 lines06_plot-surface.py - 02_whole-brain/
code/ , Python, 189 lines07_plot_cluster.py - 03_stress-ml/
code/ , Jupyter, 77 lines00_prepare_data.ipynb - 03_stress-ml/
code/ , Python, 659 lines, 1 match01_predict.py - 03_stress-ml/
code/ , Python, 76 lines01_predict_submit.py - 03_stress-ml/
code/ , Python, 60 lines02_prepare_results.py - 03_stress-ml/
code/ , Python, 167 lines03_plot_shap.py - LICENSE, License, 674 lines
- README.md, Text, 11 lines
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;
- 20 scripts, each with its path and the digest of its content;
- 6 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
Datasets cited
Data availability statement
The data sets generated during and/
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, 29 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 12 authors, 6 keywords, 13 MeSH terms, 1 funder, 107 references, 1 integrity notice.
Cite
This paper
Serin, E., Schill, L. S., Bärtl, C., Giglberger, M., Konzok, J., Peter, H. L., Speicher, N., Kreuzpointner, L., Kudielka, B. M., Wüst, S., Walter, H., & Henze, G.-I. (2026). Linking brain structure to stress reactivity: cingulate surface area predicts acute cortisol responses. Psychological medicine, 56, e96. https://
BibTeX
@article{serin2026linkin
author = {Serin, Emin and Schill, Lea Sophie and Bärtl, Christoph and Giglberger, Marina and Konzok, Julian and Peter, Hannah L. and Speicher, Nina and Kreuzpointner, Ludwig and Kudielka, Brigitte M. and Wüst, Stefan and Walter, Henrik and Henze, Gina-Isabelle},
title = {{Linking brain structure to stress reactivity: cingulate surface area predicts acute cortisol responses}},
journal = {Psychological medicine},
year = {2026},
month = apr,
volume = {56},
pages = {e96},
publisher = {Cambridge University Press},
issn = {0033-2917},
doi = {10.1017/
url = {https://
pmid = {41943954},
pmcid = {PMC13079226}
}
RIS
TY - JOUR
AU - Serin, Emin
AU - Schill, Lea Sophie
AU - Bärtl, Christoph
AU - Giglberger, Marina
AU - Konzok, Julian
AU - Peter, Hannah L.
AU - Speicher, Nina
AU - Kreuzpointner, Ludwig
AU - Kudielka, Brigitte M.
AU - Wüst, Stefan
AU - Walter, Henrik
AU - Henze, Gina-Isabelle
TI - Linking brain structure to stress reactivity: cingulate surface area predicts acute cortisol responses
T2 - Psychological medicine
J2 - Psychol Med
PY - 2026
DA - 2026/
VL - 56
SP - e96
SN - 0033-2917
PB - Cambridge University Press
DO - 10.1017/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1017/
"type": "article-journal",
"title": "Linking brain structure to stress reactivity: cingulate surface area predicts acute cortisol responses",
"container-title": "Psychological medicine",
"author": [
{
"family": "Serin",
"given": "Emin"
},
{
"family": "Schill",
"given": "Lea Sophie"
},
{
"family": "Bärtl",
"given": "Christoph"
},
{
"family": "Giglberger",
"given": "Marina"
},
{
"family": "Konzok",
"given": "Julian"
},
{
"family": "Peter",
"given": "Hannah L."
},
{
"family": "Speicher",
"given": "Nina"
},
{
"family": "Kreuzpointner",
"given": "Ludwig"
},
{
"family": "Kudielka",
"given": "Brigitte M."
},
{
"family": "Wüst",
"given": "Stefan"
},
{
"family": "Walter",
"given": "Henrik"
},
{
"family": "Henze",
"given": "Gina-Isabelle"
}
],
"container-title-short":
"volume": "56",
"page": "e96",
"DOI": "10.1017/
"PMID": "41943954",
"PMCID": "PMC13079226",
"ISSN": "0033-2917",
"publisher": "Cambridge University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
7
]
]
}
}
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.1038/s41398-026-04140-0 [code]
- Predicting stress response trajectories: Differential contributions of limbic and prefrontal regions to cortisol and affective responses.Journal: Translational psychiatryIn common: OSF echja, 20 references, 9 authors
- [2] doi:10.3758/s13415-021-00981-y [code]
- Dissociation of behavioral and neural responses to provocation during reactive aggression in healthy adults with high versus low externalization.Journal: Cognitive, affective & behavioral neuroscienceIn common: 1 reference, 5 authors
- [3] doi:10.1038/s42003-025-09158-6 [code]
- Generating synthetic task-based brain fingerprints for population neuroscience using deep learning.Journal: Communications biologyIn common: Nilearn, FreeSurfer, statsmodels, 7 other tools, 2 authors
- [4] doi:10.7554/elife.77545 [code]
- Structural differences in adolescent brains can predict alcohol misuse.Journal: eLifeIn common: SHAP, Nilearn, statsmodels, 7 other tools, developmental, 2 references, author Henrik Walter
- [5] doi:10.1038/s41467-024-52366-7 [code]
- Regional patterns of human cortex development correlate with underlying neurobiology.Journal: Nature communicationsIn common: Nilearn, statsmodels, NiBabel, 6 other tools, developmental, 3 references, author Henrik Walter
- [6] doi:10.1038/s41467-025-62812-9 [code]
- Mapping the coupling between tract reachability and cortical geometry of the human brain.Journal: Nature communicationsIn common: Nilearn, FreeSurfer, statsmodels, 7 other tools, developmental, author Henrik Walter
- [7] doi:10.1016/j.nicl.2023.103520 [code]
- Uncontrolled eating and sensation-seeking partially explain the prediction of future binge drinking from adolescent brain structure.Journal: NeuroImage. ClinicalIn common: SHAP, Nilearn, statsmodels, 7 other tools, author Henrik Walter
- [8] doi:10.21203/rs.3.rs-6864753/v1 [code]
- Lifespan investigation of brain volumetric changes associated with substance use disordersJournal: Research Square (preprint)In common: Nilearn, statsmodels, NiBabel, 6 other tools, developmental, author Henrik Walter
- [9] doi:10.1002/hbm.25829 [code]
- ENIGMA HALFpipe: Interactive, reproducible, and efficient analysis for resting-state and task-based fMRI data.Journal: Human brain mappingIn common: Nilearn, FreeSurfer, statsmodels, 6 other tools, author Henrik Walter
- [10] doi:10.7554/elife.94970 [code]
- Population clustering of structural brain aging and its association with brain development.Journal: eLifeIn common: FreeSurfer, statsmodels, NiBabel, 5 other tools, developmental, 1 reference, author Henrik Walter
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, 20 scripts, and 6 matches 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:ce16faaf6d0997d7…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1017/s0033291726104103)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1017/s0033291726104103.svg
:target: https://openscicode.org/badge/doi/10.1017/s0033291726104103
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1017/s0033291726104103"><img src="https://openscicode.org/badge/doi/10.1017/s0033291726104103.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.
