[Paper Review] Bayesian Nonparametric Hidden Semi-Markov Models
This paper proposes the Bayesian Nonparametric Hidden Semi-Markov Model (HDP-HSMM), a flexible, nonparametric extension of the HDP-HMM that explicitly models state durations using semi-Markov processes. By combining hierarchical Dirichlet processes with explicit-duration modeling, the HDP-HSMM enables automatic inference of state complexity and duration distributions, with efficient Gibbs sampling algorithms that significantly improve mixing and scalability—demonstrated by superior performance on synthetic and real-world power disaggregation data.
There is much interest in the Hierarchical Dirichlet Process Hidden Markov Model (HDP-HMM) as a natural Bayesian nonparametric extension of the ubiquitous Hidden Markov Model for learning from sequential and time-series data. However, in many settings the HDP-HMM's strict Markovian constraints are undesirable, particularly if we wish to learn or encode non-geometric state durations. We can extend the HDP-HMM to capture such structure by drawing upon explicit-duration semi-Markovianity, which has been developed mainly in the parametric frequentist setting, to allow construction of highly interpretable models that admit natural prior information on state durations. In this paper we introduce the explicit-duration Hierarchical Dirichlet Process Hidden semi-Markov Model (HDP-HSMM) and develop sampling algorithms for efficient posterior inference. The methods we introduce also provide new methods for sampling inference in the finite Bayesian HSMM. Our modular Gibbs sampling methods can be embedded in samplers for larger hierarchical Bayesian models, adding semi-Markov chain modeling as another tool in the Bayesian inference toolbox. We demonstrate the utility of the HDP-HSMM and our inference methods on both synthetic and real experiments.
Motivation & Objective
- Address the limitation of HDP-HMM in modeling non-geometric state durations due to its strict Markovian constraints.
- Enable Bayesian nonparametric inference of state complexity while incorporating prior knowledge on state durations.
- Develop efficient sampling algorithms for posterior inference in semi-Markov models, improving mixing and computational speed.
- Extend existing HDP-HMM inference techniques to semi-Markov settings, enabling modular integration into larger hierarchical models.
- Demonstrate the model’s effectiveness on synthetic data and real-world power signal disaggregation, where duration structure is critical.
Proposed method
- Propose the HDP-HSMM by combining the hierarchical Dirichlet process (HDP) prior with explicit-duration semi-Markov modeling to allow flexible, non-geometric state duration distributions.
- Develop two Gibbs sampling algorithms: the weak limit sampler and the direct assignment sampler, adapted from HDP-HMM methods for use in HSMMs.
- Incorporate changepoint detection via first differences to reduce the number of candidate states, accelerating state sequence resampling by orders of magnitude.
- Use block Gibbs sampling to jointly resample state sequences, emission parameters, transition probabilities, and duration parameters in a modular fashion.
- Leverage conjugate priors and conditional distributions to enable efficient full-conditional updates for all model parameters.
- Apply the model to factorial state spaces in power disaggregation, allowing joint inference over multiple devices with unknown numbers of power modes and duration patterns.
Experimental results
Research questions
- RQ1Can a Bayesian nonparametric model effectively learn both the number of hidden states and their duration distributions from sequential data?
- RQ2How can explicit-duration semi-Markov modeling be integrated with the HDP prior to allow flexible, interpretable duration priors while maintaining nonparametric complexity?
- RQ3Do the proposed Gibbs sampling algorithms for HDP-HSMM achieve faster mixing and better scalability than existing HDP-HMM samplers?
- RQ4Can the HDP-HSMM outperform HDP-HMM and parametric models in real-world sequential data tasks with non-Markovian duration structures?
- RQ5To what extent does incorporating prior knowledge on duration distributions improve performance in power signal disaggregation and similar applications?
Key findings
- The HDP-HSMM accurately learns both the number of states and their duration distributions in synthetic data generated by both HMMs and HSMMs, with fast mixing and correct cardinality recovery.
- The HDP-HSMM significantly outperforms the HDP-HMM in power signal disaggregation, achieving a median accuracy of 81.5% compared to 67.2% for the HDP-HMM across four homes.
- On house 1, the HDP-HSMM achieved 82.1% accuracy, compared to 69.0% for the factorial sticky HDP-HMM, demonstrating the benefit of explicit duration modeling.
- The model with changepoint-based acceleration reduced inference time to 0.1 seconds per 200-changepoint sequence, enabling practical scalability.
- The HDP-HSMM successfully captured duration regularities in lighting patterns, where state counts are highly uncertain a priori, outperforming fixed-parameter models.
- Visual comparisons (Figures 18–19) show that the HDP-HSMM better reconstructs total power consumption when duration patterns are non-Markovian, especially in sequences with long, stable power modes.
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.