Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard-coded assumption about dynamic range of Axivity sensor when doing clipping detection. #284

Open
vincentvanhees opened this issue Apr 23, 2020 · 3 comments

Comments

@vincentvanhees
Copy link
Member

For most sensor brands that GGIR facilitates an assumption is made about the dynamic range of the sensor when testing for signal clipping: If more than 80% of a 15 minute window is near the dynamic range then the window is labelled as clipping and flagged for imputation. For GENEActiv, AX3, AX6, and Actigraph this threshold is set at 7.5 g .

If the dynamic range is actually less than this threshold then clipping detection will not work. It is less concerning if the dynamic range is higher because accelerating with 7.5 for 80% of the time is likely to be non human, regardless of sensor attachment location.

Nonetheless, it would be neater if GGIR could attempt to replace the hard-coded dynamic range assumptions by actual values, if available.

@xiangnandang
Copy link

@vincentvanhees , forgive my lack of understanding of some aspect in the current implementation, specifically around when a clipping happened for a portion of the data, what type of warning/messaging does end user receive in console/stdout, and does result (guessing from part 1) include the information that certain period data was imputed specifically due to clipping?

@vincentvanhees
Copy link
Member Author

In variable clipping_score in the output from part 2. On a side note - I am in the process of migrating all descriptions of output variables to the vignette, because these are currently half in vignette and half in more technical function documentation (the GGIR.pdf file).

@vincentvanhees
Copy link
Member Author

vincentvanhees commented Oct 21, 2021

Now reflecting on whether this issue can be closed:

  • For GENEActiv the dynamic range is constant
  • For ActiGraph the dynamic range of their main device models is automatically account for by GGIR.
  • For custom accelerometer formats the dynamic range is accounted for (see GGIR function read.myacc.csv)
  • For Axivity dynamic range is extracted but not accounted for I believe....

So, I guess this issue can be specific to Axivity data only. I will update the title.

@vincentvanhees vincentvanhees changed the title Hard-coded assumption about dynamic range when doing clipping detection. Hard-coded assumption about dynamic range of Axivity sensor when doing clipping detection. Oct 21, 2021
vincentvanhees added a commit that referenced this issue Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants