Age-related differences in hippocampal network engagement during safety processing in adolescents.
The 3 matches
- [1] § Results › Post-hoc ROI and Connectivity Results ↔ Code/data_analysis.Rmd, lines 367–430 · score 0.52 · protection accuracy, vmPFC, median, SE, anterior, models
- [2] § Methods › Task Design ↔ Code/data_analysis.ipynb, lines 51–66 · score 0.51 · fist, goose, gun, cat, grizzly, stick
- [3] § Methods › Task Design ↔ Code/data_analysis.ipynb, lines 51–66 · score 0.51 · fist, goose, gun, cat, grizzly, stick
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
Jupyter notebook · 113 lines · 5.1 KB · no license · 2 matches
- # %%
- # Setup
- import pandas as pd # version 2.1.1
- import numpy as np
- import os
- import matplotlib.pyplot as plt
- import seaborn as sns # version 0.13.2
- import scipy # version 1.12.0
- from scipy.optimize import curve_fit
- import scipy.stats as ss
- import itertools
- from patsy import dmatrices
- import statsmodels.api as sm
- import statsmodels.formula.api as smf
- file_path = './ado_behavioral_data.csv'
- all_data = pd.read_csv(file_path)
- palette = {'safety': 'cornflowerblue', 'threat': 'lightcoral'}
- palette2 = {'safety': 'lightsalmon', 'threat': 'plum'}
- # %%
- fig, ax = plt.subplots(figsize = (6, 4))
- plot_data = all_data.groupby(['participant_num','first_condition','first_win_prob'], as_index=False)['first_win'].mean()
- sns.lineplot(data=plot_data, x='first_win_prob', y='first_win', hue='first_condition', err_style='bars', palette=palette)
- plt.show()
- g = all_data.groupby(['participant_num', 'first_condition'], as_index=False)['first_win'].mean()
- print(ss.ttest_rel(g.loc[g.first_condition=='safety']['first_win'], g.loc[g.first_condition=='threat']['first_win']))
- # %%
- # Heat map
- def plot_heat_map(all_data):
- fig, axes = plt.subplots(1, 2, figsize=(12, 4))
- g_sf = all_data.loc[all_data['first_condition']=='safety'].groupby(['first_win_prob', 'second_win_prob'],
- as_index=False)['second_win'].mean()
- g_sf = g_sf.pivot(index="first_win_prob", columns="second_win_prob", values="second_win")
- sns.heatmap(g_sf, ax=axes[0])
- axes[0].set_title('safety first')
- g_tf = all_data.loc[all_data['first_condition']=='threat'].groupby(['first_win_prob', 'second_win_prob'],
- as_index=False)['second_win'].mean()
- g_tf = g_tf.pivot(index="first_win_prob", columns="second_win_prob", values="second_win")
- sns.heatmap(g_tf, ax=axes[1])
- axes[1].set_title('threat first')
- plot_heat_map(all_data)
- # %%
- mean_first_win_by_stim = all_data.groupby(['participant_num', 'first_safety_value'])['first_win'].mean().reset_index(name='mean_first_win_by_stim')
- mean_second_win_by_stim = all_data.groupby(['participant_num', 'second_safety_value'])['second_win'].mean().reset_index(name='mean_second_win_by_stim')
- mean_win_by_stim = pd.merge(mean_first_win_by_stim, mean_second_win_by_stim, \
- left_on=['participant_num','first_safety_value'], right_on=['participant_num','second_safety_value'], how='left')
- title = {-7:"Grizzly", -6:"Lion", -2:"Goose", -1:"Cat", 1:"Fist", 2:"Stick", 6:"Gun", 7:"Grenade"}
- mean_win_by_stim['title'] = mean_win_by_stim['first_safety_value'].replace(title)
- condition = {-7:"threat", -6:"threat", -2:"threat", -1:"threat", 1:"safety", 2:"safety", 6:"safety", 7:"safety"}
- mean_win_by_stim['condition'] = mean_win_by_stim['first_safety_value'].replace(condition)
- mean_win_by_stim['mean_total_win_by_stim'] = (mean_win_by_stim['mean_first_win_by_stim'] + mean_win_by_stim['mean_second_win_by_stim'])/2
- print(mean_win_by_stim)
- # %%
- fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(20, 6), sharey=True)
- # First stimulus
- sns.scatterplot(ax=ax1, data=mean_win_by_stim, x='first_safety_value', y='mean_first_win_by_stim', hue='condition', palette=palette)
- # Regression plots for first stimulus
- sns.regplot(ax=ax1, data=mean_win_by_stim[mean_win_by_stim['condition'] == 'safety'], x='first_safety_value', y='mean_first_win_by_stim', ci=None, color='cornflowerblue')
- sns.regplot(ax=ax1, data=mean_win_by_stim[mean_win_by_stim['condition'] == 'threat'], x='first_safety_value', y='mean_first_win_by_stim', ci=None, color='lightcoral')
- # Second stimulus
- sns.scatterplot(ax=ax2, data=mean_win_by_stim, x='second_safety_value', y='mean_second_win_by_stim', hue='condition', palette=palette)
- # Regression plots for second stimulus
- sns.regplot(ax=ax2, data=mean_win_by_stim[mean_win_by_stim['condition'] == 'safety'], x='second_safety_value', y='mean_second_win_by_stim', ci=None, color='cornflowerblue')
- sns.regplot(ax=ax2, data=mean_win_by_stim[mean_win_by_stim['condition'] == 'threat'], x='second_safety_value', y='mean_second_win_by_stim', ci=None, color='lightcoral')
- plt.show()
- # %%
- df = mean_win_by_stim[mean_win_by_stim['condition'] == 'safety']
- model = smf.ols('mean_first_win_by_stim ~ first_safety_value', data=df).fit()
- print(model.summary())
- p_value = model.pvalues['first_safety_value']
- print(f"Exact p-value: {p_value:.3e}")
- # %%
- df = mean_win_by_stim[mean_win_by_stim['condition'] == 'threat']
- model = smf.ols('mean_first_win_by_stim ~ first_safety_value', data=df).fit()
- print(model.summary())
- p_value = model.pvalues['first_safety_value']
- print(f"Exact p-value: {p_value:.3e}")
- # %%
- df = mean_win_by_stim[mean_win_by_stim['condition'] == 'safety']
- model = smf.ols('mean_second_win_by_stim ~ second_safety_value', data=df).fit()
- print(model.summary())
- p_value = model.pvalues['second_safety_value']
- print(f"Exact p-value: {p_value:.3e}")
- # %%
- df = mean_win_by_stim[mean_win_by_stim['condition'] == 'threat']
- model = smf.ols('mean_second_win_by_stim ~ second_safety_value', data=df).fit()
- print(model.summary())
- p_value = model.pvalues['second_safety_value']
- print(f"Exact p-value: {p_value:.3e}")
data_analysis.ipynb, no license · at the source
Overview
- School of Psychological Sciences, The University of Melbourne, Melbourne, VIC 3010, Australia
- Graeme Clark Institute for Biomedical Engineering, The University of Melbourne, Melbourne, VIC 3010, Australia
Abstract
Adolescence is a period characterized by exploration, altered risk-taking, and increased vulnerability to mental health disorders. These phenomena may reflect underlying challenges in safety evaluation. Successfully navigating adolescence may therefore be related to the maturation of neural circuits that support safety evaluation, yet how these mechanisms function during development remains unclear. Using 7-Tesla functional magnetic resonance imaging, we recorded neural response in 33 adolescents (MAge = 14.88 years, 19 females) during evaluation of threat (external cues that signal potential danger) and protection (resources available to an agent that increase safety). Our findings reveal age-related differences in neural recruitment during accurate estimation of protection, such that younger adolescents (12–14 years) exhibited greater hippocampal engagement, whereas older adolescents (15–17 years) exhibited a more integrated circuit involving the hippocampus and anterior ventromedial prefrontal cortex (vmPFC). Our results also provide insight into how competition between threat and protection is resolved within the visual cortex during adolescent safety evaluation, demonstrating enhanced perceptual sensitivity to protection signals compared to threat. Behavioral analysis across a broader developmental spectrum (N = 63, MAge = 24.18 years, range 12–40 years, 34 females, including adults from prior work) revealed a quadratic association between age and protection estimation accuracy, with lower accuracy in mid-to-late adolescence relative to early adolescence and adulthood. Together, our behavioral and neural results indicate adolescence is an important developmental period for safety processing, particularly with respect to accurately estimating safety.
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 3 matches between paragraphs and lines of code.
OSF v3kpx
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
6 files
- Code/
data_analysis.Rmd , R, 431 lines, 1 match - Code/
data_analysis.ipynb , Jupyter, 113 lines, 2 matches - Task/
Run1/ , Python, 1,267 linesSafety_Run1_Tone_wFdbk.p y - Task/
Run2/ , Python, 1,266 linesSafety_Run2_Tone_wFdbk.p y - Task/
Run3/ , Python, 1,266 linesSafety_Run3_Tone_wFdbk.p y - Task/
Run4/ , Python, 1,266 linesSafety_Run4_Tone_wFdbk.p y
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;
- 6 scripts, each with its path and the digest of its content;
- 3 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 availability
Task code and behavioral data are available through the Open Science Framework (OSF; https://
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 Brain and Behavior Research Foundation
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 4 authors, 5 keywords, 95 references.
Cite
This paper
Zhang, Y., Coates, M. K., Garrido, M. I., & Tashjian, S. M. (2026). Age-related differences in hippocampal network engagement during safety processing in adolescents. Developmental cognitive neuroscience, 81, 101791. https://
BibTeX
@article{zhang2026age,
author = {Zhang, Yubing and Coates, Madeline K and Garrido, Marta I and Tashjian, Sarah M},
title = {{Age-related differences in hippocampal network engagement during safety processing in adolescents}},
journal = {Developmental cognitive neuroscience},
year = {2026},
month = jul,
volume = {81},
pages = {101791},
publisher = {Elsevier},
issn = {1878-9293},
doi = {10.1016/
url = {https://
pmid = {42531887},
pmcid = {PMC13452386}
}
RIS
TY - JOUR
AU - Zhang, Yubing
AU - Coates, Madeline K
AU - Garrido, Marta I
AU - Tashjian, Sarah M
TI - Age-related differences in hippocampal network engagement during safety processing in adolescents
T2 - Developmental cognitive neuroscience
J2 - Dev Cogn Neurosci
PY - 2026
DA - 2026/
VL - 81
SP - 101791
SN - 1878-9293
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "Age-related differences in hippocampal network engagement during safety processing in adolescents",
"container-title": "Developmental cognitive neuroscience",
"author": [
{
"family": "Zhang",
"given": "Yubing"
},
{
"family": "Coates",
"given": "Madeline K"
},
{
"family": "Garrido",
"given": "Marta I"
},
{
"family": "Tashjian",
"given": "Sarah M"
}
],
"container-title-short":
"volume": "81",
"page": "101791",
"DOI": "10.1016/
"PMID": "42531887",
"PMCID": "PMC13452386",
"ISSN": "1878-9293",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
28
]
]
}
}
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.1073/pnas.2603114123 [code]
- The human hippocampus can pattern separate memories by meaning.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: PsychoPy, ggplot2, tidyverse, 4 other tools, 2 references
- [2] doi:10.1038/s41467-026-75662-w [code]
- Distinct Roles of Deep and Superficial Cortical Layers in Tone Prediction, Comparison, and Adaptation in Human Auditory Cortices.Journal: Nature communicationsIn common: statsmodels, ggplot2, seaborn, 5 other tools, 2 references
- [3] doi:10.1038/s41467-026-71428-6 [code]
- Binding items to contexts through conjunctive neural representations with the method of loci.Journal: Nature communicationsIn common: statsmodels, ggplot2, seaborn, 5 other tools, 2 references
- [4] doi:10.34133/csbj.0042 [code]
- Using Steady-State Visual Evoked Potentials to Characterize Wide-Ranging Retinopathy Linked to &
lt;i& gt;CRB1& lt;/ i& gt;: Implications for Clinical Trials. Journal: Computational and structural biotechnology journalIn common: PsychoPy, statsmodels, ggplot2, 6 other tools - [5] doi:10.1162/imag.a.1279 [code]
- Multimodal laminar characterization of visual areas along the cortical hierarchy.Journal: Imaging neuroscience (Cambridge, Mass.)In common: PsychoPy, statsmodels, pandas, 3 other tools, 2 references
- [6] doi:10.1038/s41467-026-71830-0 [code]
- Predicting individual differences of fear and cognitive learning and extinction.Journal: Nature communicationsIn common: ggplot2, tidyverse, pandas, 2 other tools, 3 references
- [7] doi:10.1038/s41467-026-73865-9 [code]
- Histamine shapes the neurocomputational dynamics of human learning.Journal: Nature communicationsIn common: PsychoPy, ggplot2, seaborn, 5 other tools, 1 reference
- [8] doi:10.1002/hbm.70512 [code]
- Precision Imaging for Intraindividual Investigation of the Reward Response.Journal: Human brain mappingIn common: PsychoPy, ggplot2, tidyverse, 3 other tools, fMRI, 2 references
- [9] doi:10.1038/s41467-026-70287-5 [code]
- Cortical-limbic circuit dynamics of approach-avoidance conflict in humans.Journal: Nature communicationsIn common: statsmodels, ggplot2, seaborn, 5 other tools, 1 reference
- [10] doi:10.1162/imag.a.1256 [code]
- Gamer in the scanner: Event-related analysis of fMRI activity during retro videogame play guided by automated annotations of game content.Journal: Imaging neuroscience (Cambridge, Mass.)In common: statsmodels, seaborn, pandas, 3 other tools, fMRI, 2 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, 6 scripts, and 3 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:5737996f6ef5a6d4…
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.
