SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.04761 · 2019

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

arXiv · PDF · Open in the Atlas

Code that ran

18 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 13 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1912.04761.json · badge: /api/ran/1912.04761.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
qiuqiangkong/sound_event_detection_dcase2017_task4 canonical (classifier label)
classifier basis: census
18 ran · 1 no recorded run
FunctionStatusWhere it lives
activity_detection Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/vad.py
pointer only (licence: MIT) · get_code("f4dff30cd8cfc4d1")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

activity_detection_with_second_thres Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/vad.py
pointer only (licence: MIT) · get_code("0ee9e38bde8e7696")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_precision_recall_f1 Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/calculate_metrics.py
pointer only (licence: MIT) · get_code("1349c3b2a705a7c1")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

clip_bce Ran
ran, honoured the contract we drafted
qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/losses.py
pointer only (licence: MIT) · get_code("1054ac2d218db84a")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collate_fn Ran
ran; our contract draft was wrong, not the code
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/data_generator.py
pointer only (licence: MIT) · get_code("d497b4fb90f048fb")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_logging Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/utilities.py
pointer only (licence: MIT) · get_code("b104f90eac5b11a0")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

do_mixup Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/pytorch_utils.py
pointer only (licence: MIT) · get_code("d4f4008124de38f4")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_bgn_fin_pairs Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/vad.py
pointer only (licence: MIT) · get_code("5cb0c395bc13697e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_filename Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/utilities.py
pointer only (licence: MIT) · get_code("6f7539ff72b6da37")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_loss_func Ran
ran; our contract draft was wrong, not the code
qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/losses.py
pointer only (licence: MIT) · get_code("8c5cf2ee2f049223")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_metric Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/calculate_metrics.py
pointer only (licence: MIT) · get_code("dc424c820e96f8a2")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_weak_csv_filename Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/features.py
pointer only (licence: MIT) · get_code("13cc96d3a655a1be")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

interpolate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/models.py
pointer only (licence: MIT) · get_code("ab133d31ba67d6f0")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

move_data_to_device Ran
ran; our contract draft was wrong, not the code
qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/pytorch_utils.py
pointer only (licence: MIT) · get_code("6e703419174005ee")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pad_truncate_sequence Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/utilities.py
pointer only (licence: MIT) · get_code("9f635b280d3ff53a")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_strong_csv Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/features.py
pointer only (licence: MIT) · get_code("ced62483b0719293")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_weak_csv Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/utils/features.py
pointer only (licence: MIT) · get_code("e2e38c61347ec137")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sed_average_precision Ran
ran on a synthesized input
qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/evaluate.py
pointer only (licence: MIT) · get_code("7022972db0a9d9bd")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

forward Not yet run
unverified (harvested, no recorded run)
qiuqiangkong/sound_event_detection_dcase2017_task4/pytorch/pytorch_utils.py
pointer only (licence: MIT) · get_code("3fef75ce55cfc573")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, qiuqiangkong/sound_event_detection_dcase2017_task4, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 6 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 4 the same month, 4 later) and 13 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
interpolate 8 other papers
8 later
2305.11834 (2023-05)
Pengi: An Audio Language Model for Audio Tasks
2309.05767 (2023-09)
Natural Language Supervision for General-Purpose Audio Representations
2402.00282 (2024-02)
PAM: Prompting Audio-Language Models for Audio Quality Assessment
and 5 more not named here
move_data_to_device 5 other papers
1 the same month, 4 later
1912.10211 (2019-12)
PANNs: Large-Scale Pretrained Audio Neural Networks for Audio Pattern Recognition
2309.05767 (2023-09)
Natural Language Supervision for General-Purpose Audio Representations
2402.00282 (2024-02)
PAM: Prompting Audio-Language Models for Audio Quality Assessment
and 2 more not named here
clip_bce 2 other papers
1 the same month, 1 later
1912.10211 (2019-12)
PANNs: Large-Scale Pretrained Audio Neural Networks for Audio Pattern Recognition
2301.12503 (2023-01)
AudioLDM: Text-to-Audio Generation with Latent Diffusion Models
get_loss_func 2 other papers
1 the same month, 1 later
1912.10211 (2019-12)
PANNs: Large-Scale Pretrained Audio Neural Networks for Audio Pattern Recognition
2301.12503 (2023-01)
AudioLDM: Text-to-Audio Generation with Latent Diffusion Models
collate_fn 1 other paper
1 the same month
1912.10211 (2019-12)
PANNs: Large-Scale Pretrained Audio Neural Networks for Audio Pattern Recognition
create_logging 1 other paper
1 dated earlier
1903.00765 (2019-03)
Weakly Labelled AudioSet Tagging with Attention Neural Networks

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1912.04761")
get_code_for_paper("1912.04761")
have("1912.04761")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1912.04761.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1912.04761.svg)](https://syntology.ai/paper/1912.04761)

Connect an agent — have() is free.