×

Dynamic Bayesian Networks

DBN is a temporary network model that is used to relate variables to each other for adjacent time steps. Each part of a Dynamic Bayesian Network can have any number of Xivariables for states representation, and evidence variables Et. A DBN is a type of Bayesian networks. Dynamic Bayesian Networks were developed by Paul Dagmun at Standford’s University in the early 1990s.

How is DBN different from HMM?

A Hidden Markov Model (HMM) can be represented as a Dynamic Bayesian Network with a single state variable and evidence variable. On the other hand, a DBN can be converted into a HMM. The difference between the two is that, by decomposing the complex system state into its constituent variables, DBN take advantage of sparseness in the temporal probability model. Thus, the relationship between HMM and DBN is analogues.

Drawbacks of Hidden Markov Model

  • HMM requires more amount of space
  • The transition matrix is huge, which leads to an expensive Markov model.
  • HMM is not used to solve large problems as it is not possible to learn so many parameters.

Building DBN

There are following three kinds of information which need to be specified while building Dynamic Bayesian Networks:

  1. The prior distribution over the state variables P(X0)
  2. The transition model P(Xt+1|Xt)
  3. The sensor model P(Et|Xt)

In order to specify both transition and sensor models, the topology of the connections occurs between the successive slices, and between the evidence and state variable. It is because it is assumed that the two models are stationary.

Inference in DBN

There are two types of inference discussed in Dynamic Bayesian Networks:

  • Exact Inference in DBN
  • Approximate inference in DBN

Exact inference in DBN

A full Bayesian network of a DBN can be constructed by replicating the slices to accomplish the observations. This technique is known as Unrolling.           A naïve application would not be efficient because inference time increases with new observations. Instead, we can use an incremental approach by remembering only two slices.

Approximate Inference in DBN

With the exact inference methods, there is a possibility to use Approximate Inference methods too. Approximate methods such as likelihood weighting, Markov chain Monte Carlo, are the easily adaptable method to DBN context. The likelihood method works by sampling the nonviolence nodes in a topological manner. It is easy to apply the likelihood method directly over an unrolled DBN but leads to high time and more space requirement problems. It is because the standard algorithm runs each sample, all the way through a network. Another method can be to run all N samples together via DBN, where one slice executes at a time. Therefore, we use different innovations that best gives the best method:

Firstly, use the samples themselves as an approximate representation of the distribution of the current state.

Secondly, focusing on the set of samples on high-probability regions of the state space.

Thus, to do so, we use a family of algorithms known as Particle filtering. The working of the algorithm is:

  1. A population of initial-states N samples is created by sampling from the prior distribution, P(X0).
  2. Update cycle is repeated everytime as:
  3. Propagating each sample in the forward direction by sampling the next state value Xt+1, where the current state Xt is given, based over the transition model.
  4. The samples are weighted by the likelihood assigned to the new evidence.
  5. Resample the population to generate a new population of N samples.

Let’s see the Particle filtering algorithm:

function PARTICLE-FILTER(e, N, dbn) returns a set of samples for next time step

inputs: e, the new incoming evidence

N, number of samples to be maintained

dbn, a Dynamic Bayesian Network with prior P(X0), transition model P(X1|X0), sensor model P(E1|X1)

persistent: S, vector of samples of size N, initially generated from P(X0)

local variables: W, vector of weights of size N

for i = 1 to N do

S[i ]?sample from P(X1 | X0 = S[i ]) /* step 1 */

W[i ]?P(e | X1 = S[i]) /* step 2 */

S ?WEIGHTED-SAMPLE-WITH-REPLACEMENT(N, S,W) /* step 3 */

return S

Thus, particle filtering is consistent as well as an efficient technique because the algorithm maintains a well approximation to the true posterior by using a constant number of samples.


Related Topics

What is Artificial Super Intelligence (ASI)

Before starting with Artificial Super Intelligence, first, we have to know what Artificial Intelligence is. Artificial Intelligence is a field which has a long history. Artificial intelligence is the ability...

3 minutes read.

Neural Networks

Neural Networks are one of the most popular techniques and tools in Machine learning. Neural Networks were inspired by the human brain as early as in the 1940s. Researchers studied the...

