jfslin commited on
Commit
4ce7758
·
verified ·
1 Parent(s): 702c817

Spec: describe only files this dataset contains (drop meta-debug.json, gps.csv)

Browse files
Files changed (1) hide show
  1. data/data_dictionary.md +24 -44
data/data_dictionary.md CHANGED
@@ -2,9 +2,9 @@
2
 
3
  This document has two parts:
4
 
5
- 1. **The LEVEL session format** -- what the LEVEL Collector app writes for every recording: the files,
6
- their columns, units and clocks.
7
- 2. **This dataset** -- how the recordings are organized here, what was added (run info, a
8
  coordinate-free GPS profile, the watch data, the session table), and how they were de-identified.
9
 
10
  Conventions used throughout: times are **integer microseconds since the Unix epoch (UTC)** unless stated
@@ -25,8 +25,7 @@ by their time column without any offset.
25
  |---|---|---|
26
  | `imu-<placement>-<id>.csv` | always, one per LEVEL sensor | accelerometer + gyroscope samples |
27
  | `meta-summary.json` | always | app, session timing, sensors, transports, settings, file list |
28
- | `meta-debug.json` | most sessions (debug builds of the app) | diagnostics: phone battery, phone model, other Bluetooth devices, the sensor time-sync result. **Not published in this dataset**: its values are columns of `context/session_context.csv` (2.2) |
29
- | `barometer.csv`, `steps.csv`, `gps.csv` | when the phone sensor is enabled | phone streams |
30
  | `polar_<id>_{hr,ecg,acc}.csv` | when a Polar H10 is paired | chest-strap add-on streams |
31
 
32
  ### 1.2 LEVEL sensor -- `imu-<placement>-<id>.csv`
@@ -45,9 +44,9 @@ numeric order.
45
  | `time_sensor` | ms | the sensor's own clock, 16-bit (wraps every 65.5 s); absent in the earliest app build |
46
  | `time_host` | ms | host clock when the packet arrived (bursty; recordings from 2026-09 on) |
47
 
48
- The sampling rate is in `meta-summary.json` (`settings`); samples per packet too for `schema_version` 1,
49
- in `meta-debug.json` (`settings`) from `schema_version` 2 (`lvl_running.Session.settings` merges both; in this
50
- dataset it is the `samples_per_packet` column of `context/session_context.csv`). Recordings made
51
  before LEVEL Collector's 2026-09 rename call `frame_sensor` / `time_sensor` `frame_number` /
52
  `raw_counter`; this dataset publishes them under the current names.
53
 
@@ -84,33 +83,14 @@ before LEVEL Collector's 2026-09 rename call `frame_sensor` / `time_sensor` `fra
84
  | `files[]` | per file: `name`, `modality` (e.g. `ACCEL_GYRO`), `shortMac`, `rotationCount`, `units` |
85
  | `notes`, `uncleanShutdown` | free text; schema 1's flag for a session the app was closed during (schema 2: `session.endReason`) |
86
 
