GithubHelp home page GithubHelp logo

v3551g / apneaecganalysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zzklove3344/apneaecganalysis

0.0 0.0 0.0 362.99 MB

This project includes preprocessing of APNEA-ECG database and a LSTM-RNN model for per-segment OSA detection.

License: MIT License

Python 55.55% MATLAB 43.06% TeX 0.80% C 0.58%

apneaecganalysis's Introduction

Code for OSA Detection Based on Apnea-ECG

This project includes a preprocessing method for Apnea-ECG and a LSTM-RNN model for per-segment OSA detection.

Introduction

If you want to use this program, you should download the Apnea-ecg database firstly. Here we provide a download link, https://pan.baidu.com/s/1xmzjY9rsdWTuO0qMKSv2Kg, code: 8fuq.

Usage

Then, follow these steps and you will get the OSA detection model.

  1. Use matlab functions in python. Follow the official documents Matlab_Link.

  2. Run preprocessOfApneaECG.mit2Segments.py. This python file convert Apnea-ECG database to minute-by-minute ECG segments, both train set(a01-a20,b01-b05,c01-c10) and test set(x01-x35). Don't forget to set path information in mit2Segments.py.

  3. Run preprocessOfApneaECG.preProcessing.py. This python file process minute-by-minute ECG segments, including ECG denoising, extracting RRI,RAMP and EDR signal from ECG, smoothing and spline interpolation on RRI and RAMP and downsampling on EDR signal. In addition, we classify these segments into two kinds based on RRI, noise and clear.

  4. Run produceDatabase.py. This python file produce train set and test set formatting .npy file. It will be stored in "data/" folder.

  5. Run model.lstmRNNModel.py. This python file train LSTM-RNN network for per-segment OSA detection.

Author

  • zzklove3344 (Heilongjiang University), if you have any questions about codes, please contact [email protected]

Citation information

If you use these modules in any other project, please refer to MIT open-source license.

Dependencies

  • wfdb
  • numpy
  • os
  • BioSigKit
  • keras, backend tensorflow

apneaecganalysis's People

Contributors

zzklove3344 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.