Dataset Viewer
Auto-converted to Parquet Duplicate
clip_id
stringlengths
18
73
source_dataset
stringclasses
3 values
orig_label
stringclasses
28 values
valence
stringclasses
3 values
speaker_id
stringclasses
505 values
lobo_group
stringclasses
505 values
source_license
stringclasses
3 values
duration_s
float32
0.08
14.1
orig_sr
int32
8k
44.1k
emb_ast
list
emb_wav2vec2
list
emb_clap
list
audio
audioduration (s)
0.08
14.1
donateacry:549a46d8-9c84-430e-ade8-97eae2bef787-1430130772174-1.7-m-48-bp
donateacry
belly_pain
distress
donateacry:549a46d8-9c84-430e-ade8-97eae2bef787-1430130772174-1.7-m-48-bp
donateacry:549a46d8-9c84-430e-ade8-97eae2bef787-1430130772174-1.7-m-48-bp
ODbL-1.0
6.86
8,000
[ 1.645802617073059, 1.4158731698989868, -0.2667205035686493, -0.9461392760276794, 0.43662455677986145, 0.833331823348999, -0.954268217086792, -0.24066150188446045, -0.24649769067764282, -1.4103903770446777, 0.18343539535999298, -1.4566574096679688, -0.5290202498435974, -0.23519061505794525,...
[ 0.06877145916223526, 0.012149068526923656, 0.2523348927497864, 0.10665144771337509, 0.07539402693510056, -0.20541036128997803, 0.3269032835960388, -0.23783321678638458, -0.24575139582157135, -0.0471029095351696, 0.1635993868112564, -0.10234915465116501, -0.18118047714233398, 0.456940561532...
[ 0.008581466041505337, -0.004208758939057589, -0.020954057574272156, 0.07755699753761292, 0.00451836921274662, 0.010924194939434528, 0.01555588748306036, -0.008815805427730083, 0.05088309943675995, -0.01640734262764454, -0.023476986214518547, 0.009029977954924107, -0.02698708511888981, -0.0...
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138495-1.0-m-72-bp
donateacry
belly_pain
distress
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138495-1.0-m-72-bp
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138495-1.0-m-72-bp
ODbL-1.0
7
8,000
[ 1.1630268096923828, 1.1751362085342407, -1.776389479637146, -0.659188985824585, 1.6257110834121704, 1.2582069635391235, -1.4617074728012085, -0.38227251172065735, -0.2221844345331192, -1.3785120248794556, -0.5641956329345703, -1.4563161134719849, -0.6727244853973389, 0.9862464070320129, ...
[ 0.1730048656463623, -0.07059817761182785, 0.25751036405563354, 0.11753355711698532, -0.15989802777767181, -0.17790831625461578, 0.4650209844112396, -0.3069576621055603, -0.36541351675987244, 0.09094512462615967, 0.22345973551273346, -0.28736400604248047, -0.1865246742963791, 0.352238982915...
[ 0.01532391831278801, -0.034082088619470596, -0.01916622743010521, 0.05167211592197418, 0.03750159963965416, 0.021861106157302856, 0.015291589312255383, -0.0017310812836512923, 0.10246837139129639, -0.022310614585876465, -0.022183379158377647, -0.009875435382127762, -0.033814866095781326, 0...
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138506-1.0-m-72-bp
donateacry
belly_pain
distress
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138506-1.0-m-72-bp
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138506-1.0-m-72-bp
ODbL-1.0
7
8,000
[ 0.9317432045936584, 1.441187858581543, -0.8302721977233887, -0.26525893807411194, 0.09912032634019852, 0.4893569052219391, -0.17191679775714874, 0.6058102250099182, -0.33369889855384827, -0.7394477725028992, -0.720949113368988, -0.46567919850349426, -0.9344908595085144, 1.2408168315887451,...
[ 0.10870319604873657, 0.005572678986936808, 0.09044048190116882, 0.25529900193214417, -0.007615609094500542, -0.20949965715408325, 0.3277733325958252, -0.22256869077682495, -0.2574627101421356, 0.1396574079990387, 0.10677271336317062, -0.47860613465309143, -0.32858338952064514, 0.3690120279...
[ 0.002758753253147006, -0.01639384590089321, -0.030663564801216125, 0.049711138010025024, 0.036436308175325394, -0.007807546760886908, 0.011503146030008793, -0.038380593061447144, 0.0694432258605957, -0.03441016003489494, -0.03991858288645744, -0.024892762303352356, -0.03866257518529892, 0....
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138514-1.0-m-72-bp
donateacry
belly_pain
distress
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138514-1.0-m-72-bp
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138514-1.0-m-72-bp
ODbL-1.0
7
8,000
[ 0.16525913774967194, 1.443253517150879, -0.8689154982566833, -0.5443527698516846, 0.19928668439388275, 1.296726107597351, -1.274332046508789, 0.059174757450819016, -0.3026111125946045, -1.05571711063385, -0.4733525216579437, -1.364345908164978, -0.8663832545280457, 0.7906396389007568, -1...
[ 0.1635843962430954, -0.08927435427904129, 0.285171777009964, 0.132599875330925, -0.27141547203063965, -0.18118101358413696, 0.4514230191707611, -0.2031521052122116, -0.2753277122974396, 0.09079273790121078, 0.28525033593177795, -0.462726354598999, -0.23016411066055298, 0.34415102005004883,...
[ 0.022369032725691795, -0.020208116620779037, -0.040090885013341904, 0.037511005997657776, 0.03474763035774231, -0.006494166795164347, 0.04395827651023865, 0.02806319110095501, 0.0968298688530922, -0.02739553712308407, -0.025099778547883034, -0.016314426437020302, -0.03318119794130325, -0.0...
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138524-1.0-m-72-bp
donateacry
belly_pain
distress
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138524-1.0-m-72-bp
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138524-1.0-m-72-bp
ODbL-1.0
7
8,000
[0.7389238476753235,0.6275508999824524,-1.7000025510787964,-1.5341113805770874,0.33799636363983154,1(...TRUNCATED)
[0.19296295940876007,-0.1348816305398941,0.30191898345947266,0.1991281360387802,-0.08536025881767273(...TRUNCATED)
[0.001058997237123549,-0.005386142525821924,-0.0631084218621254,0.008691242896020412,0.0033726338297(...TRUNCATED)
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138536-1.0-m-72-bp
donateacry
belly_pain
distress
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138536-1.0-m-72-bp
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138536-1.0-m-72-bp
ODbL-1.0
7
8,000
[-0.2992394268512726,1.6435149908065796,-0.2798815965652466,-1.060336709022522,0.09072788804769516,0(...TRUNCATED)
[0.15219484269618988,-0.02108251117169857,0.20600450038909912,0.12386956810951233,-0.046984527260065(...TRUNCATED)
[-0.00940010603517294,0.00612766295671463,-0.036547157913446426,0.06654351204633713,0.01523066312074(...TRUNCATED)
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138545-1.0-m-72-bp
donateacry
belly_pain
distress
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138545-1.0-m-72-bp
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138545-1.0-m-72-bp
ODbL-1.0
7
8,000
[-0.7146685719490051,1.8306946754455566,-1.201198935508728,-0.8393351435661316,0.17707706987857819,-(...TRUNCATED)
[0.14610575139522552,-0.06663224846124649,0.1769758015871048,0.12742842733860016,-0.1650179177522659(...TRUNCATED)
[0.0046422299928963184,-0.018626419827342033,-0.037217382341623306,0.07614598423242569,0.03812083974(...TRUNCATED)
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138591-1.0-m-72-bp
donateacry
belly_pain
distress
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138591-1.0-m-72-bp
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138591-1.0-m-72-bp
ODbL-1.0
7
8,000
[0.4642428457736969,1.5913739204406738,-1.5648788213729858,-0.46784138679504395,-0.19111484289169312(...TRUNCATED)
[0.10389387607574463,-0.11873916536569595,0.3362026512622833,0.19227509200572968,-0.1320133209228515(...TRUNCATED)
[0.009387494996190071,-0.004824221134185791,-0.01980689726769924,0.043846163898706436,0.007073991000(...TRUNCATED)
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138647-1.0-m-72-bp
donateacry
belly_pain
distress
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138647-1.0-m-72-bp
donateacry:643D64AD-B711-469A-AF69-55C0D5D3E30F-1430138647-1.0-m-72-bp
ODbL-1.0
7
8,000
[0.2979866862297058,1.48916757106781,-1.415169358253479,-1.4035743474960327,0.752785861492157,0.4799(...TRUNCATED)
[0.12224575132131577,0.0027877725660800934,0.1938106268644333,0.1821448802947998,-0.1308894157409668(...TRUNCATED)
[0.011905881576240063,-0.00802611093968153,-0.037200551480054855,0.09130042791366577,0.0306385159492(...TRUNCATED)
donateacry:69BDA5D6-0276-4462-9BF7-951799563728-1436936185-1.1-m-26-bp
donateacry
belly_pain
distress
donateacry:69BDA5D6-0276-4462-9BF7-951799563728-1436936185-1.1-m-26-bp
donateacry:69BDA5D6-0276-4462-9BF7-951799563728-1436936185-1.1-m-26-bp
ODbL-1.0
7
8,000
[1.621493935585022,0.7577475905418396,-0.04975077509880066,-0.2922118902206421,0.969792902469635,1.3(...TRUNCATED)
[-0.120860256254673,-0.01318555697798729,0.4310033321380615,0.055340204387903214,-0.0185106378048658(...TRUNCATED)
[0.01962197758257389,0.0007907094550319016,-0.04155748710036278,0.08132994174957275,0.01068710070103(...TRUNCATED)
End of preview. Expand in Data Studio

babycry v1 — valence (positive vs distress)

A merged, embedding-ready corpus of 7,574 infant/child vocalization clips for a binary valence task:

  • valence — positive vs distress: affective polarity of the vocalization (ambiguous clips are included in the data but excluded from the binary task).

Every clip ships with the raw audio (native sample rate) and three precomputed frozen-encoder embeddings (AST, wav2vec2, CLAP), so you can train a last-layer head with zero audio preprocessing, or work from the waveform directly.

ℹ️ An alert-gate target (attend vs ignore) was explored on this corpus and dropped for v1 (near-chance on this data). The revertible local snapshot + label_map.yaml still retain it, but it is not a column in this published dataset.

⚠️ Per-source licensing — no single combined license. Each clip keeps its source's license, recorded per row in the source_license column: ReCANVo CC-BY-4.0, DonateACry ODbL-1.0, ESC-50 CC-BY-NC-3.0. The ESC-50 subset (40 clips) is non-commercial; filter source_license != "CC-BY-NC-3.0" for a commercial-friendly subset (7,534 clips). See Licensing below.

⚠️ Research preview. ReCANVo speakers are ages 6–23, not infants (affect transfer, not infant data); DonateACry is 8 kHz vs 44.1 kHz for the others (sample-rate/domain confound). Read Caveats before drawing conclusions.

Intended use

  • Train and compare last-layer heads (logistic regression, RF, small MLP) on frozen embeddings under leave-one-speaker-out evaluation.
  • Probe valence (positive vs distress) and cross-dataset generalization.

Not intended for: clinical decisions; commercial deployment without removing the non-commercial subset; treating ReCANVo as infant data.

Sources

source_dataset clips original release license native SR
recanvo 7,077 ReCANVo, Zenodo record 5786859 · paper CC-BY-4.0 44.1 kHz
donateacry 457 github.com/gveres/donateacry-corpus (donateacry_corpus_cleaned_and_updated_data/) ODbL-1.0 8 kHz
esc50 40 github.com/karolpiczak/ESC-50 (crying_baby only) CC-BY-NC-3.0 44.1 kHz

Considered but excluded (gated / not openly redistributable): BabbleCor (OSF rz4tx — audio + annotation tags require a signed Data Use Agreement), CRIED (ComParE 2018 EULA), Baby Chillanto (written permission). No clips from these are included.

Citation / BibTeX

@article{johnson2023recanvo,
  title   = {ReCANVo: A database of real-world communicative and affective nonverbal vocalizations},
  author  = {Johnson, Kristina T. and others},
  journal = {Scientific Data}, volume = {10}, year = {2023},
  doi     = {10.1038/s41597-023-02405-7}
}
@misc{donateacry,
  title = {DonateACry corpus}, howpublished = {\url{https://github.com/gveres/donateacry-corpus}}, note = {ODbL-1.0}
}
@inproceedings{piczak2015esc50,
  title = {ESC: Dataset for Environmental Sound Classification},
  author = {Piczak, Karol J.}, booktitle = {ACM Multimedia}, year = {2015}
}

Schema (column dictionary)

column dtype meaning
clip_id string globally unique id, "<source_dataset>:<filename-stem>"
source_dataset string recanvo | donateacry | esc50
orig_label string verbatim source label (e.g. dysregulated, hungry, crying_baby)
valence string positive | distress | ambiguous (see mapping)
speaker_id string speaker/group id (recanvo:P01; per-clip-unique for donateacry/esc50)
lobo_group string recommended CV grouping key (= speaker_id); group on this for LeaveOneGroupOut / GroupKFold
source_license string per-row license (CC-BY-4.0 / ODbL-1.0 / CC-BY-NC-3.0) — filter for commercial use
duration_s float32 clip duration in seconds
orig_sr int32 native sample rate of the stored audio (Hz)
emb_ast list[768] mean-pooled AST embedding
emb_wav2vec2 list[768] mean-pooled wav2vec2 embedding
emb_clap list[512] mean-pooled CLAP embedding
audio Audio (decode=True) raw waveform; decodes to {array, sampling_rate} at native SR

The audio column is stored at native SR (no resampling). Decoding returns the native sampling_rate (== orig_sr). The audio bytes are embedded directly in the parquet shards (self-contained — no external files needed).

Decoding audio needs a backend (embeddings/metadata do not). datasets >= 4 decodes audio via torchcodec, which requires system FFmpeg (libav versions 4–8) installed. datasets < 4 (e.g. 3.6.x) decodes via soundfile and needs no FFmpeg. Every other column — emb_ast / emb_wav2vec2 / emb_clap and all metadata — loads on any datasets version; only ds[i]["audio"] decode needs the backend. If audio decode errors, either pip install "datasets<4" soundfile, or install FFmpeg and pip install torchcodec. To skip decoding entirely: ds = ds.cast_column("audio", datasets.Audio(decode=False)) (yields raw bytes/path).

Label definitions & mapping rationale

The verbatim source labels are mapped to valence via the single source of truth in data/datasets/v1_attend_ignore/label_map.yaml.

valencepositive vs distress (ambiguous is excluded from the binary task):

  • positive ← ReCANVo delighted, laughter, laugh, happy, glee, affectionate
  • distress ← ReCANVo frustrated, dysregulated, dysregulation-sick, dysregulation-bathroom; all DonateACry classes; ESC-50 crying_baby
  • ambiguous ← all other ReCANVo labels (selftalk, social, request, yes, help, more, protest, bathroom, no, tablet, hunger, greeting)

An alert-gate target (attend vs ignore) was explored on this corpus and dropped for v1 (near-chance under leave-one-speaker-out). Its mapping is retained in the local label_map.yaml snapshot for reference but is not published here.

Sampling, coverage & evaluation

Class balance

task classes (kept) counts dropped
valence positive / distress 1,571 / 2,829 (4,400) 3,174 ambiguous

Per source: ReCANVo positive 1,571 · distress 2,332 · ambiguous 3,174; DonateACry 457 (all distress); ESC-50 40 (all distress).

Recommended protocol. Group by lobo_group (= speaker_id) with sklearn.model_selection.LeaveOneGroupOut or GroupKFold so no speaker is in both train and test. Use class_weight="balanced" and report balanced accuracy / macro-F1 / ROC-AUC, not raw accuracy. ReCANVo is the only multi-speaker source; DonateACry/ESC-50 are per-clip groups (each its own fold) and are single-class (all distress), best used for the cross-dataset distress test, not pooled clean training (see Caveats).

Feature extraction (reproducible)

Each clip is resampled per-encoder, sliced into 2.0 s windows with a 1.0 s hop, each window embedded with a frozen encoder (eval mode, no grad), then windows are mean-pooled to one vector per clip.

column encoder model id resample dim
emb_ast MIT/ast-finetuned-audioset-10-10-0.4593 16 kHz 768
emb_wav2vec2 facebook/wav2vec2-base 16 kHz 768
emb_clap laion/clap-htsat-unfused 48 kHz 512

Resampling applies only to embedding extraction; the stored audio keeps its native SR. Reproduce with src/babycry/embed.py in the project repo.

Baselines (what to expect)

Leave-one-speaker-out, frozen embeddings + linear/RF probe (from results/):

  • valence (positive vs distress). Pooled GroupKFold/5, CLAP/RF: balanced-acc 0.662, ROC-AUC 0.757 (CLAP/logreg 0.662 / 0.725; AST/RF 0.644 / 0.750). Within-ReCANVo (44.1 kHz, no SR confound) CLAP/RF: 0.673 / 0.740. CLAP zero-shot floor (no training): 0.615 / 0.648.

Quickstart

from datasets import load_dataset
import numpy as np
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import LeaveOneGroupOut, cross_val_predict
from sklearn.metrics import balanced_accuracy_score, roc_auc_score

# Load locally (this directory) or from the Hub once published:
ds = load_dataset("parquet", data_files="data/train-*.parquet", split="train")

# --- VALENCE: positive vs distress, leave-one-speaker-out on CLAP embeddings ---
# Restrict to ReCANVo: 8 real speaker groups at 44.1 kHz = the CLEAN number.
# (Pooling DonateACry/ESC-50 inflates results -- they're all-distress and 8 kHz,
#  so LOBO exploits the sample-rate shortcut. See Caveats.)
keep = [v in ("positive", "distress") and d == "recanvo"
        for v, d in zip(ds["valence"], ds["source_dataset"])]
sub  = ds.select([i for i, k in enumerate(keep) if k])
X = np.array(sub["emb_clap"], dtype="float32")
y = np.array([1 if v == "distress" else 0 for v in sub["valence"]])
groups = np.array(sub["lobo_group"])                 # speaker grouping

clf = LogisticRegression(max_iter=2000, class_weight="balanced")
proba = cross_val_predict(clf, X, y, groups=groups,
                          cv=LeaveOneGroupOut(), method="predict_proba")[:, 1]
print("valence  bal-acc", balanced_accuracy_score(y, proba > 0.5),
      " ROC-AUC", roc_auc_score(y, proba))   # ~0.69 / ~0.76 (RF ROC-AUC ~0.74)

# --- AUDIO: decode a waveform at native sample rate ---
a = ds[0]["audio"]            # {"array": np.ndarray, "sampling_rate": int}
print(ds[0]["clip_id"], a["sampling_rate"], a["array"].shape)

# --- COMMERCIAL-FRIENDLY subset (drop CC-BY-NC ESC-50) ---
commercial = ds.filter(lambda r: r["source_license"] != "CC-BY-NC-3.0")  # 7,534 rows

A runnable, fuller example (logreg + RF heads, proper LOBO) is in examples/train_head.py in the project repo.

Provenance & build

Built from data/datasets/v1_attend_ignore/manifest.csv (immutable v1 snapshot) + data/emb/{ast,wav2vec2,clap}.npz via scripts/build_hf_dataset.py. To retarget labels, edit data/datasets/v1_attend_ignore/label_map.yaml and rebuild.

Licensing

This dataset asserts no single combined license — each clip is governed by its original source license, recorded per row in the source_license column:

source clips license links
ReCANVo 7,077 CC-BY-4.0 license · source
DonateACry 457 ODbL-1.0 license · source
ESC-50 40 CC-BY-NC-3.0 license · source

The ESC-50 subset is non-commercial (CC-BY-NC-3.0). There is no blanket license over the whole collection — honor each source's terms individually. For a commercial-friendly subset, filter to source_license != "CC-BY-NC-3.0" (ReCANVo + DonateACry, 7,534 clips). Always cite the original datasets.

Downloads last month
37

Models trained or fine-tuned on owlgebra-ai/babycry