87
- ### 1.4 `meta-debug.json` (schema_version 2 to 5)
88
-
89
- *Part of the LEVEL format, but not published in this dataset (like the app's other diagnostic files):
90
- the values a reader needs are columns of `context/session_context.csv` (2.2) and `sessions.csv` (2.5).*
91
-
92
- | Key | Meaning |
93
- |---|---|
94
- | `phoneBattery.start` / `.end` | `percent`, `voltageMv`, `temperatureC` of the host phone |
95
- | `settings.samples_per_packet` | samples per radio packet (schema 5, alongside meta-summary schema 2) |
96
- | `sensorTimeSync.mode` | the time-sync mode used (e.g. `HARDWARE_TS_TB`) |
97
- | `sensorTimeSync.verdict` | `ALIGNED` or `MISALIGNED`: whether the sensors' clocks agreed |
98
- | `sensorTimeSync.sensors[]` | per sensor: `shortMac`, `label`, `clockOffsetVsBeaconMs`, `aligned`. `clockOffsetVsBeaconMs` = the median of (`time` − `time_host`) over the sensor's last 200 samples, minus the same for the reference sensor, in ms, taken when the session ends; the reference sensor reads 0, and \|offset\| ≤ 50 ms counts as aligned. It is one end-of-session value, not a maximum |
99
- | `phone` | host phone: `manufacturer`, `model`, `device`, `androidRelease`, `sdkInt` (app builds from 2026-09-21) |
100
- | `bluetooth[]` | every *other* Bluetooth device connected during the session (LEVEL sensors excluded): `shortMac`, `deviceClass` (e.g. `AUDIO_VIDEO_HEADPHONES`, `WEARABLE`), `firstSeenMs` / `lastSeenMs` (session-relative), `presentAtStart`, `presentAtEnd`, `connectCount` (app builds from 2026-09-21; device names are removed in this dataset) |
101
-
102
- A `MISALIGNED` verdict means timing *between* sensors (e.g. left vs right foot) is unreliable in that
103
- session; each sensor's own signal is unaffected.
104
-
105
- ### 1.5 Phone streams
106
 
107
  | File | Columns |
108
  |---|---|
109
  | `barometer.csv` | `timestamp` (us), `pressure_hPa`, `altitude_m` (barometric), ~1 Hz |
110
  | `steps.csv` | `timestamp` (us), `step_count` -- one row per step detected by the phone, counting from 1 |
111
- | `gps.csv` | `Timestamp` (us), `Latitude`, `Longitude` (deg), `Accuracy_m`, `Speed_mps`, `Bearing_deg`, `Altitude_m`, `Provider` |
112
 
113
- ### 1.6 Polar H10 chest strap -- `polar_<id>_{hr,ecg,acc}.csv`
114
 
115
  | File | Columns |
116
  |---|---|
@@ -122,7 +102,7 @@ The strap sends samples in batches, so one `RECEIVED_TIMESTAMP` (the host clock
122
  with the rest of the session) repeats across a batch. `DEVICE_TIMESTAMP` is the strap's own clock: use
123
  its differences for sample spacing, and `RECEIVED_TIMESTAMP` to align with the other streams.
124
 
125
- ### 1.7 Time and units
126
 
127
  Every timestamp on the session clock is an integer in **microseconds**, so any two files align
128
  directly. Clocks that belong to a device keep that device's native unit.
@@ -133,12 +113,11 @@ directly. Clocks that belong to a device keep that device's native unit.
133
  | `time_sensor` | `imu-*.csv` | the LEVEL sensor's own clock | ms |
134
  | `time_host` | `imu-*.csv` | the host clock at packet arrival | ms |
135
  | `timestamp` | `barometer.csv`, `steps.csv` | session clock | us |
136
- | `Timestamp` | `gps.csv` | session clock | us |
137
  | `time_us` | `pace_profile.csv` | session clock | us |
138
  | `RECEIVED_TIMESTAMP` | `polar_*.csv` | session clock, at arrival | us |
139
  | `DEVICE_TIMESTAMP` | `polar_*_ecg.csv`, `polar_*_acc.csv` | the strap's own clock | ns |
140
  | `time`, `start_time` | `fit3/*.csv` | session clock | us |
141
- | keys ending in `Ms` | `meta-*.json` | as named (epoch or session-relative) | ms |
142
 
143
  ---
144
 
@@ -182,10 +161,10 @@ them, so the folders are anonymous on their own and this file sets the release's
182
  | `terminated_early` | `true` when the recording did not cover the whole run or event |
183
  | `unreliable_sensors` | `;`-list of placements whose data should not be used in that session (e.g. a sensor that came loose); `null` when all are usable |
184
  | `clock` | `synthetic` or `real` (see 2.6) |
185
- | `gps` | `profile` (coordinate-free `pace_profile.csv` only) or `route` (also the raw `gps.csv`) |
186
  | `time_method` | how `time` was placed on the host clock (1.2.1): `first_sample_anchor` |
187
- | `time_sync_mode`, `time_sync_verdict` | the sensor time-sync mode and its result, `ALIGNED` / `MISALIGNED` (1.4); `null` when that app build did not record it |
188
- | `samples_per_packet` | samples per radio packet, where the app recorded it outside `meta-summary.json` |
189
  | `phone_model` | the recording phone (manufacturer and model) |
190
  | `bluetooth_devices` | other Bluetooth devices connected to the phone during the session, as recorded by the app: `;`-list of `headphones` / `watch` / `other`, or `none`; `null` for app builds before 2026-09-21 |
191
  | `phone_battery_start_pct`, `phone_battery_end_pct`, `phone_temp_start_c`, `phone_temp_end_c` | the recording phone's battery level and temperature at the start and end |
@@ -248,7 +227,7 @@ One row per session; columns in groups, read left to right.
248
  | | `long_gaps_per_hour` | gaps longer than 150 ms (3 or more lost packets) per hour of recording, worst sensor: separates a clean link from a bursty one when `loss_pct` is similar |
249
  | | `data_ends_early_s` | seconds between the end of the session and the last sample of the sensor that stopped first; ~0-10 s is normal, more means a sensor or the link stopped before the recording did |
250
  | | `terminated_early` | from `context/session_context.csv` |
251
- | | `time_sync_verdict` | `ALIGNED` / `MISALIGNED` (1.4), from `context/session_context.csv` |
252
  | | `unreliable_sensors` | from `context/session_context.csv` |
253
  | | `phone_battery_start_pct`, `phone_battery_end_pct`, `phone_temp_start_c`, `phone_temp_end_c` | host phone, from `context/session_context.csv` |
254
  | | `sensor_voltage_start_v`, `sensor_voltage_end_v`, `sensor_temp_start_c`, `sensor_temp_end_c` | LEVEL sensors: lowest voltage and highest temperature across the sensors, from `context/session_context.csv` |
@@ -281,26 +260,27 @@ the context. The analysis reports may name public events in prose.
281
  here.)
