User:Maxlittle2007/Step detection

Examples of signals that may contain steps corrupted by noise. (a) DNA copy-number ratios from microarray data, (b) cosmic ray intensity from a neutron monitor, (c) rotation speed against time of R. Sphaeroides flagellar motor, and (d) red pixel intensity from a single scan line of a digital image.

In statistics and signal, step detection (also known as step smoothing, step filtering, or edge detection) is the process of finding abrupt changes (steps, jumps) in the mean level of a time series or signal. It is usually considered as a special kind of statistical method known as change point detection. Often, the step is small and the time series is corrupted by some kind of noise, and this makes the problem challenging because the step may be hidden by the noise. Therefore, statistical and/or signal processing algorithms are often required.

The step detection problem occurs in multiple scientific and engineering contexts, for example in statistical process control[1] (the control chart being the most directly related method), in exploration geophysics (where the problem is to segment a well-log recording into stratigraphic zones[2]), in genetics (the problem of separating microarray data into similar copy-number regimes[3]), and in biophysics (detecting state transitions in a molecular machine as recorded in time-position traces[4]). For 2D signals, the related problem of edge detection has been studied intensively for image processing[5].

Because steps and (independent) noise have theoretically infinite bandwidth and so overlap in the Fourier basis, signal processing approaches to step detection generally do not use classical smoothing techniques such as the low pass filter. Instead, most algorithms are explicitly nonlinear or time-varying[6].

Algorithms edit

Most algorithms for step detection in digital data can be categorised as top-down, bottom-up, sliding window, or global methods[6].

Top-down edit

These algorithms start with the assumption that there are no steps and introduce possible candidate steps one at a time, testing each candidate to find the one that minimizes some criteria (such as the least-squares fit of the estimated, underlying piecewise constant signal). An example is the stepwise jump placement algorithm, first studied in geophysical problems[2], that has found recent uses in modern biophysics[7].

Bottom-up edit

Bottom-up algorithms take the "opposite" approach to top-down methods, first assuming that there is a step in between every sample in the digital signal, and then successively merging steps based on some criteria tested for every candidate merge.

Sliding window edit

By considering a small "window" of the signal, these algorithms look for evidence of a step occurring within the window. The window "slides" across the time series, one time step at a time. The evidence for a step is tested by statistical procedures, for example, by use of the two-sample Student's t-test. Alternatively, a nonlinear filter such as the median filter is applied to the signal. Filters such as these attempt to remove the noise whilst preserving the abrupt steps.

Global edit

Global algorithms consider the entire signal in one go, and attempt to find the steps in the signal by some kind of optimization procedure. Algorithms include wavelet methods[8], and total variation denoising which uses methods from convex optimization. Where the steps can be modelled as a Markov chain, then Hidden Markov Models are also often used. When there are only a few unique values of the mean, then K-means clustering can also be used.

Step detection and piecewise constant signals edit

Because the aim of step detection is a find a series of instantaneous jumps in the mean of a signal, the wanted, underlying, mean signal is piecewise constant. For this reason, step detection can be profitably viewed as the problem of recovering a piecewise constant signal corrupted by noise[6]. There are two complementary models for piecewise constant signals: as 0-degree splines with a few knots, or as level sets with a few unique levels. Many algorithms for step detection are therefore best understood as either 0-degree spline fitting, or level set recovery, methods.

Step detection as level set recovery edit

When there are only a few unique values of the mean, clustering techniques such as K-means clustering or mean-shift are appropriate. These techniques are best understood as methods for finding a level set description of the underlying piecewise constant signal.

Step detection as 0-degree spline fitting edit

Many algorithms explicitly fit 0-degree splines to the noisy signal in order to detect steps (including stepwise jump placement methods[2][7]), but there are other popular algorithms that can also be seen to be spline fitting methods after some transformation, for example total variation denoising[6].

Generalized step detection by piecewise constant denoising edit

All the algorithms mentioned above have certain advantages and disadvantages in particular circumstances, yet, a surprisingly large number of these step detection algorithms are special cases of a more general algorithm[6]. This algorithm involves the minimization of a global functional[9]:

  (1)

Here,   for   is the input discrete-time input signal of length  , and   is a the signal output from the algorithm. The goal is to minimize   with respect to the output signal  . The form of the function   determines the particular algorithm. For example, choosing:

 

where   if the condition   is false, and one otherwise, obtains the total variation denoising algorithm with regularization parameter  . Similarly:

 

leads to the mean shift algorithm, when using an adaptive step size Euler integrator initialized with the input signal  [9]. Here   is a parameter that determines the support of the mean shift kernel. Another example is:

 

leading to the bilateral filter, where   is the tonal kernel parameter, and   is the spatial kernel support. Yet another special case is:

 

specifying a group of algorithms that attempt to greedily fit 0-degree splines to the signal[7][2]. Here,   is defined as zero if  , and one otherwise.

Many of the functionals in equation (1) defined by the particular choice of   are convex: they can be minimized using methods from convex optimization. Still others are non-convex but a range of algorithms for minimizing these functionals have been devised[6][9].

References edit

  1. ^ E.S. Page (1955). "A test for a change in a parameter occurring at an unknown point". Biometrika. 42 (3–4): 523–527. doi:10.1093/biomet/42.3-4.523.
  2. ^ a b c d Gill, D. (1970). "Application of a statistical zonation method to reservoir evaluation and digitized log analysis". American Association of Petroleum Geologists Bulletin. 54: 719–729.
  3. ^ Snijders, Antoine M.; Nowak, Norma; Segraves, Richard; Blackwood, Stephanie; Brown, Nils; Conroy, Jeffrey; Hamilton, Greg; Hindle, Anna Katherine; Huey, Bing; Kimura, Karen; Law, Sindy; Myambo, Ken; Palmer, Joel; Ylstra, Bauke; Yue, Jingzhu Pearl; Gray, Joe W.; Jain, Ajay N.; Pinkel, Daniel; Albertson, Donna G. (2001). "Assembly of microarrays for genome-wide measurement of DNA copy number". Nature Genetics. 29 (3): 263–264. doi:10.1038/ng754. PMID 11687795.
  4. ^ Sowa, Yoshiyuki; Rowe, Alexander D.; Leake, Mark C.; Yakushi, Toshiharu; Homma, Michio; Ishijima, Akihiko; Berry, Richard M. (2005). "Direct observation of steps in rotation of the bacterial flagellar motor". Nature. 437 (7060): 916–919. doi:10.1038/nature04003. PMID 16208378.
  5. ^ Serra, J.P. (1982). Image analysis and mathematical morphology. London; New York: Academic Press.
  6. ^ a b c d e f Little, M.A. (2011). "Generalized Methods and Solvers for Piecewise Constant Signals: Part I" (PDF). Proc. Roy. Soc. A. {{cite journal}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)
  7. ^ a b c Kerssemakers, J.W.J. (2006). "Assembly dynamics of microtubules at molecular resolution". Nature. 442 (7103): 709–712. doi:10.1038/nature04928. PMID 16799566. {{cite journal}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)
  8. ^ Mallat, S. (1992). "Singularity detection and processing with wavelets". IEEE Transactions on Information Theory. 38 (2): 617–643. doi:10.1109/18.119727. {{cite journal}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)
  9. ^ a b c Mrazek, P. (2006). "On robust estimation and smoothing with spatial and tonal kernels". Geometric properties for incomplete data. Berlin, Germany: Springer. {{cite conference}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)

External links edit