Skip to content

Commit b106922

Browse files
committed
Some edits.
1 parent 13aa707 commit b106922

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

_02_Material.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ smoothed_qts |>
206206
Smoothed version of a centered QTS.
207207
:::
208208
209-
The code above illustrates some other nice S3 specializations implemented in the [{squat}](https://cran.r-project.org/package=squat/) package such as the `log()` and `exp()` functions to compute the logarithm and exponential of a unit QTS respectively. As mentioned in @sec-quaternions, the logarithm of a unit quaternion has a null scalar part, which is why we set the *w* coordinate to zero in the code above and only smooth the three other coordinates. @fig-smoothed-qts nicely shows the smoothing effect with subtle variations along the curves that are smoothed out.
209+
The code above illustrates some other nice S3 specializations implemented in the [{squat}](https://cran.r-project.org/package=squat/) package such as the `log()` and `exp()` functions to compute the logarithm and exponential of a unit QTS respectively. As mentioned in @sec-quaternions, the logarithm of a unit quaternion has a null scalar part, which is why we set the *w* coordinate to zero in the code above and only smooth the three other coordinates. The function `squat::qts2sqts()` is dedicated to performing this exact computation. @fig-smoothed-qts nicely shows the smoothing effect with subtle variations along the curves that are smoothed out.
210210
211211
### Pressure mat data
212212

_03_Methods.qmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Gait event detection is performed by evaluating and comparing two strategies to
66

77
Strategy E: Predicting gait [E]{.underline}vents
88

9-
: The strategy E pertains to directly predicting the gait events occuring when walking. Specifically, we classify the observations into five categories:
9+
: The strategy E pertains to directly predicting the gait events occuring when walking. Specifically, time points are viewed as statistical units (observations) and we aim at classifying them into five categories:
1010

1111
- *Right Heel Strike*,
1212
- *Left Toe Off*,
1313
- *Left Heel Strike*,
1414
- *Right Toe Off*,
1515
- *None* (all other times not corresponding to a certain event).
1616

17-
This strategy aims at directly predicting the occurrence of gait events of interest. However, it inherits by construction of a severe class imbalance effect, with the *None* class widely over-represented. Indeed, the class that represents all the times that do not belong to an event is clearly larger than the four other ones (see @tbl-class-imbalance). It is clearly represented on @fig-event-timeserie where we can see the event times from the GAITRite® mat overlaid on the QTS recorded by the IMU. Each colored point represents a different event and all other times belong to the *None* class.
17+
The first four events (RHS, LTO, LHS and RTO) are coined *events of interest* while the last one encodes the so-called *negative* class. While conveniently aiming at directly predicting the occurrence of gait events of interest, this strategy suffers from a severe class imbalance issue, with the *None* (negative) class being widely over-represented as summarized in @tbl-class-imbalance.
1818

1919
::: {#tbl-class-imbalance tbl-pos="H"}
2020

@@ -48,6 +48,8 @@ Strategy E: Count and proportion of observations in each class.
4848

4949
:::
5050

51+
Another way of showing this issue is to overlay the occurence of the events of interest detected by the GAITRite® mat on a QTS recorded by the IMU device (see @fig-event-timeserie). Each colored point represents an event of interest and all other times belong to the *None* class.
52+
5153
![Gait event occurences overlaid on a unit QTS.](images/events_on_time_serie_MSI_N_R2.png){#fig-event-timeserie width=350}
5254

5355
To mitigate this effect, when the mat records the occurence of a gait event of interest at a specific time point, we also label surrounding time points with the same event. The size of this window is controlled by a parameter $k$ which sets the number of preceding points labelled as the event of interest. It also allows to account for some uncertainty as the time range between two points is only 10 ms. For instance, if we set $k = 1$, we label $3$ observations as part of the event rather than just one. In this case, we consider that the event happens in a window of $20$ ms.

0 commit comments

Comments
 (0)