282
  - **Location.** Every run's GPS route is released only as `pace_profile.csv` (no coordinates,
283
  heading or place names; distance and elevation relative to the first fix), and `barometer.csv` is
284
- relative to its first sample -- no absolute altitude or air pressure. (`context/session_context.csv` `gps` =
285
- `profile`; `route`, with the raw `gps.csv`, is allowed by the format but unused here.)
286
  - **Devices.** Sensor and strap ids are pseudonyms assigned per participant (`0000`, `1111`, ... in
287
  order of first use), so the same physical unit carries a different id under each participant and
288
  shared equipment never links two people. Within a participant an id always means the same unit. The
289
  host's USB device path is removed.
290
- - **Time sync.** Only the result is published (mode, verdict, per-sensor offset); how the sensor clocks
291
- are synchronized is not.
292
  - **Heart.** Every participant with a chest strap has heart rate and RR intervals (HRV is derivable);
293
  the raw ECG waveform is included only where the participant agreed to its release (S01: yes).
294
- - **Other Bluetooth devices.** Their advertised names (often personal) are removed; class and timing
295
- are kept.
296
  - **Watch.** Re-written into our schema (2.4): no account ids, other workouts, free text or route.
297
  - **Named locations.** A run's place is published only where the participant chose to (`location` in
298
  `context/session_context.csv`); the route itself is still coordinate-free and the clock still synthetic.
299
  - **Notes.** The only free text released is the session's `notes` (2.2) and the operator's `notes` in
300
  `meta-summary.json`; neither carries names, initials, place names (a published location is simply
301
  omitted there) or, on synthetic-clock runs, clock times.
302
- - **Not released:** calibration recordings, any participant who did not agree to release, `gps.csv` for route-anonymized runs, the watch's route,
303
- the Samsung export files, raw ECG for participants who did not opt in, the collection-day notes, and the app's debug log and link telemetry.
 
 
304
 
305
  ### 2.7 `context/participants.csv`
306
 
 
2
 
3
  This document has two parts:
4
 
5
+ 1. **The LEVEL session format** -- the files of a LEVEL Collector recording that this dataset
6
+ contains: their columns, units and clocks.
7
+ 2. **This dataset** -- how the recordings are organized here, what was added (the session context, a
8
  coordinate-free GPS profile, the watch data, the session table), and how they were de-identified.
9
 
10
  Conventions used throughout: times are **integer microseconds since the Unix epoch (UTC)** unless stated
 
25
  |---|---|---|
26
  | `imu-<placement>-<id>.csv` | always, one per LEVEL sensor | accelerometer + gyroscope samples |
27
  | `meta-summary.json` | always | app, session timing, sensors, transports, settings, file list |
28
+ | `barometer.csv`, `steps.csv` | when the phone sensor is enabled | phone streams |
 
29
  | `polar_<id>_{hr,ecg,acc}.csv` | when a Polar H10 is paired | chest-strap add-on streams |
30
 
31
  ### 1.2 LEVEL sensor -- `imu-<placement>-<id>.csv`
 
44
  | `time_sensor` | ms | the sensor's own clock, 16-bit (wraps every 65.5 s); absent in the earliest app build |
45
  | `time_host` | ms | host clock when the packet arrived (bursty; recordings from 2026-09 on) |
46
 
47
+ The sampling rate is in `meta-summary.json` (`settings`). Samples per packet is there too for
48
+ `schema_version` 1; for `schema_version` 2 it is the `samples_per_packet` column of
49
+ `context/session_context.csv`. Recordings made
50
  before LEVEL Collector's 2026-09 rename call `frame_sensor` / `time_sensor` `frame_number` /
51
  `raw_counter`; this dataset publishes them under the current names.
52
 
 
83
  | `files[]` | per file: `name`, `modality` (e.g. `ACCEL_GYRO`), `shortMac`, `rotationCount`, `units` |
84
  | `notes`, `uncleanShutdown` | free text; schema 1's flag for a session the app was closed during (schema 2: `session.endReason`) |
85
 
86
+ ### 1.4 Phone streams
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
  | File | Columns |
89
  |---|---|
90
  | `barometer.csv` | `timestamp` (us), `pressure_hPa`, `altitude_m` (barometric), ~1 Hz |
91
  | `steps.csv` | `timestamp` (us), `step_count` -- one row per step detected by the phone, counting from 1 |
 
92
 
93
+ ### 1.5 Polar H10 chest strap -- `polar_<id>_{hr,ecg,acc}.csv`
94
 
95
  | File | Columns |
96
  |---|---|
 
102
  with the rest of the session) repeats across a batch. `DEVICE_TIMESTAMP` is the strap's own clock: use
103
  its differences for sample spacing, and `RECEIVED_TIMESTAMP` to align with the other streams.
104
 
105
+ ### 1.6 Time and units
106
 
107
  Every timestamp on the session clock is an integer in **microseconds**, so any two files align
108
  directly. Clocks that belong to a device keep that device's native unit.
 
113
  | `time_sensor` | `imu-*.csv` | the LEVEL sensor's own clock | ms |
114
  | `time_host` | `imu-*.csv` | the host clock at packet arrival | ms |
115
  | `timestamp` | `barometer.csv`, `steps.csv` | session clock | us |
 
116
  | `time_us` | `pace_profile.csv` | session clock | us |
117
  | `RECEIVED_TIMESTAMP` | `polar_*.csv` | session clock, at arrival | us |
118
  | `DEVICE_TIMESTAMP` | `polar_*_ecg.csv`, `polar_*_acc.csv` | the strap's own clock | ns |
119
  | `time`, `start_time` | `fit3/*.csv` | session clock | us |
120
+ | keys ending in `Ms` | `meta-summary.json` | as named (epoch or session-relative) | ms |
121
 
122
  ---
123
 
 
161
  | `terminated_early` | `true` when the recording did not cover the whole run or event |
162
  | `unreliable_sensors` | `;`-list of placements whose data should not be used in that session (e.g. a sensor that came loose); `null` when all are usable |
163
  | `clock` | `synthetic` or `real` (see 2.6) |
164
+ | `gps` | `profile`: the phone GPS track is released only as the coordinate-free `pace_profile.csv` (2.3) |
165
  | `time_method` | how `time` was placed on the host clock (1.2.1): `first_sample_anchor` |
