GithubHelp home page GithubHelp logo

utayao / deepattnmisl_media-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diting-li/deepattnmisl_media

0.0 1.0 0.0 13 KB

Contain codes of MEDIA'20 paper

License: MIT License

Python 100.00%

deepattnmisl_media-1's Introduction

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.

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}
}

deepattnmisl_media-1's People

Contributors

utayao avatar

Watchers

James Cloos 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.