[Paper Review] Fast estimation of posterior probabilities in change-point models through a constrained hidden Markov model
This paper proposes a constrained hidden Markov model (HMM) that enables exact, linear-time computation of posterior probabilities for change-points in large-scale genomic data, such as copy number variation (CNV) from SNP arrays. By adapting the HMM framework to enforce segment-based constraints, the method achieves O(Kn) complexity—significantly faster than quadratic methods—while maintaining accuracy comparable to Bayesian MCMC, enabling efficient uncertainty quantification in high-resolution CNV analysis.
The detection of change-points in heterogeneous sequences is a statistical challenge with applications across a wide variety of fields. In bioinformatics, a vast amount of methodology exists to identify an ideal set of change-points for detecting Copy Number Variation (CNV). While considerable efficient algorithms are currently available for finding the best segmentation of the data in CNV, relatively few approaches consider the important problem of assessing the uncertainty of the change-point location. Asymptotic and stochastic approaches exist but often require additional model assumptions to speed up the computations, while exact methods have quadratic complexity which usually are intractable for large datasets of tens of thousands points or more. In this paper, we suggest an exact method for obtaining the posterior distribution of change-points with linear complexity, based on a constrained hidden Markov model. The methods are implemented in the R package postCP, which uses the results of a given change-point detection algorithm to estimate the probability that each observation is a change-point. We present the results of the package on a publicly available CNV data set (n=120). Due to its frequentist framework, postCP obtains less conservative confidence intervals than previously published Bayesian methods, but with linear complexity instead of quadratic. Simulations showed that postCP provided comparable loss to a Bayesian MCMC method when estimating posterior means, specifically when assessing larger-scale changes, while being more computationally efficient. On another high-resolution CNV data set (n=14,241), the implementation processed information in less than one second on a mid-range laptop computer.
Motivation & Objective
- Address the computational infeasibility of exact posterior estimation for change-point locations in large genomic datasets, particularly for CNV detection in high-throughput sequencing data.
- Overcome the quadratic complexity of existing exact methods (e.g., O(Kn²)) that hinder application to datasets with tens of thousands of points.
- Provide a computationally efficient alternative to Bayesian MCMC and asymptotic methods for assessing uncertainty in change-point locations without sacrificing accuracy.
- Enable practical confidence interval estimation for change-point positions in high-resolution CNV data, crucial for identifying disease-associated genetic variations.
- Integrate seamlessly with existing change-point detection algorithms by estimating posterior probabilities post-segmentation, enhancing interpretability of segmentation results.
Proposed method
- Formulate a constrained HMM that mirrors the segment-based change-point model, enforcing that each segment corresponds to a single parameter value, thus aligning with the standard segmentation framework.
- Use forward-backward algorithms on the constrained HMM to compute the posterior distribution P(S|X;θ) in O(Kn) time, where K is the number of segments and n is the sequence length.
- Leverage the structure of the HMM to compute marginal posterior probabilities P(S_i = k | X) for each position i being a change-point, enabling uncertainty quantification at the observation level.
- Implement the method in the R package postCP, which takes an initial segmentation from any change-point detection algorithm and computes posterior probabilities efficiently.
- Specify the emission distribution gθ(x) flexibly to accommodate various data types (e.g., normal, Poisson, negative binomial), supporting diverse genomic data platforms.
- Use a uniform prior over segmentations to ensure the posterior reflects the likelihood without additional assumptions, maintaining frequentist compatibility while enabling uncertainty assessment.
Experimental results
Research questions
- RQ1Can exact posterior probabilities for change-point locations be computed in linear time for large-scale genomic sequences?
- RQ2How does the performance of the constrained HMM method compare to Bayesian MCMC in terms of posterior mean estimation accuracy and computational efficiency?
- RQ3To what extent can the proposed method provide reliable confidence intervals for change-point locations in high-resolution CNV data?
- RQ4How does the method scale with increasing data size, particularly for datasets with n > 10,000 observations?
- RQ5Can the constrained HMM approach be effectively combined with existing fast segmentation algorithms to enhance uncertainty quantification without increasing computational burden?
Key findings
- The constrained HMM method achieves O(Kn) computational complexity, enabling processing of high-resolution CNV data (n = 14,241) in under one second on a mid-range laptop.
- On a publicly available CNV dataset (n = 120), postCP produced comparable loss to a Bayesian MCMC method when estimating posterior means, particularly for larger-scale changes.
- The method provides less conservative confidence intervals than previous Bayesian approaches due to its frequentist framework, while maintaining high computational efficiency.
- Simulations demonstrated that postCP's posterior mean estimates were comparable to or better than those from MCMC in scenarios involving normally distributed data.
- The R package postCP successfully estimates full joint posterior distributions of change-points, enabling practical uncertainty quantification in large-scale genomics applications.
- The method supports flexible emission distributions (e.g., Poisson, negative binomial), making it adaptable to next-generation sequencing data beyond normally distributed CNV data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.