Age-related differences in hippocampal network engagement during safety processing in adolescents.
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 3 matches
- [1] § Results › Post-hoc ROI and Connectivity Results ↔ Code/data_analysis.Rmd, lines 367 to 430 · score 0.52 · protection accuracy, vmPFC, median, SE, anterior, models · block
oscr:b:E8GYZ5M2R8ANE-K· Report a mismatch - [2] § Methods › Task Design ↔ Code/data_analysis.ipynb, lines 51 to 66 · score 0.51 · fist, goose, gun, cat, grizzly, stick · Report a mismatch
- [3] § Methods › Task Design ↔ Code/data_analysis.ipynb, lines 51 to 66 · score 0.51 · fist, goose, gun, cat, grizzly, stick · 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 · 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.1093/scan/nsag053
- Safety-relevant experience reshapes neural codes for ambiguous threat in adolescents.Journal: Social cognitive and affective neuroscienceIn common: developmental, fMRI, 22 references, author Sarah M Tashjian
- [2] doi:10.1371/journal.pbio.3002986
- Subregions in the ventromedial prefrontal cortex integrate threat and protective information to meta-represent safety.Journal: PLoS biologyIn common: 13 references, author Sarah M Tashjian
- [3] doi:10.1016/j.dcn.2025.101509 [code]
- Fear extinction retention in children, adolescents, and adults.Journal: Developmental cognitive neuroscienceIn common: developmental, fMRI, 12 references
- [4] doi:10.1016/j.celrep.2025.116265 [code]
- Human amygdala nuclei show distinct developmental trajectories from adolescence to adulthood in functional integration with prefrontal circuitry.Journal: Cell reportsIn common: ggplot2, tidyverse, pandas, developmental, fMRI, 8 references
- [5] doi:10.1038/s44271-025-00193-x [code]
- Person-centered analyses reveal that developmental adversity at moderate levels and neural threat/
safety discrimination are associated with lower anxiety in early adulthood. Journal: Communications psychologyIn common: statsmodels, seaborn, pandas, 3 other tools, developmental, 6 references - [6] doi:10.1038/s41467-025-60666-9 [code]
- An intracranial dissection of human escape circuits.Journal: Nature communicationsIn common: seaborn, pandas, SciPy, 2 other tools, 7 references
- [7] doi:10.1016/j.neuroimage.2021.118643 [code]
- Neural mediators of subjective and autonomic responding during threat learning and regulation.Journal: NeuroImageIn common: fMRI, 8 references
- [8] doi:10.7554/elife.66169 [code]
- Computational modeling of threat learning reveals links with anxiety and neuroanatomy in humans.Journal: eLifeIn common: 7 references
- [9] doi:10.1002/hbm.26518 [code]
- Revisiting deficits in threat and safety appraisal in obsessive-compulsive disorder.Journal: Human brain mappingIn common: seaborn, pandas, SciPy, 2 other tools, fMRI, 5 references
- [10] doi:10.1073/pnas.2116673119 [code]
- Adolescent development of multiscale structural wiring and functional interactions in the human connectome.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: PsychoPy, statsmodels, ggplot2, 6 other tools, developmental, 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:8917bd844b02067e…
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.1016/j.dcn.2026.101791)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101791.svg
:target: https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101791
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101791"><img src="https://openscicode.org/badge/doi/10.1016/j.dcn.2026.101791.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.
