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

feat: detect activity bouts and calculate bout metrics #129

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Conversation

chanshing
Copy link
Member

@chanshing chanshing commented Sep 6, 2024

Detect bouts of activity and calculate bout metrics.

Result is a dataframe (each row is a bout) with the following columns:

  • StartTime: Bout start time.
  • EndTime: Bout end time.
  • Duration(mins): Bout duration (in minutes).
  • TimeSinceLast(mins): Time since end of last bout (in minutes).
  • Steps: Number of steps in the bout.
  • Cadence(steps/min): Bout cadence (steps per minute).
  • CadenceSD(steps/min): Bout cadence standard deviation (steps per minute).
  • Cadence25th(steps/min): 25th percentile cadence (steps per minute) in the bout.
  • Cadence50th(steps/min): Median cadence (steps per minute) in the bout.
  • Cadence75th(steps/min): 75th percentile cadence (steps per minute) in the bout.
  • ENMO(mg): Bout mean ENMO (milli-g).
  • ENMOMed(mg): Bout median ENMO (milli-g).

Output file: <input-file>-Bouts.csv.gz

@chanshing chanshing force-pushed the feat/bouts branch 5 times, most recently from caece58 to 5320e36 Compare September 6, 2024 23:03
@chanshing chanshing force-pushed the feat/bouts branch 2 times, most recently from 59d0ffb to 0d35044 Compare September 16, 2024 17:36
Result is a dataframe (each row is a bout) with the following columns:

- StartTime: Bout start time.
- EndTime: Bout end time.
- Duration(mins): Bout duration (in minutes).
- TimeSinceLast(mins): Time since end of last bout (in minutes).
- Steps: Number of steps in the bout.
- Cadence(steps/min): Bout cadence (steps per minute).
- CadenceSD(steps/min): Bout cadence standard deviation (steps per minute).
- Cadence25th(steps/min): 25th percentile cadence (steps per minute) in the bout.
- Cadence50th(steps/min): Median cadence (steps per minute) in the bout.
- Cadence75th(steps/min): 75th percentile cadence (steps per minute) in the bout.
- ENMO(mg): Bout mean ENMO (milli-g).
- ENMOMed(mg): Bout median ENMO (milli-g).

Output file: <input-file>-Bouts.csv.gz
@chanshing chanshing merged commit 45f9c36 into main Sep 16, 2024
9 checks passed
@chanshing chanshing deleted the feat/bouts branch September 16, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant