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

New acceleration table in DB #18

Open
2 tasks
watsonix opened this issue Apr 11, 2017 · 3 comments
Open
2 tasks

New acceleration table in DB #18

watsonix opened this issue Apr 11, 2017 · 3 comments
Assignees
Labels

Comments

@watsonix
Copy link
Collaborator

watsonix commented Apr 11, 2017

This will be a large amount of data (to get activity from acceleration we need many accelerometer readings). Point is eventually to exclude intense activity from HRV profiles. (body activity increases heart rate and distorts HRV readings)

  • Figure out how to store efficiently for later retrieval?
  • Should have user, mobile_time and acceleration (potentially multiple values) fields
@watsonix
Copy link
Collaborator Author

One simple way to get "activity" from acceleration readings is to just take the standard deviation of many acceleration values. Acceleration values should be sampled at the rate of 10s of milliseconds

@ayumi
Copy link
Collaborator

ayumi commented Apr 11, 2017

For reference: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-device-motion/

Properties
x: Amount of acceleration on the x-axis. (in m/s^2) (Number)
y: Amount of acceleration on the y-axis. (in m/s^2) (Number)
z: Amount of acceleration on the z-axis. (in m/s^2) (Number)
timestamp: Creation timestamp in milliseconds. (DOMTimeStamp)

@ayumi
Copy link
Collaborator

ayumi commented Apr 11, 2017

  • recording 10 measurements /sec for 16 hrs/day == 576,000 row/day /user (which is a lot)

  • suggestion: app samples 10 accelerometer readings /sec, then it calculates the average and uploads records at a slower interval – maybe an interval similar to the HRV uploads.

  • user_id

  • mobileTime (time of upload / end of interval)

  • x_average

  • y_average

  • z_average

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants