# 阶跃检测

阶跃检测是一种信号处理与统计方法，用于在含噪时间序列的水平中定位突变（即阶跃），同时估计信号发生跳跃的时刻以及每次跳跃之间各段的恒定水平。凡是系统预期处于离散状态的地方都会用到它，从分子马达到质控监测皆属此类。方法分为离线（回溯性）算法与在线（序贯）算法两类：前者分析完整记录，后者在每收到一个数据点时即进行处理；其中 ε-实时算法在判定变化之前至少需要 ε 个新样本。<sup>[1](https://ar5iv.labs.arxiv.org/html/1801.00718)</sup><sup> • </sup><sup>[2](https://eecs.wsu.edu/~cook/pubs/kais16.2.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 变点时刻及变点之间分段常数的各段水平<sup>[1](https://ar5iv.labs.arxiv.org/html/1801.00718)</sup> |
| 标准模型 | \( y_t = f_t + \varepsilon_t \)，其中 \( f_t \) 分段常数，\( \varepsilon_t \sim N(0, \sigma^2) \) 且相互独立<sup>[3](https://www.lancaster.ac.uk/~romano/teaching/2425MATH337/MATH337--Changepoint-Detection.pdf)</sup> |
| 最早的方法 | 20世纪20年代的工业质量控制；E. S. Page 的 CUSUM 程序（1954）<sup>[4](https://par.nsf.gov/servlets/purl/10492374)</sup><sup> • </sup><sup>[5](https://doi.org/10.1093/biomet/41.1-2.100)</sup> |
| 默认惩罚 | 对高斯独立噪声且方差估计良好时，\( \beta = 2 \log n \)<sup>[6](https://www.jstatsoft.org/article/download/v109i07/4577)</sup> |
| 可检测性极限 | 良好的阶跃恢复需要阶跃之间约有超过 \( 1/\mathrm{SNR}^2 \) 个样本<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC3743561/)</sup> |
| 主要失效模式 | 在自相关或重尾噪声下高估阶跃数目<sup>[8](https://onlinelibrary.wiley.com/doi/10.1002/sta4.291)</sup> |

## 工作原理

底层模型是信号加噪声模型 \( y_t = f_t + \varepsilon_t \)，其中 \( f_t \) 分段常数，噪声为独立高斯噪声，方差为 \( \sigma^2 \)；阶跃即均值 \( f_t \) 在变点处的改变。<sup>[3](https://www.lancaster.ac.uk/~romano/teaching/2425MATH337/MATH337--Changepoint-Detection.pdf)</sup> 离线检测被设定为一个模型选择问题：选择使某个定量代价最小化的分割，当变化数目未知时再加入复杂度惩罚。<sup>[1](https://ar5iv.labs.arxiv.org/html/1801.00718)</sup> 离线算法由三个要素刻画：代价函数、搜索方法，以及对变化数目的约束。<sup>[1](https://ar5iv.labs.arxiv.org/html/1801.00718)</sup>

CUSUM 统计量比较每个候选变点左侧与右侧数据的均值；对于单次变化，在所有位置上最小化高斯分割代价等价于最大化 CUSUM 统计量，而 CUSUM 可视为比较“无变化”与“单次变化”模型的似然比检验的一个特例。<sup>[3](https://www.lancaster.ac.uk/~romano/teaching/2425MATH337/MATH337--Changepoint-Detection.pdf)</sup> 在其序贯形式中，它累积相对于目标的偏差，当累积和超过阈值时发出变化信号。<sup>[2](https://eecs.wsu.edu/~cook/pubs/kais16.2.pdf)</sup>

在线性能由平均运行长度（ARL，即变化前分布下的期望停止时间）与变化后的期望检测延迟（EDD）来衡量。<sup>[4](https://par.nsf.gov/servlets/purl/10492374)</sup> 一种虚警概率至多为 \( a \) 的基于 CUSUM 的程序，能以 \( \sigma^2 \kappa^{-2} \log(\Delta/a) \) 量级的延迟检测到均值变化，这是极小极大最优的，其中 \( \kappa \) 为变化幅度，\( \Delta \) 为间距，\( \sigma \) 为噪声水平。<sup>[9](https://wrap.warwick.ac.uk/id/eprint/189987/1/A%20note%20on%20online%20change%20point%20detection.pdf)</sup> 当信噪比 \( \kappa^2 \Delta / \sigma^2 \) 低于 \( \log(\Delta/a) \) 时，在线检测变得不可能，这一相变与离线情形几乎完全相同。<sup>[9](https://wrap.warwick.ac.uk/id/eprint/189987/1/A%20note%20on%20online%20change%20point%20detection.pdf)</sup>

## 实施方法

实践者首先确定噪声模型。若噪声近似高斯且独立、方差估计良好，则默认惩罚 \( \beta = 2 \log n \) 是合适的；更大的惩罚可补偿正自相关噪声，而 CROPS 程序会在一系列惩罚值上计算最优分割，以便分析者考察敏感性。<sup>[6](https://www.jstatsoft.org/article/download/v109i07/4577)</sup> 惩罚膨胀对于中等程度自相关而言是一种出奇有效的补丁，但一旦自相关系数超过约 0.5 便告失效，此时必须采用显式表示相关性的模型。<sup>[10](https://ar5iv.labs.arxiv.org/html/2005.01379)</sup>

最小段长是第二个关键设置：它提高对离群值和重尾噪声的稳健性，但可能使 PELT 式剪枝失效（使结果略次优），并导致比最小段长更近的真实变化被漏检。<sup>[6](https://www.jstatsoft.org/article/download/v109i07/4577)</sup> 最小段长为 4 能明显改善惩罚平方误差的性能，而具有隐式最小段长的方法（如 IDetect 与 MOSUM）在自相关或重尾噪声下表现强劲。<sup>[8](https://onlinelibrary.wiley.com/doi/10.1002/sta4.291)</sup>

存在领域特定的类似方法：单分子数据的阶跃查找器使用惩罚权重 \( W = 9\sigma^2 \) 来平衡欠拟合与过拟合，<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC3743561/)</sup> 一种 \( \ell_1 \) 正则化方法将其正则化参数约束在 \( 2\sigma < \gamma < h \cdot w/2 \) 之间，其中 \( h \) 为阶跃高度、\( w \) 为宽度，<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC3136774/)</sup> 而在电化学纳米撞击数据中，高度阈值是关键参数，因为阶跃只有相对于信号大小才有定义。<sup>[12](https://pubs.rsc.org/en/content/articlehtml/2025/fd/d4fd00130c)</sup>

## 起源

对序列的统计监测始于20世纪20年代的工业质量控制，其动因是制造过程监测。<sup>[4](https://par.nsf.gov/servlets/purl/10492374)</sup> Abraham Wald 1946年关于序贯分析的工作为在线变点检测提供了数学前奏，<sup>[13](https://doi.org/10.1214/aoms/1177730889)</sup> 而 E. S. Page 于1954年在《Biometrika》上提出了基于变化前后分布对数似然比的 CUSUM 连续检验方案。<sup>[5](https://doi.org/10.1093/biomet/41.1-2.100)</sup><sup> • </sup><sup>[4](https://par.nsf.gov/servlets/purl/10492374)</sup>

最优多重分割随动态规划而来：B. Jackson 及其同事于2005年在《IEEE Signal Processing Letters》上给出了区间上数据最优划分的算法，<sup>[14](https://doi.org/10.1109/lsp.2001.838216)</sup> F. Friedrich 及其同事于2008年在《Journal of Computational and Graphical Statistics》上证明 Potts 泛函可通过动态规划以 \( O(n^2) \) 代价计算，<sup>[15](https://doi.org/10.1198/106186008x285591)</sup> 而 R. Killick、P. Fearnhead 与 I. A. Eckley 于2012年在《Journal of the American Statistical Association》上提出了 PELT，具有精确性，并在温和条件下具有线性代价。<sup>[16](https://doi.org/10.1080/01621459.2012.737745)</sup> 逐步跳跃放置是一种贪心式的结点插入方案。<sup>[17](https://doi.org/10.1038/nature04928)</sup><sup> • </sup><sup>[18](https://royalsocietypublishing.org/doi/10.1098/rspa.2010.0671)</sup>

## 变体

**滤波方法**以较小的状态在线运行。CUSUM 实现常数内存与计算代价，且在变化前后分布精确已知时渐近最优；<sup>[4](https://par.nsf.gov/servlets/purl/10492374)</sup> 自适应 CUSUM 变体插入对新均值的自适应估计，以处理变化后分布未知的情形。<sup>[4](https://par.nsf.gov/servlets/purl/10492374)</sup>

**最优分割**精确求解带惩罚的问题。动态规划在序列长度上至少是二次代价；<sup>[19](https://link.springer.com/article/10.1007/s11222-016-9636-3)</sup> PELT 使用基于不等式的剪枝，以期望线性代价获得精确性，<sup>[16](https://doi.org/10.1080/01621459.2012.737745)</sup><sup> • </sup><sup>[19](https://link.springer.com/article/10.1007/s11222-016-9636-3)</sup> 而 Robert Maidstone 及其同事于2016年提出的 FPOP 总是比 PELT 剪枝更多，且无论变点数目多少都高效。<sup>[19](https://link.springer.com/article/10.1007/s11222-016-9636-3)</sup> 一种 \( \ell_1 \) 惩罚最小二乘重表述将离线估计转化为对所有可能变化位置的虚拟变量进行变量选择。<sup>[20](https://papers.nips.cc/paper_files/paper/2007/file/e5841df2166dd424a57127423d276bbe-Paper.pdf)</sup>

**近似搜索**以精确性换取速度。二分分割每次加入一个变点，在数据规模上大致线性，但可能对变化数目与位置的估计很差；<sup>[19](https://link.springer.com/article/10.1007/s11222-016-9636-3)</sup> Piotr Fryzlewicz 于2014年提出的野二分分割在随机选取的子区间上执行多次 CUSUM 检验，具有更好的定位率；<sup>[21](https://doi.org/10.1214/14-aos1245)</sup> A. B. Olshen 及其同事于2004年提出的循环二分分割检测阵列 DNA 拷贝数数据中的成对断点；<sup>[22](https://doi.org/10.1093/biostatistics/kxh008)</sup> 种子二分分割（S. Kovács 及其同事，2022）是一种具有最优性性质的通用快速方法；<sup>[23](https://doi.org/10.1093/biomet/asac052)</sup> 而 Birte Eichinger 与 Claudia Kirch（2017）的 MOSUM 程序从移动和中估计多重变化。<sup>[24](https://doi.org/10.3150/16-bej887)</sup>

**贝叶斯方法**包括 Daniel Barry 与 J. A. Hartigan（1993）的乘积划分模型，<sup>[25](https://doi.org/10.1080/01621459.1993.10594323)</sup> 贝叶斯在线变点检测（Ryan Prescott Adams 与 David J. C. MacKay，2007），后者跟踪一个游程长度变量的后验分布，该变量在变化时重置为 0，<sup>[26](https://doi.org/10.48550/arxiv.0710.3742)</sup><sup> • </sup><sup>[2](https://eecs.wsu.edu/~cook/pubs/kais16.2.pdf)</sup> 以及隐马尔可夫模型，由 Sean A. McKinney、Chirlmin Joo 与 Taekjip Ha 于2006年应用于单分子 FRET 轨迹。<sup>[27](https://doi.org/10.1529/biophysj.106.082487)</sup> BNP-Step 是一种贝叶斯非参数阶跃查找器，它无需假设驻留时间服从几何分布即可确定跃迁的数目与位置，使用 beta-伯努利过程先验激活候选阶跃，并将测量不确定性传播为关于阶跃位置、数目与水平的后验不确定性。<sup>[28](https://doi.org/10.1016/j.bpj.2024.01.008)</sup>

**生物物理阶跃查找器**自成一支：Kerssemakers 及其同事的 \( \chi^{2} \) 逐步法迭代地放置最显著的阶跃，且仅需两个参数（期望阶跃数与滤波秩），<sup>[29](https://pmc.ncbi.nlm.nih.gov/articles/PMC2134886/)</sup> AutoStepfinder 是一种快速自动迭代划分方法，采用双遍策略应对差异很大的阶跃尺寸，<sup>[30](https://ceesdekkerlab.nl/wp-content/uploads/2019/08/1-s2.0-S2666389921000829-main.pdf)</sup> Steps and Bumps 方法使用 \( \ell_1 \) 正则化分段常数平滑，并配有相关噪声与平滑过渡的物理模型，<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC3136774/)</sup> 而一种2015年的非参数方法分析数据值的概率分布，既不假设高斯噪声也不假设有色噪声，也不假设 Heaviside 阶跃形式。<sup>[31](https://onlinelibrary.wiley.com/doi/10.1002/cyto.a.22631)</sup>

## 应用

单分子生物物理学是最大的用户：应用于驱动蛋白马达数据时，阶跃检测方法发现了有力证据，表明在低于 5 pN 的力下货物质心存在小于 8 纳米的阶跃，说明多个马达并未被迫同步。<sup>[29](https://pmc.ncbi.nlm.nih.gov/articles/PMC2134886/)</sup> BNP-Step 在力谱实验上得到演示，<sup>[28](https://doi.org/10.1016/j.bpj.2024.01.008)</sup> 贝叶斯变点方法已检测到细菌细胞膜中的离子通道门控以及油井中的岩性变化。<sup>[32](https://ar5iv.labs.arxiv.org/html/2507.01558)</sup> 质量控制中的制造监测仍是其最初的应用。<sup>[4](https://par.nsf.gov/servlets/purl/10492374)</sup>

## 局限与替代方法

在独立高斯噪声下，所有被比较的变点方法都表现尚可，但重尾噪声或正自相关会导致高估变点数目。<sup>[8](https://onlinelibrary.wiley.com/doi/10.1002/sta4.291)</sup> 几乎所有均值变化算法的默认实现都假设变化之间均值恒定且噪声独立，当均值局部波动或噪声自相关时，会大幅高估变化数目。<sup>[10](https://ar5iv.labs.arxiv.org/html/2005.01379)</sup> 二分分割由于每次只加入一个变化，检测短段的功效较低，<sup>[8](https://onlinelibrary.wiley.com/doi/10.1002/sta4.291)</sup> 而像 CUSUM 这样针对指定变化幅度调优的程序，当实际变化幅度与设计值不同时可能表现不佳，尽管它们通常对其他非零均值偏移仍保留一定功效。<sup>[33](https://www.jmlr.org/papers/volume24/21-1230/21-1230.pdf)</sup><sup> • </sup><sup>[34](https://doi.org/10.1080/03610910008813632)</sup> 在生物物理学中，隐马尔可夫模型本质上假设驻留时间服从几何分布，在稀疏或含噪数据中会使阶跃位置产生偏差，<sup>[28](https://doi.org/10.1016/j.bpj.2024.01.008)</sup> 而预滤波能改善大多数方法的性能，却会模糊间距很近的阶跃，降低时间分辨率。<sup>[29](https://pmc.ncbi.nlm.nih.gov/articles/PMC2134886/)</sup> 滑动均值滤波对分段常数信号从根本上不适用，因为它必须把跳跃平滑掉才能去除噪声，假设噪声为不相关高斯噪声，并使用偏好某些驻留时间的固定窗口。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC3136774/)</sup> 针对分段常数信号的相关去噪方法包括全变差正则化、均值漂移聚类、滑动中位数、凸聚类收缩与双边滤波，其中大多数是某个广义泛函的特例，而传统线性方法从根本上不适合。<sup>[18](https://royalsocietypublishing.org/doi/10.1098/rspa.2010.0671)</sup>

## References

1. [Selective review of offline change point detection methods (Truong, Oudre, Vayatis)](https://ar5iv.labs.arxiv.org/html/1801.00718)
2. [A Survey of Methods for Time Series Change Point Detection (Knowledge and Information Systems)](https://eecs.wsu.edu/~cook/pubs/kais16.2.pdf)
3. [MATH337: Changepoint Detection (lecture notes, Lancaster University)](https://www.lancaster.ac.uk/~romano/teaching/2425MATH337/MATH337--Changepoint-Detection.pdf)
4. [Sequential change-point detection: Computation versus statistical performance (WIREs Computational Statistics tutorial)](https://par.nsf.gov/servlets/purl/10492374)
5. [E. S. PAGE (1954). CONTINUOUS INSPECTION SCHEMES. Biometrika.](https://doi.org/10.1093/biomet/41.1-2.100)
6. [cpop: Detecting Changes in Piecewise-Linear Signals (R package, Journal of Statistical Software)](https://www.jstatsoft.org/article/download/v109i07/4577)
7. [Detection of Steps in Single Molecule Data](https://pmc.ncbi.nlm.nih.gov/articles/PMC3743561/)
8. [Relating and comparing methods for detecting changes in mean (Wiley)](https://onlinelibrary.wiley.com/doi/10.1002/sta4.291)
9. [A note on online change point detection (Wang, Yu, Rinaldo)](https://wrap.warwick.ac.uk/id/eprint/189987/1/A%20note%20on%20online%20change%20point%20detection.pdf)
10. [Detecting Abrupt Changes in the Presence of Local Fluctuations and Autocorrelated Noise (DeCAFS)](https://ar5iv.labs.arxiv.org/html/2005.01379)
11. [Steps and Bumps: Precision Extraction of Discrete States of Molecular Machines (Biophysical Journal)](https://pmc.ncbi.nlm.nih.gov/articles/PMC3136774/)
12. [Advanced algorithm for step detection in single-entity electrochemistry: a comparative study of wavelet transforms and convolutional neural networks (Faraday Discuss., 2025, 257, 384-398, DOI 10.1039/D4FD00130C)](https://pubs.rsc.org/en/content/articlehtml/2025/fd/d4fd00130c)
13. [Abraham Wald (1946). Differentiation Under the Expectation Sign in the Fundamental Identity of Sequential Analysis. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177730889)
14. [B. Jackson and colleagues (2005). An algorithm for optimal partitioning of data on an interval. IEEE Signal Processing Letters.](https://doi.org/10.1109/lsp.2001.838216)
15. [F Friedrich and colleagues (2008). Complexity Penalized M-Estimation. Journal of Computational and Graphical Statistics.](https://doi.org/10.1198/106186008x285591)
16. [R. Killick, P. Fearnhead, I. A. Eckley (2012). Optimal Detection of Changepoints With a Linear Computational Cost. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.2012.737745)
17. [Jacob W. J. Kerssemakers and colleagues (2006). Assembly dynamics of microtubules at molecular resolution. Nature.](https://doi.org/10.1038/nature04928)
18. [Generalized methods and solvers for noise removal from piecewise constant signals. I. Background theory (Proc. R. Soc. A, 2011)](https://royalsocietypublishing.org/doi/10.1098/rspa.2010.0671)
19. [On optimal multiple changepoint algorithms for large data (Maidstone et al., Statistics and Computing)](https://link.springer.com/article/10.1007/s11222-016-9636-3)
20. [Catching Change-points with Lasso (NIPS 2007)](https://papers.nips.cc/paper_files/paper/2007/file/e5841df2166dd424a57127423d276bbe-Paper.pdf)
21. [Piotr Fryzlewicz (2014). Wild binary segmentation for multiple change-point detection. The Annals of Statistics.](https://doi.org/10.1214/14-aos1245)
22. [A. B. Olshen and colleagues (2004). Circular binary segmentation for the analysis of array-based DNA copy number data. Biostatistics.](https://doi.org/10.1093/biostatistics/kxh008)
23. [S Kovács and colleagues (2022). Seeded binary segmentation: a general methodology for fast and optimal changepoint detection. Biometrika.](https://doi.org/10.1093/biomet/asac052)
24. [Birte Eichinger, Claudia Kirch (2017). A MOSUM procedure for the estimation of multiple random change points. Bernoulli.](https://doi.org/10.3150/16-bej887)
25. [Daniel Barry, J. A. Hartigan (1993). A Bayesian Analysis for Change Point Problems. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1993.10594323)
26. [Adams, Ryan Prescott, MacKay, David J. C. (2007). Bayesian Online Changepoint Detection. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.0710.3742)
27. [Sean A. McKinney, Chirlmin Joo, Taekjip Ha (2006). Analysis of Single-Molecule FRET Trajectories Using Hidden Markov Modeling. Biophysical Journal.](https://doi.org/10.1529/biophysj.106.082487)
28. [An accurate probabilistic step finder for time-series analysis (Biophysical Journal, 2024)](https://doi.org/10.1016/j.bpj.2024.01.008)
29. [A Comparison of Step-Detection Methods: How Well Can You Do? (Biophysical Journal)](https://pmc.ncbi.nlm.nih.gov/articles/PMC2134886/)
30. [AutoStepfinder: A fast and automated step detection method for single-molecule analysis](https://ceesdekkerlab.nl/wp-content/uploads/2019/08/1-s2.0-S2666389921000829-main.pdf)
31. [Automated nonparametric method for detection of step-like features in biological data sets (Cytometry Part A, 2015)](https://onlinelibrary.wiley.com/doi/10.1002/cyto.a.22631)
32. [A Bayesian framework for change-point detection with uncertainty quantification (MICH)](https://ar5iv.labs.arxiv.org/html/2507.01558)
33. [Fast Online Changepoint Detection via Functional Pruning CUSUM Statistics (FOCuS, JMLR)](https://www.jmlr.org/papers/volume24/21-1230/21-1230.pdf)
34. [Dbtjmh5qg48 (exa.ai)](https://doi.org/10.1080/03610910008813632)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/step-detection

English original: https://www.edgepedia.org/step-detection
