Imaging-genetics-based dementia risk prediction using deep survival neural networks in the Rotterdam Study.
The 6 matches
- [1] § Results › Feature importance analysis › Calculate feature importance using DeepSHAP ↔ Notebooks/DeepShap.ipynb, lines 281–343 · score 0.87 · gen.f1, gen.f3, gen.f4, gen.f2, img.f4, img.f2
- [2] § Results › Feature importance analysis › Visualize voxel-level importance on image using Grad-CAM ↔ Notebooks/DeepRisk_CNN_evaluation_SNP.ipynb, lines 2032–2050 · score 0.79 · Frontal lobe, Parietal lobe, Temporal lobe, cingulate gyri, brain regions, Insula
- [3] § Results › Feature importance analysis › Visualize voxel-level importance on image using Grad-CAM ↔ Notebooks/DeepRisk_CNN_evaluation_image_features.ipynb, lines 1793–1811 · score 0.79 · Frontal lobe, Parietal lobe, Temporal lobe, cingulate gyri, brain regions, Insula
- [4] § Results › Feature interaction analysis › Feature interaction plot ↔ Notebooks/DeepShap.ipynb, lines 281–343 · score 0.62 · gen.f4, gen.f2, img.f2, APOE, age
- [5] § Results › Feature importance analysis › Visualize voxel-level importance on image using Grad-CAM ↔ Notebooks/DeepRisk_CNN_evaluation_image_features.ipynb, lines 687–759 · score 0.55 · Grad CAM, attention map, heatmaps, Gradient, CNN, GM
- [6] § Results › Feature importance analysis › Visualize voxel-level importance on image using Grad-CAM ↔ Notebooks/DeepRisk_CNN_evaluation_SNP.ipynb, lines 688–760 · score 0.55 · Grad CAM, attention map, heatmaps, Gradient, CNN, GM
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 · 576 lines · 18 KB · no license · 2 matches
- # %%
- # !pip install shap
- # !pip install xgboost
- # %%
- from __future__ import print_function
- import keras
- import tensorflow as tf
- from tensorflow.keras.models import Sequential, Model
- from tensorflow.keras.callbacks import ModelCheckpoint, EarlyStopping
- from tensorflow.keras.layers import Dense, Activation, Flatten, Conv3D, MaxPooling3D, BatchNormalization, Dropout, GlobalAveragePooling3D
- from tensorflow.keras.layers import Input, concatenate, multiply, add, Reshape, Lambda
- from keras.datasets import mnist
- from keras.models import Sequential
- from keras.layers import Dense, Dropout, Flatten
- from keras.layers import Conv2D, MaxPooling2D
- from keras import backend as K
- import shap
- import pandas as pd
- import numpy as np
- import h5py
- import matplotlib
- matplotlib.use('Agg')
- import matplotlib.pyplot as plt
- import matplotlib.gridspec as gridspec
- import seaborn as sns
- %matplotlib inline
- # %%
- class LoadData:
- """
- Loading preprocessed data from .h5 file.
- Has to be similar to saving data function in data processing notebook.
- (Same names for datasets etc.)
- """
- def __init__(self, name):
- dataset_file = name+'.h5'
- f = h5py.File(DATASET_DIR+dataset_file, 'r')
- # f = h5py.File('/home/gennadyr/IPython/tests_john/version_age_3/models/'+dataset_file, 'r')
- self.fraction_train = f['fraction_train'][:]
- self.fraction_validation = f['fraction_validation'][:]
- self.fraction_test = f['fraction_test'][:]
- self.train_MRI_data = f['train_MRI_data'][:]
- self.validation_MRI_data = f['validation_MRI_data'][:]
- self.test_MRI_data = f['test_MRI_data'][:]
- gene_columns = f['gene_column_names'][:]
- train_gene_data = f['train_gene_data'][:]
- validation_gene_data = f['validation_gene_data'][:]
- test_gene_data = f['test_gene_data'][:]
- self.train_gene_data = pd.DataFrame(train_gene_data, columns=gene_columns)
- self.validation_gene_data = pd.DataFrame(validation_gene_data, columns=gene_columns)
- self.test_gene_data = pd.DataFrame(test_gene_data, columns=gene_columns)
- train_label_data1 = f['train_label_data1'][:]
- train_label_data2 = f['train_label_data2'][:]
- validation_label_data1 = f['validation_label_data1'][:]
- validation_label_data2 = f['validation_label_data2'][:]
- test_label_data1 = f['test_label_data1'][:]
- test_label_data2 = f['test_label_data2'][:]
- columns = f['label_column_names'][:]
- train_label_data2 = pd.DataFrame(train_label_data2)
- train_label_data2.columns = columns
- validation_label_data2 = pd.DataFrame(validation_label_data2)
- validation_label_data2.columns = columns
- test_label_data2 = pd.DataFrame(test_label_data2)
- test_label_data2.columns = columns
- train_label_data2['bigrfullname'] = train_label_data1
- validation_label_data2['bigrfullname'] = validation_label_data1
- test_label_data2['bigrfullname'] = test_label_data1
- self.train_label_data = train_label_data2
- self.validation_label_data = validation_label_data2
- self.test_label_data = test_label_data2
- f.close()
- print('Loaded datasets from '+DATASET_DIR+dataset_file)
- # %%
- def generate_riskset(event_times):
- """
- Generates the riskset for every individual. Riskset is the set of individuals that have a
- longer event time and are thus at risk of experiencing the event : Tj>=Ti
- Input:
- - label_data = dataframe with file name, event times and other labels that do not get used
- Output:
- - riskset = square matrix in which row i is the riskset of individual i compared to all
- individuals j. Entry is true if Tj>=Ti, so individual j is 'at risk'.
- """
- o = np.argsort(-event_times, kind="mergesort")
- n_samples = len(event_times)
- risk_set = np.zeros((n_samples, n_samples), dtype=np.bool_)
- for i_org, i_sort in enumerate(o):
- ti = event_times[i_sort]
- k = i_org
- while k < n_samples and ti == event_times[o[k]]:
- k += 1
- risk_set[i_sort, o[:k]] = True
- return risk_set
- # **Function to normalize risk scores**
- # In[36]:
- def safe_normalize(x):
- """Normalize risk scores to avoid exp underflowing.
- Note that only risk scores relative to each other matter.
- If minimum risk score is negative, we shift scores so minimum
- is at zero.
- """
- x_min = tf.reduce_min(x, axis=0)
- c = tf.zeros_like(x_min)
- norm = tf.where(x_min < 0, -x_min, c)
- return x + norm
- # **Function to calculate log of sum of exponent of predictions** (right hand side of equation 1.1)
- # In[37]:
- def logsumexp_masked(risk_scores, mask, axis = 0, keepdims= None):
- """
- Computes the log of the sum of the exponent of the predictions across `axis`
- for all entries where `mask` (riskset) is true:
- log(sum(e^h_j))
- where h_j are the predictions of patients at risk of developing dementia (T_j>=T_i)
- Inputs:
- - risk_scores = the predictions from the network of patients h_j
- - mask = a mask to select which patients are at risk
- Output:
- - output = right hand part of the NPLL (Negative Partial Log Likelihood)
- """
- risk_scores.shape.assert_same_rank(mask.shape)
- with tf.name_scope("logsumexp_masked"):
- risk_scores = tf.cast(risk_scores,tf.float32)
- mask_f = tf.cast(mask, risk_scores.dtype)
- risk_scores_masked = tf.math.multiply(risk_scores, mask_f)
- #for numerical stability, substract the maximum value
- #before taking the exponential
- amax = tf.reduce_max(risk_scores_masked, axis=axis, keepdims=True)
- risk_scores_shift = risk_scores_masked - amax
- exp_masked = tf.math.multiply(tf.math.exp(risk_scores_shift), mask_f)
- exp_sum = tf.reduce_sum(exp_masked, axis=axis, keepdims=True)
- #turn 0's to 1's to get rid of inf loss (log(0) = inf)
- condition = tf.not_equal(exp_sum, 0)
- exp_sum_clean = tf.where(condition, exp_sum, tf.ones_like(exp_sum))
- output = amax + tf.math.log(exp_sum_clean)
- if not keepdims:
- output = tf.squeeze(output, axis=axis)
- return output
- # **Custom loss function** (Negative Partial Log Likelihood)
- # In[38]:
- def CoxPH_loss(y_true, y_pred):
- """
- Calculates the Negative Partial Log Likelihood:
- L = sum(h_i - log(sum(e^h_j)))
- where;
- h_i = risk prediction of patient i
- h_j is risk prediction of patients j at risk of developing dementia (T_j>=T_i)
- Inputs:
- - y_true = label data composed of
- y_event: A 1 or 0 indicating if the patient developed dementia or not, and
- y_riskset:(set of patients j which are at risk dependent on patient i (Tj>=Ti)).
- - y_pred = the risk prediction of the network
- Output:
- - loss = the loss used to optimize the network
- """
- event = y_true[:,0]
- event = tf.reshape(event,(-1,1))
- riskset_loss = y_true[:,1:]
- predictions = y_pred
- predictions = tf.cast(predictions,tf.float32)
- riskset_loss = tf.cast(riskset_loss,tf.bool)
- event = tf.cast(event, predictions.dtype)
- predictions = safe_normalize(predictions)
- # with tf.name_scope("assertions"):
- # assertions = (
- # tf.debugging.assert_less_equal(event, 1.),
- # tf.debugging.assert_greater_equal(event, 0.),
- # tf.debugging.assert_type(riskset_loss, tf.bool)
- # )
- # move batch dimension to the end so predictions get broadcast
- # row-wise when multiplying by riskset
- pred_t = tf.transpose(predictions)
- # compute log of sum over risk set for each row
- rr = logsumexp_masked(pred_t, riskset_loss, axis=1, keepdims=True)
- # print(predictions.shape.as_list())
- # assert rr.shape.as_list() == predictions.shape.as_list()
- loss = tf.math.multiply(event, rr - predictions)
- return loss
- # %%
- ### 11 features
- def submodel():
- model = tf.keras.models.load_model(MODEL_DIR+'model_'+version+'.h5', custom_objects={'CoxPH_loss': CoxPH_loss})
- input1 = Input((11,))# MRI input
- x = input1
- for layer in model.layers[-4:-1]: # loop over convolutional layers from [1] and add to model
- # connect the layers
- x = layer(x)
- final= model.layers[-1](x)
- model = Model(inputs=[input1], outputs=final)
- adam_opt = keras.optimizers.Adam(lr=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-08, decay=0.01)
- model.compile(loss=CoxPH_loss, optimizer=adam_opt)
- return model
- # %%
- ### 7 features and SNPs
- def submodel():
- model = tf.keras.models.load_model(MODEL_DIR+'model_'+version+'.h5', custom_objects={'CoxPH_loss': CoxPH_loss})
- input1 = Input((7,))
- input2 = Input((76,))# MRI input
- x1= model.layers[-6](input2)
- x = concatenate([input1, x1])
- for layer in model.layers[-4:-1]: # loop over convolutional layers from [1] and add to model
- # connect the layersxx
- x = layer(x)
- final= model.layers[-1](x)
- model = Model(inputs=[input1,input2], outputs=final)
- adam_opt = keras.optimizers.Adam(lr=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-08, decay=0.01)
- model.compile(loss=CoxPH_loss, optimizer=adam_opt)
- return model
- # %%
- version = 'MRI_SNP_TFS_FS_l_1'
- MODEL_DIR = '/trinity/home/jyu/DeepSurvival/models/RS+MCICASES_FS_59_5cv/MRI/'
- DATASET_DIR = '/data/scratch/jyu/DeepSurvival/data/'
- prepdata_name = 'Total_fs_RS_cv_split_1'
- # %%
- model1=submodel()
- # %%
- data = LoadData(prepdata_name)
- #prep full RS datasets
- # Train
- train_MRI_set = data.train_MRI_data
- train_MRI_set=np.char.decode(train_MRI_set)
- train_label_set = data.train_label_data
- b=train_label_set['bigrfullname'].str.decode("utf-8")
- train_label_set['bigrfullname']=1
- train_label_set['bigrfullname']=b
- train_label_set = train_label_set.set_index('bigrfullname')
- train_label_set.columns=train_label_set.columns.str.decode("utf-8")
- train_label_set['ergoid']=train_label_set['ergoid'].astype('int')
- columnsname=['age']
- mean=train_label_set[columnsname].mean()
- std=train_label_set[columnsname].std()
- train_label_set[columnsname]=(train_label_set[columnsname]-mean)/std
- train_gene_data = data.train_gene_data
- train_gene_data.columns=train_gene_data.columns.str.decode("utf-8")
- train_gene_data['ergoid']=train_gene_data['ergoid'].astype('int')
- train_gene_data = train_gene_data.set_index('ergoid')
- test_MRI_set = data.test_MRI_data
- test_MRI_set=np.char.decode(test_MRI_set)
- test_label_set = data.test_label_data
- b=test_label_set['bigrfullname'].str.decode("utf-8")
- test_label_set['bigrfullname']=1
- test_label_set['bigrfullname']=b
- test_label_set = test_label_set.set_index('bigrfullname')
- test_label_set.columns=test_label_set.columns.str.decode("utf-8")
- test_label_set['ergoid']=test_label_set['ergoid'].astype('int')
- test_label_set[columnsname]=(test_label_set[columnsname]-mean)/std
- test_gene_data = data.test_gene_data
- test_gene_data.columns=test_gene_data.columns.str.decode("utf-8")
- test_gene_data['ergoid']=test_gene_data['ergoid'].astype('int')
- test_gene_data = test_gene_data.set_index('ergoid')
- train_label_set=train_label_set.merge(train_gene_data,on='ergoid')
- test_label_set=test_label_set.merge(test_gene_data,on='ergoid')
- train_label_set=train_label_set.sort_values(['age','ergoid']).drop_duplicates('ergoid')
- train=pd.read_csv('../Plot/output/features_5fold/train_features_TFS_1.csv')
- train=train.loc[train_label_set.index]
- test_label_set=test_label_set.sort_values(['ergoid','age']).drop_duplicates('ergoid')
- features=pd.read_csv('../Plot/output/features_5fold/test_features_TFS_1.csv')
- X=features[['img.f1','img.f2','img.f3','img.f4','sex','age','apoe','gen.f1','gen.f2','gen.f3','gen.f4']]
- X=X.loc[test_label_set.index]
- X[columnsname]=(X[columnsname]-mean)/std
- # %%
- # explain the model's predictions using SHAP
- # (same syntax works for LightGBM, CatBoost, scikit-learn, transformers, Spark, etc.)
- explainer = shap.DeepExplainer(model1,np.array(train))
- shap_values = explainer.shap_values(np.array(X))
- # %%
- # explain the model's predictions using SHAP
- # (same syntax works for LightGBM, CatBoost, scikit-learn, transformers, Spark, etc.)
- train=pd.concat([train[['img.f1','img.f2','img.f3','img.f4','sex','age','apoe']],train_label_set.iloc[:,-76:]],axis=1)
- X=pd.concat([X[['img.f1','img.f2','img.f3','img.f4','sex','age','apoe']],test_label_set.iloc[:,-76:]],axis=1)
- X1=X.iloc[:,-76:]
- X2=X.iloc[:,:7]
- explainer = shap.DeepExplainer(model1,[np.array(train.iloc[:,:7]),np.array(train.iloc[:,-76:])])
- shap_values = explainer.shap_values([np.array(X2),np.array(X1)])
- # %%
- shap.summary_plot(shap_values[0][1], X1, plot_type='dot',max_display=76, plot_size=(8,20),sort=True,color_bar_label='Feature value')
- # %%
- genetic=pd.read_csv('genetic_shap.csv')
- beta=pd.read_csv('/data/scratch/jyu/DeepSurvival/dataset/snp/NewGWAS-83snps.csv')[['SNP','BETA','P value']]
- beta=beta.set_index('SNP')
- # #beta['BETA'] = np.log(beta['BETA'])
- # beta=beta[~beta.index.isin(MAF_5[1])]
- # #beta['OR'] = np.exp(beta['BETA'])
- beta=beta.loc[genetic.Input]
- beta['SHAP_1']=genetic.shap1.tolist()
- beta['SHAP_all']=genetic.shapall.tolist()
- beta['SHAP_all1']=genetic.shapall1.tolist()
- #beta['MAF']=fsnp.tolist()
- beta['std']=std
- beta = beta.fillna(0)
- # %%
- fig, ax = plt.subplots(figsize=(6,6))
- p1=sns.scatterplot(x='std', y='SHAP_all',data=beta)
- # for line in range(0,beta.shape[0]):
- # p1.text(beta['std'][line]+0.001, beta.SHAP_all1[line]-0.001,
- # beta.index[line], horizontalalignment='left',
- # size=8, color='black', weight='semibold')
- plt.xlabel('Standard deviation of SNP allele')
- plt.ylabel('mean |SHAP value|')
- sns.despine()
- # %%
- fig, ax = plt.subplots(figsize=(6,6))
- p1=sns.scatterplot(x='SHAP_all', y='SHAP_1',data=beta)
- # for line in range(0,beta.shape[0]):
- # p1.text(beta.SHAP_all[line]+0.0001, beta.SHAP_1[line],
- # beta.index[line], horizontalalignment='left',
- # size=8, color='black', weight='semibold')
- plt.xlabel('mean |SHAP value| (all)')
- plt.ylabel('mean |SHAP value| (1)')
- sns.despine()
- # %%
- beta1=beta[beta['P value']>0.01]
- fig, ax = plt.subplots(figsize=(6,6))
- p1=sns.scatterplot(x='P value', y='SHAP_all',data=beta)
- for line in range(0,beta1.shape[0]):
- p1.text(beta1['P value'][line]+0.001, beta1.SHAP_all[line],
- beta1.index[line], horizontalalignment='left',
- size=8, color='black', weight='semibold')
- plt.xlabel('P value')
- plt.ylabel('mean |SHAP value|')
- sns.despine()
- # %%
- shap.summary_plot(shap_values[0], X, plot_type='dot', color_bar_label='Interaction strength',color='blue')
- # %%
- shap.summary_plot(shap_values[0], X, plot_type='bar')
- # %%
- shap.plots._waterfall.waterfall_legacy(explainer.expected_value[0].numpy(), shap_values[0][1], feature_names = X.columns)
- # %%
- shap.plots._waterfall.waterfall_legacy(1/(1+np.exp(-explainer.expected_value[0].numpy())), shap_values1[0][429], feature_names = X.columns)
- # %%
- shap.initjs()
- shap.force_plot(explainer.expected_value[0].numpy(), shap_values[0][1,:], X.iloc[1,:], link="logit")
- # %%
- shap.initjs()
- shap.force_plot(explainer.expected_value[0].numpy(), shap_values[0][429,:], X.iloc[429,:], link="logit")
- # %%
- X['Age']=std[0]*X['Age']+mean[0]
- # %%
- plt.figure(figsize=(6,5))
- sns.scatterplot(x=X['Age'].tolist(),y=shap_values[0][:,5])
- plt.xlabel('Age',size=14)
- # Set y-axis label
- plt.ylabel('SHAP value',size=14)
- # %%
- plt.figure(figsize=(6,5))
- sns.scatterplot(x=X['Img.F2'].tolist(),y=shap_values[0][:,1])
- plt.xlabel('Img.F2',size=14)
- # Set y-axis label
- plt.ylabel('SHAP value',size=14)
- # %%
- plt.figure(figsize=(6,5))
- sns.scatterplot(x=X['Img.F4'].tolist(),y=shap_values[0][:,3])
- plt.xlabel('Img.F4',size=14)
- # Set y-axis label
- plt.ylabel('SHAP value',size=14)
- # %%
- plt.figure(figsize=(6,5))
- sns.scatterplot(x=X['ApoE-ε4'].tolist(),y=shap_values[0][:,6])
- plt.xlabel('ApoE-ε4',size=14)
- # Set y-axis label
- plt.ylabel('SHAP value',size=14)
- # %%
- plt.figure(figsize=(6,5))
- sns.scatterplot(x=X['ApoE-ε4'].tolist(),y=shap_values[0][:,6])
- plt.xlabel('ApoE-ε4',size=14)
- # Set y-axis label
- plt.ylabel('SHAP value',size=14)
- # %%
- plt.figure(figsize=(6,5))
- sns.scatterplot(x=X['Gen.F1'].tolist(),y=shap_values[0][:,-4])
- plt.xlabel('Gen.F1',size=14)
- # Set y-axis label
- plt.ylabel('SHAP value',size=14)
- # %%
- plt.figure(figsize=(6,5))
- sns.scatterplot(x=X['Gen.F2'].tolist(),y=shap_values[0][:,-3])
- plt.xlabel('Gen.F2',size=14)
- # Set y-axis label
- plt.ylabel('SHAP value',size=14)
- # %%
- shap.dependence_plot("Age",shap_values[0], X)
- # %%
- shap.dependence_plot("ApoE-ε4",shap_values[0], X)
- # %%
- shap.dependence_plot("ApoE-ε4",shap_values[0][:,[1,6]], X.iloc[:,[1,6]])
- # %%
- shap.dependence_plot("Age",shap_values[0][:,[5,6]], X.iloc[:,[5,6]])
- # %%
- shap.dependence_plot("Age",shap_values[0][:,[1,5]], X.iloc[:,[1,5]])
- # %%
- shap.dependence_plot("Img.F2",shap_values[0][:,[1,5]], X.iloc[:,[1,5]])
- # %%
- shap.dependence_plot("Age",shap_values[0][:,[3,5]], X.iloc[:,[3,5]])
- # %%
- shap.dependence_plot("Img.F4",shap_values[0][:,[3,5]], X.iloc[:,[3,5]])
- # %%
- shap.dependence_plot("Img.F2",shap_values[0][:,[1,3]], X.iloc[:,[1,3]])
- # %%
- shap.dependence_plot("Img.F4",shap_values[0][:,[1,3]], X.iloc[:,[1,3]])
- # %%
- shap.dependence_plot("Img.F4",shap_values[0][:,[3,5]], X.iloc[:,[3,5]])
- # %%
- shap.dependence_plot("Gen.F2",shap_values[0][:,[8,5]], X.iloc[:,[8,5]])
- # %%
- shap.dependence_plot("Gen.F2",shap_values[0][:,[8,1]], X.iloc[:,[8,1]])
- # %%
- shap.dependence_plot("Gen.F4",shap_values[0][:,[-1,1]], X.iloc[:,[-1,1]])
- # %%
- shap.dependence_plot("Gen.F4",shap_values[0][:,[-1,3]], X.iloc[:,[-1,3]])
- # %%
- shap.dependence_plot("Gen.F4",shap_values[0][:,[-1,5]], X.iloc[:,[-1,5]])
- # %%
- shap.dependence_plot("ApoE-ε4",shap_values1[0][:,[5,6]], X.iloc[:,[5,6]])
- # %%
- shap.dependence_plot("ApoE-ε4",shap_values[0][:,[1,6]], X.iloc[:,[1,6]])
- # %%
- shap.dependence_plot("Gen.F2",shap_values[0][:,[1,8]], X.iloc[:,[1,8]])
- # %%
- shap.dependence_plot("Img.F2",shap_values[0][:,[1,8]], X.iloc[:,[1,8]])
- # %%
- shap.dependence_plot("Gen.F2",shap_values[0][:,[3,8]], X.iloc[:,[3,8]])
- # %%
- shap.dependence_plot("Img.F4",shap_values[0][:,[3,8]], X.iloc[:,[3,8]])
- # %%
DeepShap.ipynb at commit f50a5c1, no license · at the source
Overview
- Department of Epidemiology, Erasmus MC University Medical Center,Dr. Molewaterplein 40, Rotterdam, 3015 GD Netherlands
- Department of Radiology & Nuclear Medicine, Erasmus MC University Medical Center,Dr. Molewaterplein 40, Rotterdam, 3015 GD Netherlands
- Department of Epidemiology, Department of Radiology & Nuclear Medicine, Erasmus MC University Medical Center,Dr. Molewaterplein 40, Rotterdam, 3015 GD Netherlands
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, with 6 matches between paragraphs and lines of code.
yyyuj/Deep_Survival
f50a5c1203b2625744793a992cf51fef2bfa9eb2, 6 September 2025Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
29 files
- Model_Training_Scripts/
MRI_Age/ , Shell, 46 linesMRI_Age_FS.sh - Model_Training_Scripts/
MRI_Age/ , Shell, 45 linesMRI_Age_TFS_FS.sh - Model_Training_Scripts/
MRI_Age/ , Python, 893 linesTrain_MRI_Age_FS.py - Model_Training_Scripts/
MRI_Age/ , Python, 958 linesTrain_MRI_Age_TFS_FS.py - Model_Training_Scripts/
MRI_Gender_Age/ , Shell, 41 linesMRI_Gender_Age_FS.sh - Model_Training_Scripts/
MRI_Gender_Age/ , Shell, 42 linesMRI_Gender_Age_TFS_FS.sh - Model_Training_Scripts/
MRI_Gender_Age/ , Python, 904 linesTrain_MRI_Gender_Age_FS. py - Model_Training_Scripts/
MRI_Gender_Age/ , Python, 969 linesTrain_MRI_Gender_Age_TFS _FS.py - Model_Training_Scripts/
MRI_Gender_Age_Apoe/ , Shell, 43 linesMRI_Gender_Age_Apoe_FS.s h - Model_Training_Scripts/
MRI_Gender_Age_Apoe/ , Shell, 44 linesMRI_Gender_Age_Apoe_TFS_ FS.sh - Model_Training_Scripts/
MRI_Gender_Age_Apoe/ , Python, 912 linesTrain_MRI_Gender_Age_Apo e_FS.py - Model_Training_Scripts/
MRI_Gender_Age_Apoe/ , Python, 976 linesTrain_MRI_Gender_Age_Apo e_TFS_FS.py - Model_Training_Scripts/
MRI_Only/ , Shell, 42 linesMRI_Only_FS.sh - Model_Training_Scripts/
MRI_Only/ , Shell, 44 linesMRI_Only_TFS_FS.sh - Model_Training_Scripts/
MRI_Only/ , Python, 880 linesTrain_MRI_Only_FS.py - Model_Training_Scripts/
MRI_Only/ , Python, 902 linesTrain_MRI_Only_TFS_FS.py - Model_Training_Scripts/
MRI_PRS/ , Shell, 41 linesMRI_PRS_FS.sh - Model_Training_Scripts/
MRI_PRS/ , Shell, 41 linesMRI_PRS_TFS_FS.sh - Model_Training_Scripts/
MRI_PRS/ , Python, 927 linesTrain_MRI_PRS_FS.py - Model_Training_Scripts/
MRI_PRS/ , Python, 985 linesTrain_MRI_PRS_TFS_FS.py - Model_Training_Scripts/
MRI_SNP/ , Shell, 43 linesMRI_SNP_FS.sh - Model_Training_Scripts/
MRI_SNP/ , Shell, 43 linesMRI_SNP_TFS_FS.sh - Model_Training_Scripts/
MRI_SNP/ , Python, 935 linesTrain_MRI_SNP_FS.py - Model_Training_Scripts/
MRI_SNP/ , Python, 1,003 linesTrain_MRI_SNP_TFS_FS.py - Notebooks/
DeepRisk_CNN_evaluation_ , Jupyter, 2,222 lines, 2 matchesSNP.ipynb - Notebooks/
DeepRisk_CNN_evaluation_ , Jupyter, 1,980 lines, 2 matchesimage_features.ipynb - Notebooks/
DeepShap.ipynb , Jupyter, 576 lines, 2 matches - Notebooks/
Stratified_Analysis.ipyn , Jupyter, 2,396 linesb - README.md, Text, 1 line
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: yyyuj/
Deep_Survival
Read it in the paper: doi.org/10.1038/s41598-026-47047-y.
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;
- 28 scripts, each with its path and the digest of its content;
- 6 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 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:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1038/s41598-026-47047-y.
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, 7 authors, 9 keywords, 15 MeSH terms, 3 funders, 53 references.
Cite
This paper
Yu, J., Rosbergen, M. T., Wolters, F. J., Bron, E. E., Vernooij, M. W., Ikram, M. A., & Roshchupkin, G. V. (2026). Imaging-genetics-based dementia risk prediction using deep survival neural networks in the Rotterdam Study. Scientific reports, 16(1), 16787. https://
BibTeX
@article{yu2026imaging,
author = {Yu, Jing and Rosbergen, Mathijs T. and Wolters, Frank J. and Bron, Esther E. and Vernooij, Meike W. and Ikram, M. Arfan and Roshchupkin, Gennady V.},
title = {{Imaging-genetics-based
journal = {Scientific reports},
year = {2026},
month = apr,
volume = {16},
number = {1},
pages = {16787},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/
url = {https://
pmid = {41957153},
pmcid = {PMC13223248}
}
RIS
TY - JOUR
AU - Yu, Jing
AU - Rosbergen, Mathijs T.
AU - Wolters, Frank J.
AU - Bron, Esther E.
AU - Vernooij, Meike W.
AU - Ikram, M. Arfan
AU - Roshchupkin, Gennady V.
TI - Imaging-genetics-based dementia risk prediction using deep survival neural networks in the Rotterdam Study
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/
VL - 16
IS - 1
SP - 16787
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Imaging-genetics-based dementia risk prediction using deep survival neural networks in the Rotterdam Study",
"container-title": "Scientific reports",
"author": [
{
"family": "Yu",
"given": "Jing"
},
{
"family": "Rosbergen",
"given": "Mathijs T."
},
{
"family": "Wolters",
"given": "Frank J."
},
{
"family": "Bron",
"given": "Esther E."
},
{
"family": "Vernooij",
"given": "Meike W."
},
{
"family": "Ikram",
"given": "M. Arfan"
},
{
"family": "Roshchupkin",
"given": "Gennady V."
}
],
"container-title-short":
"volume": "16",
"issue": "1",
"page": "16787",
"DOI": "10.1038/
"PMID": "41957153",
"PMCID": "PMC13223248",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
9
]
]
}
}
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, TensorFlow, NiBabel, 6 other tools, Alzheimer's / dementia, structural MRI / diffusion, 1 reference
- [2] doi:10.1038/s41586-026-10631-3 [code]
- A prognostic human brain network for diffuse midline glioma.Journal: NatureIn common: Keras, TensorFlow, h5py, 7 other tools, clinical / translational
- [3] doi:10.1038/s41398-026-04081-8 [code]
- Functional system-specific brain aging across the Alzheimer's disease continuum.Journal: Translational psychiatryIn common: Keras, TensorFlow, NiBabel, 6 other tools, Alzheimer's / dementia, structural MRI / diffusion, clinical / translational
- [4] doi:10.64898/2026.05.06.26352540 [code]
- Generating synthetic tau-PET scans in Alzheimer’s disease from MRI, blood biomarkers and demographics with deep learningJournal: medRxiv (preprint)In common: Keras, TensorFlow, NiBabel, 6 other tools, Alzheimer's / dementia, structural MRI / diffusion, clinical / translational
- [5] doi:10.1080/07853890.2026.2685416 [code]
- Pulmonary and cerebral damage in COVID-19 survivors: is there any association?Journal: Annals of medicineIn common: Keras, TensorFlow, h5py, 6 other tools, structural MRI / diffusion, clinical / translational
- [6] 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, TensorFlow, h5py, 7 other tools
- [7] doi:10.3389/fnsys.2026.1822122 [code]
- Convergence-divergence circuits for multimodal integration of innate and learned opponent valences.Journal: Frontiers in systems neuroscienceIn common: Keras, TensorFlow, h5py, 7 other tools
- [8] doi:10.1038/s41467-026-71555-0 [code]
- A deep representation learning model to predict response to vagus nerve stimulation.Journal: Nature communicationsIn common: SHAP, NiBabel, seaborn, 5 other tools, structural MRI / diffusion, clinical / translational, 1 reference
- [9] 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, TensorFlow, NiBabel, 6 other tools, structural MRI / diffusion, clinical / translational
- [10] doi:10.1002/hbm.70602 [code]
- Neuroimaging Correlates of Post-Stroke Pain After Ischemic Stroke: Secondary Analysis of the INSPiRE-TMS Trial.Journal: Human brain mappingIn common: Keras, TensorFlow, h5py, 6 other tools, clinical / translational
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, 28 scripts, and 6 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:b644011e80014e7a…
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.
