Git Product home page Git Product logo

ppg-analysis's Introduction

Analysis of PPG Signals using Self-Supervised Learning

Self-supervised learning is used to extract features from raw PPG signals and initializing end-to-end deep learning models to predict hospitalization given raw PPG signals. Extracted features are used to predict hospitalization using logistic regression. We also relate extracted features to known physiological parameters such as respiratory rate, heart rate and oxygen saturation (SpO2) using linear regression. Details about the analysis can be found in this manuscript.

The analysis is done using pytorch==1.7.1 (updated to 1.12.1 in revised analysis), pytorch-metric-learning==0.9.96, and hyper-parameter optimization using ray[tune]==1.2.0. Bayesian models are fitted using pyro-ppl==1.8.2. Install packages in requirements.txt

Preparing the data

Self supervised learning

Self-supervised learning model are trained using contrastive learning (models/contrastive_resnet.py) using Noise Contrastive Estimation loss and dot product as the distance metric.

Regression models

Features extracted using contrastive learning are used as predictors of heart rate, respiratory rate and oxygen saturation (SpO2) in models/regression.py and models/regression_bayesian.py.

Classification models

Classification of hospitalization using features extracted using self-supervised learning: models/admission_classifier.py and models/logistic_bayesian.py

Classification of hospitalization using end-to-end deep learning:models/end_to_end.py

End to end models can either be initialized randomly or using weights of the self-supervised model

ppg-analysis's People

Contributors

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