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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-sa-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- audio-classification
|
| 5 |
+
pretty_name: Engine Sound Windows (YouTube-derived, metadata-only)
|
| 6 |
+
tags:
|
| 7 |
+
- audio
|
| 8 |
+
- automotive
|
| 9 |
+
- engine-sounds
|
| 10 |
+
- youtube
|
| 11 |
+
- weak-supervision
|
| 12 |
+
size_categories:
|
| 13 |
+
- 1M<n<10M
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: default
|
| 16 |
+
data_files:
|
| 17 |
+
- split: train
|
| 18 |
+
path: data/train.parquet
|
| 19 |
+
- split: test
|
| 20 |
+
path: data/test.parquet
|
| 21 |
+
dataset_info:
|
| 22 |
+
features:
|
| 23 |
+
- name: window_id
|
| 24 |
+
dtype: string
|
| 25 |
+
- name: youtube_id
|
| 26 |
+
dtype: string
|
| 27 |
+
- name: engine_class
|
| 28 |
+
dtype: string
|
| 29 |
+
- name: start_sec
|
| 30 |
+
dtype: float64
|
| 31 |
+
- name: end_sec
|
| 32 |
+
dtype: float64
|
| 33 |
+
- name: contains_target
|
| 34 |
+
dtype: bool
|
| 35 |
+
- name: quality_flag
|
| 36 |
+
dtype: bool
|
| 37 |
+
- name: split
|
| 38 |
+
dtype: string
|
| 39 |
+
splits:
|
| 40 |
+
- name: train
|
| 41 |
+
num_examples: 1508084
|
| 42 |
+
- name: test
|
| 43 |
+
num_examples: 375639
|
| 44 |
+
download_size: 14615747
|
| 45 |
+
dataset_size: 14615747
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
# Engine Sound Windows (YouTube-derived, metadata-only)
|
| 49 |
+
|
| 50 |
+
Timestamps and weak labels for training an engine-configuration audio classifier (v-twin vs.
|
| 51 |
+
inline-4 vs. flat-6, etc.) from short audio windows. **This dataset does not contain audio.**
|
| 52 |
+
Each row points at a public YouTube video id plus a `(start_sec, end_sec)` window; you fetch
|
| 53 |
+
and slice the audio yourself (see [Reconstructing audio](#reconstructing-audio) below).
|
| 54 |
+
|
| 55 |
+
## Why metadata-only
|
| 56 |
+
|
| 57 |
+
The source audio was collected by searching YouTube (via [`yt-dlp`](https://github.com/yt-dlp/yt-dlp))
|
| 58 |
+
for engine-sound terms and downloading matching videos. The dataset author does not hold
|
| 59 |
+
redistribution rights to that audio, so — following the precedent set by
|
| 60 |
+
[AudioSet](https://research.google.com/audioset/), [MusicCaps](https://huggingface.co/datasets/google/MusicCaps),
|
| 61 |
+
and [FSD50K](https://zenodo.org/records/4060432) for exactly this situation — only the video id,
|
| 62 |
+
window timestamps, and derived labels are published here, not audio bytes. This also means the
|
| 63 |
+
`cc-by-sa-4.0` license above covers only this repository's metadata (ids, timestamps, labels); the
|
| 64 |
+
underlying YouTube videos remain under their original creators' copyright and are not
|
| 65 |
+
relicensed or redistributed by this dataset in any form.
|
| 66 |
+
|
| 67 |
+
## Dataset structure
|
| 68 |
+
|
| 69 |
+
| Column | Type | Meaning |
|
| 70 |
+
| --- | --- | --- |
|
| 71 |
+
| `window_id` | string | Unique id for this window (`winNNN`), stable across the whole corpus |
|
| 72 |
+
| `youtube_id` | string | 11-character YouTube video id (`https://www.youtube.com/watch?v=<youtube_id>`) |
|
| 73 |
+
| `engine_class` | string | Engine configuration label, e.g. `v8_flat`, `i4_diesel`, `single_two_stroke` |
|
| 74 |
+
| `start_sec` / `end_sec` | float | Window bounds within the source video, in seconds |
|
| 75 |
+
| `contains_target` | bool | See [Label semantics](#label-semantics) |
|
| 76 |
+
| `quality_flag` | bool | See [Label semantics](#label-semantics) |
|
| 77 |
+
| `split` | string | `train` or `test` — assigned per source video, so every window from one video stays in the same split |
|
| 78 |
+
|
| 79 |
+
Windows are 2.0 seconds long with 1.0 second of step between consecutive windows (50% overlap),
|
| 80 |
+
confirmed directly from the underlying manifest's timestamps.
|
| 81 |
+
|
| 82 |
+
## Label semantics
|
| 83 |
+
|
| 84 |
+
`contains_target` and `quality_flag` are **model-derived, not human-verified** — they come from
|
| 85 |
+
running [`panns_inference`](https://github.com/qiuqiangkong/audioset_tagging_cnn)'s
|
| 86 |
+
`AudioTagging` model (trained on AudioSet) over each window and thresholding two sets of its 527
|
| 87 |
+
class scores:
|
| 88 |
+
|
| 89 |
+
- `contains_target = True` when the window's max score across a set of engine/vehicle AudioSet
|
| 90 |
+
classes exceeds `0.585` — i.e. an engine sound was likely detected.
|
| 91 |
+
- `quality_flag = True` when the window's max score across a set of background-noise/contamination
|
| 92 |
+
AudioSet classes exceeds `0.2` — i.e. contamination was likely detected.
|
| 93 |
+
|
| 94 |
+
**`quality_flag = True` is a caution flag, not an endorsement** — despite the name, it does not
|
| 95 |
+
mean the window is good quality. Treat both columns as weak, noisy supervision (useful for
|
| 96 |
+
filtering or as auxiliary features) rather than ground truth.
|
| 97 |
+
|
| 98 |
+
`engine_class`, by contrast, comes from which search query the source video was found under —
|
| 99 |
+
also not independently verified per-video (see [Known limitations](#known-limitations)).
|
| 100 |
+
|
| 101 |
+
## Engine classes
|
| 102 |
+
|
| 103 |
+
43 engine classes, 3,830 source videos, after exclusions below:
|
| 104 |
+
|
| 105 |
+
| Engine class | Files | Windows | Train | Test |
|
| 106 |
+
| --- | --- | --- | --- | --- |
|
| 107 |
+
| `2_rotor` | 18 | 3740 | 3372 | 368 |
|
| 108 |
+
| `h12` | 10 | 4863 | 3981 | 882 |
|
| 109 |
+
| `h2` | 92 | 56012 | 37044 | 18968 |
|
| 110 |
+
| `h4` | 112 | 40657 | 34450 | 6207 |
|
| 111 |
+
| `h6` | 97 | 84341 | 57384 | 26957 |
|
| 112 |
+
| `i2_180` | 127 | 88771 | 66385 | 22386 |
|
| 113 |
+
| `i2_180_two_stroke` | 41 | 9162 | 7007 | 2155 |
|
| 114 |
+
| `i2_270` | 169 | 134456 | 104910 | 29546 |
|
| 115 |
+
| `i2_360` | 63 | 24789 | 18457 | 6332 |
|
| 116 |
+
| `i2_360_two_stroke` | 44 | 12124 | 10577 | 1547 |
|
| 117 |
+
| `i3` | 133 | 57496 | 45440 | 12056 |
|
| 118 |
+
| `i3_two_stroke` | 10 | 3219 | 2943 | 276 |
|
| 119 |
+
| `i4` | 392 | 166630 | 131564 | 35066 |
|
| 120 |
+
| `i4_crossplane` | 134 | 68221 | 48907 | 19314 |
|
| 121 |
+
| `i4_diesel` | 75 | 31429 | 26944 | 4485 |
|
| 122 |
+
| `i5` | 115 | 29789 | 24849 | 4940 |
|
| 123 |
+
| `i5_diesel` | 52 | 21759 | 17435 | 4324 |
|
| 124 |
+
| `i6` | 157 | 49570 | 35274 | 14296 |
|
| 125 |
+
| `i6_diesel` | 52 | 29830 | 26165 | 3665 |
|
| 126 |
+
| `single_four_stroke` | 101 | 42045 | 31663 | 10382 |
|
| 127 |
+
| `single_two_stroke` | 94 | 44185 | 33465 | 10720 |
|
| 128 |
+
| `v10_72` | 154 | 63020 | 46769 | 16251 |
|
| 129 |
+
| `v10_90` | 14 | 11291 | 8406 | 2885 |
|
| 130 |
+
| `v12` | 112 | 37882 | 35178 | 2704 |
|
| 131 |
+
| `v16` | 8 | 4512 | 4512 | 0 |
|
| 132 |
+
| `v2_45` | 138 | 165815 | 146284 | 19531 |
|
| 133 |
+
| `v2_90` | 97 | 83045 | 73491 | 9554 |
|
| 134 |
+
| `v2_two_stroke` | 11 | 2425 | 1915 | 510 |
|
| 135 |
+
| `v4` | 80 | 31392 | 26760 | 4632 |
|
| 136 |
+
| `v4_two_stroke` | 35 | 8369 | 6995 | 1374 |
|
| 137 |
+
| `v6_120` | 72 | 31924 | 21840 | 10084 |
|
| 138 |
+
| `v6_60` | 212 | 61043 | 47627 | 13416 |
|
| 139 |
+
| `v6_90_even` | 58 | 36963 | 33490 | 3473 |
|
| 140 |
+
| `v6_90_odd` | 5 | 3446 | 2629 | 817 |
|
| 141 |
+
| `v6_diesel` | 16 | 3346 | 2502 | 844 |
|
| 142 |
+
| `v8_60` | 18 | 6307 | 5173 | 1134 |
|
| 143 |
+
| `v8_cross` | 264 | 139946 | 120989 | 18957 |
|
| 144 |
+
| `v8_diesel` | 124 | 45184 | 35857 | 9327 |
|
| 145 |
+
| `v8_flat` | 180 | 81189 | 68971 | 12218 |
|
| 146 |
+
| `v8_voodoo` | 65 | 34937 | 27993 | 6944 |
|
| 147 |
+
| `vr6` | 54 | 11260 | 6762 | 4498 |
|
| 148 |
+
| `w12` | 19 | 8787 | 7173 | 1614 |
|
| 149 |
+
| `w16` | 6 | 8552 | 8552 | 0 |
|
| 150 |
+
|
| 151 |
+
Class sizes are heavily imbalanced (5 to 392 files per class) — account for this when
|
| 152 |
+
sampling/weighting during training.
|
| 153 |
+
|
| 154 |
+
## Known limitations
|
| 155 |
+
|
| 156 |
+
- **Weak, auto-derived labels.** `contains_target`/`quality_flag` come from an AudioSet-trained
|
| 157 |
+
tagger's thresholded scores, not human review (see [Label semantics](#label-semantics)).
|
| 158 |
+
- **Class imbalance.** File counts per class range from 5 (`v6_90_odd`) to 392 (`i4`).
|
| 159 |
+
- **Two classes have zero test windows.** `v16` and `w16` have only 8 and 6 source videos
|
| 160 |
+
respectively; the per-video random 80/20 split happened to put every video from both classes
|
| 161 |
+
into `train`. Don't evaluate on these classes without re-splitting.
|
| 162 |
+
- **97 ambiguous videos were excluded.** Cross-referencing every video id against every
|
| 163 |
+
engine_class it was scraped under found 97 YouTube videos that had been pulled into **more
|
| 164 |
+
than one conflicting engine_class** (almost certainly multi-engine compilation/comparison
|
| 165 |
+
videos caught by more than one search query, e.g. one video labeled both `v2_90` and `v4`,
|
| 166 |
+
another labeled across `i4_diesel`/`i6_diesel`/`v10_90`/`v8_diesel` simultaneously). All
|
| 167 |
+
windows sourced from any of these videos were dropped entirely (110,830 of 1,994,553 rows,
|
| 168 |
+
5.6%) rather than guessing which label was correct. This hit some already-small classes hard:
|
| 169 |
+
`v2_two_stroke` went from 19 to 11 files, `h12` from 18 to 10, `v10_90` from 19 to 14. The
|
| 170 |
+
class table above already reflects these counts.
|
| 171 |
+
- **Link rot.** Since only YouTube ids are published (see [Why metadata-only](#why-metadata-only)),
|
| 172 |
+
some fraction of source videos will become unavailable over time as creators delete or
|
| 173 |
+
privatize them — unlike a self-hosted audio dataset, this one can shrink on its own.
|
| 174 |
+
- **`engine_class` isn't independently verified per video** beyond the cross-class-conflict
|
| 175 |
+
check above — a video could still be mislabeled by its original search query in a way that
|
| 176 |
+
doesn't produce a detectable cross-class conflict (e.g. a single video mislabeled but never
|
| 177 |
+
scraped under any other class).
|
| 178 |
+
|
| 179 |
+
## Reconstructing audio
|
| 180 |
+
|
| 181 |
+
For a given row, download the source video's audio and trim to the window:
|
| 182 |
+
|
| 183 |
+
```bash
|
| 184 |
+
yt-dlp -f bestaudio -x --audio-format m4a \
|
| 185 |
+
"https://www.youtube.com/watch?v=<youtube_id>" -o source.m4a
|
| 186 |
+
|
| 187 |
+
ffmpeg -i source.m4a -ss <start_sec> -to <end_sec> -c copy window.m4a
|
| 188 |
+
```
|
| 189 |
+
|
| 190 |
+
For batch reconstruction, group rows by `youtube_id` first so each video is downloaded once
|
| 191 |
+
regardless of how many windows come from it.
|
| 192 |
+
|
| 193 |
+
## License and usage
|
| 194 |
+
|
| 195 |
+
The labels, timestamps, and ids in this repository are released under `cc-by-sa-4.0`. This does
|
| 196 |
+
**not** extend any rights to the underlying YouTube video content, which remains the property of
|
| 197 |
+
its original creators — this dataset does not redistribute, host, or relicense that audio.
|
| 198 |
+
Commercial users should independently verify their own right to use any audio they fetch via the
|
| 199 |
+
ids in this dataset.
|
hf_dataset/SUMMARY.txt
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
1994553 manifest rows -> 1883723 exported (110830 dropped for cross-class conflicts, 0 unresolved to a youtube_id)
|
| 2 |
+
------------------------------------------------------------------------------------------------------------------
|
| 3 |
+
engine_class files_before files_after windows_before windows_after train_windows test_windows
|
| 4 |
+
2_rotor 19 18 5615 3740 3372 368
|
| 5 |
+
h12 18 10 9428 4863 3981 882
|
| 6 |
+
h2 94 92 57628 56012 37044 18968
|
| 7 |
+
h4 114 112 41441 40657 34450 6207
|
| 8 |
+
h6 107 97 88162 84341 57384 26957
|
| 9 |
+
i2_180 128 127 88854 88771 66385 22386
|
| 10 |
+
i2_180_two_stroke 44 41 9838 9162 7007 2155
|
| 11 |
+
i2_270 172 169 135132 134456 104910 29546
|
| 12 |
+
i2_360 65 63 24849 24789 18457 6332
|
| 13 |
+
i2_360_two_stroke 44 44 12124 12124 10577 1547
|
| 14 |
+
i3 133 133 57496 57496 45440 12056
|
| 15 |
+
i3_two_stroke 10 10 3219 3219 2943 276
|
| 16 |
+
i4 432 392 185568 166630 131564 35066
|
| 17 |
+
i4_crossplane 142 134 78944 68221 48907 19314
|
| 18 |
+
i4_diesel 81 75 33591 31429 26944 4485
|
| 19 |
+
i5 116 115 29897 29789 24849 4940
|
| 20 |
+
i5_diesel 52 52 21759 21759 17435 4324
|
| 21 |
+
i6 170 157 54745 49570 35274 14296
|
| 22 |
+
i6_diesel 57 52 32048 29830 26165 3665
|
| 23 |
+
single_four_stroke 103 101 45897 42045 31663 10382
|
| 24 |
+
single_two_stroke 99 94 52345 44185 33465 10720
|
| 25 |
+
v10_72 170 154 67447 63020 46769 16251
|
| 26 |
+
v10_90 19 14 12649 11291 8406 2885
|
| 27 |
+
v12 115 112 38368 37882 35178 2704
|
| 28 |
+
v16 9 8 4560 4512 4512 0
|
| 29 |
+
v2_45 141 138 167476 165815 146284 19531
|
| 30 |
+
v2_90 109 97 92571 83045 73491 9554
|
| 31 |
+
v2_two_stroke 19 11 3979 2425 1915 510
|
| 32 |
+
v4 90 80 38776 31392 26760 4632
|
| 33 |
+
v4_two_stroke 46 35 10571 8369 6995 1374
|
| 34 |
+
v6_120 73 72 33957 31924 21840 10084
|
| 35 |
+
v6_60 223 212 64249 61043 47627 13416
|
| 36 |
+
v6_90_even 63 58 38914 36963 33490 3473
|
| 37 |
+
v6_90_odd 5 5 3446 3446 2629 817
|
| 38 |
+
v6_diesel 17 16 3523 3346 2502 844
|
| 39 |
+
v8_60 19 18 6923 6307 5173 1134
|
| 40 |
+
v8_cross 267 264 141265 139946 120989 18957
|
| 41 |
+
v8_diesel 132 124 49389 45184 35857 9327
|
| 42 |
+
v8_flat 185 180 84331 81189 68971 12218
|
| 43 |
+
v8_voodoo 65 65 34937 34937 27993 6944
|
| 44 |
+
vr6 55 54 11303 11260 6762 4498
|
| 45 |
+
w12 19 19 8787 8787 7173 1614
|
| 46 |
+
w16 6 6 8552 8552 8552 0
|
hf_dataset/data/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53819329cdadcd98da7cc1e923af4fd250ecf5c156763f07610ee732d8f23096
|
| 3 |
+
size 3004872
|
hf_dataset/data/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:025a2b6409ef90fe4e7b9d182572cdb1b3d08c9aea31653ad2efe8521c20277b
|
| 3 |
+
size 11610875
|