Noise Event Detection in Indian Speech (Datathon@IndoML 2026, Track 1)
An ensemble of WavLM frame taggers that finds when non-speech noise happens in Indian-language speech recordings. Given .wav clips, it returns for each clip a list of (onset, offset) noise events in seconds. It scored 1.5926 (event F1 + segment Dice) and ranked 6th on the Track 1 leaderboard.
This Hugging Face repository is a complete, self-contained copy of the project: code, configs, the technical report, the six surviving model checkpoints, the habit model, the cached test posteriors of every ensemble member, and the leaderboard submission file. The same code is on GitHub at SharadhNaidu/noise-event-detection (release v1.0 holds the same weights).
Technical report (PDF): docs/technical_report.pdf (3 pages, IEEE two-column; LaTeX source in docs/report/).
Model card
Model details
| Developed by | Sharadh A Naidu, RV University (sharadhanaidu@rvu.edu.in) |
| Task | Class-agnostic noise event detection: onset and offset of every non-speech noise event |
| Architecture | Per member: WavLM-Base+ (first 4 of 12 transformer layers, or all 12 with a learned layer mix) + optional BEATs AudioSet-strong frame features (frozen or fine-tuned) β LayerNorm and concatenation β optional 2-layer Conformer β 2-layer BiGRU (256 per direction) β frame, clip, boundary-distance and RED (start/end latch) heads. Six member designs; the posteriors are averaged per route. |
| Frame rate | 20 ms frames, 8 output tracks: "any noise" plus 7 categories (animal, vehicle/traffic, baby/child, singing/music, phone/signal/alarm, appliance/machine, human non-speech) |
| Input | Any .wav, any sample rate and channel count; down-mixed to mono and resampled to 16 kHz |
| Output | predictions.jsonl in the official competition format (one line per clip) |
| Fine-tuned from | microsoft/wavlm-base-plus and BEATs_strong_1 from PretrainedSED v0.0.1 |
| Framework | PyTorch 2.4.1, transformers 4.44.2, scikit-learn 1.7.2 (habit model) |
Intended use
The model is intended for research on noise event detection in speech, for reproducing the Track 1 leaderboard result, and as a baseline for the Vaani noise-event task. It marks where noise occurs. The category tracks exist and are used inside the decoder, but the competition scored time spans only, so category labels are not part of the output and were never evaluated.
It is not intended for safety-critical monitoring, for identifying people from non-speech sounds, or for audio far from the training domain (e.g. music production audio or non-Indian field recordings) without re-validation.
Training data
Only the official Vaani Noise Event Dataset (CC-BY-4.0) release for Track 1 was used. No external dataset was used; AudioSet enters only through the pretrained BEATs weights.
| store | clips | content |
|---|---|---|
| Gold | 11,111 | human-verified timestamps, 21.85 h; weight 1 |
| Silver | 12,014 | unverified tier, longest event β₯ 1.5 s; weight 0.5 |
| TUNE | 1,257 | speaker-disjoint half of the validation set |
| synth_aug | 9,982 | 1β4 noise events inserted into quiet Gold clips, SNR β5β¦15 dB |
| synth_mask_t | 9,000 | one looped 2β8 s event masked by speech, SNR β12β¦2 dB |
The other validation half (DECIDE, 1,244 clips, no shared speakers) was held out to accept ensemble composition and post-processing stages; readout thresholds were tuned on TUNE. The one exception is v5all, which was trained on all of validation and used only in the synthetic route. Full augmentation details are in the report (Section I).
Evaluation
Official Track 1 metric: event-level F1 (onset and offset both within max(0.2 Γ reference duration, 50 ms), greedy one-to-one matching, micro-pooled) plus segment Dice (10 ms grid, per clip, averaged). Leaderboard (hidden test set, 5,517 clips):
| route | clips | Event F1 | Segment Dice |
|---|---|---|---|
| natural recordings | 3,437 | 0.4936 | 0.7178 |
| synthetic mixtures | 2,080 | 0.9929 | 0.9845 |
| leaderboard score | 5,517 | 1.5926 (rank 6) |
Limitations and risks
- Natural recordings are much harder than synthetic mixtures (F1 0.49 vs 0.99). Most remaining errors are one predicted event that spans several neighbouring reference events, or edges outside the scorer's tolerance.
- Three ensemble members (
v12,v12s62,v5all) lost their final weights when a cloud machine was replaced. Their cached test posteriors are included, so the leaderboard file can be rebuilt (official-scorer F1 0.9996 / Dice 0.9993 against the upload; byte-exact for the pre-TTA file, see below). The habit model's original pickle was also lost;checkpoints/habit_model.pklis a retrain with the same recipe that agrees with the shipped decisions on 98.8 % of natural clips. Live inference substitutes the surviving checkpoints and agrees with the submitted file at event F1 0.984 / Dice 0.972 under the official scorer. - The post-processing was tuned to how this dataset's annotators label (e.g. whole-clip background events), so it may not transfer to other annotation conventions.
- Routing between the natural and synthetic decoders uses the waveform peak (natural clips peak at int16 full scale, synthetic mixtures at 0.99). For audio from other sources, check which route your clips take.
Files in this repository
| path | content |
|---|---|
checkpoints/*.pt |
the six member checkpoints (PyTorch, each stores its full training config) |
checkpoints/habit_model.pkl |
labelling-habit classifier (scikit-learn 1.7.2; retrain, see Limitations) |
posteriors/post8_test_audio_*.pkl |
cached test posteriors of all 8 members (+ TTA variants) |
md5.txt |
md5 of every file above |
submissions/sub_1016_tta3.zip |
the file scored 1.5926 on the leaderboard |
docs/technical_report.pdf |
the technical report; LaTeX source in docs/report/ |
The .pt and .pkl files are Python pickles. Load them only with the code in this repository and only if you trust the source.
Citation
@techreport{naidu2026noise,
author = {Sharadh A Naidu},
title = {Annotation-Aware WavLM Ensembles for Noise Event Detection in Indian Speech},
institution = {RV University},
type = {Technical report, Datathon@IndoML 2026, Track 1},
year = {2026},
url = {https://huggingface.co/SharadhNaiduTrains/noise-event-detection}
}
Please also cite the dataset (P. Kumar J et al., "VAANI noise event dataset", arXiv:2609.02474, 2026), WavLM (Chen et al., IEEE JSTSP 2022), BEATs (Chen et al., ICML 2023) and PretrainedSED (Schmid et al., ICASSP 2025).
Contents
- Quick start (inference)
- Method
- Repository layout
- Environment and hardware
- Checkpoints and assets
- Reproducing the leaderboard file
- Training
- Tests
- Score history
Quick start (inference)
git lfs install
git clone https://huggingface.co/SharadhNaiduTrains/noise-event-detection && cd noise-event-detection
python3.10 -m venv .venv && source .venv/bin/activate # Windows: py -3.10 -m venv .venv && .venv\Scripts\activate (Ubuntu: apt install python3.10-venv)
pip install -r requirements_inference.txt
bash scripts/run_inference.sh /path/to/wavs predictions.zip # or a .zip of wavs, e.g. input_data.zip
In this Hugging Face copy the checkpoints are already in checkpoints/. run_inference.sh md5-checks them (files with the right md5 are not downloaded again), downloads the BEATs weights from PretrainedSED on the first run, then calls inference/infer.py. The md5 table is the committed md5.txt, so once the assets are in place no network is needed for them. The same steps by hand:
python scripts/download_assets.py --what checkpoints # verifies checkpoints/ (already in this repo; ~2.3 GB)
python scripts/download_assets.py --what beats # -> ext/PretrainedSED/resources/BEATs_strong_1.pt
python inference/infer.py --audio /path/to/wavs --out predictions.zip [--device cuda|cpu] [--batch 8]
Input: a folder (searched recursively) or a .zip of .wav files. The clip id is the file name without .wav, and ids must be unique. Any sample rate and channel count is accepted: audio is down-mixed to mono and resampled to 16 kHz.
Output: a zip holding one predictions.jsonl, the official submission format, with one line per input clip:
{"clip_id": "IISc_VaaniProject_..._0332", "events": [{"onset": 0.42, "offset": 1.86}, {"onset": 3.1, "offset": 3.52}]}
Times are in seconds, rounded to 3 decimals. Every input clip gets a line. The decoder has the empty-clip fallback used on the leaderboard: a clip with nothing above threshold gets its most likely span, so the leaderboard file has no empty clips. Only inputs too short to form a frame, or zero-length/header-only files, get "events": []. These inputs were tested end to end: mono and stereo, 16, 22.05 and 48 kHz, 8-bit PCM, 16-bit PCM and float wavs, clips from 1 sample to 40 s, digital silence, and a header-only file.
Offline machines. Run inference once with network access (or copy checkpoints/, ext/PretrainedSED/resources/BEATs_strong_1.pt and the Hugging Face cache, ~/.cache/huggingface). That run also caches microsoft/wavlm-base-plus at the pinned revision 4c66d48. Afterwards HF_HUB_OFFLINE=1 bash scripts/run_inference.sh ... runs with no network: present files with the right md5 are not downloaded again.
Other flags: --work DIR sets the scratch folder for the audio store, BEATs features and linked checkpoints (default workdir/infer). The large per-run audio and feature files are deleted at the end unless you pass --keep-work. --limit N runs the first N clips (a smoke test).
Run time for the 5,517 test clips (about 10.8 h of audio) on an RTX 4070 Laptop (8 GB) was 66 min in our full run, measured while other jobs shared the machine. Most of it goes on the three TTA members. A GPU with 8 GB or more is recommended. CPU works but is slow.
GPU support: the pinned torch 2.4.1+cu118 wheels ship kernels for compute capability 3.7β9.0, i.e. Kepler (K80) to Hopper (A100, H100, RTX 20/30/40, T4, V100). They need an NVIDIA driver β₯ 450 (CUDA 11.x). RTX 50xx and other Blackwell GPUs need a newer torch build, which we have not tested. On such machines, --device cpu runs every step on CPU, including BEATs feature extraction. If you run short of GPU memory, lower --batch (default 8).
Messages you can ignore: transformers prints that pos_conv_embed ... weight_g/weight_v were "not used" and parametrizations.weight.original0/1 were "newly initialized". This comes from how newer torch names weight-norm parameters when the pretrained hub weights load. Every checkpoint stores those tensors and is loaded with strict=True right afterwards, so nothing stays at its random initial value. On Windows you may also see 1Torch was not compiled with flash attention (sic) (torch falls back to another attention kernel) and, on a cold cache, a huggingface_hub note about symlinks. Neither affects the output.
Method
Every member is a frame model at 20 ms that outputs 8 tracks: "any noise" plus 7 noise categories. Members are fine-tuned from microsoft/wavlm-base-plus (4 or 12 transformer layers). Some also use BEATs AudioSet-strong features, either frozen ("bts") or fine-tuned ("bft"). They are trained with src/finetune.py on 5 s crops.
- Routing. The test set mixes real ("natural") recordings and synthetic mixtures. Natural clips peak at int16 full scale (β₯ 32765), synthetic clips at 0.99 (
submit_ens.natural_by_peak). The rule is exact on validation and test as released; audio that was re-encoded or level-normalised would need a different router. - Ensemble. Each route averages the member posteriors with equal weight (
ensembleinconfigs/model_config.yaml):- natural:
hon_A (TTA), bts_C, bft_S (TTA), bts_R, v12, v5_S (TTA), v12s62 - synthetic:
hon_A, bts_C, bft_S, bts_R, v5all, v5all - TTA means the clip is also run zero-padded by 0.64 s and by 1.28 s on both sides. This shifts the 5 s crop grid and gives the clip edges context. The pads are trimmed off and the three outputs averaged (
finetune.tta_posteriors).
- natural:
- Decoding (
src/postpass.py; constants underpostpassinconfigs/model_config.yaml):- Readouts. Each route uses a frozen hysteresis readout (
readoutsinconfigs/model_config.yaml), then an empty-clip fallback. - Synthetic level filter. Synthetic events quieter than β16 dB relative to the clip are dropped. The labels mark only inserted noise, not breaths already present in the clean speech.
- Background extension (
bgext). An event of at least 1 s whose dominant category is a long background class (0, 3, 5) is extended while the any-noise posterior stays β₯ 0.30. Any two events of at least 1 s that are less than 0.5 s apart are joined when the gap itself stays β₯ 0.30. - Habit full-span. Some annotators label a persistent background as one event covering the whole clip. A small model (
src/habit.py: HistGradientBoosting on clip-pooled BEATs tags, recording state and duration) predicts this from the clip. For natural clips with p β₯ 0.5 where no single event covers 90 % of the clip, one full-span event is added; the existing events are kept. - Type-C inner events. A category run (score β₯ 0.65 for at least 0.3 s, gaps under 0.12 s bridged) is added as its own nested event when it sits inside a live event at least 2Γ its length whose dominant category is different. The habit full-span event is never a host.
- Synthetic edge shift. Synthetic onsets and offsets move by +4/β4 ms (clamped to the clip) and then by +4/β2 ms.
- Readouts. Each route uses a frozen hysteresis readout (
Repository layout
The layout follows the organisers' suggested structure:
noise-event-detection/
βββ README.md
βββ LICENSE MIT
βββ requirements_train.txt training environment
βββ requirements_inference.txt inference environment (requirements_inference.lock.txt: every package, as tested)
βββ train/
β βββ train.py train a member (or the habit model) with its exact submitted configuration
β βββ config.yaml training configuration of every member (stored in each checkpoint)
β βββ utils.py config -> verified src/finetune.py command
β βββ train_habit.py habit model (called by train.py --habit)
β βββ member_go_b.sh, test_posteriors.sh server launchers used during the competition
β βββ TRAINING.md where and when each member was trained
βββ inference/
β βββ infer.py wav folder or zip -> predictions.zip (entry point for evaluation)
β βββ utils.py wav input -> 16 kHz audio store, checkpoint linking
βββ checkpoints/ final model checkpoints: habit_model.pkl in git; the 6 member .pt files
β (162-760 MB each, over GitHub's 100 MB limit) are fetched from release v1.0
β by scripts/download_assets.py (md5 in md5.txt); the HF mirror stores them here
βββ configs/
β βββ model_config.yaml inference configuration: ensemble, post-pass constants, readouts
βββ scripts/
β βββ run_inference.sh one-command inference (verifies assets, then inference/infer.py)
β βββ download_assets.py fetch + md5-verify checkpoints / posteriors / BEATs weights
β βββ build_audio_store.py wav folder/zip -> 16 kHz int16 store (the format every src/ module reads)
β βββ make_silver_long.py silver_audio -> silver_long training store
β βββ tta_posteriors.py per-member posteriors (plain or TTA) on a store
βββ docs/
β βββ technical_report.pdf the 3-page technical report
β βββ report/ its LaTeX source and figure script (pdflatex x2)
βββ src/ model, training and decoding library used by train/ and inference/
βββ reproduce/ rebuild_lb.py: cached test posteriors -> the exact leaderboard file
βββ ext/PretrainedSED/ vendored BEATs code from fschmid56/PretrainedSED (MIT; weights downloaded)
βββ tests/ pytest suite
βββ submissions/sub_1016_tta3.zip the file scored 1.5926 on the leaderboard
βββ md5.txt md5 of every release asset
In src/, the final system uses finetune.py, model.py, train.py (readout and decoding helpers, imported as train), gate.py, members.py, submit_ft.py, submit_ens.py, postpass.py, habit.py, extract_*.py, synth.py, make_valtune.py and their imports. Other modules (e.g. train_epn*, boxdec, densedec, joint_interval) are experiments that did not enter it. src/paths.py reads $INDOML_ROOT (default ./workdir: audio stores, features, checkpoints) and src/data.py reads $INDOML_DATA (default ./data).
Environment and hardware
| Python | 3.10 (3.10.21 tested) |
| PyTorch | 2.4.1 + CUDA 11.8 wheels (--extra-index-url https://download.pytorch.org/whl/cu118) |
| Key packages | transformers 4.44.2, numpy 2.2.6, scikit-learn 1.7.2 (the habit-model pickle needs this exact version), scipy 1.15.3, librosa 0.10.2.post1, soundfile 0.12.1, einops 0.8.1, huggingface_hub 0.34.4. Pinned in requirements_*.txt; requirements_inference.lock.txt freezes every package of the tested inference environment |
| Training GPUs | NVIDIA A100 cloud notebook (bft_S, v5_S, v12, v12s62, v5all; 29 GB of GPU memory available) and NVIDIA GeForce RTX 4070 Laptop, 8 GB (hon_A, bts_C, bts_R). Later work ran on an A100 MIG 3g.20gb slice (20 GB) with 15 CPU cores and 16 GB RAM, driver 470 (CUDA 11.4 runtime; cu118 wheels run on it, cu121+ do not) |
| Training CUDA | 11.8 wheels (driver 470 / CUDA 11.4 on the server, driver 561.09 on the laptop) |
| Inference (tested) | Windows 11, Intel i9-14900HX, 32 GB RAM, RTX 4070 Laptop 8 GB, driver 561.09, CUDA 11.8 wheels |
| Precision | bf16 autocast on CUDA, fp32 on CPU |
| Threads | set OMP_NUM_THREADS=12 MKL_NUM_THREADS=12 on many-core hosts. Uncapped torch ran 4.6Γ slower on the 256-core server |
| System dependencies | libsndfile (bundled in the soundfile wheels on Windows/macOS; apt install libsndfile1 on minimal Linux), python3.10-venv on Ubuntu, bash for the .sh launchers (they call python from the active venv; override with PYTHON=/path/to/python for run_inference.sh, PY= for the train/*.sh launchers), internet access on the first run (asset download and the wavlm-base-plus config/weights from the HF hub; see Offline machines). No ffmpeg is needed: inputs are wav |
Pretrained dependencies
| model | source | version |
|---|---|---|
| WavLM Base+ | microsoft/wavlm-base-plus (HF hub, fetched by transformers; only its config matters, every weight is overwritten by our checkpoints) |
tested with revision 4c66d4806a428f2e922ccfa1a962776e232d487b |
BEATs (AudioSet-strong fine-tuned, BEATs_strong_1.pt) |
PretrainedSED release v0.0.1, MIT | md5 0b3d1253749058df5551beeb0a8f5e87 |
The model code for BEATs is vendored in ext/PretrainedSED/ (MIT, licence included).
Checkpoints and assets
In this Hugging Face repository the checkpoints and cached posteriors are stored directly in checkpoints/ and posteriors/ (Git LFS), with their md5 in md5.txt. On GitHub the same files are attached to release v1.0. scripts/download_assets.py checks each file against md5.txt and downloads only missing or corrupt ones from that release.
| file | role | size |
|---|---|---|
checkpoints/hon_A.pt |
WavLM-base+ (4 layers), 8 epochs, seed 42 | 162 MB |
checkpoints/bts_C.pt |
+ frozen BEATs-strong features, 2-block conformer head | 173 MB |
checkpoints/bft_S.pt |
+ fine-tuned BEATs-strong | 533 MB |
checkpoints/bts_R.pt |
bts_C recipe + per-class presence (RED) head | 173 MB |
checkpoints/v5_S.pt |
+ fine-tuned BEATs, LLRD 0.8, 6 epochs, seed 13 | 533 MB |
checkpoints/v12_ep4.pt |
12-layer WavLM (layer sum) + fine-tuned BEATs, epoch 4 of the v12 run | 760 MB |
checkpoints/habit_model.pkl |
labelling-habit model (scikit-learn 1.7.2) | 1.5 MB |
posteriors/post8_test_audio_<tag>.pkl |
cached test posteriors of all 8 members (+ _tta for hon_A, bft_S, v5_S) |
11 Γ 81 MB |
Lost checkpoints (please read)
The final weights of three ensemble members, v12, v12s62 and v5all, were lost when the cloud A100 notebook was replaced on 2026-10-10. Their test posteriors survive and are published, so the leaderboard file can still be rebuilt from them (next section). The live inference/infer.py substitutes them and prints a banner saying so:
| lost member | used in | live substitute |
|---|---|---|
v12 (12-layer, seed 61, final epoch) |
natural | v12_ep4 (same run, epoch 4) |
v12s62 (12-layer, seed 62) |
natural | v12_ep4 |
v5all (v5_S recipe trained on all validation data) |
synthetic (Γ2) | v5_S |
| habit model (original pickle) | natural post-pass | checkpoints/habit_model.pkl, retrained with the same recipe (train/train_habit.py); agrees with the shipped test decisions on 98.8 % of natural clips |
What the substitution costs. We ran live inference on all 5,517 test clips and compared the result with the uploaded leaderboard file (PP.agreement, 0.2 s collar):
| route | clips | event F1 vs LB file | segment Dice vs LB file |
|---|---|---|---|
| synthetic | 2,080 | 0.9986 | 0.9934 |
| natural | 3,437 | 0.9599 | 0.9556 |
Scored instead with the official scorer (src/reference_scorer.py, the uploaded file as reference), which the technical report quotes: all clips F1 0.9844 / Dice 0.9716, natural 0.9661 / 0.9589, synthetic 0.9981 / 0.9925.
Synthetic predictions change only by millisecond edge shifts. Natural predictions move more, because 2 of the 7 natural members are replaced by one checkpoint and the habit model is the retrain. The exact leaderboard file is therefore reproduced from the cached posteriors (next section), and live inference is the closest run possible with the surviving weights.
All three can be retrained with the commands in Training. Seeds are fixed, but bit-exact equality with the lost weights is not guaranteed.
Reproducing the leaderboard file
This rebuilds sub_1016_tta3.zip from the cached posteriors without running any network:
pip install -r requirements_inference.txt
python scripts/download_assets.py --what posteriors # verifies posteriors/ (already in this repo)
python scripts/build_audio_store.py /path/to/input_data.zip test_audio # organisers' test zip -> workdir/audio/
python reproduce/rebuild_lb.py # --stage tta3 (default) or typec_syn86
Expected output:
inner md5 1315f264bb9ed3864db26530ad50d1f9 | expected for tta3 from the published posteriors: 1315f264... -> EXACT
vs uploaded LB file sub_1016_tta3.zip: clips differing 383/5517, events 13530 vs 13538, event F1 (0.2 s collar) 0.9996, segment Dice 0.9989
Why tta3 is not byte-identical to the uploaded file. The uploaded file was built from TTA posterior caches that were lost with the old machine. The published *_tta caches were recomputed on an RTX 4070 from the same checkpoints and code. bf16 kernels differ slightly between GPUs (mean |Ξ| β 4e-3 per frame), so a few edges move by one frame. Against the uploaded file the rebuild agrees at event F1 0.9996 and Dice 0.9989 (0.2 s collar, pooled Dice). With the official scorer it is F1 0.9996 / Dice 0.9993 (natural 0.9991 / 0.9988, synthetic exact).
Exact check. --stage typec_syn86 runs the same decode chain on the non-TTA caches, which are the originals. It reproduces the competition-time file sub_1016_typec_syn86 byte for byte (md5 f820fdfd4a94aa0c0fa203fb1b7f1023). That shows the decode chain itself is exact. tta3 is that file with the TTA posteriors swapped in for hon_A, bft_S and v5_S.
Habit decisions. By default the rebuild uses the 124 decisions of the shipped habit model (reproduce/habit_test_shipped.json). --habit-model checkpoints/habit_model.pkl recomputes them with the retrained model instead, which agrees with the shipped decisions on 98.8 % of natural clips.
Training
Paths come from two variables: INDOML_ROOT (src/paths.py, default ./workdir) holds audio/ stores and ckpt/ outputs, and INDOML_DATA (src/data.py, default ./data) holds the organisers' validation.zip and input_data.zip. Install with pip install -r requirements_train.txt.
1. Data. The training data is the Vaani Noise Event Dataset (CC-BY-4.0). It is gated: accept its terms on Hugging Face and export HF_TOKEN=.... Download its parquet shards to $INDOML_ROOT/raw/data/, e.g. huggingface-cli download ARTPARK-IISc/Vaani-Noise-Event-Dataset --repo-type dataset --local-dir ${INDOML_ROOT:-workdir}/raw. Put validation.zip and input_data.zip (competition files) in $INDOML_DATA.
2. Audio stores (run from src/):
| store | clips | command |
|---|---|---|
gold_audio |
11,111 | python extract_audio.py hf --name gold_audio --tier verified_timestamps --workers 14 |
val_audio |
2,501 | python extract_audio.py val --name val_audio --workers 14 |
test_audio |
5,517 | python extract_audio.py test --name test_audio |
valtune_audio |
1,257 | python make_valtune.py --name valtune_audio --half tune (speaker half of validation, split_by_speaker(0.5, seed=42)) |
valall_audio |
2,501 | python make_valtune.py --name valall_audio --half all (only for v5all) |
synth_aug |
9,982 | python synth.py --name synth_aug --n 10000 (seed 0, SNR β5β¦15 dB, 1β4 inserted events, TUNE-half noise bank) |
synth_mask_t |
9,000 | python -c "import synth; synth.build_masked('synth_mask_t')" (seed 5, SNR β12β¦2 dB, 2β8 s long events masked by speech, TUNE-half bank) |
silver_long |
12,014 | the unverified_timestamps tier: python extract_audio.py hf --name silver_audio --tier unverified_timestamps, then python ../scripts/make_silver_long.py (keeps clips whose longest event is β₯ 1.5 s) |
The gold_audio and val_audio commands are the verbatim launch lines. The other rows follow the scripts' defaults and our notes. The original launch lines for synth_aug (--n) and silver_long (an extra filter removed 216 of 12,230 candidate clips) were not recorded exactly.
BEATs features. bts_C and bts_R read frozen BEATs-strong features precomputed for every store they touch ($INDOML_ROOT/beats/). Build them once after the stores, from src/ (needs python scripts/download_assets.py --what beats):
python extract_beats.py gold_audio synth_aug synth_mask_t valtune_audio silver_long val_audio test_audio
3. Members. train/config.yaml holds the full argparse config stored inside each checkpoint, plus the recipes of the three lost members (v12, v12s62, v5all). train/train.py turns an entry into the exact src/finetune.py command, checks that it re-parses to the config, and runs it:
python train/train.py --member hon_A # train one member: hon_A bts_C bft_S bts_R v5_S v12_ep4 v12 v12s62 v5all
python train/train.py --member hon_A --dry-run # only print the verified command
python train/train.py --print # the commands of every member
python train/train.py --member v5_S -- --workers 4 # extra finetune.py flags after -- (the last value wins)
For example, hon_A runs:
cd src && python finetune.py --train-stores gold_audio synth_aug synth_mask_t valtune_audio silver_long --tag hon_A \
--enc-layers 4 --batch 6 --accum 3 --no-boundary-stores silver_long --p-center 0.0 --silver-w 0.5 --workers 0
Checkpoints are written to $INDOML_ROOT/ckpt/<tag>.pt. v12_ep4 is the v12 run; the shipped file is its epoch-4 snapshot (<tag>_ep4.pt). train/TRAINING.md records where and when each member was launched, with the server launchers used for v12, v12s62 and v5all.
4. Habit model.
python train/train.py --habit --out checkpoints/habit_model.pkl # runs train/train_habit.py
This trains on gold plus the TUNE half of validation and reports AUC on the held-out DECIDE half. Expected: gold hold-out AUC β 0.79, DECIDE AUC β 0.73.
5. Test posteriors for the rebuild. Training writes checkpoints to $INDOML_ROOT/ckpt/, which is where this script reads them. To use the downloaded ones instead, copy them there first:
mkdir -p workdir/ckpt && cp checkpoints/*.pt workdir/ckpt/
python scripts/tta_posteriors.py hon_A test_audio [--tta] --out posteriors/ # needs workdir/audio/test_audio + BEATs features of test_audio for bts_*
Tests
pytest # decode, habit, inference I/O, asset download, training-config round trip; needs no data or weights
pytest -m data # model/feature tests; need scripts/download_assets.py (+ checkpoints in $INDOML_ROOT/ckpt) and the audio stores
Score history
| LB | natural F1 / Dice | synthetic F1 / Dice | what changed |
|---|---|---|---|
| 1.5831 | 0.4834 / 0.7083 | not reported | 7-member natural ensemble and 6-member synthetic ensemble, frozen readouts, synthetic level filter |
| 1.5852 | 0.4830 / 0.7096 | 0.9925 / 0.9851 | background extension (bgext) + synthetic edge shift +4/β4 ms |
| 1.5902 | 0.4879 / 0.7163 | 0.9925 / 0.9851 | habit full-span model |
| 1.5907 | 0.4910 / 0.7163 | 0.9925 / 0.9851 | type-C inner events in habit clips |
| 1.5926 | 0.4936 / 0.7178 | 0.9929 / 0.9845 | second synthetic shift (+4/β2 ms) + TTA (0 / 0.64 / 1.28 s pads) on hon_A, bft_S, v5_S. Final. |
Per-route numbers are the leaderboard's own breakdown of each upload.
License
The code in this repository is released under the MIT License. The vendored ext/PretrainedSED/ code keeps its own MIT licence, the BEATs weights are under their authors' terms, and the VAANI noise-event data is CC-BY-4.0.
Model tree for SharadhNaiduTrains/noise-event-detection
Base model
microsoft/wavlm-base-plus