Accelerated brain aging in Veterans with posttraumatic stress symptoms and mild traumatic brain injury.
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
Python · 100 lines · 1.9 KB · no license
- import keras
- from keras.applications.resnet50 import ResNet50
- from keras.preprocessing import image
- from keras import models, optimizers
- from keras.preprocessing.image import ImageDataGenerator
- from keras import regularizers
- from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense
- from keras import models
- from keras import layers
- from keras import optimizers
- import numpy as np
- import pandas as pd
- import math
- #import h5py
- from keras.models import load_model
- import sys
- import os
- from os import listdir
- model = load_model(sys.argv[3])
- print(model.summary())
- test_dir = sys.argv[1]
- batch_size = 80
- datagen_test=ImageDataGenerator(rescale=1./255, horizontal_flip= False, vertical_flip = False,
- featurewise_center = False, featurewise_std_normalization = False)
- print(test_dir)
- test_generator=datagen_test.flow_from_directory(
- directory=str(test_dir),
- batch_size=batch_size,
- seed=42,
- shuffle=False,
- class_mode=None)
- labels_test = []
- sitelist = []
- IDlist = []
- sex_test = []
- slice_test = []
- deplist = []
- test_generator.reset()
- i = 0
- for x in test_generator.filenames:
- i = i+1
- sl = x.split('-')[1].split('.')[0]
- x = x.split('_T1')[0]
- IDlist.append(x)
- test_generator.reset()
- predicty = model.predict_generator(test_generator,verbose=1, steps = test_generator.n/batch_size)
- prediction_data = pd.DataFrame()
- prediction_data['ID'] = IDlist
- prediction_data['Prediction'] = predicty
- IDset = set(prediction_data['ID'].values)
- IDset = list(IDset)
- final_prediction = []
- final_labels = []
- final_site = []
- for x in IDset:
- check_predictions = prediction_data[prediction_data['ID']==x]['Prediction']
- predicty = check_predictions.reset_index(drop = True)
- final_prediction.append(np.median(predicty))
- predicty1 = final_prediction
- out_data = pd.DataFrame()
- out_data['ID'] = IDset
- out_data['Pred_Age'] = predicty1
- out_data.to_csv(sys.argv[2], index=False)
Model_Test.py at commit 505f4e4, no license · at the source
Overview
- VA San Diego Healthcare System, 3350 La Jolla Village Dr, San Diego, CA, 92161, USA
- University of California, San Diego, Department of Psychiatry, 9500 Gilman Drive, La Jolla, CA, 92093, USA
- VA San Diego Healthcare System, Center of Excellence for Stress and Mental Health, 3350 La Jolla Village Dr, San Diego, CA, 92161, USA
- Center for Population Neuroscience and Genetics, Laureate Institute for Brain Research, 6655 S Yale Ave, Tulsa, OK, 74136, USA
- University of California, San Diego, Department of Radiology, 9500 Gilman Drive, La Jolla, CA, 92093, USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above.
vishnubashyam/DeepBrainNet
505f4e4fdda6a2f5773bec0c98ef567a7a4ae36e, 4 September 2020Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
4 files
- Script/
Model_Test.py , Python, 100 lines - Script/
Slicer.py , Python, 39 lines - Script/
test.sh , Shell, 43 lines - README.md, Text, 18 lines
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;
- 3 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 availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it says that the data are available on request
Read it in the paper: doi.org/10.1016/j.ynirp.2026.100377.
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 Andrea D Spadoni (0000-0002-8367-6406); removed Andrea D Spadoni
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 5 keywords, 1 funder, 74 references.
Cite
This paper
Klaming, R., Spadoni, A. D., Bomyea, J., Thompson, W. K., & Simmons, A. N. (2026). Accelerated brain aging in Veterans with posttraumatic stress symptoms and mild traumatic brain injury. Neuroimage. Reports, 6(3), 100377. https://
BibTeX
@article{klaming2026acce
author = {Klaming, Ruth and Spadoni, Andrea D and Bomyea, Jessica and Thompson, Wesley K and Simmons, Alan N},
title = {{Accelerated brain aging in Veterans with posttraumatic stress symptoms and mild traumatic brain injury}},
journal = {Neuroimage. Reports},
year = {2026},
month = jul,
volume = {6},
number = {3},
pages = {100377},
publisher = {Elsevier},
issn = {2666-9560},
doi = {10.1016/
url = {https://
pmid = {42434106},
pmcid = {PMC13352378}
}
RIS
TY - JOUR
AU - Klaming, Ruth
AU - Spadoni, Andrea D
AU - Bomyea, Jessica
AU - Thompson, Wesley K
AU - Simmons, Alan N
TI - Accelerated brain aging in Veterans with posttraumatic stress symptoms and mild traumatic brain injury
T2 - Neuroimage. Reports
J2 - Neuroimage Rep
PY - 2026
DA - 2026/
VL - 6
IS - 3
SP - 100377
SN - 2666-9560
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "Accelerated brain aging in Veterans with posttraumatic stress symptoms and mild traumatic brain injury",
"container-title": "Neuroimage. Reports",
"author": [
{
"family": "Klaming",
"given": "Ruth"
},
{
"family": "Spadoni",
"given": "Andrea D"
},
{
"family": "Bomyea",
"given": "Jessica"
},
{
"family": "Thompson",
"given": "Wesley K"
},
{
"family": "Simmons",
"given": "Alan N"
}
],
"container-title-short":
"volume": "6",
"issue": "3",
"page": "100377",
"DOI": "10.1016/
"PMID": "42434106",
"PMCID": "PMC13352378",
"ISSN": "2666-9560",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
2
]
]
}
}
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.1162/imag.a.1164 [code]
- Bias and generalizability of brain age prediction models: A multi-cohort evaluation with anatomical and interpretability insights.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Keras, Pillow, NiBabel, 3 other tools, structural MRI / diffusion, 3 references
- [2] doi:10.1017/s0033291726104838 [code]
- Variations of structural-functional coupling in post-traumatic stress disorder are associated with underlying molecular and transcriptional features.Journal: Psychological medicineIn common: NiBabel, pandas, NumPy, structural MRI / diffusion, other condition, 3 references
- [3] doi:10.1002/epi.70296 [code]
- Fully automated three-dimensional deep learning-based magnetic resonance imaging segmentation of brain cavities in epilepsy surgery.Journal: EpilepsiaIn common: Keras, Pillow, NiBabel, 3 other tools, structural MRI / diffusion, clinical / translational, 1 reference
- [4] doi:10.1093/radadv/umag025 [code]
- OpenMAP-BrainAge: generalizable and interpretable brain age predictor from MRI.Journal: Radiology advancesIn common: Pillow, NiBabel, pandas, 1 other tool, structural MRI / diffusion, 3 references
- [5] doi:10.1186/s12880-026-02481-2 [code]
- Deep learning-based neuroanatomical profiling reveals population-specific brain changes in multiple sclerosis: a large-scale Middle Eastern study.Journal: BMC medical imagingIn common: Keras, Pillow, NiBabel, 3 other tools, structural MRI / diffusion, clinical / translational
- [6] doi:10.1038/s41398-026-04081-8 [code]
- Functional system-specific brain aging across the Alzheimer's disease continuum.Journal: Translational psychiatryIn common: Keras, NiBabel, scikit-learn, 2 other tools, structural MRI / diffusion, clinical / translational, 1 reference
- [7] doi:10.1002/ana.78203 [code]
- AI-Driven Mapping of Seizure Spread Patterns.Journal: Annals of neurologyIn common: Keras, Pillow, NiBabel, 3 other tools, structural MRI / diffusion
- [8] doi:10.1007/s44192-026-00521-5 [code]
- Associations between anterior hypothalamic subunits and ADHD and autistic traits revealed by deep learning MRI segmentation.Journal: Discover mental healthIn common: Keras, Pillow, NiBabel, 2 other tools, structural MRI / diffusion, clinical / translational
- [9] doi:10.1038/s41597-025-05174-7 [code]
- A large-scale MEG and EEG dataset for object recognition in naturalistic scenesJournal: n/aIn common: Keras, Pillow, NiBabel, 3 other tools
- [10] doi:10.1002/hbm.70425 [code]
- Brain Age Estimation on T2-FLAIR Scans for Application to Multiple Sclerosis.Journal: Human brain mappingIn common: pandas, NumPy, structural MRI / diffusion, clinical / translational, 3 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, 3 scripts, and 0 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:c07e60f336241abb…
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
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
