Code Monkey home page Code Monkey logo

infection-alert's Introduction

Infection Alert

Early Infection Alert on an Apple Watch based on resting heart rate elevation.

Executive Summary

Early detection is crucial in stopping the spread of infection. We should use all the tools at our disposal.

Infections elevate your resting heart rate, sometimes even before you can feel the symptoms or the temperature is elevated. 1 2

Wearables provide an accurate way to measure resting heart rate during sleep by wearing the watch during the night.

We first create a personal baseline over a couple of nights, then every morning compare the recording with the previous baseline.

Elevation of the resting heart rate over the baseline could indicate an infection.

We display a green/โœ… (not elevated) red/โ— (elevated) symbol on the apple watch face and anonymously collect the data into a public database.

Other factors could elevate the resting heart rate, such as:

  • high stress
  • Alcohol
  • lack of sleep.
  • ... But the user is usually aware of them.

I expect this to have a fairly low false-negative rate (high sensitivity) but a pretty high false-positive rate (low specificity).

Method of collection

Apple watch collects heart rate data continuously. The users would ideally wear the watch during the night.

Data is extracted from the Apple HealtKit API in the morning, and resting heart rate elevation calculated.

Collecting with a phone (without apple watch)

Resting Heart Rate can be measured with a smartphone app Instant Heart Rate4 (clinically validated) and anonymously transferred to the Infection Alert app using the Azumio Connect SDK.3

Care must be taken that all resting heart rate measurements are done at approximately the same time daily and in sitting resting state.

Creating a global map of resting heart rate elevations

Let's anonymously collect all resting heart rate data from users who want to participate. With enough coverage, we can create an infection spread map.

What to collect (per user per day):

  • daily heart rate measurements (close to raw data for tracking back and recalculation with a better algorithm)
    • heart rate
    • timestamp
    • activity level
  • daily resting heart rate and elevation above the resting heart rate
  • location of the user (could randomly blur the exact location to protect privacy)
  • unique id of the user (randomly generated on the device at install time)

Data availability

All anonymized data is stored in a publicly accessible repository, so any researcher can have free access to it.

Dashboards can be built...

Technical implementation

Backend for storing

Google BigQuery for storing, heart rate and location data.

HeartRate:

  • userid
  • location
  • timestamp
  • day
  • baseline
  • heart rate
  • raw data records
    • timestamp
    • heart rate
    • motion

About Author

I'm Peter Kuhar, I've developed the most successful heart rate measurement app for iOS and Android. With more than 50M Downloads.

I've also participated in research regarding heart pulse signals, wearables... and lead internal research efforts.

This is a personal project outside my work at Azumio Inc.

References

[1] Harnessing wearable device data to improve state-level real-time surveillance of influenza-like illness in the USA: a population-based study - https://www.thelancet.com/journals/landig/article/PIIS2589-7500(19)30222-5/fulltext

[2] Digital Health: Tracking Physiomes and Activity Using Wearable Biosensors Reveals Useful Health-Related Information https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5230763/

[3] https://github.com/azumio/instantheartrate-connect-ios

infection-alert's People

Contributors

unrelatedlabs 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.