6 Expert Systems
6 Expert Systems
• The expert systems are the computer applications developed to solve complex
problems in a particular domain, at the level of extra-ordinary human intelligence
and expertise.
• Expert systems are complex AI programs
Knowledge representation
It is the method used to organize and formalize the knowledge in the knowledge base. It
is in the form of IF-THEN-ELSE rules.
Knowledge Acquisition
• In Expert systems method, experts in a particular field provide rules and knowledge to a
computer system, which can then be used to make decisions or solve problems in that
domain.
Inference Engine
• An response is given by an inference engine after it has analysed and interpreted the
data in the knowledge base.
• The inference engine enables the expert system to draw deductions from the rules in
the KB.
MYCIN
• Mycin is a computer program that was developed in the 1970s at Stanford University.
• One of the first expert systems, it was made specifically to identify and cure
infections in people.
• Mycin was written in the Lisp programming language, and used a rule-based system
to make decisions.
Expert system and conventional Computers
A juggler has seven red, five green, and four blue balls. During his stunt, he accidentally
drops a ball and doesn't pick it up. As he continues, another ball falls down. What is the
probability that the first ball that was dropped is blue, and the second ball is green?
As we know that the first ball is not replaced by the juggler. So after dropping the first
ball, he is left with 15 balls.
The probability that the first ball is blue or P(blue ball) = 4/16
The probability that the second ball is green or P(green ball) = 5/15
The probability that the first ball is blue and the second ball is green:
P(blue than green) = P(blue)×P(green)
=4/16×5/15
=1/12
Dependent Events
Mrs. Andrews has to select two students from 35 girls and 15 boys to be part of a club.
What is the probability that both students are girls?
Let A be the event of occurring 3 on first die and B be the event of occurring 3
on the second die.
Both the dice have six possible outcomes, the probability of a three occurring on
each die is 1/6.
P(A) =1/6
P(B )=1/6
P(A,B) = 1/6 x 1/6 = 1/36
example, the below table shows some probabilities for events X and Y happening at
the same time:
• In such cases, the fully conditional models require a huge amount of data to cover
each and every case of the probability functions which may be intractable to calculate
in real-time.
• There have been several attempts to simplify the conditional probability calculations
such as the Naïve Bayes but still, it does not prove to be efficient as it drastically cuts
down several variables.
• The only way is to develop a model that can preserve the conditional dependencies
between random variables and conditional independence in other cases. This leads us
to the concept of Bayesian Networks.
• These Bayesian Networks help us to effectively visualize the probabilistic model for
each domain and to study the relationship between random variables in the form of a
user-friendly graph.
• Bayesian Networks are a type of Probabilistic Graphical Model that uses the
Bayesian inferences for probability computations.
• They are primarily suited for considering an event that has occurred and
predicting the likelihood that any one of the several possible known causes is the
contributing factor.
• Here diagram A, B, C and D are 4
random variables represented by
nodes given in the network of the
graph. To node B, A is its parent node
and C is its child node. Node C is
independent of Node A.
Local Markov Property: The Bayesian Networks satisfy the property known as the
Local Markov Property.
It states that a node is conditionally independent of its non-descendants, given its
parents. In the above example, P(D|A, B) is equal to P(D|A) because D is independent
of its non-descendent, B. This property aids us in simplifying the Joint Distribution.