Open Asanto32 opened 3 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.76%. Comparing base (
d0e9226
) to head (77b6d34
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Currently, there is support for three non-wear detection algorithms. "GGIR", CTA, and scikit DETACH.
The CTA and DETACH provide much higher temporal resolution (one minute and sub-second, respectively) compared to the 15minute GGIR resolution. Additionally, due to their algorithmic implementation, DETACH is much better at catching the start of a non-wear period (see images below).
Greg has suggested implementing a majority vote to decide non-wear time. One immediate issue: we lose the temporal sensitivity gained from the DETACH algorithm (probably not necessary?). How to upscale the temporal information for the other two algorithms? Linearly interpolate and then simply truncate/round back to 0/1? I would think that is more accurate then just holding/filling with the previous value?
Additionally, have requested manually rated non-wear periods, we can use this dataset to inform our decision.
Blocked on awaiting the manual ratings; if no movement on this by January 2025 ping again.
Resolves #14
This PR adds the combined temperature and acceleration (CTA) algorithm for non-wear detection.
TODO: