Giter Site home page Giter Site logo

arturomoncadatorres / breathing-rate-rsa Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 10.68 MB

Implementation of the methods used to calculate (average) respiratory rate from heart rate variability as shown in the paper by Schafer and Kratky (2008).

License: MIT License

Makefile 0.09% Python 1.13% Jupyter Notebook 98.78%
biomedical-data-science biomedical-engineering ecg-signal respiratory-rate signal-processing wearables breathing-rate ecg

breathing-rate-rsa's Introduction

Estimating Breathing Rate from Respiratory Sinus Arrhythmia

The purpose of this repository is to provide the (Python) implementation of different methods to calculate (average) respiratory rate from heart rate variability, as shown in the paper

Schäfer, Axel, and Karl W. Kratky. "Estimation of Breathing Rate from Respiratory Sinus Arrhythmia: Comparison of Various Methods", Annals of Biomedical Engineering 36.3 (2008): 476-485.

Full credit goes to the authors.

ContentRoadmapProject OrganizationLicenseCredits

GIF for display purposes only. You can find the code for generating it here. Original lung GIF by PresenterMedia

📊 Content

  • 1 - Data exploration (WIP)
  • 2 - Data pre-processing: preparation of the signals needed for further analysis.
  • 3 - Data analysis: showcase of the different methods used to calculate breathing rate. Each method includes a short explanation and visualizations.
  • 4 - Statistical evaluation (WIP): comparison of performance of the different methods using various metrics.

🗺️ Roadmap

Although I am more or less done with the implementation of the algorithms and the statistical methods for their validation, there are still quite a few things missing that I would like to work on. Namely:

  • Create notebook for data exploration
  • Create notebook for statistical evaluation
  • Select segments with N annotations only
  • Modularize visualizations
  • Automate the whole pipeline using the Makefile

🗂️ Project Organization

├── LICENSE
├── Makefile           <- Makefile with commands like `make data` or `make train`
├── README.md          <- The top-level README for developers using this project.
├── data
│   ├── external       <- Data from third party sources.
│   ├── interim        <- Intermediate data that has been transformed.
│   ├── processed      <- The final, canonical data sets for modeling.
│   └── raw            <- The original, immutable data dump.
│
├── docs               <- A default Sphinx project; see sphinx-doc.org for details
│
├── models             <- Trained and serialized models, model predictions, or model summaries
│
├── multimedia         <- Multimedia for the project (and corresponding scripts)
│
├── notebooks          <- Jupyter notebooks. Each notebook corresponds to a section of the pipeline.
│
├── references         <- Data dictionaries, manuals, and all other explanatory materials.
│
├── reports            <- Generated analysis as HTML, PDF, LaTeX, etc.
│   └── figures        <- Generated graphics and figures to be used in reporting
│
├── requirements.txt   <- The requirements file for reproducing the analysis environment, e.g.
│                         generated with `pip freeze > requirements.txt`
│
├── setup.py           <- makes project pip installable (pip install -e .) so src can be imported
├── src                <- Source code for use in this project.
│   ├── __init__.py    <- Makes src a Python module
│   │
│   ├── data           <- Scripts to download or generate data
│   │
│   ├── features       <- Scripts to turn raw data into features for modeling
│   │
│   ├── models         <- Scripts to train models and then use trained models to make predictions
│   │
│   ├── signals        <- Scripts to process different type of signals
│   │
│   ├── statistics     <- Scripts used for statistical evaluation of the different methods
│   │
│   └── visualization  <- Scripts to create exploratory and results oriented visualizations
│
└── tox.ini            <- tox file with settings for running tox; see tox.readthedocs.io

📃 License

This repository uses the MIT license

🏷️ Credits

This repository was developed in Spyder (a fantastic open-source Python IDE) while leveraging Jupytext for easy creation of Jupyter Notebooks. It used Cookiecutter and the cookiecutter data science project template #cookiecutterdatascience.

If you have any questions, comments, or feedback, please open a discussion. If there is a problem with the code (e.g., bug), please open an issue. Moreover, you can always drop me a line on Twitter (@amoncadatorres).

breathing-rate-rsa's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

simrit1

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.