166
+ | `time_sync_mode`, `time_sync_verdict` | the sensor time-sync mode (e.g. `HARDWARE_TS_TB`) and its result: `ALIGNED` when every sensor's clock agreed with the reference sensor's within 50 ms at the end of the session, else `MISALIGNED`. `MISALIGNED` means timing *between* sensors (e.g. left vs right foot) is unreliable in that session; each sensor's own signal is unaffected. `null` when that app build did not record it |
167
+ | `samples_per_packet` | samples per radio packet, for recordings whose `meta-summary.json` (schema 2) does not carry it |
168
  | `phone_model` | the recording phone (manufacturer and model) |
169
  | `bluetooth_devices` | other Bluetooth devices connected to the phone during the session, as recorded by the app: `;`-list of `headphones` / `watch` / `other`, or `none`; `null` for app builds before 2026-09-21 |
170
  | `phone_battery_start_pct`, `phone_battery_end_pct`, `phone_temp_start_c`, `phone_temp_end_c` | the recording phone's battery level and temperature at the start and end |
 
227
  | | `long_gaps_per_hour` | gaps longer than 150 ms (3 or more lost packets) per hour of recording, worst sensor: separates a clean link from a bursty one when `loss_pct` is similar |
228
  | | `data_ends_early_s` | seconds between the end of the session and the last sample of the sensor that stopped first; ~0-10 s is normal, more means a sensor or the link stopped before the recording did |
229
  | | `terminated_early` | from `context/session_context.csv` |
230
+ | | `time_sync_verdict` | `ALIGNED` / `MISALIGNED`, from `context/session_context.csv` (2.2) |
231
  | | `unreliable_sensors` | from `context/session_context.csv` |
232
  | | `phone_battery_start_pct`, `phone_battery_end_pct`, `phone_temp_start_c`, `phone_temp_end_c` | host phone, from `context/session_context.csv` |
233
  | | `sensor_voltage_start_v`, `sensor_voltage_end_v`, `sensor_temp_start_c`, `sensor_temp_end_c` | LEVEL sensors: lowest voltage and highest temperature across the sensors, from `context/session_context.csv` |
 
260
  here.)
261
  - **Location.** Every run's GPS route is released only as `pace_profile.csv` (no coordinates,
262
  heading or place names; distance and elevation relative to the first fix), and `barometer.csv` is
263
+ relative to its first sample -- no absolute altitude or air pressure.
 
264
  - **Devices.** Sensor and strap ids are pseudonyms assigned per participant (`0000`, `1111`, ... in
265
  order of first use), so the same physical unit carries a different id under each participant and
266
  shared equipment never links two people. Within a participant an id always means the same unit. The
267
  host's USB device path is removed.
268
+ - **Time sync.** Only the result is published (mode and verdict); how the sensor clocks are
269
+ synchronized is not.
270
  - **Heart.** Every participant with a chest strap has heart rate and RR intervals (HRV is derivable);
271
  the raw ECG waveform is included only where the participant agreed to its release (S01: yes).
272
+ - **Other Bluetooth devices.** Only their type is published (`headphones`, `watch`, `other`); names
273
+ (often personal) and addresses are not.
274
  - **Watch.** Re-written into our schema (2.4): no account ids, other workouts, free text or route.
275
  - **Named locations.** A run's place is published only where the participant chose to (`location` in
276
  `context/session_context.csv`); the route itself is still coordinate-free and the clock still synthetic.
277
  - **Notes.** The only free text released is the session's `notes` (2.2) and the operator's `notes` in
278
  `meta-summary.json`; neither carries names, initials, place names (a published location is simply
279
  omitted there) or, on synthetic-clock runs, clock times.
280
+ - **Not released:** calibration recordings, any participant who did not agree to release, the raw GPS
281
+ route (phone and watch), the Samsung export files, raw ECG for participants who did not opt in, the
282
+ collection-day notes, and the app's diagnostic files (its values that matter are in
283
+ `context/session_context.csv`).
284
 
285
  ### 2.7 `context/participants.csv`
286