Datasets:
audio audio | slice_file_name string | fsID int64 | start float64 | end float64 | salience int64 | classID int64 | class string | clientID int64 |
|---|---|---|---|---|---|---|---|---|
178825-2-0-74.wav | 178,825 | 37 | 41 | 1 | 2 | children_playing | 45 | |
180134-4-1-7.wav | 180,134 | 13.981716 | 17.981716 | 1 | 4 | drilling | 7 | |
144068-5-4-7.wav | 144,068 | 119.944222 | 123.944222 | 1 | 5 | engine_idling | 5 | |
104625-4-0-57.wav | 104,625 | 34.751409 | 38.751409 | 1 | 4 | drilling | 10 | |
174994-3-0-2.wav | 174,994 | 28.743475 | 32.743475 | 1 | 3 | dog_bark | 48 | |
71866-9-0-21.wav | 71,866 | 10.5 | 14.5 | 1 | 9 | street_music | 9 | |
148632-8-0-13.wav | 148,632 | 136.295722 | 140.295722 | 2 | 8 | siren | 14 | |
82811-3-4-0.wav | 82,811 | 44.333896 | 48.333896 | 1 | 3 | dog_bark | 18 | |
134717-0-0-20.wav | 134,717 | 10 | 14 | 1 | 0 | air_conditioner | 27 | |
61790-9-0-15.wav | 61,790 | 7.5 | 11.5 | 1 | 9 | street_music | 9 | |
133090-2-0-70.wav | 133,090 | 35 | 39 | 1 | 2 | children_playing | 43 | |
105289-8-1-1.wav | 105,289 | 40.926771 | 44.926771 | 1 | 8 | siren | 6 | |
104421-2-0-20.wav | 104,421 | 10 | 14 | 2 | 2 | children_playing | 49 | |
100852-0-0-8.wav | 100,852 | 4 | 8 | 1 | 0 | air_conditioner | 27 | |
159439-2-0-0.wav | 159,439 | 0 | 4 | 1 | 2 | children_playing | 43 | |
168037-4-5-0.wav | 168,037 | 189.223875 | 191.047434 | 1 | 4 | drilling | 32 | |
99179-9-0-38.wav | 99,179 | 19 | 23 | 1 | 9 | street_music | 33 | |
157207-6-6-0.wav | 157,207 | 13.423689 | 14.686956 | 1 | 6 | gun_shot | 34 | |
169466-4-2-6.wav | 169,466 | 160.140268 | 164.140268 | 2 | 4 | drilling | 21 | |
60591-2-0-8.wav | 60,591 | 4 | 8 | 1 | 2 | children_playing | 41 | |
105088-3-0-8.wav | 105,088 | 4 | 8 | 1 | 3 | dog_bark | 5 | |
104817-4-0-1.wav | 104,817 | 0.5 | 4.5 | 1 | 4 | drilling | 7 | |
105088-3-0-10.wav | 105,088 | 5 | 9 | 1 | 3 | dog_bark | 5 | |
113202-5-0-8.wav | 113,202 | 4 | 8 | 1 | 5 | engine_idling | 46 | |
155263-2-0-43.wav | 155,263 | 21.5 | 25.5 | 2 | 2 | children_playing | 2 | |
113202-5-0-0.wav | 113,202 | 0 | 4 | 1 | 5 | engine_idling | 46 | |
4201-3-1-0.wav | 4,201 | 0.804653 | 1.085731 | 2 | 3 | dog_bark | 43 | |
125678-7-4-5.wav | 125,678 | 97.343843 | 101.343843 | 1 | 7 | jackhammer | 20 | |
159747-8-0-3.wav | 159,747 | 3.783772 | 7.783772 | 2 | 8 | siren | 14 | |
148632-8-0-7.wav | 148,632 | 133.295722 | 137.295722 | 2 | 8 | siren | 14 | |
180127-4-0-5.wav | 180,127 | 3.177342 | 7.177342 | 1 | 4 | drilling | 21 | |
125678-7-2-0.wav | 125,678 | 50.346621 | 54.346621 | 1 | 7 | jackhammer | 20 | |
62837-7-0-37.wav | 62,837 | 18.5 | 22.5 | 1 | 7 | jackhammer | 20 | |
128152-9-0-67.wav | 128,152 | 33.5 | 37.5 | 1 | 9 | street_music | 49 | |
209864-5-0-2.wav | 209,864 | 2.580937 | 6.580937 | 1 | 5 | engine_idling | 19 | |
101415-3-0-2.wav | 101,415 | 1 | 5 | 1 | 3 | dog_bark | 5 | |
80806-2-0-2.wav | 80,806 | 1 | 5 | 2 | 2 | children_playing | 29 | |
94636-8-0-11.wav | 94,636 | 5.5 | 9.5 | 2 | 8 | siren | 8 | |
203929-7-7-13.wav | 203,929 | 306.888222 | 310.888222 | 2 | 7 | jackhammer | 13 | |
50416-4-0-0.wav | 50,416 | 0.058705 | 4.058705 | 1 | 4 | drilling | 1 | |
132016-7-0-4.wav | 132,016 | 78.564653 | 82.564653 | 2 | 7 | jackhammer | 40 | |
9032-3-0-0.wav | 9,032 | 0 | 0.350864 | 1 | 3 | dog_bark | 32 | |
104327-2-0-26.wav | 104,327 | 13 | 17 | 2 | 2 | children_playing | 29 | |
62837-7-1-64.wav | 62,837 | 293.706708 | 297.706708 | 1 | 7 | jackhammer | 20 | |
118440-4-6-0.wav | 118,440 | 7.115506 | 7.949171 | 1 | 4 | drilling | 7 | |
174282-6-0-0.wav | 174,282 | 0 | 2.588937 | 1 | 6 | gun_shot | 12 | |
178260-7-3-8.wav | 178,260 | 44.946687 | 48.946687 | 1 | 7 | jackhammer | 31 | |
13579-2-0-48.wav | 13,579 | 25.619075 | 29.619075 | 1 | 2 | children_playing | 42 | |
61503-2-0-3.wav | 61,503 | 1.5 | 5.5 | 1 | 2 | children_playing | 45 | |
22883-7-64-0.wav | 22,883 | 397.308239 | 398.145495 | 1 | 7 | jackhammer | 24 | |
84359-2-0-5.wav | 84,359 | 2.5 | 6.5 | 2 | 2 | children_playing | 5 | |
195969-0-0-26.wav | 195,969 | 296.48561 | 300.48561 | 2 | 0 | air_conditioner | 47 | |
7390-9-0-3.wav | 7,390 | 1.5 | 5.5 | 2 | 9 | street_music | 40 | |
179386-3-0-1.wav | 179,386 | 0.5 | 4.5 | 1 | 3 | dog_bark | 48 | |
22601-8-0-34.wav | 22,601 | 17 | 21 | 2 | 8 | siren | 6 | |
135527-6-5-0.wav | 135,527 | 12.680921 | 14.936661 | 2 | 6 | gun_shot | 4 | |
14111-4-0-6.wav | 14,111 | 3.08911 | 7.08911 | 1 | 4 | drilling | 35 | |
73623-7-0-0.wav | 73,623 | 0.4298 | 2.344362 | 1 | 7 | jackhammer | 11 | |
40717-8-0-3.wav | 40,717 | 1.851355 | 5.851355 | 2 | 8 | siren | 39 | |
155314-3-0-2.wav | 155,314 | 1 | 5 | 1 | 3 | dog_bark | 6 | |
105289-8-2-1.wav | 105,289 | 53.512464 | 57.512464 | 2 | 8 | siren | 6 | |
171305-7-26-0.wav | 171,305 | 103.146696 | 105.657758 | 1 | 7 | jackhammer | 11 | |
123688-8-0-10.wav | 123,688 | 19.175572 | 23.175572 | 2 | 8 | siren | 8 | |
108362-2-0-9.wav | 108,362 | 4.5 | 8.5 | 1 | 2 | children_playing | 42 | |
158593-2-0-47.wav | 158,593 | 30.820678 | 34.820678 | 2 | 2 | children_playing | 2 | |
110868-9-0-11.wav | 110,868 | 5.5 | 9.5 | 1 | 9 | street_music | 25 | |
34056-2-0-40.wav | 34,056 | 20 | 24 | 2 | 2 | children_playing | 43 | |
118587-3-0-21.wav | 118,587 | 10.5 | 14.5 | 1 | 3 | dog_bark | 25 | |
72259-1-7-17.wav | 72,259 | 151.781751 | 155.781751 | 2 | 1 | car_horn | 18 | |
177537-7-0-12.wav | 177,537 | 6 | 10 | 2 | 7 | jackhammer | 31 | |
162134-7-9-0.wav | 162,134 | 162.575726 | 166.575726 | 1 | 7 | jackhammer | 31 | |
155263-2-0-23.wav | 155,263 | 11.5 | 15.5 | 2 | 2 | children_playing | 2 | |
118962-3-0-0.wav | 118,962 | 0 | 2.129854 | 1 | 3 | dog_bark | 6 | |
201207-3-29-0.wav | 201,207 | 140.774118 | 144.774118 | 1 | 3 | dog_bark | 10 | |
110688-3-0-2.wav | 110,688 | 1 | 5 | 2 | 3 | dog_bark | 29 | |
61789-9-0-65.wav | 61,789 | 32.5 | 36.5 | 1 | 9 | street_music | 23 | |
74965-4-1-0.wav | 74,965 | 17.950435 | 21.950435 | 1 | 4 | drilling | 21 | |
139948-3-0-0.wav | 139,948 | 1.066204 | 4.182799 | 2 | 3 | dog_bark | 0 | |
144068-5-4-8.wav | 144,068 | 120.444222 | 124.444222 | 1 | 5 | engine_idling | 5 | |
81068-5-0-3.wav | 81,068 | 3.232922 | 7.232922 | 1 | 5 | engine_idling | 17 | |
84249-9-0-10.wav | 84,249 | 5 | 9 | 2 | 9 | street_music | 17 | |
145683-6-1-0.wav | 145,683 | 7.071442 | 8.452256 | 2 | 6 | gun_shot | 12 | |
58937-4-0-7.wav | 58,937 | 4.700341 | 8.700341 | 1 | 4 | drilling | 7 | |
63724-0-0-8.wav | 63,724 | 4 | 8 | 2 | 0 | air_conditioner | 16 | |
135544-6-6-0.wav | 135,544 | 29.041969 | 30.538406 | 1 | 6 | gun_shot | 12 | |
157868-8-0-4.wav | 157,868 | 2 | 6 | 1 | 8 | siren | 48 | |
174276-7-5-0.wav | 174,276 | 27.052745 | 29.925603 | 1 | 7 | jackhammer | 20 | |
74364-8-1-7.wav | 74,364 | 142.53796 | 146.53796 | 2 | 8 | siren | 39 | |
102857-5-0-3.wav | 102,857 | 1.5 | 5.5 | 1 | 5 | engine_idling | 33 | |
47019-2-0-44.wav | 47,019 | 22 | 26 | 1 | 2 | children_playing | 42 | |
180029-4-13-0.wav | 180,029 | 33.441687 | 34.054671 | 1 | 4 | drilling | 47 | |
94632-5-0-25.wav | 94,632 | 36.10467 | 40.10467 | 2 | 5 | engine_idling | 28 | |
125791-3-0-12.wav | 125,791 | 6 | 10 | 1 | 3 | dog_bark | 42 | |
50668-5-0-0.wav | 50,668 | 0 | 4 | 1 | 5 | engine_idling | 34 | |
170564-2-1-9.wav | 170,564 | 48.735644 | 52.735644 | 2 | 2 | children_playing | 42 | |
146709-0-0-53.wav | 146,709 | 26.5 | 30.5 | 1 | 0 | air_conditioner | 44 | |
144007-5-0-1.wav | 144,007 | 2.988552 | 6.988552 | 1 | 5 | engine_idling | 17 | |
125678-7-3-5.wav | 125,678 | 74.677418 | 78.677418 | 1 | 7 | jackhammer | 20 | |
72259-1-7-8.wav | 72,259 | 147.281751 | 151.281751 | 2 | 1 | car_horn | 18 | |
116484-3-0-12.wav | 116,484 | 6 | 10 | 1 | 3 | dog_bark | 5 |
Dataset Card for fed-urbansound8k
Dataset Description
This dataset is a federated, non-IID repartitioning of danavery/urbansound8K, a Hugging Face version of UrbanSound8K.
The source dataset contains labeled urban sound excerpts of up to 4 seconds from 10 urban sound classes. This derived dataset keeps the original audio examples and metadata, but reorganizes them into 50 simulated federated clients for experiments in client-partitioned audio classification.
Each row includes a clientID column identifying the simulated client/silo to which the example belongs.
Source Dataset
- Source dataset:
danavery/urbansound8K - Source split used:
train - Source task: urban sound classification
- Source size: 8,732 labeled audio excerpts
- Source classes:
air_conditionercar_hornchildren_playingdog_barkdrillingengine_idlinggun_shotjackhammersirenstreet_music
The original UrbanSound8K examples are excerpts from field recordings uploaded to Freesound.
Dataset Construction
This dataset was generated by the accompanying processing script using the following procedure:
- Load
danavery/urbansound8Kfrom Hugging Face. - Recover or preserve the
fsIDfield, which identifies the original Freesound recording group. - Group samples by
fsIDso that all excerpts from the same source recording remain assigned to the same client. - Build per-
fsIDlabel-distribution tables. - Create 50 simulated clients.
- Sample client label preferences from a Dirichlet distribution.
- Sample client size targets from a log-normal distribution.
- Greedily assign whole
fsIDgroups to clients using the per-group label distribution, client label preferences, and client size targets. - Split each client locally into train/test subsets.
- Concatenate all client-local train subsets into the global
trainsplit and all client-local test subsets into the globaltestsplit. - Preserve the
audiocolumn as a Hugging FaceAudiofeature.
Federated Partitioning Details
The partitioning is intentionally non-IID. Heterogeneity is introduced through:
- Source-group preservation: all samples with the same
fsIDare kept on the same client. - Label skew: clients have different class preferences sampled from a Dirichlet distribution.
- Size imbalance: client sizes are sampled from a log-normal distribution.
- Minimum group constraints: the assignment process attempts to give each client at least a minimum number of
fsIDgroups when possible.
Recommended reproducibility parameters from the generation script:
| Parameter | Value |
|---|---|
NUM_CLIENTS |
50 |
DIRICHLET_ALPHA |
1.0 |
SIZE_IMBALANCE_SIGMA |
0.3 |
MIN_CLIENT_SIZE |
20 |
MIN_FSID_PER_CLIENT |
3 |
TEST_RATE |
0.1 |
SEED |
42 |
Splits
The dataset contains two global splits:
| Split | Description |
|---|---|
train |
Union of all client-local training subsets |
test |
Union of all client-local test subsets |
Both splits contain examples from the simulated clients and include the clientID column. The global test split is not a central random split; it is the concatenation of each client's local held-out test set.
Schema
The exact schema follows the upstream UrbanSound8K Hugging Face dataset, with fold removed and clientID added.
Expected columns include:
| Column | Type | Description |
|---|---|---|
audio |
Audio |
Audio waveform feature preserved from the source dataset |
slice_file_name |
string | Original audio slice filename, when present in the source data |
fsID |
integer | Freesound source recording identifier |
start |
float | Start time of the excerpt, when available |
end |
float | End time of the excerpt, when available |
salience |
integer | Foreground/background salience metadata, when available |
classID |
integer/class label | Numeric urban sound class identifier |
class |
string/class label | Human-readable urban sound class |
clientID |
integer | Simulated federated client identifier in [0, 49] |
How to Use
from datasets import load_dataset
ds = load_dataset("flwrlabs/fed-urbansound8k")
print(ds)
print(ds["train"][0])
To inspect one client's local partition:
from flwr_datasets import FederatedDataset
from flwr_datasets.partitioner import NaturalIdPartitioner
fds = FederatedDataset(
dataset="flwrlabs/fed-urbansound8k",
partitioners={"train": NaturalIdPartitioner(partition_by="clientID")},
)
partition = fds.load_partition(partition_id=0)
For audio classification, use the appropriate label column from the source schema, typically classID or class.
Intended Uses
This dataset is intended for research and benchmarking in:
- federated learning
- non-IID audio classification
- client distribution shift
- source-grouped client partitioning
- robustness across heterogeneous audio clients
- personalized or clustered federated learning
Out-of-Scope Uses
This dataset should not be used as a substitute for newly collected real-world client audio data. The clients are simulated partitions of a public benchmark and may not reflect all operational constraints, privacy conditions, or distribution shifts found in deployed federated audio systems.
Limitations
- This is a derived repartitioning of UrbanSound8K, not a newly collected dataset.
- Client identities are simulated and do not correspond to real users, devices, or institutions.
- Because
fsIDgroups are kept intact, the final client sizes and label proportions may only approximately match the sampled targets. - Audio sampling rates, channel counts, and file properties follow the upstream dataset and may vary across examples.
Citation
Please cite the original UrbanSound8K work when using this dataset. If you're using this dataset with Flower Datasets, you can cite Flower.
@inproceedings{salamon2014dataset,
title={A dataset and taxonomy for urban sound research},
author={Salamon, Justin and Jacoby, Christopher and Bello, Juan Pablo},
booktitle={Proceedings of the 22nd ACM international conference on Multimedia},
pages={1041--1044},
year={2014}
}
@article{DBLP:journals/corr/abs-2007-14390,
author = {Daniel J. Beutel and
Taner Topal and
Akhil Mathur and
Xinchi Qiu and
Titouan Parcollet and
Nicholas D. Lane},
title = {Flower: {A} Friendly Federated Learning Research Framework},
journal = {CoRR},
volume = {abs/2007.14390},
year = {2020},
url = {https://arxiv.org/abs/2007.14390},
eprinttype = {arXiv},
eprint = {2007.14390},
timestamp = {Mon, 03 Aug 2020 14:32:13 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-2007-14390.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
Dataset Card Contact
In case of any doubts, please contact Flower Labs.
- Downloads last month
- 294