Datasets:
Document full schema with per-caller onset/offset fields
Browse files
README.md
CHANGED
|
@@ -117,17 +117,104 @@ The flat WAV mirrors are best-effort: HuggingFace caps each directory at 10 000
|
|
| 117 |
|
| 118 |
## Data fields (parquet)
|
| 119 |
|
| 120 |
-
|
| 121 |
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|---|---|---|
|
| 124 |
-
| `
|
| 125 |
-
| `
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
|
| 130 |
-
Each bucket
|
| 131 |
|
| 132 |
> **Note on bird identity.** Backpack color codes are experiment-local identifiers, not global bird IDs. A color reused across experiments (e.g. `red` in BP01 and BP02) refers to two different physical individuals; all 10 released birds are distinct.
|
| 133 |
|
|
|
|
| 117 |
|
| 118 |
## Data fields (parquet)
|
| 119 |
|
| 120 |
+
Each parquet row is one vocalization event. Most binary array columns are NumPy `np.save()` output; load them with `np.load(io.BytesIO(row[col]))`.
|
| 121 |
|
| 122 |
+
### Identity & metadata
|
| 123 |
+
|
| 124 |
+
| Field | Type | Description |
|
| 125 |
+
|---|---|---|
|
| 126 |
+
| `id` | string | Globally unique row identifier: `"{experiment}/{video_stem}/{mid_frame}/{bird_name}"` |
|
| 127 |
+
| `experiment` | string | One of `juvExpBP01`, `juvExpBP02`, `juvExpBP05` |
|
| 128 |
+
| `date` | string | Recording date `YYYY-MM-DD` |
|
| 129 |
+
| `video_stem` | string | Source recording stem (e.g. `BP_2021-08-05_08-40-49_416952_0460000`) |
|
| 130 |
+
| `bird_name` | string | Internal vocalizer ID (per-experiment, e.g. `b14o14_j`) |
|
| 131 |
+
| `bird_color` | string | Vocalizer's backpack color (per-experiment identifier; not global) |
|
| 132 |
+
| `vocalizer_idx` | int32 | Vocalizer's index within this experiment's bird set (0-based) |
|
| 133 |
+
|
| 134 |
+
### Event timing (this row's vocalization)
|
| 135 |
+
|
| 136 |
+
| Field | Type | Description |
|
| 137 |
+
|---|---|---|
|
| 138 |
+
| `event_onset_sec` | float32 | Voc onset in seconds, relative to the source recording |
|
| 139 |
+
| `event_offset_sec` | float32 | Voc offset in seconds, relative to the source recording |
|
| 140 |
+
| `event_onset_frame` | int32 | Voc onset in 47.68 fps video frames |
|
| 141 |
+
| `event_offset_frame` | int32 | Voc offset in 47.68 fps video frames |
|
| 142 |
+
| `context_pad_sec` | float32 | Audio/video pad on each side of the event (≈0.01 for `overlap`, 2.0 for the `*_padded` buckets) |
|
| 143 |
+
| `n_frames` | int32 | Number of video frames covered by the keypoint window |
|
| 144 |
+
|
| 145 |
+
### Audio & accelerometer
|
| 146 |
+
|
| 147 |
+
| Field | Type | Description |
|
| 148 |
+
|---|---|---|
|
| 149 |
+
| `audio` | bytes | NumPy-serialized `(5, T)` float32 array — 5 cage microphones at 24,414 Hz, padded by `context_pad_sec` on each side |
|
| 150 |
+
| `audio_path` | string | Path to a separately exported multichannel WAV mirror (best-effort, see Release contents) |
|
| 151 |
+
| `accelerometer` | bytes | NumPy-serialized `(N_birds, T)` float32 array — per-bird on-body vibration channel at 24,414 Hz, used as the verification oracle |
|
| 152 |
+
| `accelerometer_path` | string | Path to a separately exported multichannel WAV mirror (best-effort) |
|
| 153 |
+
| `video_path` | string | Path to a composite multi-view MP4 (top, back, side) — `null` if not available |
|
| 154 |
+
|
| 155 |
+
### 3D pose (every visible bird, every frame)
|
| 156 |
+
|
| 157 |
+
5 keypoints per bird: `beak`, `head`, `backpack`, `tail base`, `tail tip`.
|
| 158 |
+
|
| 159 |
+
| Field | Type | Description |
|
| 160 |
+
|---|---|---|
|
| 161 |
+
| `keypoints_3d` | bytes | NumPy `(T_frames, N_birds, 5, 3)` float32 — 3D positions triangulated from top + back views, in BirdPark cage coordinates (mm) |
|
| 162 |
+
| `keypoints_2d_top` | bytes | NumPy `(T_frames, N_birds, 5, 2)` float32 — 2D keypoints in the top-camera image (pixels) |
|
| 163 |
+
| `keypoints_2d_back` | bytes | NumPy `(T_frames, N_birds, 5, 2)` float32 — 2D keypoints in the back-camera image (pixels) |
|
| 164 |
+
|
| 165 |
+
Per-frame indexing: bird `i`'s keypoint `k` at frame `t` is `kp3d[t, i, k]` (and similarly for the 2D arrays). NaN values may appear in rows that were extracted under a lenient filter (see *Lenient extraction*, below). Bird index → bird color/name mapping is fixed within an experiment (see `metadata.json`).
|
| 166 |
+
|
| 167 |
+
### Radio telemetry (every visible bird, every frame)
|
| 168 |
+
|
| 169 |
+
Per-bird FM radio signals from a 4-antenna receiver array (4 antennas: A, B, C, D; M = mean over antennas). Each is a NumPy `(N_birds, T_radio)` float32 byte blob.
|
| 170 |
+
|
| 171 |
+
| Field | Description |
|
| 172 |
+
|---|---|
|
| 173 |
+
| `radio_frq` | Per-bird FM carrier frequency offset (Hz) |
|
| 174 |
+
| `radio_thetaS` | Source-side phase used for triangulation |
|
| 175 |
+
| `radio_thetaA / B / C / D` | Per-antenna received phase (rad) |
|
| 176 |
+
| `radio_phiA / B / C / D / M` | Per-antenna and mean phase difference (rad) |
|
| 177 |
+
| `radio_powRA / B / C / D / M` | Per-antenna and mean received power (linear) |
|
| 178 |
+
| `radio_powNA / B / C / D / M` | Per-antenna and mean noise floor (linear) |
|
| 179 |
+
|
| 180 |
+
### Overlap-event metadata (`overlap` and `overlap_padded` only)
|
| 181 |
+
|
| 182 |
+
These rows belong to **multi-caller** events: the audio window contains vocalizations from ≥2 birds at once. The fields below describe every concurrent vocalization that overlapped with this row's bird in any +/-PAD_SEC sliding window (including the row's own voc), enabling per-caller source separation, per-caller vocal-activity-detection, etc.
|
| 183 |
+
|
| 184 |
+
There are **two views** of the same multi-caller event, kept separate for compatibility:
|
| 185 |
+
|
| 186 |
+
#### Color-set view (existing fields, unique colors)
|
| 187 |
+
|
| 188 |
+
| Field | Type | Description |
|
| 189 |
|---|---|---|
|
| 190 |
+
| `overlap_callers` | list[string] | Backpack colors of all concurrent callers, **deduplicated** and sorted alphabetically (e.g. `['blue', 'white']`) |
|
| 191 |
+
| `overlap_count` | int32 | `len(overlap_callers)` — number of unique caller-birds in the event |
|
| 192 |
+
|
| 193 |
+
#### Vocalization-list view (new fields, one entry per voc)
|
| 194 |
+
|
| 195 |
+
These six lists are **parallel** (same length, same index order — sorted by `bird_color`, ties broken by onset). Length is `overlap_voc_count`, which can be larger than `overlap_count` if the same bird vocalized more than once in the active window or if the row participated in two adjacent overlap windows that share a partner.
|
| 196 |
+
|
| 197 |
+
| Field | Type | Description |
|
| 198 |
+
|---|---|---|
|
| 199 |
+
| `overlap_caller_bird_names` | list[string] | Internal bird names (e.g. `'b14o14_j'`) — one per voc |
|
| 200 |
+
| `overlap_caller_bird_colors` | list[string] | Backpack colors (may contain duplicates), same order as bird_names |
|
| 201 |
+
| `overlap_caller_onset_sec` | list[float32] | Each voc's onset in seconds (same time frame as `event_onset_sec`) |
|
| 202 |
+
| `overlap_caller_offset_sec` | list[float32] | Each voc's offset in seconds |
|
| 203 |
+
| `overlap_caller_onset_frame` | list[int32] | Each voc's onset in 47.68 fps video frames |
|
| 204 |
+
| `overlap_caller_offset_frame` | list[int32] | Each voc's offset in 47.68 fps video frames |
|
| 205 |
+
| `overlap_voc_count` | int32 | `len(overlap_caller_bird_names)` |
|
| 206 |
+
|
| 207 |
+
> **Tip.** To find when caller `'white'` is vocalizing inside this event, do `i = overlap_caller_bird_colors.index('white'); on, off = overlap_caller_onset_sec[i], overlap_caller_offset_sec[i]`. If `'white'` appears multiple times (multiple vocs from the same bird), iterate through all matches.
|
| 208 |
+
|
| 209 |
+
### Lenient extraction
|
| 210 |
+
|
| 211 |
+
A small fraction of rows (~6% of `overlap` and `overlap_padded`) are extracted under a **lenient policy**: the per-frame motion-displacement filter is bypassed and any NaN keypoints are zero-filled. These rows have valid audio, radio, accelerometer, and event-timing fields but possibly noisier 3D pose. They are included so the bucket size matches the paper's event count.
|
| 212 |
+
|
| 213 |
+
You can recognise them by checking for any zeros (or large displacements) in `keypoints_3d`. Strictly extracted rows (under V33DA's normal filter) have all-finite keypoints with frame-to-frame displacement ≤ 40 px.
|
| 214 |
+
|
| 215 |
+
### Per-bucket metadata
|
| 216 |
|
| 217 |
+
Each bucket ships a `metadata.json` listing exact row counts, per-bird counts, schema, filter settings, frame rate, and pad-frame counts.
|
| 218 |
|
| 219 |
> **Note on bird identity.** Backpack color codes are experiment-local identifiers, not global bird IDs. A color reused across experiments (e.g. `red` in BP01 and BP02) refers to two different physical individuals; all 10 released birds are distinct.
|
| 220 |
|