# 峰检测（信号处理）

峰检测是对实测信号中局部极大值的计算识别，同时估计每个峰的位置、高度、宽度、面积或统计显著性。它是质谱、色谱图及其他一维仪器信号处理中的标准步骤。检测器的输出通常是每个峰的索引或坐标，加上派生属性：SciPy 的 find_peaks 可以返回峰高、突出度及其左右基底、指定相对高度处的宽度以及平台尺寸。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html)</sup> 已发表的比较研究将该任务分解为三个连续部分：平滑、基线校正和寻峰。<sup>[2](https://link.springer.com/article/10.1186/1471-2105-10-4)</sup> 统计检测器则更进一步，用可传播到后续预处理步骤的概率取代二值阈值决策。<sup>[3](https://pubs.acs.org/doi/abs/10.1021/acs.analchem.5b01521)</sup>

| 关键事实 | 详情 | 来源 |
|---|---|---|
| 输出 | 峰索引加高度、突出度、宽度和平台尺寸（SciPy find_peaks） | [1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html) |
| 流程 | 平滑、基线校正、寻峰 | [2](https://link.springer.com/article/10.1186/1471-2105-10-4) |
| 五种算法 MALDI 比较中的最佳者 | CWT 给出最佳平均性能 | [2](https://link.springer.com/article/10.1186/1471-2105-10-4) |
| 灵敏度–FDR 权衡 | 在 5% 错误发现率下，半数真实峰被漏检 | [2](https://link.springer.com/article/10.1186/1471-2105-10-4) |
| GSD 匹配滤波器 | 在信噪比 = 10 时检测到 94% 的模拟峰，零假阳性 | [4](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/jssc.200900395) |
| MALDI-TOF 上的 CWT | 找到 97% 的参考峰，两个假阳性 | [5](https://centaur.reading.ac.uk/18352/1/peakpicking_-_latest.pdf) |
| 库状态 | find_peaks 在 SciPy 1.1.0 中加入；MassSpecWavelet 在 Bioconductor 版本 1.78.2 | [1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html), [6](https://bioconductor.posit.co/packages/release/bioc/html/MassSpecWavelet.html) |

## 工作原理

find_peaks 将峰定义为两个直接相邻样本振幅均较小的任何样本；对于平顶峰，返回中间样本的索引。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html)</sup> 仅靠简单的相邻比较在真实数据上是不够的。选取记录的极大值，即使在平滑之后，也不可靠，因为较小峰的极大值会明显向较大邻居偏移，而滤波——无论是普通滤波还是通过等价的最小二乘分析——都会使测量在一定程度上对面积敏感。<sup>[4](https://www.jstage.jst.go.jp/article/jpe1952/16/Special/16_Special_155/_pdf)</sup> 突出度，即峰与其最低等高线之间的垂直距离，衡量一个峰相对于周围基线的突出程度。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html)</sup> 许多流程加入信噪比检验：centWave 从局部基线 \( BL \) 和噪声水平 \( NL \) 计算 \( \mathrm{SNR} = (I_{\max} - BL)/NL \)，并丢弃低于阈值的特征。<sup>[5](https://link.springer.com/article/10.1186/1471-2105-9-504)</sup> 概率检测器则对每个候选输出一个概率，使不确定性传入后续预处理，而非被阈值坍缩。<sup>[3](https://pubs.acs.org/doi/abs/10.1021/acs.analchem.5b01521)</sup>

## 如何实现

**典型工作流**遵循平滑、基线校正、寻峰的分解。<sup>[2](https://link.springer.com/article/10.1186/1471-2105-10-4)</sup> 平滑通常采用 Savitzky-Golay 滤波器，这是一种广义移动平均，将一小段连续点最小二乘拟合到多项式，并取拟合的中心点作为输出。<sup>[2](https://link.springer.com/article/10.1186/1471-2105-10-4)</sup> 基线处理之后，候选峰作为局部极大值被找到，并通过属性条件过滤；find_peaks 按 plateau_size、height、threshold、distance、prominence、width 的顺序评估条件，这通常是最快的顺序，因为较早的廉价检验减少了后续评估的峰数。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html)</sup> 领域工具调整相同的滤波器：hplc-py 在应用突出度滤波器（如 0.01，根据峰大小、重叠和噪声选择）之前将色谱图归一化到 [0, 1]。<sup>[6](https://cremerlab.github.io/hplc-py/methodology/peak_detection.html)</sup> TidyMS 移除突出度低于估计噪声三倍的峰，或位于 \( |x_{k} - b_{k}| < e_{k} \) 标记为基线的区域中的峰。<sup>[7](https://tidyms.readthedocs.io/en/latest/generated/tidyms.peaks.html)</sup> 最后，在评估高度 \( h_{\mathrm{eval}} = h_{\mathrm{Peak}} - P \cdot R \) 处测量宽度，其中 \( P \) 为突出度，\( R \) 为相对高度，默认为 0.5。<sup>[1](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html)</sup>

## 起源

最早广泛使用的要素是平滑和微分工具。亚伯拉罕·萨维茨基（Abraham Savitzky）和马塞尔·J·E·戈莱（Marcel J. E. Golay） 于 1964 年在《分析化学》上发表了一种最小二乘方法，其中均匀间隔的数据与预计算的整数集和归一化因子进行卷积，并用 FORTRAN 子程序在光谱数据上作了演示。<sup>[8](https://doi.org/10.1021/ac60214a047)</sup> 对于寻峰本身，M.A. 马里斯科蒂（M.A. Mariscotti）于 1967 年在《核仪器与方法》上发表了一种方法，读取整个谱图，定位峰，并通过最小二乘拟合确定振幅、质心和宽度，自动处理双峰。<sup>[9](https://doi.org/10.1016/0029-554x%2867%2990058-4)</sup><sup> • </sup><sup>[10](https://www.sciencedirect.com/science/article/abs/pii/0029554X67900584)</sup> B. R. F. 肯德尔（B. R. F. Kendall）于 1962 年在《科学仪器评论》上发表了质谱仪的分辨本领倍增器，<sup>[11](https://doi.org/10.1063/1.1717657)</sup> A. J. C. 威尔逊（A. J. C. Wilson）于 1965 年在《英国应用物理学杂志》上分析了最小二乘抛物线峰定位及其偏差。<sup>[12](https://doi.org/10.1088/0508-3443/16/5/309)</sup> [匹配滤波](https://www.edgepedia.org/zh/matched-filtering)器来自通信理论：最优滤波器具有传递函数 \( F(f) \propto S^{*}(f)/S_{n}(f) \)，当噪声密度平坦时，在时域上等价于与预期峰形的互相关，参考了 温斯坦（Wainstein）和祖巴科夫（Zubakov）（1962）以及李（Lee）（1960）等著作。<sup>[4](https://www.jstage.jst.go.jp/article/jpe1952/16/Special/16_Special_155/_pdf)</sup> 基于 CWT 的峰检测器由 杜攀（Pan Du）、沃伦·A·基贝（Warren A. Kibbe）和西蒙·M·林（Simon M. Lin） 于 2006 年在《[生物信息学](https://www.edgepedia.org/zh/bioinformatics)》上发表。<sup>[13](https://doi.org/10.1093/bioinformatics/btl355)</sup>

## 变体

**阈值检测器**将强度与截断值比较；已编目的变体包括 n-Sigma（谱均值加 n 倍标准差）、局部极大值的均值、多峰强度分布之间的谷值、从同位素峰之间的数据估计的信噪比，以及均方根阈值。<sup>[14](https://irep.ntu.ac.uk/id/eprint/29324/1/6668_Kilgour.pdf)</sup> 导数方法使用平滑后的[导数](https://www.edgepedia.org/zh/derivative)：基于马里斯科蒂 1967 年论文的二阶导数方法是包括 HYPERMET-PC、K0_IAEA、GENIE 2000 和 GammaVision 在内的伽马射线分析软件的基础，因为它能发现重叠峰。<sup>[10](https://www.sciencedirect.com/science/article/abs/pii/0029554X67900584)</sup> 匹配滤波将信号与预期峰形相关；一种 LC/MS 实现在洗脱时间和 m/z 两个维度上应用高斯、矩形或 Savitzky-Golay 模板，并用 \( S_{c} = (S/N)^{G} \) 对候选评分，其中 \( G = 0.67n \) 是每个色谱峰 n 个数据点的增益。<sup>[15](https://pmc.ncbi.nlm.nih.gov/articles/PMC2766790/)</sup> 小波方法用缩放小波卷积，并将跨尺度的极大值连接成脊线：SciPy 的 find_peaks_cwt 使用 ricker 小波，默认 min_snr 为 1，噪声取自脊线数据的第 10 百分位数。<sup>[16](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find%5Fpeaks%5Fcwt.html)</sup> MassSpecWavelet 使用墨西哥帽小波。<sup>[17](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/elps.200800096)</sup> Ridger 使用与高斯一阶导数成正比的小波，并将 CWT 极大值与极小值配对，从而区分峰与单侧斜坡，这是对称墨西哥帽小波无法做到的。<sup>[17](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/elps.200800096)</sup> MSPD 对小波空间中的脊、谷和过零点进行阈值处理。<sup>[18](https://pubs.rsc.org/en/content/getauthorversionpdf/C5AN01816A)</sup> WISPD 增加了基于中值的 Otsu 图像分割和阶梯扫描脊搜索。<sup>[19](https://doi.org/10.1016/j.ijms.2021.116601)</sup> centWave 将 m/z 中基于密度的感兴趣区域与墨西哥帽 CWT 以及色谱域中可选的高斯拟合相结合。<sup>[5](https://link.springer.com/article/10.1186/1471-2105-9-504)</sup> 贝叶斯检测器输出概率，<sup>[3](https://pubs.acs.org/doi/abs/10.1021/acs.analchem.5b01521)</sup> 基于前瞻的 peakdetect 方法无需平滑即可拒绝噪声引起的波动。<sup>[20](https://erdogant.github.io/findpeaks/pages/html/Peakdetect.html)</sup>

## 应用

在 LC/MS 中，centWave 用于 LC-QTOF、LC-Orbitrap、CE-MS 和 GC-MS 数据，<sup>[5](https://link.springer.com/article/10.1186/1471-2105-9-504)</sup> XCMS 将峰检测与非线性峰对齐配对。<sup>[21](https://doi.org/10.1021/ac051437y)</sup> 在 GC-MS 代谢组学中，WiPP 通过无监督网格搜索优化 centWave 和 matchedFilter 参数，并合并其输出。<sup>[22](https://mdpi-res.com/d_attachment/metabolites/metabolites-09-00171/article_deploy/metabolites-09-00171-v2.pdf?version=1566527652)</sup> 伽马射线谱依赖二阶导数方法，<sup>[10](https://www.sciencedirect.com/science/article/abs/pii/0029554X67900584)</sup> 微流控芯片上的毛细管电泳使用 Ridger。<sup>[17](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/elps.200800096)</sup> 平台框架嵌入这些选择：MZmine 2 提供了用于处理、可视化和分析基于质谱的分子谱数据的模块化框架。<sup>[23](https://doi.org/10.1186/1471-2105-11-395)</sup> 一项使用 NISTmAb RM 8671 的跨 28 个实验室的新峰检测实验室间研究发现，实验室内保留时间重复性标准差低于 0.25 分钟，但实验室间重现性标准差为 1.4–2.0 分钟，这促成了业内共同采用的 ±0.65 分钟保留时间窗口。<sup>[24](http://pubs.acs.org/doi/abs/10.1021/jasms.0c00415)</sup>

## 局限与替代方案

**基线漂移**若不去除会强烈偏置检测；化学、电离和电子噪声在 MALDI 数据中产生递减的背景曲线。<sup>[2](https://link.springer.com/article/10.1186/1471-2105-10-4)</sup> 噪声引起的假阳性在高灵敏度下占主导：在 GC-MS 数据中，被滤除的低质量峰平均占 matchedFilter 总检测量的 90% 和 centWave 的 80%，<sup>[22](https://mdpi-res.com/d_attachment/metabolites/metabolites-09-00171/article_deploy/metabolites-09-00171-v2.pdf?version=1566527652)</sup> 实验室间研究中 58% 的假阳性是低丰度化学物种。<sup>[24](http://pubs.acs.org/doi/abs/10.1021/jasms.0c00415)</sup> 模板方法在峰偏离假设形状时失败，例如高斯峰因激光能量而变得不对称。<sup>[25](https://centaur.reading.ac.uk/18352/1/peakpicking_-_latest.pdf)</sup> 固定模型峰宽的匹配滤波器在宽度变化时失败，<sup>[5](https://link.springer.com/article/10.1186/1471-2105-9-504)</sup> CWT 倾向于漏掉被较高峰包围的细峰。<sup>[25](https://centaur.reading.ac.uk/18352/1/peakpicking_-_latest.pdf)</sup> 过度平滑，或将共洗脱峰段误判为基线，会改变峰面积。<sup>[26](https://www.chromatographyonline.com/view/resolving-separation-issues-with-computational-methods-part-2-why-is-peak-integration-still-an-issue-)</sup>

对于重叠峰，局部极大值策略用垂直线在鞍点处分割，而解卷积拟合分布函数（如高斯或修正 Pearson VII）并分别积分；Pearson VII 拟合与已知样品组成一致。<sup>[26](https://www.chromatographyonline.com/view/resolving-separation-issues-with-computational-methods-part-2-why-is-peak-integration-still-an-issue-)</sup> 具有类 EM 拟合和 BIC 选择的双[高斯混合模型](https://www.edgepedia.org/zh/gaussian-mixture-model)对不对称、弱重叠峰的成功率大多超过 90%，面积误差大多低于 15%。<sup>[27](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-11-559)</sup> hplc-py 将最低等高线重叠的峰分组为窗口并作为一个单元拟合；<sup>[6](https://cremerlab.github.io/hplc-py/methodology/peak_detection.html)</sup> TidyMS 在重叠峰之间的最小值处分割。<sup>[7](https://tidyms.readthedocs.io/en/latest/generated/tidyms.peaks.html)</sup> GSD 滤波器说明了分辨率权衡：其默认宽度比 \( w_{f}/n_{i} = 2.2 \) 最大化信噪比，而 0.5 在高信噪比下可检测低至 \( R_{s} = 0.6 \) 的峰，代价是稳健性和低信噪比灵敏度。<sup>[28](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/jssc.200900395)</sup>

**机器学习。** 深度学习峰拾取器包括用于色谱峰拾取的 PeakBot，<sup>[29](https://doi.org/10.1093/bioinformatics/btac344)</sup> 用于非靶向代谢组学的半监督 PeakDetective，<sup>[30](https://doi.org/10.1021/acs.analchem.3c00764)</sup> MZmine 3，<sup>[31](https://doi.org/10.1038/s41587-023-01690-2)</sup> 用于反相 LC 峰检测的 CNN，<sup>[32](https://doi.org/10.1016/j.chroma.2022.463005)</sup> 以及色谱中峰评估和积分的深度学习方法。<sup>[33](https://doi.org/10.1016/j.talanta.2019.05.053)</sup><sup> • </sup><sup>[34](https://doi.org/10.1002/bit.28406)</sup> 在靶向蛋白质组学中，Skyline 使用 mProphet 评分模型，而 automRm 和 DeepMRM 应用机器学习模型。<sup>[35](https://pmc.ncbi.nlm.nih.gov/articles/PMC12966724/)</sup> 2023 年底以来的工作包括 MsTargetPeaker，它将峰拾取构建为顺序决策，由强化学习代理引导[蒙特卡洛树搜索](https://www.edgepedia.org/zh/monte-carlo-tree-search)求解。<sup>[35](https://pmc.ncbi.nlm.nih.gov/articles/PMC12966724/)</sup>

## References

1. [find_peaks, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html)
2. [Comparison of public peak detection algorithms for MALDI mass spectrometry data analysis (BMC Bioinformatics 2009)](https://link.springer.com/article/10.1186/1471-2105-10-4)
3. [Probabilistic Model for Untargeted Peak Detection in LC–MS Using Bayesian Statistics (Analytical Chemistry)](https://pubs.acs.org/doi/abs/10.1021/acs.analchem.5b01521)
4. [The Digital Recording of Mass Spectra (J. Phys. Soc. Japan supplement, scanned)](https://www.jstage.jst.go.jp/article/jpe1952/16/Special/16_Special_155/_pdf)
5. [Highly sensitive feature detection for high resolution LC/MS (centWave, BMC Bioinformatics 2008)](https://link.springer.com/article/10.1186/1471-2105-9-504)
6. [Step 2: Detecting Peaks, hplc-py 0.2.1 documentation](https://cremerlab.github.io/hplc-py/methodology/peak_detection.html)
7. [tidyms.peaks, TidyMS documentation](https://tidyms.readthedocs.io/en/latest/generated/tidyms.peaks.html)
8. [Abraham. Savitzky, M. J. E. Golay (1964). Smoothing and Differentiation of Data by Simplified Least Squares Procedures.. Analytical Chemistry.](https://doi.org/10.1021/ac60214a047)
9. [A method for automatic identification of peaks in the presence of background and its application to spectrum analysis (Nuclear Instruments and Methods, 1967)](https://doi.org/10.1016/0029-554x%2867%2990058-4)
10. [A method for automatic identification of peaks in the presence of background and its application to spectrum analysis (Mariscotti, 1967)](https://www.sciencedirect.com/science/article/abs/pii/0029554X67900584)
11. [B. R. F. Kendall (1962). Resolving-Power Multiplier for Mass Spectrometers. Review of Scientific Instruments.](https://doi.org/10.1063/1.1717657)
12. [A J C Wilson (1965). The location of peaks. British Journal of Applied Physics.](https://doi.org/10.1088/0508-3443/16/5/309)
13. [Pan Du, Warren A. Kibbe, Simon M. Lin (2006). Improved peak detection in mass spectrum by incorporating continuous wavelet transform-based pattern matching. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btl355)
14. [Autopiquer - a Robust and Reliable Peak Detection Algorithm for Mass Spectrometry](https://irep.ntu.ac.uk/id/eprint/29324/1/6668_Kilgour.pdf)
15. [Review of Peak Detection Algorithms in Liquid-Chromatography-Mass Spectrometry](https://pmc.ncbi.nlm.nih.gov/articles/PMC2766790/)
16. [find_peaks_cwt, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find%5Fpeaks%5Fcwt.html)
17. [A continuous wavelet transform algorithm for peak detection (Ridger, Electrophoresis)](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/elps.200800096)
18. [Multi-scale peak detection (MSPD) in analytical signals (Analyst, RSC, accepted manuscript)](https://pubs.rsc.org/en/content/getauthorversionpdf/C5AN01816A)
19. [Fulong Deng and colleagues (2021). An improved peak detection algorithm in mass spectra combining wavelet transform and image segmentation. International Journal of Mass Spectrometry.](https://doi.org/10.1016/j.ijms.2021.116601)
20. [Peakdetect, findpeaks documentation](https://erdogant.github.io/findpeaks/pages/html/Peakdetect.html)
21. [Colin A. Smith and colleagues (2006). XCMS: Processing Mass Spectrometry Data for Metabolite Profiling Using Nonlinear Peak Alignment, Matching, and Identification. Analytical Chemistry.](https://doi.org/10.1021/ac051437y)
22. [WiPP: workflow for improved peak picking (GC-MS metabolomics, Metabolites)](https://mdpi-res.com/d_attachment/metabolites/metabolites-09-00171/article_deploy/metabolites-09-00171-v2.pdf?version=1566527652)
23. [Tomáš Pluskal and colleagues (2010). MZmine 2: Modular framework for processing, visualizing, and analyzing mass spectrometry-based molecular profile data. BMC Bioinformatics.](https://doi.org/10.1186/1471-2105-11-395)
24. [New Peak Detection Performance Metrics from the MAM Consortium Interlaboratory Study (J. Am. Soc. Mass Spectrom.)](http://pubs.acs.org/doi/abs/10.1021/jasms.0c00415)
25. [Evaluation of peak-picking algorithms for protein mass spectrometry (University of Reading repository)](https://centaur.reading.ac.uk/18352/1/peakpicking_-_latest.pdf)
26. [Resolving Separation Issues with Computational Methods, Part 2: Why is Peak Integration Still an Issue? (LCGC Chromatography Online)](https://www.chromatographyonline.com/view/resolving-separation-issues-with-computational-methods-part-2-why-is-peak-integration-still-an-issue-)
27. [Quantification and deconvolution of asymmetric LC-MS peaks using the bi-Gaussian mixture model and statistical model selection (BMC Bioinformatics)](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-11-559)
28. [An automatic peak finding method for LC-MS data using Gaussian second derivative filtering (J. Sep. Science)](https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/10.1002/jssc.200900395)
29. [Christoph Bueschl and colleagues (2022). PeakBot: machine-learning-based chromatographic peak picking. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btac344)
30. [Ethan Stancliffe, Gary J. Patti (2023). PeakDetective: A Semisupervised Deep Learning-Based Approach for Peak Curation in Untargeted Metabolomics. Analytical Chemistry.](https://doi.org/10.1021/acs.analchem.3c00764)
31. [Robin Schmid and colleagues (2023). Integrative analysis of multimodal mass spectrometry data in MZmine 3. Nature Biotechnology.](https://doi.org/10.1038/s41587-023-01690-2)
32. [Alexander Kensert and colleagues (2022). Convolutional neural network for automated peak detection in reversed-phase liquid chromatography. Journal of Chromatography A.](https://doi.org/10.1016/j.chroma.2022.463005)
33. [Anne Bech Risum, Rasmus Bro (2019). Using deep learning to evaluate peaks in chromatographic data. Talanta.](https://doi.org/10.1016/j.talanta.2019.05.053)
34. [Abhijeet Satwekar and colleagues (2023). Digital by design approach to develop a universal deep learning AI architecture for automatic chromatographic peak integration. Biotechnology and Bioengineering.](https://doi.org/10.1002/bit.28406)
35. [MsTargetPeaker: A Quality-Aware Deep Reinforcement Learning Approach for Peak Identification in Targeted Proteomics](https://pmc.ncbi.nlm.nih.gov/articles/PMC12966724/)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 算法与计算方法 › 数值、字符串与几何算法 › 数值方法与近似

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/peak-detection-signal-processing

English original: https://www.edgepedia.org/peak-detection-signal-processing
