knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

In chapters 8, 9, and 10 we discussed the classification of sleep and in chapter 11 we discussed the classification of daytime physical behavioural classes. These are typically reported as time spent per behavioural class. An complementary way of describing the data is by looking at the fragmentation of these behaviours of time.

Defining fragments

In GGIR, a fragment for daytime is a defined as a sequence of epochs that belong to one of the four categories:

  1. Inactivity
  2. Light Physical Activity (LIPA)
  3. Moderate or Vigorous Physical Acitivty (MVPA)
  4. Physical activity (can be either LIPA or MVPA)

Each of these categories represents the combination of bouted and unbouted time in the respective categories. Inactivity and physical activity add up to a full day (outside SPT), as well as inactivity, LIPA and MVPA.

A fragment of SPT is defined as a sequence of epochs that belong to one of the four categories:

  1. Estimated sleep
  2. Estimated wakefulness
  3. Inactivity
  4. Physical activity (can be either LIPA or MVPA)

With parameter frag.metrics = "all" we can instruct GGIR part 5 to derive behavioural fragmentation metrics. You may want to consider combining this with parameter part5_agg2_60seconds=TRUE as that will aggregate the time series to 1 minute resolution as is common in behavioural fragmentation literature. GGIR part 6 performs fragmentation analysis when part6CR is set to TRUE. For this it uses the time series output generated in part 5 as discussed in the previous chapter.

GGIR derives fragmentation metrics in two ways:

Calculation per day allows us to explore and possibly account for behavioural differences between days of the week. However, a day level estimate could be considered less robust than the recording level estimates as generated in part 6.

The in internal function g.fragmentation for fragmentation metric calculation is used in both part 5 and 6 ensuring that the calculation are otherwise consistent.

Fragmentation metrics

Note that from the fragmentation metrics discussed below only fragmentation metrics TP and NFrag are calculated for the SPT fragments.

Conditions for calculation

To keep an overview of which recording days met the criteria for non-zero standard deviation and at least ten fragments, GGIR part 5 stores variable Nvaliddays_AL10F at person level (i.e., number of valid days with at least 10 fragments), and SD_dur (i.e., standard deviation of fragment durations) at day level as well as aggregated per person.

Key parameters

The parameters related to cut-points and bout detection are mainly the parameters listed under "Physical activity parameters".

Related output

In GGIR part 5 csv reports you will find:

In GGIR part 6 csv report you will find:

For an overview of output variables see the GGIR output annex.



wadpac/GGIR documentation built on March 5, 2025, 11 p.m.