Accept the terms to download the SNL laughter model
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
This model is released under CC BY-NC 4.0. By downloading it you agree to: (1) use it, and anything you make from it, for non-commercial purposes only; (2) credit the SNL Audience Study and its release (0-dev.2026-11-23, https://huggingface.co/datasets/dinoclub/snl-audience-study) in any work that uses it or a model fine-tuned from it; (3) not redistribute these weights, or weights derived from them, under any other licence. The base model's MIT notice (NOTICE) travels with the weights.
Log in or Sign Up to review the conditions and access this model content.
Pre-publication: open for review. These files and figures may change before publication. Corrections are welcome at fb9542@wayne.edu.
snl-laughter-ft: laughter, applause and cheering in SNL broadcast audio
The listening model of the SNL Audience Study: a small sound-event model that marks, every 40 ms, how likely the audio holds laughter, applause and cheering. It is the measure behind the study's release 0-dev.2026-11-23 (dataset), shipped with the exact reader the study uses, its frozen operating points and, separately, the study's per-chain corrections.
What it does
- Input: audio (any file ffmpeg reads, or a 16 kHz mono float32 numpy array).
- Output, per 40 ms frame: P(laughter), P(applause), P(cheering) between 0 and 1; and, for each kind, the seconds and spans at its frozen operating point (laughter 0.5581, applause 0.2959, cheering 0.4131).
- Model: frame_mn10 (about 3 million parameters with the new head, a frame-level MobileNet pre-trained on AudioSet Strong) fine-tuned with a new five-output frame head. Two checkpoints (training seeds 0 and 2) are averaged.
- The reading (
snl_laughter_reader.py, as the study reads a broadcast): each checkpoint reads 10 s segments on a grid that starts at 0, 3.32 and 6.64 s (frame offsets 0, +83, +166), in batches of 32; the three reads are averaged in probability, then the two checkpoints. A span is on at the point and off below it, gaps under 0.2 s are merged and spans under 0.3 s dropped. - Two further outputs, P_R (an auxiliary training target) and P_K (claps), are produced by the head but were never validated. Do not use them.
How it was trained
- Fine-tuned on the study's hand-coded windows of SNL broadcast tape: second-by-second codes of laughter, applause, cheering and claps made by ear (label set b), 10 s training clips from 679 broadcasts (612 for training, 67 for early stopping), each clip shifted in time by up to 5 s and passed through one of five recording chains (clean, MP3 80 and 128 kb/s, AC-3 64 kb/s, AAC 96 kb/s).
- Laughter in laughs shorter than one second was weighted three times in the loss (masked, class-balanced binary cross-entropy).
- The new head's rows started from the base model's AudioSet rows for Laughter, Applause, Cheering and Clapping. Training settings: learning rate 3e-5 (body) and 3e-4 (head), weight decay 1e-4, batch 16, up to 12 epochs with early stopping (patience 3).
- No audio, labels or transcripts are shipped, here or in the dataset.
How good it is
Measured against the ear on 573 hand-coded windows from 539 broadcasts, each window read by a model that never trained on its broadcast. Cross-validated, not blind-tested: the measure was chosen and checked on the same hand-coded tape, so its accuracy figures may run a little high. A further set of hand-coded windows is held back, sealed and unscored, for a later test. The model was the best of at least 39 candidates scored on those windows.
| Figure (laughter unless named) | Value | Key |
|---|---|---|
| Error against the ear, E = sum |model - ear| / sum ear per window, corrected by chain out of fold | 0.230 (0.212 to 0.251) | bl15.card.E.row=ft_bsx_shift3@0-dev.2026-11-23 |
| Whole laughs the ear coded that the model's marks touch | 96.3% (95.4% to 97.2%) | bl15.card.ev_all.row=ft_bsx_shift3@0-dev.2026-11-23 |
| Laughter seconds on applause, cheering or claps the ear did not code as laughter | 2.9% | bl15.card.share_A_lfl.row=ft_bsx_shift3@0-dev.2026-11-23 |
| Talk lean (talk read against the ear, over the rest), raw, one correction per chain | 0.83 (0.79 to 0.88) | bl5.talk_lean.cut=none.instrument=ft_bsx_shift3@0-dev.2026-11-23 |
| Talk lean under the study's correction (chain x talk/rest) | 0.97 (0.92 to 1.03) | bl5.talk_lean.cut=chain_talk.instrument=ft_bsx_shift3@0-dev.2026-11-23 |
| Applause, error against the ear | 0.435 (0.384 to 0.498) | bl15.kinds.applause.E.row=measure@0-dev.2026-11-23 |
| Cheering, error against the ear | 0.612 (0.530 to 0.717) | bl15.kinds.cheering.E.row=measure@0-dev.2026-11-23 |
Intervals are 95%. "Talk" is Weekend Update and the monologue. Applause and cheering were adopted although they missed the study's pre-set guards on short events (applause found 69.2% of the ear's applause events under one second; cheering 82.4%).
Reproducing the study's read. On a five-minute excerpt of one broadcast the study read, this reader on Apple MPS gives the study's stored probabilities exactly at their stored float16 precision (largest difference 0.00024, every cell equal after rounding) and identical seconds at all three points. On CPU, 99.8% of cells are equal after rounding and the seconds are identical.
Limits
- One show's room and microphones. Trained and checked only on Saturday Night Live broadcasts: one studio audience, its mics and its mix, over five decades of broadcast and recording chains. It is not a general laughter detector; check it against your own ear before using it on other audio.
- Broadcast chains. Its raw seconds over-mark relative to the ear and the amount depends on the recording chain (mono, stereo MP3,
other stereo, 5.1). The study corrects for this with factors fitted on its own windows (
corrections_snl_chains.json). Those factors are not part of the model's output and do not transfer to other recordings. - Talk. Uncorrected, it reads talk (Weekend Update, monologues) at 0.83 of the ear relative to the rest of the show.
- Level. It reads audio at the broadcast's own level (leave
--gain-dbat 0 for ordinary files). - Devices. The study's reads ran on Apple MPS; other devices agree to float rounding, which can move a frame that sits exactly at a point.
How to run it
git clone https://github.com/fschmid56/PretrainedSED
git -C PretrainedSED checkout 1aa47e482f7e89904cba2338999345025d8b4e36
pip install -r requirements.txt # plus ffmpeg on your PATH
python snl_laughter_reader.py your_audio.wav --pretrainedsed PretrainedSED --out frames.csv
It prints the seconds and span counts of each kind at its frozen point and writes per-frame probabilities to frames.csv. From
Python:
import snl_laughter_reader as R
dev = R.pick_device() # mps, cuda or cpu
models = R.load_models("PretrainedSED", dev)
t, P = R.read(y, models, dev) # y: float32, 16 kHz mono; P columns: R, L, A, C, K
print(R.seconds(t, P)) # laughter (P_L), applause (P_A), cheering (P_C)
The PretrainedSED code supplies the frame_mn10 architecture only. Its base checkpoint (frame_mn10_strong_1.pt) is not needed:
the two files in checkpoints/ hold every weight, and the reader loads them strictly.
Files
| File | What it is | md5 |
|---|---|---|
checkpoints/seed0.pt |
fine-tuned frame_mn10, seed 0 (state_dict and training metadata) |
225401942a5a214bf0c45e7eeaa668dc |
checkpoints/seed2.pt |
the same, seed 2 | 4ee82dc20f0b3aad10236a98ce3b58a3 |
snl_laughter_reader.py |
the reader | |
operating_points.json |
the frozen points, the reading and the span rule | |
corrections_snl_chains.json |
the study's per-chain corrections, not part of the model's output | |
requirements.txt |
pinned versions the reader was tested with | |
LICENSE, NOTICE |
CC BY-NC 4.0; the base model's MIT notice and AudioSet attribution |
The fine-tune started from PretrainedSED's frame_mn10_strong_1.pt (md5 e0f19bbdf480cafea8d9ac540dcf4fb6).
How to fine-tune it further
Pointers only. Build the model as build_model in the reader does, load a checkpoint, and train the strong head and body on your own
frame labels. PretrainedSED's ex_dcase2016task2.py shows a downstream fine-tuning loop for these models. The study used the model in
eval() mode throughout (BatchNorm statistics frozen), a lower learning rate for the body than the head, short random time shifts and
codec augmentation. Fine-tuned models stay under CC BY-NC 4.0 and must credit the study.
Credits
- Base model: frame_mn10 from PretrainedSED, MIT licence, copyright (c) 2024 Florian Schmid (https://github.com/fschmid56/PretrainedSED). Please also cite: F. Schmid, T. Morocutti, F. Foscarin, J. Schlüter, P. Primus and G. Widmer, "Effective Pre-Training of Audio Transformers for Sound Event Detection", ICASSP 2025, arXiv:2409.09546.
- Base model's training labels: Google's AudioSet Strong labels, CC BY 4.0.
- This fine-tune, its reader, points and corrections: the SNL Audience Study, release 0-dev.2026-11-23, CC BY-NC 4.0. The study's data: https://huggingface.co/datasets/dinoclub/snl-audience-study (access by request while hand alignment is under way).
Cite as: The SNL Audience Study, snl-laughter-ft (release 0-dev.2026-11-23), https://huggingface.co/dinoclub/snl-laughter-ft.
Contact
Errors, questions and attribution help: fb9542@wayne.edu.