Papers › Sound Event Detection of Weakly Labelled Data with CNN-Transformer and Automatic...

Sound Event Detection of Weakly Labelled Data with CNN-Transformer and Automatic Threshold Optimization

10 Dec 2019arXiv:1912.04761links table onlyarchive 2025-07-28

Qiuqiang Kong, Yong Xu, Wenwu Wang, Mark D. Plumbley

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

Sound event detection (SED) is a task to detect sound events in an audio recording. One challenge of the SED task is that many datasets such as the Detection and Classification of Acoustic Scenes and Events (DCASE) datasets are weakly labelled. That is, there are only audio tags for each audio clip without the onset and offset times of sound events. \qk{We compare segment-wise and clip-wise training for SED that is lacking in previous works. We propose a convolutional neural network transformer (CNN-Transfomer) for audio tagging and SED, and show that CNN-Transformer performs similarly to a convolutional recurrent neural network (CRNN)}. Another challenge of SED is that thresholds are required for detecting sound events. Previous works set thresholds empirically, and are not an optimal approaches. To solve this problem, we propose an automatic threshold optimization method. The first stage is to optimize the system with respect to metrics that do not depend on thresholds, such as mean average precision (mAP). The second stage is to optimize the thresholds with respect to metrics that depends on those thresholds. Our proposed automatic threshold optimization system achieves a state-of-the-art audio tagging F1 of 0.646, outperforming that without threshold optimization of 0.629, and a sound event detection F1 of 0.584, outperforming that without threshold optimization of 0.564.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1912.04761")

Code

Syntology Ran 1 of 19 code samples harvested from 1 repository linked to this paper; 18 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: official repository: 19 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

qiuqiangkong/sound_event_detection_dcase2017_task4 officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 1 ran; 0 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran
18unverified

Licence: 19 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from qiuqiangkong/sound_event_detection_dcase2017_task4. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

move_data_to_device qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/pytorch_utils.py official repository ran MIT recorded; this copy not marked cleared · pointer only · 6e703419174005ee · report
activity_detection qiuqiangkong/sound_event_detection_dcase2017_task4/utils/vad.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · f4dff30cd8cfc4d1 · report
activity_detection_with_second_thres qiuqiangkong/sound_event_detection_dcase2017_task4/utils/vad.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 0ee9e38bde8e7696 · report
calculate_precision_recall_f1 qiuqiangkong/sound_event_detection_dcase2017_task4/utils/calculate_metrics.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 1349c3b2a705a7c1 · report
clip_bce qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/losses.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 1054ac2d218db84a · report
collate_fn qiuqiangkong/sound_event_detection_dcase2017_task4/utils/data_generator.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · d497b4fb90f048fb · report
create_logging qiuqiangkong/sound_event_detection_dcase2017_task4/utils/utilities.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · b104f90eac5b11a0 · report
do_mixup qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/pytorch_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · d4f4008124de38f4 · report
find_bgn_fin_pairs qiuqiangkong/sound_event_detection_dcase2017_task4/utils/vad.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 5cb0c395bc13697e · report
forward qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/pytorch_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 3fef75ce55cfc573 · report
get_filename qiuqiangkong/sound_event_detection_dcase2017_task4/utils/utilities.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 6f7539ff72b6da37 · report
get_loss_func qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/losses.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 8c5cf2ee2f049223 · report
get_metric qiuqiangkong/sound_event_detection_dcase2017_task4/utils/calculate_metrics.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · dc424c820e96f8a2 · report
get_weak_csv_filename qiuqiangkong/sound_event_detection_dcase2017_task4/utils/features.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 13cc96d3a655a1be · report
interpolate qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/models.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · ab133d31ba67d6f0 · report
pad_truncate_sequence qiuqiangkong/sound_event_detection_dcase2017_task4/utils/utilities.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 9f635b280d3ff53a · report
read_strong_csv qiuqiangkong/sound_event_detection_dcase2017_task4/utils/features.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · ced62483b0719293 · report
read_weak_csv qiuqiangkong/sound_event_detection_dcase2017_task4/utils/features.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · e2e38c61347ec137 · report
sed_average_precision qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/evaluate.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 7022972db0a9d9bd · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections