josefheidler commited on
Commit
6108092
·
verified ·
1 Parent(s): 8758618

v1.1.0: document corrected axis orientation

Browse files
Files changed (1) hide show
  1. README.md +13 -10
README.md CHANGED
@@ -221,20 +221,23 @@ Accelerometer values use the **hub standard axis convention**, shared across all
221
 
222
  Harmonized accelerometer data is presented in a **front-thigh frame** — as if the sensor were mounted on the anterior surface of the dominant thigh. The physical sensor (Axivity AX6) was originally worn on the **lateral side of the dominant thigh** (midway between hip and knee); corrections transform the native lateral-thigh axes to the front-thigh convention.
223
 
224
- Native lateral-thigh axes depend on which thigh (standing upright):
225
 
226
- | axis | right thigh (original placement) | left thigh (original placement) |
227
- |------|----------------------------------|----------------------------------|
228
- | x | down | down |
229
- | y | right (laterally outward) | left (laterally outward) |
230
- | z | backward | forward |
231
 
232
- The left-thigh z is forward (not backward) because the mirrored placement rotates the device ≈180° around the long axis, flipping y and z simultaneously.
233
 
234
- Correction applied to reach front-thigh (hub) frame — x=up, y=right, z=forward:
235
 
236
- - **Right-dominant**: negate x and z — `acc_x ← -acc_x`, `acc_z -acc_z`.
237
- - **Left-dominant**: negate x and y — `acc_x ← -acc_x`, `acc_y ← -acc_y`.
 
 
 
238
 
239
  `plucky-python` and `royal-robin` have `dominant_leg` overridden to `right` per the upstream `code/main.ipynb` correction, so they receive the right-dominant correction path.
240
 
 
221
 
222
  Harmonized accelerometer data is presented in a **front-thigh frame** — as if the sensor were mounted on the anterior surface of the dominant thigh. The physical sensor (Axivity AX6) was originally worn on the **lateral side of the dominant thigh** (midway between hip and knee); corrections transform the native lateral-thigh axes to the front-thigh convention.
223
 
224
+ Native lateral-thigh axes, **verified from the raw sit/cycling ground truth** (median gravity per posture), standing upright:
225
 
226
+ | axis | meaning | right thigh | left thigh |
227
+ |------|----------------------|-------------|------------|
228
+ | x | long axis | down | down |
229
+ | y | anterior–posterior | +y backward | +y forward |
230
+ | z | medio-lateral | lateral | lateral |
231
 
232
+ The anterior–posterior axis is **y** (not z), and the medio-lateral axis is **z** — the reverse of an earlier assumption that rotated the harmonized frame 90° (anterior gravity landed on −y). The y-sign is mirrored between sides because the mirrored placement rotates the device ≈180° about the long axis.
233
 
234
+ Correction applied to reach front-thigh (hub) frame — x=up, y=right, z=forward — a proper rotation:
235
 
236
+ - **Both**: `acc_x ← -acc_x` (long axis up).
237
+ - **Right-dominant**: `acc_y ← -acc_z`, `acc_z ← -acc_y`.
238
+ - **Left-dominant**: `acc_y ← acc_z`, `acc_z ← acc_y`.
239
+
240
+ A per-subject safety normalization then enforces sitting `acc_z` positive (falling back to cycling), guarding against any mislabeled dominant leg. Verified: **every subject reads sitting acc_z positive** (and cycling acc_z positive), matching the other thigh datasets on this hub.
241
 
242
  `plucky-python` and `royal-robin` have `dominant_leg` overridden to `right` per the upstream `code/main.ipynb` correction, so they receive the right-dominant correction path.
243