Coder Social home page Coder Social logo

zabir-nabil / fibro-cosanet Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 3.0 392.98 MB

Idiopathic pulmonary fibrosis (IPF) is a restrictive interstitial lung disease that causes lung function decline by lung tissue scarring. Although lung function decline is assessed by the forced vital capacity (FVC), determining the accurate progression of IPF remains a challenge. To address this challenge, we proposed Fibro-CoSANet, a novel end-to-end multi-modal learning-based approach, to predict the FVC decline. Fibro-CoSANet utilized CT images and demographic information in convolutional neural network frameworks with a stacked attention layer. Extensive experiments on the OSIC Pulmonary Fibrosis Progression Dataset demonstrated the superiority of our proposed Fibro-CoSANet by achieving the new state-of-the-art modified Laplace Log-Likelihood score of -6.68. This network may benefit research areas concerned with designing networks to improve the prognostic accuracy of IPF.

License: MIT License

Python 99.86% Shell 0.14%
deep-learning pytorch lungs pulmonary lungs-ct-scan ct-scans mri fvc lung-disease efficientnet

fibro-cosanet's Introduction

Fibro-CoSANet: Pulmonary Fibrosis Prognosis Prediction using a Convolutional Self Attention Network

Installation

  1. git clone https://github.com/zabir-nabil/osic-pulmonary-fibrosis-progression.git
  2. cd osic-pulmonary-fibrosis-progression
  3. Install Anaconda Anaconda
  4. conda create -n pulmo python==3.7.5
  5. conda activate pulmo
  6. conda install -c intel mkl_fft (opt.)
  7. conda install -c intel mkl_random (opt.)
  8. conda install -c anaconda mkl-service (opt.)
  9. pip install -r requirements.txt

Download Dataset

  1. Download the kaggle.json from Kaggle account. Kaggle authentication
  2. Keep the kaggle.json file inside data_download folder.
  3. sudo mkdir /root/.kaggle
  4. sudo cp kaggle.json /root/.kaggle/
  5. sudo apt install unzip if not installed already
  • cd data_download; python dataset_download.py; mv osic-pulmonary-fibrosis-progression.zip ../../; unzip ../../osic-pulmonary-fibrosis-progression.zip -d ../../; cd ../; python train_slopes.py

Training

  1. Set the training hyperparameters in config.py
  2. Slope Prediction
    • To train slopes model run python train_slopes.py
    • trained model weights and results will be saved inside hyp.results_dir
  3. Quantile Regression
    • To train qreg model run python train_qreg.py
    • trained model weights and results will be saved inside hyp.results_dir

Arxiv pre-print

https://arxiv.org/abs/2104.05889

fibro-cosanet's People

Contributors

zabir-nabil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fibro-cosanet's Issues

Why the score function use 'percent' as sigma?

def score_avg(p, a): # patient id, predicted a
percent_true = train.Percent.values[train.Patient == p]
fvc_true = train.FVC.values[train.Patient == p]
weeks_true = train.Weeks.values[train.Patient == p]
fvc = a * (weeks_true - weeks_true[0]) + fvc_true[0]
percent = percent_true[0] - a * abs(weeks_true - weeks_true[0])
return score(fvc_true, fvc, percent)

The last sentence use 'percent' as confidence, i dont understand. Who can teach me?

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.