- Introduced by
- Thomas Dean & Keiji Kanazawa
- Year
- 1989
- Type
- probabilistic graphical model for sequences
- Family
- Bayesian / computational
What does it do?
A Dynamic Bayesian Network (DBN) is a probabilistic graphical model for sequences.
It describes how a set of random variables evolves across discrete time steps, using a Bayesian network for each time slice and directed links between consecutive slices. The model represents both the conditional independence structure among variables at a single time step and the probabilistic dependencies from one step to the next.
The intuition behind the method
Think of a DBN as a sequence of Bayesian network snapshots, one per time step, connected by arrows that show how the state at time t influences the state at time t+1. Under the first-order Markov assumption, the present state carries all the information about the past that is needed for predicting the future. This allows beliefs to be propagated forward in time: filtering updates the belief about the current state as each new observation arrives, while smoothing revises earlier beliefs once later data are available. Hidden Markov models and, under linear-Gaussian assumptions, Kalman filters are special cases of this framework, differing in how the state and observation variables are structured and distributed.
History
Dean and Kanazawa (1989) developed a network representation for probabilistic causal reasoning about persistence over time. Their model combines knowledge of cause-and-effect relationships with knowledge of how propositions tend to persist as time passes, and it addresses classical problems in temporal reasoning such as the frame and qualification problems. This work is a network-based approach to temporal reasoning. DBNs are commonly described as unifying hidden Markov models and Kalman filters within one graphical framework.
When to use it
Choose a DBN when the data are sequential or time-stamped, when a Markov-type dependence between consecutive time steps is a reasonable working assumption, and when the analysis requires explicit probabilistic statements about latent states. Typical examples are tracking, fault detection, and speech recognition. DBNs are useful when observations are incomplete or noisy and uncertainty has to be carried forward through time. Avoid a DBN when the dependence structure clearly extends well beyond one time step, since a first-order model will then be misspecified; higher-order or recurrent models may be more suitable. Also avoid it when the model would be too large for exact inference and no approximation can be checked, or when the main goal is predictive accuracy and discriminative sequence models may be the better choice. Data requirements: the sequence should be long enough to estimate the CPD parameters, and the number of free parameters grows with the number of parent configurations, so richer 2-TBNs need more time steps. Observations should lie on a regular time grid, or irregular sampling must be modelled explicitly. Discretising continuous variables yields tables but loses resolution, and the choice of bins affects inference and should be tested for sensitivity.
Limitations and considerations
- Exact inference cost grows exponentially with the tree-width of the unrolled network, so large models or long sequences usually require approximate inference.
- The first-order Markov assumption may not hold for processes with long memory; capturing such dependence requires higher-order extensions, which increase the number of variables and parameters.
- Learning the graph structure from data is computationally difficult, so the topology is often fixed by the analyst, and the results depend on that choice.
- EM-based parameter learning for models with hidden variables can converge to a local optimum and depends on the starting values.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives a probabilistic description of temporal data, so uncertainty about the hidden state is stated explicitly at each time step.
- The graph structure encodes assumed dependencies between variables within and across time steps, which makes the model assumptions inspectable.
- Includes hidden Markov models and linear-Gaussian state-space models (Kalman filters) as special cases.
- Missing observations at some time steps can be handled by marginalising over the corresponding variables.
- The same model supports both filtering (using data up to the current time) and smoothing (using the full sequence).
Applications
- Speech recognition: modelling phoneme sequences as hidden states observed through acoustic features.
- Robot localisation and tracking: filtering over a hidden position state from noisy sensor readings.
- Fault detection in industrial systems: monitoring latent equipment states from sensor time series.
- Gene regulatory network modelling: inferring dynamic interactions between genes from time-course expression data.
- Financial state-space models: tracking latent economic regimes from observable market indicators.
- Clinical monitoring: tracking patient health states from sequential clinical measurements.
How it works
How it works
A DBN is specified by two parts: a prior network over the variables at the initial time step, and a two-slice temporal Bayesian network (2-TBN) that defines how variables at time t depend on variables at time t-1 (inter-slice arcs) and on other variables at time t (intra-slice arcs). The same 2-TBN is repeated at every time step, so the transition structure and its conditional distributions do not change over time (stationarity). Under this assumption the joint distribution factorises into conditional distributions of each variable given its parents, Pa(X_t^i), which may lie in the same slice or in the previous slice. The stationarity, Markov order and conditional-independence structure encoded by the 2-TBN are modelling assumptions that should be checked for the application, not facts guaranteed by the framework.
The first-order Markov assumption lets the joint distribution over time be built from transition distributions, so each state depends only on the state immediately before it. The transition factors P(X_t | X_{t-1}) are the expression given in the mechanics section. A complete joint distribution also requires the initial-slice distribution P(X_1), which is supplied by the prior network and is not part of that product. Under this assumption, the belief about the past is summarised by the distribution over the current state.
Formula
P(X_{1:T}) = \prod_{t=1}^{T} P(X_t \mid X_{t-1})Each variable in a slice has a conditional probability distribution (CPD) given its parents. Parents may be in the same slice (contemporaneous) or in the previous slice (lagged). For discrete variables the CPDs are usually tables, and for continuous variables they may be linear-Gaussian. Nonlinear forms require approximate inference methods. Observation models that link hidden states to measurements are part of the CPD specification as well; a misspecified observation distribution biases the inferred states even when the transition model is correct.
Formula
P(X_t^i \mid \mathrm{Pa}(X_t^i))Filtering computes the belief P(X_t | y_{1:t}) by propagating the previous state distribution through the transition model and then conditioning on the current observation. For small discrete models this can be done exactly, for example by unrolling the network and applying junction-tree or variable-elimination methods. For large or continuous models, approximate methods such as sequential Monte Carlo (particle filtering) or variational inference are commonly used.
Formula
P(X_t \mid y_{1:t}) \propto P(y_t \mid X_t) \int P(X_t \mid X_{t-1}) P(X_{t-1} \mid y_{1:t-1})\, dX_{t-1}CPD parameters are estimated from observed sequences, typically by maximum likelihood or Bayesian updating. When some variables are hidden, the expectation-maximisation (EM) algorithm, which includes the Baum-Welch procedure for hidden Markov models, is commonly used. Learning the graph structure itself is computationally difficult, so in practice the inter-slice topology is often fixed on the basis of domain knowledge and only the parameters are estimated from data.
Common pitfalls
- Assuming the first-order Markov property without checking it; if the process has longer memory than the model allows, the inferred state estimates can be systematically biased.
- Running exact inference on a wide unrolled network without first examining its tree-width, which can make computation infeasible.
- Reporting particle-filter output as if it were exact without monitoring degeneracy, for example through the effective sample size.
- Fixing the inter-slice graph for convenience rather than on the basis of domain knowledge or a documented structure search, which can produce a misspecified model.
- Assuming the transition model is time-invariant when its dynamics change over the sequence, for example after a regime change, without testing for it; the learned parameters then average over different dynamics.
- Treating the most probable state sequence as the true state history without reporting the posterior uncertainty at each time step.
Frequently asked questions
How does a DBN differ from a standard Bayesian network?
A standard Bayesian network represents a static joint distribution over a fixed set of variables. A DBN repeats a network structure over time, with arcs between consecutive time slices that encode temporal dependencies, so it models a stochastic process rather than a single set of variables.
Is a Hidden Markov Model a special case of a DBN?
Yes. An HMM is a DBN with one discrete hidden state variable per time slice and one or more observed output variables, where the hidden state depends only on the previous hidden state. The DBN framework extends this to several interacting hidden and observed variables.
What inference algorithm should I choose?
For small discrete DBNs, exact junction-tree or variable-elimination methods on the unrolled network are feasible. For linear-Gaussian models, the Kalman filter is the standard choice. For nonlinear or non-Gaussian models, particle filters are commonly used, and variational methods are an option for very large models when approximate results are acceptable.
What is the difference between filtering and smoothing in a DBN?
Filtering computes P(X_t | observations up to t), so it can be run as data arrive. Smoothing computes P(X_t | all observations), using later data to revise earlier beliefs; it therefore requires the full sequence and is an offline operation.
Can I learn the structure of a DBN from data?
It is possible but difficult. Score-based methods, such as those using a BIC-penalised likelihood, and constraint-based methods can search over candidate graphs. In practice, domain knowledge is used to restrict the search, and the learned structure should be checked against held-out sequences.
Related methods
Sources
Dean, T. & Kanazawa, K. (1989). A model for reasoning about persistence and causation. Computational Intelligence, 5(3), 142–150.
Open DOI referenceMurphy, K. P. (2002). Dynamic Bayesian Networks: Representation, Inference and Learning. PhD thesis, University of California, Berkeley.
Open publication reference