Skip to content

Ericzhang1/TC-EMNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TC-EMNet

This repository contains implementation code for the paper "Temporal Clustering with External Memory Network for Disease Progression Modeling"

Model Architecture

We propose Temporal Clustering with External Memory Network (TC-EMNet) for disease progression modeling via both supervised and unsupervised setting. At each time step, TC-EMNet takes EHR medical record as input and encodes the input feature using a recurrent neural network to get hidden representations. Then TC-EMNet samples from the hidden state to form a latent representation. Meanwhile, the hidden state is stored into a global-level memory network, which in turn outputs a memory representation based on current memory. The memory representation is then concatenated with the current latent representation to form the patient representation at current time step. When training label is available, the model also employs a patient-level memory work to process label information up to previous visits and outputs target-aware memory representation. We combine memory representations from global-level and patient-level memory network using a calibration process. TC-EMNet is trained with reconstruction objective under unsupervised setting and prediction objective under supervised setting.

Environments

Use the following command to install required dependencies:

conda env create -f environment.yml

Model Training

To run training, use the following command:

bash train.sh

Results

ADNI Dataset

Task Purity NMI RI
w/o label 0.70 0.20 0.19
with label 0.91 0.48 0.49

PPMI Dataset

Task Purity NMI RI
w/o label 0.75 0.38 0.37
with label 0.83 0.50 0.50

Model Evaluation

The pretrained model is saved in './model'. To run evaluation, use the following command:

bash eval.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published