GithubHelp home page GithubHelp logo

alarm's Introduction

Alarm

Alarm is a R package of a wearable alarming system for abnormal resting heart rates (RHR) based on CuSum statistics using Fitbit smartwatch data.

Dependence

  • R (version >= 3.3.0)

  • R package: "xts"

  • R function file: "online_cusum_alarm_fn.R"

Usage

To set the working directory as "/Alarm/R"

source("online_cusum_alarm_fn.R")

online.alarming.fn(peo.id.1, dir.hr, dir.step, track.par = 12, gap.thres = 14)

--peo.id.1 individual ID

--dir.hr directory of raw heart rate data

--dir.step directory of raw step data

--track.par tracking parameter (default: 12 hours)

--gap.thres missing data gap (default: 14 days)

Output

  • reformatted HR data, step data, and smoothed RHR data are saved in subfolder /output/clean

  • online result (based on CuSum) and offline result (based on RHR-diff) for each chunk data are saved in subfolder /output/result

  • notice that the CuSum alarm cannot run due to lack of enough data for some case is saved in subfolder /output/note

  • online alarm figure combined with offline detection figure for each chunk data is saved in subfolder /output/figure

  • online summary table, offline summary table, and daily evaluation table for all the data are saved in subfolder /output/table

alarm's People

Contributors

mwgrassgreen avatar

Watchers

James Cloos 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.