# 关键词识别

关键词识别是一种语音处理方法，它在连续的音频流中检测特定的口述单词或短语，并输出带有置信度分数的检测事件，而非转写文本。它驱动着始终在线的语音接口，例如唤醒词（“Hey Siri”、“Alexa”）以及那些必须持续监听且功耗极低的设备上的语音命令。与完整的自动语音识别（ASR）不同，关键词识别器对固定目标进行分类，因此模型、解码器和后处理都可以做得小几个数量级。

| 关键事实 | 数值 |
|---|---|
| 输出 | 一个带有 0 到 1 之间置信度分数的检测事件，由滑动窗口上平滑后的后验概率计算得出；并非转写文本 <sup>[1](https://arxiv.org/pdf/1812.02802)</sup> |
| 标准基准 | Google Speech Commands；准确率从 85.4%（2017 年教程 CNN）提升至 98.7%（BC-ResNet 在 v2 上）<sup>[2](https://arxiv.org/pdf/1804.03209)</sup><sup> • </sup><sup>[3](https://arxiv.org/pdf/2106.04140v4.pdf)</sup> |
| 最小软件模型 | 参数量低于 1 万的 BC-ResNet 达到 96.6%（v1）；一个 30.6 kB 的量化 CNN 在带 NPU 的 MCU 上达到 97.06% <sup>[3](https://arxiv.org/pdf/2106.04140v4.pdf)</sup><sup> • </sup><sup>[4](https://arxiv.org/html/2506.08911)</sup> |
| 最低功耗硅片 | 一款 65 nm 关键词识别芯片总功耗 23 µW，准确率 >86%；DeltaKWS 功耗 5.22 µW、每次决策耗能 36 nJ <sup>[5](https://export.arxiv.org/pdf/2208.00693v1.pdf)</sup><sup> • </sup><sup>[6](https://arxiv.org/pdf/2405.03905)</sup> |
| 工业部署 | Apple 的“Hey Siri”低功耗检测器级联；Google 的移动端 DSP 优先级联，第一级模型仅 13 kB <sup>[7](https://www.isca-archive.org/interspeech_2018/sigtia18_interspeech.pdf)</sup><sup> • </sup><sup>[8](https://arxiv.org/pdf/1712.03603)</sup> |
| 主流架构 | CNN（占调查系统的 43.9%）、DNN（36.6%）、Transformer（12.2%）<sup>[9](https://arxiv.org/html/2506.11169)</sup> |

## 工作原理

关键词识别器将音频帧流映射为逐帧的类别后验分布，再将后验概率转换为检测决策。音频被分帧（通常为 25–40 毫秒窗口，10–20 毫秒帧移），并转换为特征，例如 MFCC（梅尔频率倒谱系数；用于语音模型的紧凑音频特征）或对数梅尔滤波器组能量。一个紧凑的神经网络对每一帧或短窗口打分，训练时使用帧级交叉熵损失 \( \lambda_{t}(\mathbf{W}) = -\log y_{c_{t}}(\mathbf{X}_{t}, \mathbf{W}) \)，类别包括关键词、填充类和静音。<sup>[1](https://arxiv.org/pdf/1812.02802)</sup>

在流式模式下，检测器每 20 毫秒音频分类一次；原始后验概率经过平滑处理，例如对每个类别做移动平均，当平滑后的后验概率越过灵敏度阈值，或选取滑动窗口内最高后验概率时，即宣告检测到关键词。<sup>[10](https://www.isca-archive.org/interspeech_2020/rybakov20_interspeech.pdf)</sup><sup> • </sup><sup>[9](https://arxiv.org/html/2506.11169)</sup> 一种常见的分数定义是对过去 100 帧的后验概率取平均，并取窗口内平滑后验概率的最大乘积，得到 0 到 1 之间的置信度。<sup>[1](https://arxiv.org/pdf/1812.02802)</sup> 每次检测后的不应期可防止同一关键词实例重复触发。<sup>[11](https://ieeexplore.ieee.org/document/9665775/similar#similar)</sup>

经典的 HMM 替代方案将关键词 HMM 与填充或垃圾 HMM 组合，当维特比最优路径经过关键词模型时宣告检测；置信度分数可以构造为包含关键词的 HMM 与不包含关键词的 HMM 的似然比。<sup>[12](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/34559.pdf)</sup> 现代深度系统并非普遍避免维特比解码，因为 DNN-HMM 关键词识别系统使用 HMM 解码器，且一些基于神经网络的识别器采用维特比解码。<sup>[11](https://ieeexplore.ieee.org/document/9665775/similar#similar)</sup><sup> • </sup><sup>[40](https://www.2021.ieeeicassp.org/2021.ieeeicassp.org/Papers/ViewPaperc65d.html?PaperNum=2721)</sup>

## 实现方法

从业者的流程如下。首先，收集或复用带标注的关键词音频并进行增强：背景噪声混合和最多 100 毫秒的时间偏移是标准做法，以 0 到 50 dB 之间随机信噪比添加噪声可使模型显著更加鲁棒。<sup>[13](https://arxiv.org/pdf/1711.07128)</sup><sup> • </sup><sup>[14](https://arxiv.org/pdf/2004.08531)</sup> 其次，提取特征；一个代表性的 MCU 流程使用 25 毫秒帧长、10 毫秒帧移、汉明窗、FFT 功率谱、覆盖 40 Hz 到 7.6 kHz 的 40 个梅尔滤波器，以及产生每帧 20 个 MFCC 的 DCT。<sup>[4](https://arxiv.org/html/2506.08911)</sup> 第三，使用交叉熵损失和 Adam 训练紧凑模型。<sup>[13](https://arxiv.org/pdf/1711.07128)</sup> 第四，量化：在已报告的部署中，8 位权重和激活无需重新训练即可不损失准确率，模型被转换为整数运算以利用快速 DSP 指令。<sup>[13](https://arxiv.org/pdf/1711.07128)</sup><sup> • </sup><sup>[8](https://arxiv.org/pdf/1712.03603)</sup> 第五，针对目标误接受/误拒绝工作点校准阈值并部署；TensorFlow Lite Micro 的 Micro Speech 示例附带一个小于 20 kB 的模型，可从 16 kHz 单声道 PCM 中识别“yes”和“no”。<sup>[15](https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/examples/micro_speech/README.md)</sup>

## 起源

关键词识别与 ASR 并行发展了大约三十年。早期系统使用动态时间规整匹配关键词模板，这一工作路线可追溯至 1973 年；随后是基于 HMM 的系统，似然比置信度评分出现于 1990 年代初。<sup>[12](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/34559.pdf)</sup> 1996 年一个基于音素的 HMM 系统使用归一化维特比分数和关键词特定阈值，在没有填充模型的情况下检测关键词。<sup>[16](https://www.isca-archive.org/icslp_1996/junkawitsch96_icslp.pdf)</sup> 神经时代始于一个基于 DNN 的小足迹系统，它直接预测子关键词目标而无需 HMM 解码器，以及一种在固定误接受预算下改善误拒绝率的 CNN 设计。<sup>[9](https://arxiv.org/html/2506.11169)</sup><sup> • </sup><sup>[17](https://www.isca-archive.org/interspeech_2015/sainath15b_interspeech.pdf)</sup><sup> • </sup><sup>[11](https://ieeexplore.ieee.org/document/9665775/similar#similar)</sup> Google Speech Commands 数据集包含来自 1,881 名说话人的 64,727 条一秒话语，成为事实上的基准并加速了模型研究。<sup>[2](https://arxiv.org/pdf/1804.03209)</sup><sup> • </sup><sup>[14](https://arxiv.org/pdf/2004.08531)</sup>

现代小足迹路线由 2017 年的一组 arXiv 论文塑造：张云东（Yundong Zhang）及其同事在“Hello Edge”（2017，arXiv）中引入了用于微控制器关键词识别的深度可分离 DS-CNN <sup>[18](https://doi.org/10.48550/arxiv.1711.07128)</sup>，Raphael Tang 和 [Jimmy Lin](https://www.edgepedia.org/zh/jimmy-lin) 将深度残差学习应用于小足迹关键词识别（2017，arXiv）<sup>[19](https://doi.org/10.48550/arxiv.1710.10361)</sup>，Sercan O. Arik 及其同事提出了卷积循环神经网络（2017，arXiv）<sup>[20](https://doi.org/10.48550/arxiv.1703.05390)</sup>，Alexander Gruenstein 及其同事描述了移动设备上关键词识别的级联架构（2017，arXiv）。<sup>[21](https://doi.org/10.48550/arxiv.1712.03603)</sup> 后来的贡献包括单长浩（Changhao Shan）及其同事的基于注意力的端到端模型（2018，arXiv）<sup>[22](https://doi.org/10.48550/arxiv.1803.10916)</sup>，Seungwoo Choi 及其同事的 TC-ResNet（2019，arXiv）<sup>[23](https://doi.org/10.48550/arxiv.1904.03814)</sup>，Somshubra Majumdar 和 Boris Ginsburg 的 MatchboxNet（2020，Interspeech）<sup>[24](https://doi.org/10.21437/interspeech.2020-1058)</sup>，Byeonggeun Kim 及其同事的 BC-ResNet（2021，arXiv）<sup>[25](https://doi.org/10.48550/arxiv.2106.04140)</sup>，Mehmet Gorkem Ulkar 和 Osman Erman Okman 的超低功耗 MAX78000 部署（2021，arXiv）<sup>[26](https://arxiv.org/pdf/2111.04988)</sup>，以及 Gianmarco Cerutti 及其同事的亚毫瓦模拟二值设计（2022，IEEE Transactions on Circuits and Systems I Regular Papers）。<sup>[27](https://doi.org/10.1109/tcsi.2022.3142525)</sup>

## 变体

**深度可分离模型**通过将标准卷积分解为深度卷积和逐点卷积来减少计算量。在“Hello Edge”对 DNN、CNN、RNN、CRNN 和 DS-CNN 架构在微控制器约束下的比较中，DS-CNN 达到 94.4–95.4% 的准确率，比同等规模的 DNN 高出约 10 个百分点。<sup>[13](https://arxiv.org/pdf/1711.07128)</sup>

**残差和时间卷积系列**提高了准确率和速度。res15 在 Google Speech Commands 上达到 95.8%，而此前最佳 CNN 为 91.7%，紧凑的 res8 变体则以小幅准确率损失换取了参数量降至原来的 1/50、乘法运算量降至原来的 1/18。<sup>[28](https://arxiv.org/pdf/1710.10361.pdf)</sup> TC-ResNet 将 MFCC 频率区间视为通道并应用一维时间卷积，在 [Google Pixel](https://www.edgepedia.org/zh/google-pixel) 1 上比 res15 快 385 倍，准确率略高。<sup>[29](https://arxiv.org/html/1904.03814v2)</sup>

**紧凑一维设计**推动了前沿。MatchboxNet 是一个基于 QuartzNet 设计的一维时间-通道可分离卷积残差网络，在 Speech Commands v1 上达到 97.21%（77k 参数）。<sup>[14](https://arxiv.org/pdf/2004.08531)</sup> BC-ResNet 将一维时间特征广播到二维卷积中，在 v1 和 v2 上分别达到 98.0% 和 98.7% 的 top-1 准确率；其最小变体保持在 1 万参数以下，达到 96.6%（v1）。<sup>[3](https://arxiv.org/pdf/2106.04140v4.pdf)</sup>

**注意力和 Transformer 模型**包括 Keyword [Transformer](https://www.edgepedia.org/zh/transformer-machine-learning-model)，一种完全自注意力架构，使用 98 × 40 MFCC 频谱图，带有可学习的类别和位置嵌入，在 12 命令和 35 命令任务上分别创下 98.6% 和 97.7% 的纪录，无需预训练或额外数据 <sup>[30](https://www.isca-archive.org/interspeech_2021/berg21_interspeech.pdf)</sup>；以及一种 2024 年 Swin-Transformer 方法，采用移位窗口注意力，在 Speech Commands v1 上达到 98.01%，参数量远少于普通 Transformer。<sup>[31](https://link.springer.com/article/10.1007/s44196-024-00448-1)</sup> 对于自定义关键词，零样本模型比较注册时和服务时的语音嵌入，而非为每个关键词训练分类器。<sup>[32](https://arxiv.org/pdf/2308.16511)</sup><sup> • </sup><sup>[33](https://arxiv.org/pdf/2410.16647)</sup>

## 应用

在 Google Speech Commands 上，已报告的准确率范围从 2017 年教程 CNN 的 85.4%，到 res15 的 95.8%，到 Keyword Transformer 的 98.6%，再到 BC-ResNet 在 v2 上的 98.7% <sup>[2](https://arxiv.org/pdf/1804.03209)</sup><sup> • </sup><sup>[28](https://arxiv.org/pdf/1710.10361.pdf)</sup>。<sup>[14](https://arxiv.org/pdf/2004.08531)</sup><sup> • </sup><sup>[30](https://www.isca-archive.org/interspeech_2021/berg21_interspeech.pdf)</sup><sup> • </sup><sup>[3](https://arxiv.org/pdf/2106.04140v4.pdf)</sup> 工业系统则按误接受/误拒绝工作点评估：Google 2015 年的 CNN 工作在 500K 乘法约束下，以每小时 1 次误接受衡量，相对误拒绝改善 27–44%。<sup>[17](https://www.isca-archive.org/interspeech_2015/sainath15b_interspeech.pdf)</sup>

**已部署系统使用级联。** Google 的移动架构在 DSP 上运行一个 13 kB 的第一级模型，缓冲 2 秒音频，并委托给应用处理器上更大的第二级检测器；增加说话人验证作为第三层过滤后，整体误接受率降低了 5 到 10 倍。<sup>[8](https://arxiv.org/pdf/1712.03603)</sup> Apple 的“Hey Siri”触发器在主处理器休眠时，在专用低功耗处理器上运行低功耗 DNN-HMM 主检测器；将每个音素的目标标签从三个减少到一个，并降低声学模型帧率，在保持准确率的同时将计算量减至原来的六分之一。<sup>[7](https://www.isca-archive.org/interspeech_2018/sigtia18_interspeech.pdf)</sup> Amazon 将 95M 参数的 wav2vec 2.0 教师模型蒸馏为 1.6M 到 21M 参数的 transformer 学生模型，用于设备端 Alexa 关键词识别。<sup>[34](http://arxiv.org/pdf/2307.02720v1)</sup>

**功耗和足迹**达到极低水平。一款 65 nm CMOS 关键词识别芯片，带有模拟时域特征提取器，总功耗 23 µW，准确率 >86% <sup>[5](https://export.arxiv.org/pdf/2208.00693v1.pdf)</sup>；DeltaKWS 是一款稀疏感知的 ∆RNN 芯片，功耗为 5.22 µW，每次决策耗能 36 nJ。<sup>[6](https://arxiv.org/pdf/2405.03905)</sup>

## 局限与替代方案

**失效模式**集中在噪声和声学变异性上。低资源平台上的基于 CTC 的识别器会过拟合并将关键词与背景噪声混淆，在极低信噪比下产生高误报。<sup>[35](https://arxiv.org/html/2412.12614v1)</sup> 一项 2026 年的基准扩展使用来自 106 名非母语说话人的录音，显示经典 DNN 模型退化近 30 个百分点，这是过拟合和声学敏感性的证据，而 Keyword Transformer 变体保持在 0.98 以上。<sup>[36](https://ijet.ise.pw.edu.pl/index.php/ijet/article/download/10.24425-ijet.2026.157946/3190)</sup>

**噪声鲁棒性补救措施**包括 NTC-KWS，它在 WFST 训练和解码图中加入噪声建模通配弧，在各 SNR 水平上的平均召回率提升 4.9 个百分点 <sup>[35](https://arxiv.org/html/2412.12614v1)</sup>；以及 DCCRN-KWS，它将语音增强编码器与识别器耦合，代价是在 Cortex-A35 上 CPU 使用率从 16% 升至 35%。<sup>[37](https://www.isca-archive.org/interspeech_2023/lv23_interspeech.pdf)</sup>

**与基于 ASR 的方法相比**，无 ASR 的深度识别器成本低，但为少数关键词设计，忽略关键词时间戳，且关键词变化时必须从头重新训练；而基于 ASR 的关键词偏置系统只需对新关键词进行微调；基于 LVCSR 的识别计算昂贵，因为它必须生成丰富的词格，增加不适合小型设备的延迟。<sup>[38](https://link.springer.com/article/10.1186/s13636-021-00212-9)</sup><sup> • </sup><sup>[11](https://ieeexplore.ieee.org/document/9665775/similar#similar)</sup> 从大型 ASR 教师模型进行知识蒸馏持续缩小设备端模型，包括 Apple 将 79M 参数的 conformer 教师模型自适应蒸馏为约 5M 参数的学生模型，用于设备导向语音检测。<sup>[39](https://www.isca-archive.org/interspeech_2025/chi25b_interspeech.pdf)</sup>

## References

1. [End-to-End Keyword Spotting with Neural Networks (SVDF / memoized DNN)](https://arxiv.org/pdf/1812.02802)
2. [Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition (Warden, 2018)](https://arxiv.org/pdf/1804.03209)
3. [Broadcasted Residual Learning for Efficient Keyword Spotting (BC-ResNet, Qualcomm)](https://arxiv.org/pdf/2106.04140v4.pdf)
4. [Implementing Keyword Spotting on the MCXN947 Microcontroller with Integrated NPU](https://arxiv.org/html/2506.08911)
5. [A 23 µW Keyword Spotting IC using Ring-Oscillator-Based Time-Domain Analog Feature Extractor](https://export.arxiv.org/pdf/2208.00693v1.pdf)
6. [DeltaKWS: A 5.22 µW Sparsity-Aware Keyword Spotting IC](https://arxiv.org/pdf/2405.03905)
7. [Efficient Voice Trigger Detection for Low Resource Hardware (Apple, Interspeech 2018)](https://www.isca-archive.org/interspeech_2018/sigtia18_interspeech.pdf)
8. [A cascade architecture for keyword spotting on mobile devices (Gruenstein et al., Google, 2017)](https://arxiv.org/pdf/1712.03603)
9. [Advances in Small-Footprint Keyword Spotting: A Comprehensive Review (2025)](https://arxiv.org/html/2506.11169)
10. [Streaming Keyword Spotting on Mobile Devices (Rybakov et al., Interspeech 2020)](https://www.isca-archive.org/interspeech_2020/rybakov20_interspeech.pdf)
11. [Deep Spoken Keyword Spotting: An Overview (IEEE, 2021)](https://ieeexplore.ieee.org/document/9665775/similar#similar)
12. [Discriminative Keyword Spotting (book chapter)](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/34559.pdf)
13. [Hello Edge: Keyword Spotting on Microcontrollers (Zhang et al., ARM, 2017)](https://arxiv.org/pdf/1711.07128)
14. [MatchboxNet: 1D Time-Channel Separable Convolutional Neural Network Architecture for Speech Commands Recognition (NVIDIA)](https://arxiv.org/pdf/2004.08531)
15. [TensorFlow Lite Micro micro_speech example documentation](https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/examples/micro_speech/README.md)
16. [Junkawitsch et al., ICSLP 1996, HMM keyword spotting without filler models](https://www.isca-archive.org/icslp_1996/junkawitsch96_icslp.pdf)
17. [Convolutional Neural Networks for Small-footprint Keyword Spotting (Sainath & Parada, Interspeech 2015)](https://www.isca-archive.org/interspeech_2015/sainath15b_interspeech.pdf)
18. [Zhang, Yundong and colleagues (2017). Hello Edge: Keyword Spotting on Microcontrollers. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1711.07128)
19. [Tang, Raphael, Lin, Jimmy (2017). Deep Residual Learning for Small-Footprint Keyword Spotting. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1710.10361)
20. [Arik, Sercan O. and colleagues (2017). Convolutional Recurrent Neural Networks for Small-Footprint Keyword Spotting. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1703.05390)
21. [Gruenstein, Alexander and colleagues (2017). A Cascade Architecture for Keyword Spotting on Mobile Devices. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1712.03603)
22. [Shan, Changhao and colleagues (2018). Attention-based End-to-End Models for Small-Footprint Keyword Spotting. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1803.10916)
23. [Choi, Seungwoo and colleagues (2019). Temporal Convolution for Real-time Keyword Spotting on Mobile Devices. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1904.03814)
24. [Majumdar, Somshubra, Ginsburg, Boris (2020). MatchboxNet: 1D Time-Channel Separable Convolutional Neural Network Architecture for Speech Commands Recognition. arXiv (Cornell University).](https://doi.org/10.21437/interspeech.2020-1058)
25. [Kim, Byeonggeun and colleagues (2021). Broadcasted Residual Learning for Efficient Keyword Spotting. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2106.04140)
26. [Ultra-Low Power Keyword Spotting at the Edge (MAX78000)](https://arxiv.org/pdf/2111.04988)
27. [Gianmarco Cerutti and colleagues (2022). Sub-mW Keyword Spotting on an MCU: Analog Binary Feature Extraction and Binary Neural Networks. IEEE Transactions on Circuits and Systems I Regular Papers.](https://doi.org/10.1109/tcsi.2022.3142525)
28. [Deep Residual Learning for Small-Footprint Keyword Spotting (Tang & Lin, res15)](https://arxiv.org/pdf/1710.10361.pdf)
29. [Temporal Convolution for Real-time Keyword Spotting on Mobile Devices (TC-ResNet)](https://arxiv.org/html/1904.03814v2)
30. [Keyword Transformer: A Self-Attention Model for Keyword Spotting (Berg et al., Interspeech 2021)](https://www.isca-archive.org/interspeech_2021/berg21_interspeech.pdf)
31. [Speech Keyword Spotting Method Based on Swin-Transformer Model (2024)](https://link.springer.com/article/10.1007/s44196-024-00448-1)
32. [Zero-Shot User-Defined Keyword Spotting with Audio-Phoneme Relationship](https://arxiv.org/pdf/2308.16511)
33. [GE2E-KWS: Generalized End-to-End Training for Customized Keyword Spotting (Google, 2024)](https://arxiv.org/pdf/2410.16647)
34. [Speech Representation Learning for Keyword Spotting via Knowledge Distillation (Amazon, 2023)](http://arxiv.org/pdf/2307.02720v1)
35. [NTC-KWS: Noise-aware CTC for Robust Keyword Spotting](https://arxiv.org/html/2412.12614v1)
36. [Google Speech Commands Benchmarks Tests with New Dataset Extension](https://ijet.ise.pw.edu.pl/index.php/ijet/article/download/10.24425-ijet.2026.157946/3190)
37. [DCCRN-KWS: An Audio Bias Based Model for Noise Robust Small-Footprint Keyword Spotting (Interspeech 2023)](https://www.isca-archive.org/interspeech_2023/lv23_interspeech.pdf)
38. [Timestamp-aligning and keyword-biasing end-to-end ASR front-end for a KWS system (EURASIP JASMP)](https://link.springer.com/article/10.1186/s13636-021-00212-9)
39. [Adaptive Knowledge Distillation for Device-Directed Speech Detection (Interspeech 2025, Apple)](https://www.isca-archive.org/interspeech_2025/chi25b_interspeech.pdf)
40. [IEEE ICASSP 2021 || Toronto, Ontario, Canada || 6-11 June 2021](https://www.2021.ieeeicassp.org/2021.ieeeicassp.org/Papers/ViewPaperc65d.html?PaperNum=2721)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/keyword-spotting

English original: https://www.edgepedia.org/keyword-spotting
