Code Monkey home page Code Monkey logo

dl_cta_calcium's Introduction

DL-CTA coronary Agatston calcium scoring

This repository contains the PyTorch implementation of "Automatic Calcium Scoring in Coronary CT Angiography using Deep Learning: Automatically Derived using Spectral CT and Validated using Multiple CTA Imaging Protocols"

Setup

Required packages

  • PyTorch 1.7
  • SimpleITK
  • numpy

Data Preparation

To train and predict on CTA cases, organize the data according to the following format:

data
├── Images
|   ├── case1_iso.nii.gz
|   └── case2_iso.nii.gz
├── Labels
|   ├── case1_cal_seg.nii.gz
|   ├── case1_cal_map.nii.gz
|   ├── case2_cal_seg.nii.gz
|   └── case2_cal_map.nii.gz
├── train_ID_lis.txt
└── val_ID_lis.txt

where caseID_cal_seg.nii.gz is the calcification segmentation and caseID_cal_map.nii.gz is the CAC score distributution according to voxel-wise calcification severity.

Training

To train the segmentation model, run:

python train_seg.py

To train the CAC score regression model, run:

python train_regress.py

Testing

To run testing on unseen data, first generate the segmentation results by running:

predict_segmentation.py

To run the regression model, run:

predict_regress.py

Note that the segmentation results must be made available before running the regression model.

Results:

dl_cta_calcium's People

Contributors

haoyuyangcuracloud avatar

Stargazers

 avatar  avatar Mancy Wang avatar  avatar  avatar Xin Gao avatar  avatar Aneta Postrożny avatar  avatar  avatar  avatar  avatar Nebula 530 avatar Ougen avatar Zhiwei Zhai avatar  avatar  avatar

Watchers

James Cloos avatar Hao-Yu Yang avatar

dl_cta_calcium's Issues

how 投

Can you describe how to construct the caseID_cal_seg.nii.gz and caseID_cal_map.nii.gz ? Thank you~

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.