Segmentation#
Segmentation of multivariate time series.
Cost functions and search strategies (costs, search),
latent-variable segmentation (latent, fuzzy,
fisher), probabilistic and self-supervised methods
(bayesian, hmm, profiles, states,
predictive), ensembles, model selection and streaming.
Segment costs and search strategies, latent-variable, fuzzy and Fisher-information segmentation, Bayesian, HMM, profile, state, predictive, consensus and on-line segmenters, model selection.
Classes#
Common interface of all segmentation methods. |
|
|
Interface: |
|
Sum of squared deviations from the segment mean (piecewise constant model). |
|
Sum of absolute deviations from the segment median (robust to outliers). |
|
Gaussian negative log-likelihood with segment-wise mean and full covariance, \((b-a)\log\det\hat\Sigma_{ab}\) (up to constants). |
Residual sum of squares of a straight line fitted to every variable against time (piecewise linear approximation, PLA; Keogh and Pazzani, 1998). |
|
|
Residual sum of squares of autoregressive models of the given |
|
Principal component analysis based homogeneity cost. |
|
Kernel cost (Harchaoui and Cappé, 2007; Arlot, Celisse and Harchaoui, 2019): dispersion of the segment in the feature space of a kernel, \(\sum_{i\in S}k_{ii}-\frac1{\lvert S\rvert}\sum_{i,j\in S}k_{ij}\). |
|
Model-based cost: residual sum of squares of a linear regression of the |
|
Bottom-up segmentation by greedy merging of adjacent segments. |
|
Binary segmentation: repeatedly split the segment whose best split reduces the total cost most. |
|
Grow each segment from its start until its cost exceeds |
|
Sliding Window And Bottom-up (Keogh et al., 2001): bottom-up segmentation inside a moving buffer, emitting the leftmost segment. |
|
Exact minimization of the total cost for a fixed number of segments by dynamic programming over a grid of candidate change points. |
|
Pruned Exact Linear Time search (Killick et al., 2012): minimizes \(\sum_i cost(S_i)+\beta\,(c-1)\) exactly, pruning candidates that can never be optimal. |
|
Sliding two-window discrepancy \(d(t)=cost(t-w,t+w)-cost(t-w,t)-cost(t,t+w)\) and peak picking (Truong, Oudre and Vayatis, 2020). |
|
Hierarchy of segmentations produced by bottom-up merging. |
|
Segmentation by the homogeneity of local PCA models. |
|
Process-dynamics-aware segmentation with dynamic PCA. |
|
Off-line bottom-up segmentation by the similarity of neighbouring (dynamic) PCA models. |
|
On-line segmentation with recursive (dynamic) PCA. |
|
Fuzzy segmentation with time-constrained PPCA clusters. |
|
Segmentation of historical data by the information they carry on the parameters of a process model. |
|
Bayesian on-line change point detection. |
|
State detection with a Gaussian HMM. |
|
Recursive segmentation by classification score profiles. |
|
Regime extraction with the corrected arc curve (FLUSS). |
|
Segment-then-cluster state detection. |
|
TICC-style state detection with sparse Gaussian window models. |
|
Bottom-up merging of adjacent segments by a pairwise dissimilarity. |
|
Bottom-up merging of connected regions of a graph. |
|
Dissimilarity of two segments by a classifier two-sample test. |
|
Dissimilarity of two segments by cross-prediction. |
|
Bottom-up segmentation by predictive homogeneity. |
|
Ensemble segmentation by boundary agreement. |
|
Windowed application of a batch segmenter to a stream. |
|
Multivariate CUSUM change detector. |
Functions#
|
Return a cost object from a name (see |
|
BIC-type penalty for PELT: |
|
Fit a (dynamic) PCA model to every segment of a segmentation. |
|
Contiguous crisp segmentation that agrees best with fuzzy memberships. |
|
Fisher information matrix of the samples |
|
OED criteria of a Fisher information matrix. |
|
Moving-window OED criterion: the "evaluating time series" of Dobos, Bankó and Abonyi (2010). |
|
Output sensitivities \(\partial y/\partial p\) by forward finite differences. |
|
Sensitivities of the one-step-ahead prediction of an ARX model, \(\hat y(k)=\sum_i a_i y(k-i)+\sum_j b_j u(k-d-j+1)\), with respect to its parameters: the regressor vector itself. |
|
Classification score profile of one series (or of |
|
Corrected arc curve (CAC) of FLUSS from a matrix profile index. |
|
Local model of every segment. |
|
Pairwise distances of segment descriptors. |
|
Boundary agreement profile of a list of segmentations (or change point arrays) of the same series. |
|
Total cost of the bottom-up segmentation for |
|
Relative reduction rate \(RR(c)\) of a cost curve. |
|
Knee of a convex decreasing (or concave increasing) curve: the point farthest from the chord between the end points of the normalized curve. |
|
Permutation test for the number of segments. |
|
Choose the number of segments of a cost-based segmentation. |
|
Number of change points found by PELT for a range of penalties. |
|
One-line segmentation: |