All Projects → gireeshkbogu → AnomalyDetect

gireeshkbogu / AnomalyDetect

Licence: MIT license
Detects anomalous resting heart rate from smartwatch data.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to AnomalyDetect

Covid 19 Data
Data on COVID-19 (coronavirus) cases, deaths, hospitalizations, tests • All countries • Updated daily by Our World in Data
Stars: ✭ 4,702 (+26022.22%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
coronavirus
covid-19 data in J
Stars: ✭ 15 (-16.67%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
COVID-19-AI
Collection of AI resources to fight against Coronavirus (COVID-19)
Stars: ✭ 25 (+38.89%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
epidemic-simulator
A HTML/JavaScript simulator for an epidemc on a population
Stars: ✭ 23 (+27.78%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
covid19 scenarios data
Data preprocessing scripts and preprocessed data storage for COVID-19 Scenarios project
Stars: ✭ 43 (+138.89%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
COVID19-taiwan
Release COVID-19 (SARS-CoV-2) FDA / NHI drugs screening results.
Stars: ✭ 24 (+33.33%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
cli-corona
📈 Track COVID-19 (2019 novel Coronavirus) statistics via the command line.
Stars: ✭ 14 (-22.22%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
corona tracker
COVID-19 tracking app - submission for https://wirvsvirushackathon.org/
Stars: ✭ 13 (-27.78%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
coronavirus-dresden
Collects official SARS-CoV-2 infection statistics published by the city of Dresden.
Stars: ✭ 19 (+5.56%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
Coronavirus
Java API Wrapper for tracking coronavirus (COVID-19, SARS-CoV-2) via https://git.io/Jvoep
Stars: ✭ 16 (-11.11%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
covid19-visualized
COVID-19 World update with data Visualization (Include Indonesia cases)
Stars: ✭ 23 (+27.78%)
Mutual labels:  coronavirus, covid-19
covid19-br-info
Coronavirus frontend info about Brazil's states and cities
Stars: ✭ 12 (-33.33%)
Mutual labels:  coronavirus, covid-19
COVID-19-STAT
A web application to keep track of COVID-19 numbers & growth across the world
Stars: ✭ 19 (+5.56%)
Mutual labels:  coronavirus, covid-19
covid19
Visualize and compare COVID 19 growth rates of different countries
Stars: ✭ 22 (+22.22%)
Mutual labels:  coronavirus, covid-19
CoronaVirus-2019-nCoV-Live-Tracking
CoronaVirus(COVID-19) Live Map Tracker Android Kotlin App
Stars: ✭ 43 (+138.89%)
Mutual labels:  coronavirus, covid-19
COVID-19-Greece
A python-generated website for visualizing the novel coronavirus (COVID-19) data for Greece.
Stars: ✭ 21 (+16.67%)
Mutual labels:  coronavirus, covid-19
Bluetooth-ble-beamer-and-scanner-for-tracing-corona-virus-infected-individual
Bluetooth ble beacon beamer and scanner for tracing corona virus infected person similar to Trace Together app
Stars: ✭ 26 (+44.44%)
Mutual labels:  coronavirus, covid-19
covid
MolSSI SARS-CoV-2 Biomolecular Simulation Data and Algorithm Store
Stars: ✭ 24 (+33.33%)
Mutual labels:  covid-19, sars-cov-2
Covid-19-API
A realtime API for coronavirus cases on Heroku. Data automatically updated every 10 minutes!
Stars: ✭ 59 (+227.78%)
Mutual labels:  coronavirus, covid-19
cotect
🛡Crowd-sourced COVID-19 reporting and assessment system.
Stars: ✭ 14 (-22.22%)
Mutual labels:  coronavirus, covid-19

AnomalyDetect

The current version of AnomalyDetect detects anomalous heart rate from smartwatch data. AnomalyDetect can be used with either RHR (Resting Heart Rate) or HROS (Heart Rate Over Steps) as an input. This method can be applied to any smartwatch data like FitBit, Apple, Garmin and Empatica.

Install required packages

pip install -r requirements.txt

Offline Models

Offline models use all the data to find anomalies.

RHR-AD (Resting Heart Rate) Offline Anomaly Detector

Full command

python rhrad_offline.py \
       --heart_rate hr.csv \
       --steps steps.csv \
       --myphd_id id_offline \
       --figure id_offine.pdf \
       --anomalies id_offline_anomalies.csv \
       --symptom_date 2020-01-30 \
       --diagnosis_date 2020-01-31 \
       --outliers_fraction 0.1 \
       --random_seed 10 

HROS-AD (Heart Rate Over Steps) Offline Anomaly Detector

Full command

python hrosad_offline.py \
       --heart_rate hr.csv \
       --steps steps.csv \
       --myphd_id id_offline \
       --figure id_offine.pdf \
       --anomalies id_offline_anomalies.csv \
       --symptom_date 2020-01-30 \
       --diagnosis_date 2020-01-31 \
       --outliers_fraction 0.1 \
       --random_seed 10 

Online Model (RHRAD)

It uses RHR data and splits it into training data by taking the first 744 hours as a baseline (1 month) and test data by taking the next 1 hour data, and uses a 1 hour sliding window to find anomalies in the test data in “real-time”. If the anomalies occur frequently within 24 hours, it will automatically create either warning (yellow) or serious (red) alerts at every 9 P.M. Red alerts were set if the anomalies occurred continuously for more than 5 hours within each 24 hours period and yellow alerts were set if the anomalies occurred for one or continuously for less than 5 hours and green alerts were set if there were no anomalies.

Note: Uses a new Fitbit data format compared to offline models.

Full command

python rhrad_online_alerts.py --heart_rate fitbit_newProtocol_hr.csv \
       --steps pbb_fitbit_newProtocol_steps.csv \
       --myphd_id id_RHR_online \
       --figure1 id_RHR_online_anomalies.pdf \
       --anomalies id_RHR_online_anomalies.csv \
       --symptom_date 2020-01-10 --diagnosis_date 2020-01-11 \
       --outliers_fraction 0.1 \
       --random_seed 10  \
       --baseline_window 744 \
       --sliding_window 1 \
       --alerts id_RHR_online_alerts.csv \
       --figure2 id_RHR_online_alerts.pdf
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].