raindroid / WearableHealthVector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COS597A Project: Wearable Health Condition Detection with Vector Database

Project Overview

The project's objective is to investigate the feasibility of employing a Vector Database for health surveillance. We have conducted thorough testing across various datasets and developed a health condition monitoring system anchored by the Vector Database. Utilizing Pinecone for our database needs, we have also created a web application capable of analyzing and diagnosing ECG data derived from the Apple Watch, showcasing the potential for advanced health monitoring solutions.

Presentation

Table of Contents

Installation

The project contains two components, 1. ECG dataset testing and 2. Health monitoring web applications

  1. ECG dataset requires the following dependencies: python with jupyter notebook
pip install -r requirements.txt
  • Setup api key for Pinecone by creating datasets/pinecone.config.json file

    {
      "PINECONE_API_KEY": "xxxxxxxxxx",
      "PINECONE_ENVIRONMENT": "us-east4-gcp"
    }
  1. Health monitoring web application: also requires nodejs for website
(cd backend && yarn install)
(cd wearable-health-vector-app && yarn install)
  • Create wearable-health-vector-app/.env.local to connect frontend to the backend api

    ### Backend location
    NEXT_PUBLIC_UPLOAD_URL=http://localhost:3011/upload
    

Usage

  1. Check notebooks in datasets for detail

  2. Start backend

    cd backend
    mkdir -p uploads results
    nodemon app.js
  3. Start frontend

    cd wearable-health-vector-app
    npm run dev

Datasets

MIT-BIH

The MIT-BIH Arrhythmia Dataset preprocessed and segmented, with each segment corresponding to a heartbeat

PTB

The PTB Diagnostic ECG Database preprocessed and segmented, with each segment corresponding to a heartbeat

The PhysioNet/Computing in Cardiology Challenge 2017

AF Classification from a Short Single Lead ECG Recording

Contact

Malinda Huang: linhui.huang@princeton.edu
Yucan Wu: yucan.wu@princeton.edu

About

License:Apache License 2.0


Languages

Language:Jupyter Notebook 94.5%Language:TypeScript 4.2%Language:Python 0.6%Language:CSS 0.5%Language:JavaScript 0.2%