gw-sd-2016 / ChillOut

Adam Gray Senior Design Project
0 stars 0 forks source link

Winter break commit #4

Open agray123 opened 8 years ago

agray123 commented 8 years ago

@poorvi-vora

Added initial implementation of stress detection algorithm. Put simply, the time intervals between heartbeats, known as RR intervals, are used to calculate a a heart rate separate from the one the Band provides. A lower standard deviation of RR Intervals is known to be correlated with increased stress levels. When the newly calculated HR is substantially different from the one provided by the band, the standard deviation of RR intervals also increases. Using the newly calculated HR means not needing to regularly compute the standard deviation over several readings - making it more efficient and more accurate at a given point in time.

Stress detection has proven to be trickier than expected, which lead to a handful of minor setbacks. Also required substantial testing for extended periods of time, which made the process slower than expected as well. Notable files includes StressDetectorActivity.java