Skip to content

Contains codes of DeepAttnMISL in MEDIA'20

Notifications You must be signed in to change notification settings

Raymvp/DeepAttnMISL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepAttnMISL_MEDIA

Core codes of Pytorch implementation of MEDIA'20 paper and an improved version of MICCAI 19.


Overview

Pipeline

Data

Need to specify the path of data label and image features Data labels are in csv format. Image features can be saved in npz format with clustering label, etc. More can be found in dataset definition.

For example, patient 10000 has 100 sampled patches from at least 1 WSI, should stored as 10000.npz with the following information:

  1. 'vgg_features': vgg features of each patch, so 100*L
  2. 'pid': 10000, 1
  3. 'time': OS time, 1
  4. 'status': OS status, 1
  5. 'img_path': path of each patch, for example, './10000/1.jpg', 100*1
  6. 'cluster_num': cluster id of each patch. 100*1

More can be found in dataset definition.

Input file format

A csv file in the following formate is needed:

patient_ID Img_patch_path Survival_time Survival_status
10000 /10000/1.jpg 1000 0

Training

Our implementation consists in a main.py file from which are imported the MIL dataloader definition MIL_dataloader.py, the model architecture DeepAttnMISL_model.py and some miscellaneous training utilities.

After specific your label and feature path, run:

python main.py

The average C-index across 5 folds will show in the end.


Acknowledgments


Citation

If you find this repository useful in your research, please cite:

@article{yao2020whole,
  title={Whole Slide Images based Cancer Survival Prediction using Attention Guided Deep Multiple Instance Learning Networks},
  author={Yao, Jiawen and Zhu, Xinliang and Jonnagaddala, Jitendra and Hawkins, Nicholas and Huang, Junzhou},
  journal={Medical Image Analysis},
  volume={65},
  pages={101789},
  year={2020},
  publisher={Elsevier}
}

@inproceedings{yao_deep_2019,
 author = {Yao, Jiawen and Zhu, Xinliang and Huang, Junzhou},
 booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
 copyright = {All rights reserved},
 pages = {496--504},
 publisher = {Springer},
 title = {Deep Multi-instance Learning for Survival Prediction from Whole Slide Images},
 year = {2019}
}

About

Contains codes of DeepAttnMISL in MEDIA'20

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%