Supplementary Notes: Segment Parameter Labelling in MCMC Change Detection
Alireza Ahrabian

TL;DR
This paper introduces a Bayesian change point detection method that leverages segment parameter repetition using a Dirichlet process prior to improve segmentation accuracy in time series data.
Contribution
It proposes a novel Bayesian algorithm that incorporates segment class labels with a Dirichlet process prior to exploit parameter patterns across segments.
Findings
Enhanced change point detection accuracy.
Effective utilization of segment parameter repetition.
Demonstrated improvements over traditional methods.
Abstract
This work addresses the problem of segmentation in time series data with respect to a statistical parameter of interest in Bayesian models. It is common to assume that the parameters are distinct within each segment. As such, many Bayesian change point detection models do not exploit the segment parameter patterns, which can improve performance. This work proposes a Bayesian change point detection algorithm that makes use of repetition in segment parameters, by introducing segment class labels that utilise a Dirichlet process prior.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBayesian Methods and Mixture Models · Time Series Analysis and Forecasting · Algorithms and Data Compression
Supplementary Notes: Segment Parameter Labelling in MCMC Change Detection
Alireza Ahrabian
Abstract
This work addresses the problem of segmentation in time series data with respect to a statistical parameter of interest in Bayesian models. It is common to assume that the parameters are distinct within each segment. As such, many Bayesian change point detection models do not exploit the segment parameter patterns, which can improve performance. This work proposes a Bayesian change point detection algorithm that makes use of repetition in segment parameters, by introducing segment class labels that utilise a Dirichlet process prior.
Index Terms— Change Detection, Markov Chain Monte Carlo, Dirichlet Process, Autoregressive Models.
I Introduction
Change detection algorithms are an important tool in the exploratory analysis of real world data. Namely, such algorithms seek to partition time series data with respect to a statistical parameter of interest, where examples include, the mean, variance and autoregressive model weights, to name but a few. Change point detection algorithms have found applications in fields ranging from financial to bio-medical data analysis.
Accordingly, many approaches have been proposed to address the problem of segmenting time series data. Namely, the work in [1] proposed an online method, based on the likelihood ratio test that both detects and estimates a change in the statistical parameter of interest. More recently, the work in [2] proposed a computationally efficient algorithm that segments data by minimising a cost function using dynamic programming, while [3] utilises a classification algorithm (kernel-SVM) in order to estimate the change point locations. Bayesian approaches to time series segmentation have also proven to be useful. In particular, by deriving the posterior distribution of the parameters interest (that includes, the number of segments, as well as, the change point locations), one can then use suitable methodologies (for evaluating the posterior distribution) in order to both infer as well as predict. Examples of such work includes, a fully hierarchical Bayesian model proposed in [4], that utilised a Markov Chain Monte Carlo (MCMC) sampler in order to evaluate the posterior distribution of the target parameters. While an exact (that is, avoiding the use MCMC sampling algorithms) segmentation algorithm was developed in [5], by evaluating the posterior distribution using an recursive algorithm.
The change point algorithms mentioned in the previous section, assume that statistical parameters of interest from different segments are distinct and thus independent. However, many real world processes can often be modeled by parameters generated from a fixed number of states, where such parameters can be re-assigned more than once (parameter repetition). In particular, hidden Markov models (HMM) and their extensions [6], assign to each data point a state label (that evolves according to Markov chain) corresponding to a set of parameters that govern the emission probability of generating the data point. While, mixture models [7][8] and their extensions (e.g. Dirichlet processes [7]) assume that each data point is generated from a probability distribution; with the parameters of the distribution belong to state drawn from a discrete distribution (that captures the clustering of the data points, with respect to the parameter of interest). However, it should be noted that such methods assign a parameter belonging to a particular state to each time point, and not to the parameters corresponding to a given segment.
This work is based on the method outlined in [9] that incorporates segment parameter repetition in the estimation process of a change point detection algorithm, when estimating changes in autoregressive processes. Namely, the work proposed to extend the Bayesian change point detection algorithm proposed in [4], by incorporating a parameter class variable that utilises a Dirichlet process prior for identifying the number of distinct segment parameters. By including the parameter class variable, segment parameter repetition is captured during the estimation process of the transition times (change point locations), resulting in more robust segmentation.
II Background
II-A MCMC Change Point Detection
In this work, we consider the change point detection algorithm proposed in [4]. That is, given a set of transition times where and , that partition a data set into segments, where for each segment (consisting of data points between the time indices ) there exists the following functional relationship between the data points and the statistical parameter , that is
[TABLE]
for segments indexed by , where is a set of i.i.d. Gaussian noise samples with zero mean and variance . In particular, an example of the functional relationship is given by the autoregressive model of order , that is
[TABLE]
where . Accordingly, one can define the posterior distribution for the target parameters of interest; namely, the number of transition times and set of transition time points , that is
[TABLE]
where corresponds to the vector of segment parameters that is treated as a nuisance parameter and thus integrated out of the posterior distribution. Finally, it should be noted that the likelihood function in the posterior distribution (2) assumes that the parameters are distinct for each segment [4], that is
[TABLE]
II-B Dirichlet Process Mixture Model
Consider a set of exchangeable data points , such that probability distribution of the data points can be represented by a set of class distributions, that is
[TABLE]
where is the mixing coefficient and corresponds to the class parameter/s of the probability distribution . The Dirichlet process mixture model (DPMM) [7] can be seen as the limiting case of the mixture model (MM) specified in (4). This can be seen by first considering the re-formulation of the mixture model shown in (4), by introducing the class indicator random variable for the data point
[TABLE]
where , and denotes the prior distribution on the parameters . The probability of selecting a given class is determined by the mixing coefficients . In particular, the the joint distribution of the class indicator random variables is given by
[TABLE]
where corresponds to the number of data points assigned to class . The distribution of the the class indicator variable given all other class variables that excludes the , is given by the following
[TABLE]
where is the number of data points (excluding ) assigned to class and is a symmetric Dirichlet distribution with parameter .
Taking the number of classes and assuming that there exists a finite number of represented classes , such that the number of data points assigned to each class is greater than zero; accordingly the conditional probability in (3) for represented classes is given by
[TABLE]
That is, (4) is the probability of assigning the class variable to the represented class . Furthermore, as there exists an countably infinite number of classes that excludes the represented classes such that, , for all . In order to calculate the probability of assigning to a new class, consider the following
[TABLE]
where corresponds to the sum of the probabilities of the represented classes (that is, there exists a data point assigned to the class) and the sum of the probabilities of all other classes. Accordingly the probability of assigning to a new class,111The classes that exclude the represented classes. is given by the following
[TABLE]
The conditional posterior distribution of the class variable , given (4) and (6), can then be determined as follows
[TABLE]
for a class where and corresponds to the likelihood . The conditional posterior probability for assigning a data point to a new class is given by
[TABLE]
Finally, it should be noted that the Dirichlet process mixture model can be written as follows
[TABLE]
where is drawn from the Dirichlet process with base measure .
III Proposed Method
In this work we propose to extend the model developed in [4], by assigning a class variable for the parameters in each segment (for ) thereby capturing the dependencies between segment parameters for improved change point estimation. This performance improvement is achieved by concatenating data points of segments with the same class labels; thereby providing more degrees of freedom when assessing if a change point exists. In the sections that follow, we will provide a detailed description of the proposed method.
III-A Bayesian Model
In particular, we modify the set of distinct segment parameters, , by introducing the class variable , such that, ; where the parameters in each segment are effectively then being drawn from a set of class parameters, , where . That is, each segment parameter can be formulated as a multivariate Gaussian mixture model (the Gaussian assumption enables tractable posterior distributions) of the class parameters
[TABLE]
where and . Accordingly, we present a change point estimation model that incorporates the class variable and a Dirichlet process prior on the likelihood on the class probabilities, that is
[TABLE]
for . Furthermore, corresponds to a Binomial distribution, is the joint prior distribution of both the class parameter and the variance of the class parameter , the prior distribution of the variance of the data points with the same class label is given by and corresponds to the joint Normal distribution.
The posterior distribution of the model in (11), consists of the following parameters, , where . Inference of the parameters is carried out by using a Metropolis-Hastings-within-Gibbs sampling scheme. The Gibbs moves are performed on each parameter in the set, , while a variation of the Metropolis-Hastings algorithm is used to obtain samples for the parameters . The marginal posterior distribution of parameters are given by the following; namely, the marginal posterior distribution of the class parameters , assuming the conjugate prior distribution, , where and is an identity matrix of dimension , is given by
[TABLE]
where and for where corresponds to the number of segment parameters assigned to class . The marginal posterior distribution (Inverse Wishart distributed) of the class covariance matrix , given the conjugate prior distribution, where and , is shown by the following
[TABLE]
where and . Furthermore, the posterior distribution of the variance for the data points from segments with the same class label , along with the inverse Gamma prior distribution, , is given by (for )
[TABLE]
where is the number of data points with label , is the concatenated vector222Furthermore, is concatenation of input data points such that, is satisfied. of all data points with the same segment label , , with . Finally, the marginal posterior distribution for the class labels are given by: for (shown in (7)) with likelihood ; while for the posterior probability for a new class is given by (8) (see [] for more details).
The conditional posterior distribution of the parameters can be obtained by first considering the following marginal posterior distribution, where is an hyperparameter of the following prior distribution, . Having selected the appropriate conjugate priors, we can integrate out the nuisance parameters , thereby significantly reducing the number of parameters required to specify the posterior distribution for . To this end, we first obtain the following posterior distribution (that incorporates the prior distributions of the nuisance parameters)
[TABLE]
where has uniform probability over the interval and the likelihood function is given by
[TABLE]
where by combining data points from the same segment class label , we can potentially obtain more accurate parameter estimation owing to the increased number of number available for estimating . Integration of (15) with respect to the parameters results in the following expression for the conditional posterior distribution of the parameters
[TABLE]
Finally, we note that there are some challenges from drawing samples from (16) due to the dependence on that we have addressed in the next section.
III-B Gibbs Sampling
A summary of the Gibbs sampling scheme for drawing samples for the parameters , is provided in Algorithm 1. Observe that the parameters , are dependent on the segment class variables , and in turn, the segment class variables are dependent on the parameters . Furthermore, the marginal posterior distributions for both and are intractable and therefore require sampling schemes; in particular, a nested Gibbs sampling scheme was used in order to draw samples for the class variables , due to the dependence on the parameters (as shown in Algorithm 1). While, A modification of the Metropolis-Hastings algorithm (having integrated out the nuisance parameters) outlined in [4] was used in order to draw samples from the conditional posterior distribution, ; in particular, a variation was developed that incorporates the segment labels .
Given the samples, , we first select with a certain probability, one the following:
- •
: create a new change point (birth), with probability,
- •
: remove an existing change (death) with probability,
- •
: update of change point positions with probability,
where for , and for . Furthermore, for , and , while for , and .
A birth move consists of proposing a new transition time , with the following proposal distribution, , where corresponds to the set of change points that includes both and , while corresponds to the set of time indices excluding the time points . Conversely, the proposal distribution for removing from , is given by . Accordingly, the proposed transition time is accepted with the following probability, ,
[TABLE]
with and , corresponding to the proposal distributions for the unit increment and decrement (respectively) of the parameter . It should be noted that in order to determine the acceptance ratio , we need to evaluate , where there is now a dependence on . This dependence arises due to the proposed transition time , splitting the segment between the time indices into , as well as, splitting the segment class variable , into two new class variables . As we have not yet inferred the new class variables from the conditional class posterior distributions, we assume that the two classes are distinct (that is, for all and ) and thus independent from all other segments, to circumvent the lack of information we have for assignment to an existing class (please refer to Figure ).
The death move proposes to remove a transition time , by choosing with uniform probability from the set ; where the removal of is accepted with probability . As in the previous case (birth move), we need to determine , however, now we need to evaluate . That is, the segments between the transition times, and where , are combined into one segment , along with the segment class variables being combined into one segment with a new class variable . Using the argument utilised for the birth of a change point we assign a distinct value to the new class variable, that is, for all .
The update of the transitions times is carried by first removing the transition time index from and proposing a new change point at some new location, for all . That is, the death move is first applied followed by a birth move for all transition times in .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. Brandt, “Detecting and estimating parameter jumps using ladder algorithms and likelihood ratio tests,” IEEE International Conference on Acoustics, Speech and Signal Processing , pp. 1017–1020, 1983.
- 2[2] R. Killick, P. Fearnhead, and I. A. Eckley, “Optimal detection of changepoints with a linear computational cost,” Journal of the American Statistical Association , vol. 500, no. 107, pp. 1590––1598, 2012.
- 3[3] F. Desobry, M. Davy, and C. Doncarli, “An online kernel change detection algorithm,” IEEE Transactions on Signal Processing , vol. 53, no. 8, pp. 2961–2974, 2005.
- 4[4] E. Punskaya, C. Andrieu, A. Doucet, and W. Fitzgerald, “Bayesian curve fitting using MCMC with applications to signal segmentation,” IEEE Transactions on Signal Processing , vol. 50, no. 3, pp. 747–758, 2002.
- 5[5] P. Fearnhead, “Exact Bayesian curve fitting and signal segmentation,” IEEE Transactions on Signal Processing , vol. 53, no. 6, pp. 2160–2166, 2005.
- 6[6] I. Rezek and S. Roberts, “Ensemble hidden Markov models with extended observation densities for biosignal analysis,” Springer London , pp. 419–450, 2005.
- 7[7] R. M. Neal, “Markov chain sampling methods for Dirichlet process mixture models,” Journal of Computational and Graphical Statistics , vol. 2, no. 2, pp. 249–265, 2000.
- 8[8] C. E. Rasmussen, “The infinite Gaussian mixture model,” Advances in Neural Information Processing Systems 12 , pp. 554–560, 2000.
