ES Unit-2
ES Unit-2
The expert system is a part of AI, and the first ES was developed in the year 1970,
which was the first successful approach of artificial intelligence. It solves the most
complex issue as an expert by extracting the knowledge stored in its knowledge
base. The system helps in decision making for compsex problems using both facts
and heuristics like a human expert. It is called so because it contains the expert
knowledge of a specific domain and can solve any complex problem of that
particular domain. These systems are designed for a specific domain, such as
medicine, science, etc.
Below is the block diagram that represents the working of an expert system:
○ MYCIN: It was one of the earliest backward chaining expert systems that was
designed to find the bacteria causing infections like bacteraemia and
meningitis. It was also used for the recommendation of antibiotics and the
diagnosis of blood clotting diseases.
○ PXDES: It is an expert system that is used to determine the type and level of
lung cancer. To determine the disease, it takes a picture from the upper body,
which looks like the shadow. This shadow identifies the type and degree of
harm.
○ CaDeT: The CaDet expert system is a diagnostic support system that can
detect cancer at early stages.
○ High Performance: The expert system provides high performance for solving
any type of complex problem of a specific domain with high efficiency and
accuracy.
○ User Interface
○ Inference Engine
○ Knowledge Base
○ Explanation component
○ Acquisition component
1. User Interface
With the help of a user interface, the expert system interacts with the user, takes
queries as an input in a readable format, and passes it to the inference engine. After
getting the response from the inference engine, it displays the output to the user. In
other words, it is an interface that helps a non-expert user to communicate with
the expert system to find a solution.
○ The inference engine is known as the brain of the expert system as it is the
main processing unit of the system. It applies inference rules to the knowledge
base to derive a conclusion or deduce new information. It helps in deriving an
error-free solution of queries asked by the user.
○ With the help of an inference engine, the system extracts the knowledge from
the knowledge base.
○ There are two types of inference engine:
○ Deterministic Inference engine: The conclusions drawn from this type of
inference engine are assumed to be true. It is based on facts and rules.
○ Probabilistic Inference engine: This type of inference engine contains
uncertainty in conclusions, and based on the probability.
○ Forward Chaining: It starts from the known facts and rules, and applies the
inference rules to add their conclusion to the known facts.
○ Backward Chaining: It is a backward reasoning method that starts from the
goal and works backward to prove the known facts.
3. Knowledge Base
○ Now the system has collected all the information, so it will find the solution
for the problem by applying if-then rules using the inference engine and using
the facts stored within the KB.
○ In the end, it will provide a response to the patient by using the user interface.
○ They can be used for risky places where the human presence is not safe.
○ The response of the expert system may get wrong if the knowledge base
contains the wrong information.
○ Like a human being, it cannot produce a creative output for different
scenarios.
○ For each domain, we require a specific ES, which is one of the big limitations.
The principle distinction between expert systems and traditional problem solving
programs is the way in which the problem related expertise is coded. In
conventional applications, problem expertise is encoded in both program and data
structures. In the expert system approach all of the problem related expertise is
encoded in data structures only, none is in programs.
The programme does not make errors The Expert System may make a
(Unless error in programming). mistake.
○ Advising: It is capable of advising the human being for the query of any
domain from the particular ES.
format that a computer system can utilise to solve complex tasks. Here are some
★ Inference Engine
Use of efficient procedures and rules by the Inference Engine is essential in
deducting a correct, flawless solution.
In case of knowledge-based ES, the Inference Engine acquires and manipulates the
knowledge from the knowledge base to arrive at a particular solution.
Applies rules repeatedly to the facts, which are obtained from earlier rule
application.
Adds new knowledge into the knowledge base if required.
Resolves rules conflict when multiple rules are applicable to a particular case.
Forward Chaining
Backward Chaining
Forward Chaining
Here, the Inference Engine follows the chain of conditions and derivations and
finally deduces the outcome. It considers all the facts and rules, and sorts them
before concluding to a solution.
This strategy is followed for working on conclusion, result, or effect. For example,
prediction of share market status as an effect of changes in interest rates.
Backward Chaining
With this strategy, an expert system finds out the answer to the question, “Why this
happened?”
On the basis of what has already happened, the Inference Engine tries to find out
which conditions could have happened in the past for this result. This strategy is
followed for finding out cause or reason. For example, diagnosis of blood cancer in
humans.