Semantic encoding of trauma memories in the hippocampus among individuals with PTSD.
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
- [1] § Methods › Semantic neurocircuitry encoding models ↔ semantic_sentence_embeddings.py, lines 29 to 39 · score 0.65 · NV Embed V2, sentence transformer, embeddings, model, semantic · block
oscr:b:FBBE3XB058281-T· 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
Python · 60 lines · 1.7 KB · no license · 1 match
- from hyperopt import hp, Trials, partial, fmin, STATUS_OK, space_eval, tpe, SparkTrials, STATUS_OK
- from sentence_transformers import SentenceTransformer
- import docx
- import umap
- import hdbscan
- import numpy as np
- import matplotlib.pyplot as plt
- import pickle
- import pyspark
- import os
- import semantic_functions
- filename = "DOP_subs_list.txt"
- sublist = []
- with open(filename, 'r') as file:
- for line in file:
- sublist.append(int(line.strip()))
- print('these are your subs:')
- print(sublist)
- script_path = "/Volumes/neurotap_2/DOP2/MVPA/semantic/sentence_analyses/transcribed_scripts/"
- script_types = ["trauma", "neutral"]
- #load in subject scripts
- context='context1'
- all_sentences, all_labels, all_sub_ids = semantic_functions.get_sub_sentences_and_labels_whisper(sublist, script_types, script_path,context)
- #load in sentence transformer model
- print('loading in sentence transformer')
- #model_st = SentenceTransformer('all-mpnet-base-v2')
- model_st = SentenceTransformer('nvidia/NV-Embed-v2',trust_remote_code=True)
- model_st.max_sequence_length = 32768
- model_st.tokenizer.padding_side='right'
- print('getting sentence embeddings')
- filename = 'embeddings.pickle'
- embeddings = semantic_functions.get_sentence_embeddings(filename, all_sentences, model_st)
- #save results into specific variable dictionary
- variable_dic = {
- 'sentence_labels': all_labels,
- 'all_sub_ids': all_sub_ids,
- 'all_sentences': all_sentences,
- 'embeddings': embeddings,
- }
- #'trials': trials
- #}
- filename = 'semantic_sentence_data.pickle'
- if os.path.exists(filename):
- print('removing pickle file')
- os.remove(filename)
- #save cluster results to pickle file
- with open(filename, 'wb') as f:
- pickle.dump(variable_dic, f)
- f.close()
semantic_sentence_embeddings.py, no license · at the source
Overview
- Department of Psychiatry and Behavioral Sciences, Dell Medical School, University of Texas at Austin,Austin, TX USA
- Institute for Early Life Adversity Research, Dell Medical School, University of Texas at Austin,Austin, TX USA
- Department of Psychiatry, University of Wisconsin at Madison,Madison, WI USA
- Department of Neuroscience, University of Texas at Austin,Austin, TX USA
Abstract
The recall of traumatic memories is central to clinical and neurobiological models of PTSD, yet neurocircuitry mechanisms underlying traumatic memory recall remain elusive. Recent advances in natural language processing and large language models enable complex semantic quantification of autobiographical memories. Here, we leveraged these analytic approaches to define the neurocircuitry encoding the semantic content of traumatic autobiographical narratives among individuals with PTSD. 79 women with PTSD related to interpersonal violence listened to traumatic and neutral autobiographical narratives during fMRI. Sentence-level brain activity and semantic embeddings were quantified for each script and participant. Neurocircuitry encoding semantic content of the narratives was defined through cross-validation across participants. A priori regions of interest included the hippocampus, superior temporal gyrus (STG), and posterior cingulate cortex (PCC). Our approach detected significant hippocampal sensitivity for semantic content of both trauma and neutral narratives; however, spatial encoding patterns of semantic content within the hippocampus differed between trauma and neutral narratives. Specifically, spatial encoding patterns in CA1 and dentate gyrus differentiated narrative type. Regardless of narrative type, PTSD symptom severity was positively associated with semantic encoding across the hippocampus and its subfields, except for the subiculum. For trauma narratives, semantic sensitivity was greater within the left STG and decreased in the PCC and broader default mode network. Encoding in neither region tracked with PTSD symptom severity. These results reveal a hippocampal role in mediating recall of specific semantic content for traumatic and neutral autobiographical narratives and suggest hippocampal sensitivity to autobiographical semantic content underlies greater PTSD symptom severity. Clinical trial registration information: Improving Therapeutic Learning for PTSD, Study Details | NCT04558112 | Improving Therapeutic Learning for PTSD | ClinicalTrials.gov, NCT04558112.
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 u5bea
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
- 29 September 2026: the link answers (HTTP 200)
12 files
- DOP2_semantic_encoding_L
ME_ROIs.m , MATLAB, 360 lines - DOP2_semantic_encoding_L
ME_ROIs_hipp.m , MATLAB, 379 lines - DOP2_semantic_encoding_e
xtract_ROIs_fits.m , MATLAB, 168 lines - semantic_SVR_functions.p
y , Python, 836 lines - semantic_sentence_embedd
ings.py , Python, 60 lines, 1 match - semantic_svr_voxelwise.p
y , Python, 196 lines - semantic_svr_voxelwise_c
ompare_permutations.py , Python, 220 lines - semantic_svr_voxelwise_c
ross_models.py , Python, 194 lines - semantic_svr_voxelwise_c
ross_permutations.py , Python, 183 lines - semantic_svr_voxelwise_m
ake_sub_r_maps.py , Python, 199 lines - semantic_svr_voxelwise_m
ake_sub_r_maps_cross_mod , Python, 218 linesel.py - trauma_vs_neutral_embedd
ing_SVC.m , MATLAB, 174 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;
- 12 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
De-identified data and code have been deposited at Open Science Framework and are publicly available as of the date of publication: 10.17605/
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, issue, pages, dates, 5 authors, 2 keywords, 12 MeSH terms, 76 references.
Cite
This paper
Cisler, J. M., Malloy, L. T., Jaeb, M., Dunsmoor, J. E., & Stowe, Z. N. (2026). Semantic encoding of trauma memories in the hippocampus among individuals with PTSD. Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology,
BibTeX
@article{cisler2026seman
author = {Cisler, Josh M. and Malloy, Luna T. and Jaeb, Michael and Dunsmoor, Joseph E. and Stowe, Zachary N.},
title = {{Semantic encoding of trauma memories in the hippocampus among individuals with PTSD}},
journal = {Neuropsychopharmacology
year = {2026},
month = apr,
volume = {51},
number = {9},
pages = {1690--1698},
publisher = {Nature Publishing Group},
issn = {0893-133X},
doi = {10.1038/
url = {https://
pmid = {41981270},
pmcid = {PMC13388956}
}
RIS
TY - JOUR
AU - Cisler, Josh M.
AU - Malloy, Luna T.
AU - Jaeb, Michael
AU - Dunsmoor, Joseph E.
AU - Stowe, Zachary N.
TI - Semantic encoding of trauma memories in the hippocampus among individuals with PTSD
T2 - Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology
J2 - Neuropsychopharmacology
PY - 2026
DA - 2026/
VL - 51
IS - 9
SP - 1690
EP - 1698
SN - 0893-133X
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Semantic encoding of trauma memories in the hippocampus among individuals with PTSD",
"container-title": "Neuropsychopharmacology
"author": [
{
"family": "Cisler",
"given": "Josh M."
},
{
"family": "Malloy",
"given": "Luna T."
},
{
"family": "Jaeb",
"given": "Michael"
},
{
"family": "Dunsmoor",
"given": "Joseph E."
},
{
"family": "Stowe",
"given": "Zachary N."
}
],
"container-title-short":
"volume": "51",
"issue": "9",
"page": "1690-1698",
"DOI": "10.1038/
"PMID": "41981270",
"PMCID": "PMC13388956",
"ISSN": "0893-133X",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
14
]
]
}
}
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.3389/fpsyt.2022.947622 [code]
- Altered brain activity and functional connectivity after MDMA-assisted therapy for post-traumatic stress disorder.Journal: Frontiers in psychiatryIn common: NiBabel, scikit-learn, SciPy, 2 other tools, other condition, 9 references
- [2] doi:10.1038/s41380-024-02486-9 [code]
- Spatiotemporal dynamics of hippocampal-cortical networks underlying the unique phenomenological properties of trauma-related intrusive memories.Journal: Molecular psychiatryIn common: 7 references
- [3] doi:10.1016/j.ijchp.2024.100509 [code]
- Neural underpinnings of a two-phase memory suppression process in the neural response to self-related and observed perspective views.Journal: International journal of clinical and health psychology : IJCHPIn common: UMAP, Parallel Computing Toolbox, Statistics and Machine Learning Toolbox, 2 other tools, 4 references
- [4] doi:10.1126/sciadv.adq8336 [code]
- Plasticity of human resilience mechanisms.Journal: Science advancesIn common: Statistics and Machine Learning Toolbox, other condition, 6 references
- [5] doi:10.1038/s41467-024-49823-8 [code]
- Hippocampal connectivity patterns echo macroscale cortical evolution in the primate brain.Journal: Nature communicationsIn common: Tools for NIfTI and ANALYZE image (MATLAB), NiBabel, Statistics and Machine Learning Toolbox, 4 other tools, 3 references
- [6] doi:10.1038/s41467-025-63078-x [code]
- Neural correlates of human fear conditioning and sources of variability in 2199 individuals.Journal: Nature communicationsIn common: NiBabel, scikit-learn, SciPy, 2 other tools, other condition, author Joseph E Dunsmoor
- [7] doi:10.1038/s42003-025-09299-8 [code]
- Functional differentiation and interactions among inferior, medial frontal and posterior temporal cortex in semantic control.Journal: Communications biologyIn common: Tools for NIfTI and ANALYZE image (MATLAB), Parallel Computing Toolbox, NiBabel, 5 other tools, 1 reference
- [8] doi:10.1152/jn.00308.2023 [code]
- Organization of the human cerebral cortex estimated within individuals: networks, global topography, and function.Journal: Journal of neurophysiologyIn common: Tools for NIfTI and ANALYZE image (MATLAB), NiBabel, Statistics and Machine Learning Toolbox, 4 other tools, 2 references
- [9] doi:10.1126/sciadv.adw1464 [code]
- Mind captioning: Evolving descriptive text of mental content from human brain activity.Journal: Science advancesIn common: NiBabel, Statistics and Machine Learning Toolbox, scikit-learn, 3 other tools, 3 references
- [10] doi:10.1038/s41467-025-58896-y [code]
- Innate network mechanisms of temporal pole for semantic cognition in neonatal and adult twin studies.Journal: Nature communicationsIn common: Tools for NIfTI and ANALYZE image (MATLAB), NiBabel, Statistics and Machine Learning Toolbox, 4 other tools, 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, 12 scripts, and 1 match 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:e24b4498d1130c5e…
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.1038/s41386-026-02402-5)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41386-026-02402-5.svg
:target: https://openscicode.org/badge/doi/10.1038/s41386-026-02402-5
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41386-026-02402-5"><img src="https://openscicode.org/badge/doi/10.1038/s41386-026-02402-5.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.
