Coder Social home page Coder Social logo

huwj23 / deform-cnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heartbeatai/deform-cnn

0.0 0.0 0.0 1.55 MB

Deformable convolutional networks for electrocardiogram diagnosis using pytorch

Home Page: https://hbai.co

License: GNU Affero General Public License v3.0

Python 100.00%

deform-cnn's Introduction

Deform-CNN

Deformable convolutional networks for electrocardiogram diagnosis using pytorch. This is the source code of the article "An End-to-End 12-Leading Electrocardiogram Diagnosis System based on Deformable Convolutional Neural Network with Good Anti-noise Ability"

Getting started

Training environment

  • NVIDIA driver version 418.67
  • CUDA Version 10.1
  • Python version 3.6.8
  • Pytorch version 1.4.0+cu101

Install required package

From the root of this repository, run

pip install -r requirements.txt

Download the dataset

We use CPSC-2018 as dataset. You can dowload from here Reprocessing the data and save the data in .npy format. Then place the data into folder ./dataset/DataSet250HzRepeatFill and place the label into folder ./dataset. For more detail, please refer to load_dataset.py.

Notice:In our experiment, we removed data with total length more than 30 seconds, reducing the sampling frequency to 250 Hz and repeating filling. For more detail please refer to our article

Start training

From the root of this repository, run

python dcnv2_ecg_train.py

Customization

If you need to adjust some parameters, you can use argument. For example: python dcnv2_ecg_train.py --epochs 20 --optimizer Adam For more arguments, please refer to dcnv2_ecg_train.py.

Additional Notes

Please contact us by creating an issue if you would like to use this project for commercial purposes.

Cite this

@article{Qin_2021,
	doi = {10.1109/tim.2021.3073707},
	url = {https://doi.org/10.1109%2Ftim.2021.3073707},
	year = 2021,
	publisher = {Institute of Electrical and Electronics Engineers ({IEEE})},
	volume = {70},
	pages = {1--13},
	author = {Lang Qin and Yuntao Xie and Xinwen Liu and Xiangchi Yuan and Huan Wang},
	title = {An End-to-End 12-Leading Electrocardiogram Diagnosis System Based on Deformable Convolutional Neural Network With Good Antinoise Ability},
	journal = {{IEEE} Transactions on Instrumentation and Measurement}
} 

Reference: https://github.com/4uiiurz1/pytorch-deform-conv-v2 (MIT License)

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.