Code Monkey home page Code Monkey logo

attdmm's Introduction

AttDMM: An Attentive Deep Markov Model for Risk Scoring in Intensive Care Units

The original implementation of the paper. You can cite the paper as below.

@inproceedings{ozyurt2021attdmm,
  title={AttDMM: an attentive deep Markov model for risk scoring in intensive care units},
  author={Ozyurt, Yilmazcan and Kraus, Mathias and Hatt, Tobias and Feuerriegel, Stefan},
  booktitle={Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery \& Data Mining},
  pages={3452--3462},
  year={2021}
}

Dependencies

For a straight-forward use of AttDMM, you can install the required libraries from requirements_attdmm.txt: pip install -r requirements_attdmm.txt

Dataset

We made our experiments on MIMIC-III dataset, which is not publicly availiable. In order to access the dataset, please refer to https://mimic.physionet.org/gettingstarted/access/ .

After downloading MIMIC-III, you can use the following github repo for the pre-processing: https://github.com/USC-Melady/Benchmarking_DL_MIMICIII .

To be aligned with our AttDMM implementation, you need to have the following files under each fold directory.

  1. Time-series features (N,T,M):
    1. time_series_training.npy
    2. time_series_val.npy
    3. time_series_test.npy
  2. Static features (N,S):
    1. nontime_series_training.npy
    2. nontime_series_val.npy
    3. nontime_series_test.npy
  3. Time-series masks (N,T,M):
    1. time_series_training_masking.npy
    2. time_series_val_masking.npy
    3. time_series_test_masking.npy
  4. Mortality Labels (N):
    1. y_mor_training.npy
    2. y_mor_val.npy
    3. y_mor_test.npy

where N is number of time-series, T is number of time steps, M is number of time-series features, and S is number of static features.

Example Usage

For training: python main.py --cuda --experiments_main_folder experiments --experiment_folder default --log attdmm.log --save_model model --save_opt opt --checkpoint_freq 10 --eval_freq 10 --data_folder /home/Data/fold0

All the log files and the model checkpoints will be saved under current_dir/experiments_main_folder/experiment_folder/

for testing: python main.py --cuda --experiments_main_folder experiments --experiment_folder default --log attdmm_eval.log --load_model model_best --load_opt opt_best --eval_mode --data_folder /home/Data/fold0

Note that experiments_main_folder and experiment_folder have to be consistent with training so that the correct model is loaded properly. After testing is done, the prediction outputs can be found as current_dir/experiments_main_folder/experiment_folder/mortality_predictions_test.csv

For the full set of arguments, please check main.py .

attdmm's People

Contributors

oezyurty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar Orizuru avatar XiangBu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.