Real-time detection of infection diseases using wearables
Online pre-symptomatic and asymptomatic detection of COVID-19 using wearables data. The current version of NightSignal algorithm works on Fitbit and AppleWatch heartrate and steps data.
Requirements:
- Python 3
- MatplotLib
- NumPy
- Pandas
Required packages command:
Use the following command to install the required Python packages
pip install -r requirements.txt
Usage:
For each wearable, use the following command to run NightSignal algorithm on heartrate and step data. The outputs are: 1) A JSON file for the real-time alerts and 2) A plot showing the average RHR overnight and corresponding healthy baseline and alerts w.r.t the NightSignal Deterministic Finite Automata (DFA).
Fitbit:
python3 nightsignal.py --device=Fitbit --restinghr=<RHR_FILE>
AppleWatch:
python3 nightsignal.py --device=AppleWatch --heartrate=<HR_FILE> --step=<STEP_FILE>
Example runs:
python3 nightsignal.py --device=AppleWatch --heartrate=P355472-AppleWatch-hr.csv --step=P355472-AppleWatch-st.csv
python3 nightsignal.py --device=Fitbit --restinghr=P682517-Fitbit-rhr.csv
Output example:
Example of Pre-symptoms Real-time Alerts during COVID-19: