Brain Aging Mediating Heart Imaging-Derived Phenotypes and Mental and Nervous System Disorders.
The 2 matches
- [1] § Methods › Statistical Analysis › Brain Biological Age Prediction Model ↔ s1_predict_BA.R, lines 92–179 · score 0.83 · covariates regression model, training folds, age prediction, GLMnet, alpha, optimal
- [2] § Results › Brain Age Models and Associations of Heart IDPs With BAG ↔ s1_predict_BA.R, lines 92–179 · score 0.57 · LASSO model, regression model, MAE, predictive, S1, trained
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
R · 181 lines · 7.7 KB · no license · 2 matches
- library(dplyr)
- library(readr)
- library(caret)
- library(glmnet)
- library(Metrics)
- # Define paths
- cova_data_path <- "cova.csv"
- cova_data <- read.csv(cova_data_path)
- eid_data_path <- "BA_health_eid.csv"
- allSiteInfo <- read.table('AllSiteInfo.csv', sep=',' ,header=T, check.names=F)
- HeightInfo <- read.table("AllHeightInfo.csv", sep=',', header=T, check.names=F)
- HeightInfo <- HeightInfo[,c('eid','50-0.0')]
- colnames(HeightInfo) <- c('eid', 'Height')
- # Define organs and their respective data files
- organs <- c('Brain_WM')
- ########################## model traning and testing on normal controls
- for (i in 1:length(organs)) {
- organ <- organs[i]
- # Load data
- df_GM <- read.csv("Brain_GM_clean.csv")
- df_WM <- read.csv("Brain_WM_clean.csv")
- df <- merge(df_GM, df_WM, by=c('eid'))
- # using only normal controls
- eid <- read.csv(eid_data_path)
- df <- inner_join(df, eid['eid'], by = 'eid')
- age <- read.csv(cova_data_path)
- age <- age[,c('eid','age2')]
- df <- inner_join(df, age, by = 'eid')
- df <- rename(df, Age = age2)
- # get confounding info
- df <- merge(df, allSiteInfo[,c('eid','54-2.0')])
- colnames(df)[which(colnames(df) == "54-2.0")] <- "Site"
- df$Site <- as.character(df$Site)
- df <- fastDummies::dummy_cols(df, select_columns = "Site", remove_first_dummy = TRUE)
- SiteCols <- unlist(sapply(colnames(df),function(x) if(grepl('Site_',x)) x),use.names = F)
- TIV <- cova_data
- TIV <- TIV[,c('eid','eTIV','Sex')]
- df <- merge(df, TIV, by = 'eid')
- df <- na.omit(df)
- table(df$Site)
- # Split data into training and testing sets
- set.seed(12345)
- folds <- createFolds(df$Age, k = 10)
- list_mae <- list()
- list_r <- list()
- list_models <- list()
- list_correctionModel <- list()
- list_lambda <- list()
- list_scaler <- list()
- list_plots <- list()
- list_coef <- list()
- list_covModles <- list()
- alldata <- df
- for (k in 1:10) {
- print(k)
- test_indices <- folds[[k]]
- train_indices <- setdiff(1:nrow(alldata), test_indices)
- x_train_data <- alldata[train_indices,]
- x_test_data <- alldata[test_indices,]
- data_matrix <- x_train_data
- data_matrix_test <- x_test_data
- residuals_matrix <- matrix(NA, nrow = nrow(data_matrix), ncol = ncol(data_matrix))
- residuals_matrix_test <- matrix(NA, nrow = nrow(data_matrix_test), ncol = ncol(data_matrix_test))
- colnames(residuals_matrix) <- colnames(data_matrix)
- colnames(residuals_matrix_test) <- colnames(data_matrix_test)
- covModels <- list()
- for (cc in 1:ncol(data_matrix)) {
- temp_data <- cbind(dependent_variable = data_matrix[, cc], x_train_data[,c('eTIV',SiteCols)])
- testing_data <- cbind(dependent_variable = data_matrix_test[, cc], x_test_data[,c('eTIV',SiteCols)])
- model <- lm(as.formula(paste0('dependent_variable ~ eTIV +',paste(SiteCols,collapse ='+'))), data = temp_data)
- residuals_matrix[, cc] <- residuals(model)
- # Predict the effect of covariates on the testing data using the training model
- predicted_values_test <- predict(model, newdata = testing_data)
- # Calculate residuals for the testing data
- residuals_matrix_test[,cc] <- testing_data$dependent_variable - predicted_values_test
- covModels[[cc]] <- model
- }
- list_covModles[[k]] <- covModels
- X_train_fold <- residuals_matrix
- y_train_fold <- alldata[train_indices, 'Age']
- X_test_fold <- residuals_matrix_test
- y_test_fold <- alldata[test_indices, 'Age']
- # normalizaion and standardziation
- library(caret)
- normParam <- preProcess(X_train_fold)
- X_train_fold <- predict(normParam, X_train_fold)
- X_test_fold <- predict(normParam, X_test_fold)
- list_scaler[[k]] <- normParam
- set.seed(1010)
- lasso_reg = glmnet(as.matrix(X_train_fold), y_train_fold, alpha = 1)
- cv_lasso <- cv.glmnet(as.matrix(X_train_fold), y_train_fold, lambda = 10^seq(5, -8, by = -.1), alpha = 1, type.measure = 'mae',nfolds = 10,parallel = T)
- plot(cv_lasso)
- list_plots[[k]] <- recordPlot()
- optimal_lambda <- cv_lasso$lambda.min
- lasso_model = predict(lasso_reg, type = "coefficients", s = optimal_lambda)
- lasso_model_nonzero <- lasso_model[(lasso_model[,1]!= 0),]
- list_lambda[[k]] <- optimal_lambda
- lasso_predict <- predict(lasso_reg, newx = as.matrix(X_test_fold), s = optimal_lambda)
- df[test_indices, 'pre_age'] <- as.numeric(lasso_predict)
- # Age bias correction
- train_predicted_y <- predict(lasso_reg, newx = as.matrix(X_train_fold), s = optimal_lambda)
- model <- lm(train_predicted_y ~ y_train_fold)
- test <- data.frame(TrueAge = as.numeric(y_test_fold), age_LASSO = as.numeric(lasso_predict))
- test$age_correct_LASSO <- (test$age_LASSO - coef(model)[1]) / coef(model)[2]
- df[test_indices, 'delta_corrected'] <- unlist(test$age_correct_LASSO - test$TrueAge)
- df[test_indices, 'pre_age_corrected'] <- test$age_correct_LASSO
- list_mae[[k]] <- mae(test$TrueAge, test$age_LASSO)
- list_r[[k]] <- cor(test$TrueAge, test$age_LASSO)
- }
- best_model_index <- which.min(list_mae)
- ##################### Model evaluation
- r <- cor(df$Age, df$pre_age)
- r_corrected <- cor(df$Age, df$pre_age_corrected)
- mae <- mae(df$Age, df$pre_age)
- mae_corrected <- mae(df$Age, df$pre_age_corrected)
- corrdata <- data.frame(df$Age, df$pre_age)
- write.table(corrdata, 'brain_age_prediction_evaluation.csv', sep=',', row.names=F)
- # Get weights of the predictors
- brain_traits <- data.frame(rownames(best_coef),as.matrix(best_coef))
- colnames(brain_traits) <- c('field','coef')
- write_csv(brain_traits, 'Age_LASSO_weights.csv')
- ##################### Apply the trained model to other subjects (excluding normal controls)
- df <- merge(df_GM, df_WM, by=c('eid'))
- # exclude only normal controls
- eid <- read.csv(eid_data_path)
- df <- df[!(df$eid %in% eid$eid),]
- cnt <- rowSums(!is.na(df))
- df <- df[cnt == ncol(df), ]
- # apply the covariate regression model to other subjs
- x_test_data <- df
- data_matrix_test <- x_test_data[,unlist(sapply(colnames(x_test_data),function(x) grepl('^X',x)), use.names = F)]
- # Initialize a matrix to store residuals
- residuals_matrix_test <- matrix(NA, nrow = nrow(data_matrix_test), ncol = ncol(data_matrix_test))
- colnames(residuals_matrix_test) <- colnames(data_matrix_test)
- for (cc in 1:ncol(data_matrix_test)) {
- testing_data <- cbind(dependent_variable = data_matrix_test[, cc], x_test_data[,c('eTIV',SiteCols)])
- # Predict the effect of covariates on the testing data using the training model
- predicted_values_test <- predict(best_covModel[[cc]], newdata = testing_data)
- # Calculate residuals for the testing data
- residuals_matrix_test[,cc] <- testing_data$dependent_variable - predicted_values_test
- }
- df[,unlist(sapply(colnames(df),function(x) grepl('^X',x)), use.names = F)] <- residuals_matrix_test
- df <- df[, !(names(df) %in% c(unlist(sapply(colnames(df),function(x) {if(grepl('Site',x)) x}), use.names = F),'eTIV','Height','Sex'))]
- # normalization and standardization
- df[,2:ncol(df)-1] <- predict(best_scaler, df[,2:ncol(df)-1])
- X_all <- df[, -c(1, ncol(df))]
- y_all_pred <- as.numeric(predict(best_model, newx = as.matrix(X_all), s = best_lambda))
- y_all_pred_corrected <- (y_all_pred - coef(best_correction_model)[1]) / coef(best_correction_model)[2]
- all_delta_corrected <- y_all_pred_corrected - df$Age
- df$pre_age <- y_all_pred
- df$pre_age_corrected <- y_all_pred_corrected
- df$delta_corrected <- all_delta_corrected
- df_all <- rbind(df_HC, df)
- write_csv(data.frame(df_all), 'brain_age_prediction_all.csv')
- }
- selected_df_agegap <- df_all[, c("eid", "Age", "pre_age", "pre_age_corrected", "delta_corrected")]
- write_csv(data.frame(selected_df_agegap), 'agegap.csv')
s1_predict_BA.R at commit a31a811, no license · at the source
Overview
- Institute of Science and Technology for Brain‐Inspired Intelligence, Department of Neurology, Huashan Hospital, State Key Laboratory of Brain Function and Disorders and MOE Frontiers Center for Brain Science, Fudan University, Shanghai, China
- Department of Radiology, Beijing Tiantan Hospital, Capital Medical University, Beijing, China
- Brain Health Institute, National Center for Mental Disorders, Shanghai Mental Health Center, Shanghai Jiao Tong University School of Medicine and School of Psychology, Shanghai, China
- Department of Cardiology, Zhongshan Hospital, Fudan University, Shanghai, China
- Key Laboratory of Computational Neuroscience and Brain Inspired Intelligence (Fudan University), Ministry of Education, Shanghai, China
- School of Data Science, Fudan University, Shanghai, China
- Department of Computer Science, University of Warwick, Coventry, UK
- Fudan ISTBI—ZJNU Algorithm Centre for Brain‐Inspired Intelligence, Zhejiang Normal University, Jinhua, China
Abstract
Mental and nervous system disorders often co‐occur with cardiovascular diseases in aging populations, yet the biological relationships underlying these associations remain incompletely understood. Using heart and brain imaging data from 33,573 UK Biobank (UKB) participants, we developed a brain age prediction model to estimate the brain age gap (BAG), an imaging‐based marker of brain aging. We then examined BAG as a mediator between 82 cardiac imaging‐derived phenotypes (IDPs) and 11 disorders. Sixty‐one cardiac IDPs, particularly those related to the atria and left ventricle, were significantly associated with BAG, with several also related to mental and nervous system disorders. Mediation analyses revealed that BAG significantly mediated 18 associations between heart and substance abuse, mood, and neurotic disorders. Furthermore, we observed a total of 49 significant associations, where lifestyle factors, including smoking and physical activity, were related to heart‐brain aging‐disorder relationships. These findings highlight brain aging as a potential pathway linking cardiovascular health to diverse brain disorders in aging populations.
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 2 matches between paragraphs and lines of code.
WenJSu/Heart-brain-aging-disorders-pathways
a31a811414b5f9ed7f39c7a2ff03e9c89f293a19, 21 July 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
7 files
- s1_predict_BA.R, R, 181 lines, 2 matches
- s2_glm_brain_diseases.R, R, 39 lines
- s3_1_cox_heart_diseases.
R , R, 51 lines - s3_2_glm_heart_diseases.
R , R, 46 lines - s4_mediation.R, R, 110 lines
- s5_factor_mediation_exam
ple.R , R, 222 lines - README.md, Text, 3 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;
- 6 scripts, each with its path and the digest of its content;
- 2 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 Statement
The individual level data analyzed in this study are available from the UK Biobank (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 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 4 keywords, 12 MeSH terms, 19 funders, 84 references.
Cite
This paper
Zhou, Z., Su, W., Li, Y., Zhang, B., Lan, F., Lin, D., Yu, J., Feng, J., Jin, Y., Ren, P., & Cheng, W. (2026). Brain Aging Mediating Heart Imaging-Derived Phenotypes and Mental and Nervous System Disorders. Aging cell, 25(5), e70499. https://
BibTeX
@article{zhou2026brain,
author = {Zhou, Zairen and Su, Wenjing and Li, Yuna and Zhang, Bei and Lan, Fang and Lin, Dawei and Yu, Jin‐Tai and Feng, Jianfeng and Jin, Yifei and Ren, Peng and Cheng, Wei},
title = {{Brain Aging Mediating Heart Imaging-Derived Phenotypes and Mental and Nervous System Disorders}},
journal = {Aging cell},
year = {2026},
month = may,
volume = {25},
number = {5},
pages = {e70499},
publisher = {Wiley},
issn = {1474-9718},
doi = {10.1111/
url = {https://
pmid = {42021636},
pmcid = {PMC13103654}
}
RIS
TY - JOUR
AU - Zhou, Zairen
AU - Su, Wenjing
AU - Li, Yuna
AU - Zhang, Bei
AU - Lan, Fang
AU - Lin, Dawei
AU - Yu, Jin‐Tai
AU - Feng, Jianfeng
AU - Jin, Yifei
AU - Ren, Peng
AU - Cheng, Wei
TI - Brain Aging Mediating Heart Imaging-Derived Phenotypes and Mental and Nervous System Disorders
T2 - Aging cell
J2 - Aging Cell
PY - 2026
DA - 2026/
VL - 25
IS - 5
SP - e70499
SN - 1474-9718
PB - Wiley
DO - 10.1111/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1111/
"type": "article-journal",
"title": "Brain Aging Mediating Heart Imaging-Derived Phenotypes and Mental and Nervous System Disorders",
"container-title": "Aging cell",
"author": [
{
"family": "Zhou",
"given": "Zairen"
},
{
"family": "Su",
"given": "Wenjing"
},
{
"family": "Li",
"given": "Yuna"
},
{
"family": "Zhang",
"given": "Bei"
},
{
"family": "Lan",
"given": "Fang"
},
{
"family": "Lin",
"given": "Dawei"
},
{
"family": "Yu",
"given": "Jin‐Tai"
},
{
"family": "Feng",
"given": "Jianfeng"
},
{
"family": "Jin",
"given": "Yifei"
},
{
"family": "Ren",
"given": "Peng"
},
{
"family": "Cheng",
"given": "Wei"
}
],
"container-title-short":
"volume": "25",
"issue": "5",
"page": "e70499",
"DOI": "10.1111/
"PMID": "42021636",
"PMCID": "PMC13103654",
"ISSN": "1474-9718",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
1
]
]
}
}
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.2516601123 [code]
- Unveiling the glymphatic system's role in brain aging: A comprehensive biomarker and modifiable intervention target.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: survival, data.table, tidyverse, structural MRI / diffusion, 6 references
- [2] doi:10.3390/ijms27156925 [code]
- XGBoost-SHAP Interpretable Modeling Identifies and Validates an Eight-Gene Biomarker for Hepatic Encephalopathy Risk Prediction in Cirrhosis.Journal: International journal of molecular sciencesIn common: lavaan, glmnet, survival, 3 other tools
- [3] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: glmnet, survival, caret, 2 other tools
- [4] doi:10.1093/neuonc/noag128 [code]
- Spatially-resolved single-cell imaging of melanoma brain metastases identifies localized immune patterns predictive of immune checkpoint blockade response.Journal: Neuro-oncologyIn common: glmnet, survival, caret, 2 other tools
- [5] doi:10.1080/20002297.2026.2705667 [code]
- Oral microbiota dysbiosis related to the cortical thinning and cognitive impairment in cerebral small vessel disease.Journal: Journal of oral microbiologyIn common: glmnet, survival, caret, 1 other tool, structural MRI / diffusion
- [6] doi:10.1016/j.isci.2026.117031 [code]
- Plasma metabolomic signatures of migraine in 479,760 adults.Journal: iScienceIn common: lavaan, survival, data.table, 1 other tool, 1 reference
- [7] doi:10.7717/peerj.21426 [code]
- Integrated transcriptomic identification and validation reveal key autophagy-associated biomarkers in sleep deprivation.Journal: PeerJIn common: glmnet, caret, data.table, 1 other tool, 1 reference
- [8] doi:10.1038/s43856-026-01510-z [code]
- Mapping genetic convergence across brain structure, mental health, and cardiometabolic disease.Journal: Communications medicineIn common: lavaan, data.table, tidyverse, 2 references
- [9] doi:10.1093/braincomms/fcag146 [code]
- Convergent structural brain alterations in chronic pain: a multi-metric individual participant data meta-analysis.Journal: Brain communicationsIn common: glmnet, caret, data.table, 1 other tool, structural MRI / diffusion
- [10] doi:10.34133/research.1298 [code]
- Multisite Chronic Pain Reveals Neuro-Immune-Metabolic Dysregulation across Rheumatoid Arthritis and Depression.Journal: Research (Washington, D.C.)In common: survival, data.table, tidyverse, 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 2 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:b5f8cf2e0b67f9f7…
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.
