# 声音事件检测

声音事件检测（sound event detection, SED）是一项机器学习任务，其目标是识别一段录音中出现了哪些声学事件以及它们各自出现在什么时间，并为每个事件输出一个类别标签及起始与结束时间。SED 与音频标注（audio tagging）不同：后者对每个文件中的每个类别只给出一个存在性预测，而不含时间信息<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.05463)</sup>；SED 也与声音事件定位与检测（sound event localization and detection, SELD）不同：后者还额外估计每个事件到来的方向<sup>[2](https://www.nature.com/articles/s44384-025-00036-3)</sup>。形式上，SED 可以看作音频标注（预测 K 个事件类别中哪些出现）与时间边界检测（定位每个事件的起始时间 \( t_{\text{on}}^{c} \) 和结束时间 \( t_{\text{off}}^{c} \)）的组合<sup>[3](https://link.springer.com/article/10.1007/s44443-025-00181-5)</sup>。

| 关键事实 | 详情 |
|---|---|
| 输出 | 逐类别、帧级活动；每个事件带有类别、起始时间和结束时间<sup>[3](https://link.springer.com/article/10.1007/s44443-025-00181-5)</sup> |
| 帧长 | 分析帧通常为 20–100 毫秒<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.05463)</sup> |
| 标注与检测 | 每个文件每类只给一个预测属于标注，不是检测<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.05463)</sup> |
| 主要指标 | 复音声音检测分数（PSDS），2021 至 2024 年为 DCASE 家庭环境声音事件检测任务 4 的主要指标；2025 年，任务 4 变为声音场景的空间语义分割，以类别感知的信失真比提升（CA-SDRi）评估<sup>[4](https://arxiv.org/html/2406.08056)</sup> |
| 关键数据集 | DESED、TUT Sound Events 2016、AudioSet、MAESTRO<sup>[5](https://dcase.community/challenge2021/task-sound-event-detection-and-separation-in-domestic-environments)</sup><sup> • </sup><sup>[6](https://dcase.community/challenge2024/task-sound-event-detection-with-heterogeneous-training-dataset-and-potentially-missing-labels)</sup> |
| 主流架构 | 带注意力池化的 CRNN，越来越多地与 BEATs 等预训练 Transformer 结合<sup>[4](https://arxiv.org/html/2406.08056)</sup> |
| 基线结果 | DCASE 2023 任务 4 基线：PSDS1 0.349 ± 0.007，基于交集的 F1 64.2 ± 0.8%<sup>[7](https://github.com/DCASE-REPO/DESED_task/tree/master/recipes/dcase2023_task4_baseline)</sup> |

## 工作原理

检测系统将音频切分为短分析帧（通常为 20–100 毫秒）进行处理，为每个声音类别输出一个时间活动模式，而不是每个文件只给一个结论<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.05463)</sup>。推理时，必须将逐事件帧概率 \( y_{t}(e) \) 转换为二值表示 \( \bar{y}_{t}(e) \)，以标记每个事件何时处于活动状态<sup>[8](https://ar5iv.labs.arxiv.org/html/2101.07687)</sup>。

后处理完成这一转换，分为两条路线：双阈值、三阈值等概率级方法，以及中值滤波等硬标签方法<sup>[8](https://ar5iv.labs.arxiv.org/html/2101.07687)</sup>。窗口大小为 \( \omega \) 的中值滤波器在窗口内取中值；对于通常的奇数长度窗口 \( \omega = 2k+1 \)，它会消除长度至多 k 帧的内部活动段，并合并被长度不超过 k 帧的非活动间隔分开的活动段，而边缘行为和偶数宽度约定则取决于具体实现<sup>[8](https://ar5iv.labs.arxiv.org/html/2101.07687)</sup>。[结构化预测](https://www.edgepedia.org/zh/structured-prediction)提供了另一种选择：在卷积网络之上应用条件随机场，考虑片段之间的依赖关系并精确划定事件边界，在 DCASE 2017 任务 4 数据集上于音频标注和检测两方面均取得了当时的最佳结果<sup>[9](https://doi.org/10.3390/app9112302)</sup>。

训练的核心问题在于，带有起始和结束时间的强标签代价高昂：获取带时间编码的标注耗时费力，通常被认为是训练 SED 系统的主要瓶颈之一<sup>[10](https://arxiv.org/pdf/1807.10501)</sup>。因此，弱监督 SED 仅利用片段级标签进行训练，这类标签只表明某个声音出现在录音中的某处，而不指明具体位置，但模型在推理时仍须预测起始和结束时间<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.05463)</sup><sup> • </sup><sup>[8](https://ar5iv.labs.arxiv.org/html/2101.07687)</sup>。

## 实现方法

典型流水线将对数梅尔或类似特征、卷积循环神经网络（CRNN）、可同时给出片段级和帧级后验的注意力池化，以及上文所述的阈值化或中值滤波后处理组合在一起。DCASE 2024 任务 4 基线是一个 CRNN，含 7 层 CNN 编码器和双向 GRU，将 BEATs 预训练模型的冻结特征与 CNN 特征拼接，使用注意力池化，应用 Mixup 正则化，并采用均值教师框架来利用无标签和弱标签数据<sup>[4](https://arxiv.org/html/2406.08056)</sup>。官方挑战页面将 2024 基线描述为经过修改的预训练 DCASE 2023 基线，该基线是一个均值教师模型；修改包括对缺少标注的类别屏蔽输出的未归一化得分，将某些 MAESTRO 类别映射到 DESED 类别，仅在同一个数据集内应用 mixup，并通过滑窗上的未归一化得分重叠相加来处理长时 MAESTRO 音频<sup>[6](https://dcase.community/challenge2024/task-sound-event-detection-with-heterogeneous-training-dataset-and-potentially-missing-labels)</sup>。

评估区分三种事件匹配方式：基于领圈（collar-based）、基于交集（intersection-based）和基于片段（segment-based），它们对预测时间位置与真值时间位置的比较方式不同；基于交集的评估因对标注歧义不那么敏感而日益流行<sup>[4](https://arxiv.org/html/2406.08056)</sup>。基于片段的评估在粗粒度固定网格（例如一秒）上比较输出与参考，而基于事件的评估则逐事件比较起始和结束时间；由于人工标注的时间具有主观性，在极高时间分辨率上进行比较并不可靠<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.05463)</sup>。Event-F1 分数衡量预测与真值在起始和结束时间上的重叠，且不像基于片段的 F1 那样受时间分辨率约束<sup>[8](https://ar5iv.labs.arxiv.org/html/2101.07687)</sup>。

复音声音检测分数（PSDS）基于系统输出与参考之间的交集重新定义真阳性和假阳性，使评估对[事件](https://www.edgepedia.org/zh/the-event)实例如何分割具有容忍性，并定义为 ROC 曲线下的归一化面积，从而抵消对单一工作点的依赖<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.05463)</sup>。自 2021 年以来，PSDS 一直是 DCASE 任务 4 的主要指标；2024 年仅评估 PSDS1，参数为 \( \rho_{\text{DTC}} = \rho_{\text{GTC}} = 0.7 \)、\( \alpha_{\text{ST}} = 1 \)、\( e_{\text{max}} = 100 \) 次每小时假阳性，因为 PSDS2 的调校更偏向音频标注而非 SED 指标<sup>[4](https://arxiv.org/html/2406.08056)</sup>。一个实用注意事项：如 psds_eval 那样从有限阈值集合计算时，PSD-ROC 可能被显著低估，因此更推荐 sed_scores_eval，因为它从带时间戳的声音事件检测分数而非已检测事件计算 PSDS<sup>[7](https://github.com/DCASE-REPO/DESED_task/tree/master/recipes/dcase2023_task4_baseline)</sup>。

## 起源

TUT Sound Events 2016 数据库是 TUT Acoustic Scenes 2016 的子集，包含住宅区和家庭环境中声音事件的人工标注起始时间、结束时间和标签信息，专为声音事件检测而创建；其父数据库由来自 15 种声学环境的[双耳录音](https://www.edgepedia.org/zh/binaural-recording)组成<sup>[5](https://dcase.community/challenge2021/task-sound-event-detection-and-separation-in-domestic-environments)</sup>。DCASE 2018 任务 4 随后评估了利用无时间边界的弱标签数据进行大规模声音事件检测的系统，目标是利用小型弱标签数据集和更大的无标签数据集来执行带时间边界的 SED；这一设定由 罗曼·塞里泽尔（Romain Serizel）及其同事于 2018 年在 arXiv 上描述<sup>[10](https://arxiv.org/pdf/1807.10501)</sup>。没有单一出版物被认为首次将 SED 形式化为一项任务，因此此处不作此类归属。

## 变体

**复音 SED** 在同一时间帧内同时检测多个事件类别。虽然 SED 可以是单音的，即只识别最主导的事件，但现实应用需要复音能力，因为自然声学环境很少由孤立的、顺序出现的声音组成<sup>[2](https://www.nature.com/articles/s44384-025-00036-3)</sup>。

**弱监督 SED** 仅利用片段级标签进行训练，如 DCASE 2017 任务 4 基准设定中那样，因为帧级标签获取耗时。孔秋强（Qiuqiang Kong）及其同事于 2020 年在 IEEE/ACM Transactions on Audio, Speech, and Language Processing 上针对这一设定发表了一种带有自动阈值优化的 CNN-Transformer 方法<sup>[11](https://doi.org/10.1109/taslp.2020.3014737)</sup>。

**SELD** 在 SED 的“什么”（类别与起始/结束时间）之上增加了到达方向估计，即“何处”（方位角和仰角）；设有专门的 SELD 任务<sup>[2](https://www.nature.com/articles/s44384-025-00036-3)</sup>。

**低复杂度与端侧 SED** 针对的是：表现最佳的系统往往依赖大规模架构，如大型 ResNet-Conformer 集成，这对资源受限边缘设备上的实时推理而言难以承受；知识蒸馏（由紧凑的学生模型复制更大的教师模型）以及剪枝和量化被用于部署此类系统<sup>[2](https://www.nature.com/articles/s44384-025-00036-3)</sup>。

## 应用

SED 系统已被应用于家庭环境，DCASE 任务 4 基准即针对家庭中的声音事件检测<sup>[5](https://dcase.community/challenge2021/task-sound-event-detection-and-separation-in-domestic-environments)</sup>。针对生物声学传感器网络，樊尚·洛斯坦伦（Vincent Lostanlen）及其同事于 2019 年在 PLoS ONE 上发表了采用逐通道能量归一化的鲁棒 SED<sup>[12](https://doi.org/10.1371/journal.pone.0214168)</sup>。低复杂度变体服务于资源受限边缘设备上的实时推理<sup>[2](https://www.nature.com/articles/s44384-025-00036-3)</sup>。

## 局限与替代方案

**标签噪声与域偏移。** [AudioSet](https://www.edgepedia.org/zh/audioset) 估计有 30% 的类别标签错误率超过 50%<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.05463)</sup>。噪声标签可通过迭代验证循环（基于预测共识进行微调）或噪声鲁棒损失函数（随着学习推进越来越依赖模型预测）来处理<sup>[1](https://ar5iv.labs.arxiv.org/html/2107.05463)</sup>。SELD 模型从合成训练数据迁移到带有背景噪声、混响和移动声源的现实环境时，性能会显著下降<sup>[2](https://www.nature.com/articles/s44384-025-00036-3)</sup>。

**部署。** [蒸馏](https://www.edgepedia.org/zh/distillation)、剪枝和量化是文中提到的边缘部署补救措施，但已发表的工作未给出具体的延迟、计算量或内存数据<sup>[2](https://www.nature.com/articles/s44384-025-00036-3)</sup>。

**近期进展。** DCASE 2024 任务 4 统一了 2023 的子任务 4A 和 4B，要求在弱硬标签、强硬标签和强软标签上训练的同时预测事件类别及时间边界，系统须应对 DESED 和 MAESTRO 中可能缺失的目标标签<sup>[6](https://dcase.community/challenge2024/task-sound-event-detection-with-heterogeneous-training-dataset-and-potentially-missing-labels)</sup>。一种 2026 年的方法超越了采用最先进后处理的传统帧级 SED 模型，免除了后处理超参数调校的需要，并在所有 AudioSet 评估设定上达到新的最先进性能<sup>[13](https://doi.org/10.1109/lsp.2026.3698771)</sup>。零样本和少样本框架，包括在较小真实数据集上微调的预训练 SELD 网络，已在 SELD 设定中取得最先进的结果<sup>[2](https://www.nature.com/articles/s44384-025-00036-3)</sup>。

## References

1. [Sound Event Detection: A Tutorial](https://ar5iv.labs.arxiv.org/html/2107.05463)
2. [Environmental acoustic intelligence through sound event localization and detection: a review (npj Acoustics, 2025)](https://www.nature.com/articles/s44384-025-00036-3)
3. [Revisiting SSL for sound event detection: complementary fusion and adaptive post-processing](https://link.springer.com/article/10.1007/s44443-025-00181-5)
4. [DCASE 2024 Task 4: Sound Event Detection with Heterogeneous Data and Missing Labels](https://arxiv.org/html/2406.08056)
5. [DCASE 2021 Task 4: Sound Event Detection and Separation in Domestic Environments (with TUT Acoustic Scenes 2016 description)](https://dcase.community/challenge2021/task-sound-event-detection-and-separation-in-domestic-environments)
6. [DCASE 2024 Task 4: Sound Event Detection with Heterogeneous Training Dataset and Potentially Missing Labels](https://dcase.community/challenge2024/task-sound-event-detection-with-heterogeneous-training-dataset-and-potentially-missing-labels)
7. [DESED_task DCASE 2023 Task 4 baseline recipe](https://github.com/DCASE-REPO/DESED_task/tree/master/recipes/dcase2023_task4_baseline)
8. [Towards duration robust weakly supervised sound event detection](https://ar5iv.labs.arxiv.org/html/2101.07687)
9. [Inkyu Choi, Soo Hyun Bae, Nam Soo Kim (2019). Deep Convolutional Neural Network with Structured Prediction for Weakly Supervised Audio Event Detection. Applied Sciences.](https://doi.org/10.3390/app9112302)
10. [Large-scale weakly labeled semi-supervised sound event detection in domestic environments (DCASE 2018 Task 4 overview; merged with the DCASE 2018 Workshop proceedings copy)](https://arxiv.org/pdf/1807.10501)
11. [Qiuqiang Kong and colleagues (2020). Sound Event Detection of Weakly Labelled Data With CNN-Transformer and Automatic Threshold Optimization. IEEE/ACM Transactions on Audio Speech and Language Processing.](https://doi.org/10.1109/taslp.2020.3014737)
12. [Vincent Lostanlen and colleagues (2019). Robust sound event detection in bioacoustic sensor networks. PLoS ONE.](https://doi.org/10.1371/journal.pone.0214168)
13. [IEEE Signal Processing Letters 2026 paper on SED post-processing](https://doi.org/10.1109/lsp.2026.3698771)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Oct 15, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/sound-event-detection

English original: https://www.edgepedia.org/sound-event-detection
