Giter Club home page Giter Club logo

dreambigzhang / sleep-apnea-guardian Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 7.9 MB

natHacks 2022 Winner Stefan, Zhao and Yushu. Python , NumPy, Brainflow Data Stream, PyQt5 GUI, Speech Recognition. Monitor Sleep Apnea by analyzing brain EEG data; instant feedback and sleep quality report; voice assistant enables accessibility control

Python 88.25% CSS 0.28% PureBasic 8.22% Jupyter Notebook 2.22% C 0.87% C++ 0.15%
brain-computer-interface digital-health eeg-analysis python

sleep-apnea-guardian's Introduction

logo

Sleep Apnea Guardian - natHACKS 2022

Sleep Apnea Guardian is an affordable and non-invasive solution to detect sleep apnea using EEG brain signal. We use a comfortable and discreet wearable headband during sleep. When a person stops breathing, their brain responds by sending a certain pattern of signals which our software can detect and provide instant feedback. We also record all the apnea events throughout the night to create a detailed sleep quality report in the morning. With accessibility in mind, we developed a voice assistant using speech recognition to enable full voice control and customization. Affordable, non-invasive, and user-friendly, Sleep Apnea Guardian has great potential to serve high risk populations, relieve stress on the healthcare system, and help everyone get better sleep.

Index

main.py - GUI, flow control and starting point

sim_graph_window.py - active sleep monitoring flow control and data preprocessing

SleepApneaDetect.py - detect apnea and plot live/simulated data

voice_assistant.py - voice recognition and audio instructions

Requirements

  • Python 3.9 or above
  • virtualenv
  • All requirements within requirements.txt (refer to above for installation)

Installation

git clone https://github.com/dreambigzhang/Sleep-Apnea-Guardian.git
cd Sleep-Apnea-Guardian
python3 main.py

Create a virtual environment to install the dependencies:

python -m venv <Environment-Name>  # For example  $ python -m venv python_boiler

Activate the virtual environment and install the dependencies (Platform-Specific):

Linux

./<Environment-Name>/Scripts/activate  # ./python_boiler/Scripts/activate
pip install -r requirements.txt

MacOS

./<Environment-Name>/bin/activate  # ./python_boiler/Scripts/activate
pip install -r requirements.txt

Windows (Powershell)

./<Environment-Name>/Scripts/Activate.ps1
pip install -r requirements.txt

sleep-apnea-guardian's People

Contributors

antoszko avatar blitzwrecker avatar dreambigzhang avatar existentialist-robot avatar madeleine36 avatar psaunderualberta avatar stefan-png avatar zacharyselk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lanreayk

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.