5 minutes read.

Classical Planning

Classical Planning is the planning where an agent takes advantage of the problem structure to construct complex plans of an action. The agent performs three tasks in classical planning: Planning: The agent plans after...

4 minutes read.

Natural Language Processing

Natural Language Processing in AI Topics Covered in Language Module Natural Language ProcessingSyntax and SemanticsContext-Free GrammarNLTKN-gramsTokenizationBag of WordsNaïve Bayes In language, we will cover how Artificial Intelligence is used to process human language...

13 minutes read.

Hidden Markov Models

Hidden Markov Model is a partially observable model, where the agent partially observes the states. This model is based on the statistical Markov model, where a system being modeled follows the Markov process...

4 minutes read.

Theory of First-order Logic

Theory of First-order Logic First-order logic is also called Predicate logic and First-order predicate calculus (FOPL). It is a formal representation of logic in the form of quantifiers. In predicate logic, the input is taken...

4 minutes read.

Minimax Strategy

In artificial intelligence, minimax is a decision-making strategy under game theory, which is used to minimize the losing chances in a game and to maximize the winning chances. This strategy is also known...

3 minutes read.

Problem-solving in Artificial Intelligence

The reflex agents are known as the simplest agents because they directly map states into actions. Unfortunately, these agents fail to operate in an environment where the mapping is too large to...

7 minutes read.

Unsupervised Learning in AI

Unsupervised Learning in AI Unsupervised LearningIntroductionClusteringComparison between Supervised, Unsupervised, and Reinforcement Learning. Unsupervised Learning This is the third major category of Machine Learning. Unsupervised learning happens when we have data without additional feedback,...

2 minutes read.

Information Retrieval

Information Retrieval: In order to analyze and categorize the text, we'd like to be able to figure out information about the text, some meaning about the text as well. And,...

14 minutes read.

Dynamic Routing

Dynamic Routing Dynamic routing is used to update the routing table and find networks on the routers. It is easier than static routing and default routing, but it is more expensive in terms of...

3 minutes read.

Knowledge Representation in AI

In this section, we will understand how to represent the knowledge in the form which could be understood by the knowledge-based agents. The knowledge that is stored in the system is related to...

5 minutes read.

Gradient Descent

Gradient Descent When training a neural network, an algorithm is used to minimize the loss. This algorithm is called as Gradient Descent. And loss refers to the incorrect outputs given by...

6 minutes read.

The Wumpus World

The Wumpus world is a game playing which provides an environment to the knowledge-based agent to showcase its stored knowledge. It was developed by Gregory Yob in 1973. About the game:  It...

3 minutes read.

Resolution Method in AI

Resolution Method in AI Resolution method is an inference rule which is used in both Propositional as well as First-order Predicate Logic in different ways. This method is basically used for proving the...

5 minutes read.

Uninformed Search Strategies - Artificial Intelligence

Breadth-first search (BFS) It is a simple search strategy where the root node is expanded first, then covering all other successors of the root node, further move to expand the next...

8 minutes read.

Reinforcement Learning in AI

Reinforcement Learning in AI Reinforcement LearningMarkov’s Decision ProcessQ leaningGreedy Decision MakingNIM GameNIM Game Implementation with Python Reinforcement Learning Reinforcement Learning is about learning from experience, where agents are given a set of rewards...

15 minutes read.

Integration of Blockchain and Artificial Intelligence

A Blockchain is a shared database or ledger where pieces of data are stored in data structures known as blocks. So, we can say that Blockchain is the distribution storage...

6 minutes read.

Supervised Learning in AI

Supervised Learning in AI Learning Supervised LearningClassification TasksNearest Neighbor ClassificationK nearest neighbor AlgorithmPerceptron LearningSupport Vector MachineRegression TasksLoss FunctionOverfittingRegularizationScikit LearnK Nearest Neighbor ImplementationPerceptron Algorithm ImplementationSupport Vector Machine Algorithm ImplementationRegression Implementation Machine Learning In the Artificial...

33 minutes read.

Knowledge Based Agents in AI

Knowledge is the basic element for a human brain to know and understand the things logically. When a person becomes knowledgeable about something, he is able to do that thing in a better...

4 minutes read.