SlideShare a Scribd company logo
28.09.2019
Knowledge Engineering
Knowledge Based
Systems
Knowledge Engineering - Natig Vahabov 2
Knowledge Engineering - Natig Vahabov 3
“Knowledge is of no
values unless you put it
into practice”
Anton Chekhov
Russian playwright, short-story writer
Agenda
• Knowledge-based systems
• Types of KBS
– Expert systems
– Neural networks
– Case-based reasoning
– Genetic algorithms
– Intelligent agents
Knowledge Engineering - Natig Vahabov 4
What are KBSs?
• A knowledge based system is a system that uses
artificial intelligence techniques in problem-solving
processes to support human decision-making,
learning, and action
• Two central components of KBSs are
– Knowledge base
• Consists of a set of facts and a set of rules, frames, or
procedures
– Inference engine
• Responsible for the application of knowledge base to the
problem on hand.
Knowledge Engineering - Natig Vahabov 5
KBS Flowchart
Knowledge Engineering - Natig Vahabov 6
Types of KBSs
• Expert systems
• Neural networks
• Case-based reasoning
• Genetic algorithms
• Intelligent agents
Knowledge Engineering - Natig Vahabov 7
Expert Systems
Knowledge Engineering - Natig Vahabov 8
Expert System
‘An expert system is a computer system that
emulates, or acts in all respects, with the
decision-making capabilities of a human
expert’.
Prof Edward Feigenbaum
Knowledge Engineering - Natig Vahabov 9
ES as part of AI
Knowledge Engineering - Natig Vahabov 10
Expert Systems
• An expert system is a computer program designed to
emulate the problem-solving behavior of an expert in
a specific knowledge domain
• In order to qualify as an expert system, a system must
have the capability of explaining or justifying its
conclusions
• A system which can explain its reasoning process is
said to demonstrate meta-knowledge (knowledge
about its own knowledge)
Knowledge Engineering - Natig Vahabov 11
Early Expert Systems
• DENDRAL – used in chemical mass
spectroscopy to identify chemical constituents
• MYCIN – medical diagnosis of illness
• DIPMETER – geological data analysis for oil
• PROSPECTOR – geological data analysis for
minerals
• XCON/R1 – configuring computer systems
Knowledge Engineering - Natig Vahabov 12
ES Applications (Hayes-Roth Table)
Knowledge Engineering - Natig Vahabov 13
Category Problem addressed Examples
Interpretation
Inferring situation
descriptions from sensor
data
Hearsay (speech
recognition), PROSPECTOR
Prediction
Inferring likely
consequences of given
situations
Preterm Birth Risk
Assessment
Diagnosis
Inferring system
malfunctions from
observables
CADUCEUS, MYCIN, PUFF,
Mistral, Eydenet, Kaleidos
Design
Configuring objects under
constraints
Dendral, Mortgage Loan
Advisor, R1 (DEC VAX
Configuration), SID
(DEC VAX 9000 CPU)
Planning Designing actions
Mission Planning for
Autonomous Underwater
Vehicle
ES Applications (Hayes-Roth Table)
Knowledge Engineering - Natig Vahabov 14
Category Problem addressed Examples
Monitoring
Comparing observations to
plan vulnerabilities
REACTOR
Debugging
Providing incremental
solutions for complex
problems
SAINT, MATHLAB,
MACSYMA
Repair
Executing a plan to
administer a prescribed
remedy
Toxic Spill Crisis
Management
Instruction
Diagnosing, assessing, and
repairing student behavior
SMH.PAL, Intelligent Clinical
Training, STEAMER
Control
Interpreting, predicting,
repairing, and monitoring
system behaviors
Real Time Process Control,
Space Shuttle Mission
Control
Basic functions of ES
Knowledge Engineering - Natig Vahabov 15
Problem Domain vs
Knowledge Domain
• An expert’s knowledge is specific to one
problem domain – medicine, finance, science,
engineering, etc.
• The expert’s knowledge about solving specific
problems is called the knowledge domain.
• The problem domain is always a superset of
the knowledge domain.
Knowledge Engineering - Natig Vahabov 16
Problem Domain vs
Knowledge Domain
Knowledge Engineering - Natig Vahabov 17
Elements of an Expert System
• User interface – mechanism by which user
and system communicate
• Exploration facility – explains reasoning of
expert system to user
• Working memory – global database of facts
used by rules
• Inference engine – makes inferences deciding
which rules are satisfied and prioritizing
Knowledge Engineering - Natig Vahabov 18
Elements of an Expert System
• Agenda – a prioritized list of rules created by
the inference engine, whose patterns are
satisfied by facts or objects in working
memory.
• Knowledge acquisition facility – automatic way
for the user to enter knowledge in the system
bypassing the explicit coding by knowledge
engineer.
Knowledge Engineering - Natig Vahabov 19
Elements of an Expert System
Knowledge Engineering - Natig Vahabov 20
Languages, Shells, and Tools
• Expert system languages are post-third
generation
• Programming languages, LISP and PROLOG,
are typically used in expert systems
implementation, in particular Artificial
intelligence applications
• Expert system languages (e.g. CLIPS) focus on
ways to represent knowledge
– CLIPS is an expert system shell developed by NASA
Knowledge Engineering - Natig Vahabov 21
Development of an ES
• The knowledge engineer establishes a dialog
with the human expert to elicit knowledge
• The knowledge engineer codes the knowledge
explicitly in the knowledge base
• The expert evaluates the expert system and
gives a critique to the knowledge engineer
Knowledge Engineering - Natig Vahabov 22
Development of an ES
Knowledge Engineering - Natig Vahabov 23
The Role of AI
• An algorithm is an ideal solution guaranteed
to yield a solution in a finite amount of time.
• When an algorithm is not available or is
insufficient, we rely on artificial intelligence
(AI).
• Expert system relies on inference – we accept
a “reasonable solution.”
Knowledge Engineering - Natig Vahabov 24
Uncertainty
• Both human experts and expert systems must
be able to deal with uncertainty
• It is easier to program expert systems with
shallow knowledge than with deep knowledge
• Shallow knowledge – based on empirical and
heuristic knowledge
• Deep knowledge – based on basic structure,
function, and behavior of objects
Knowledge Engineering - Natig Vahabov 25
Dealing with Uncertainty
• Certainty
– If A is false, then ⌐ A is true
• Uncertainty
– If A is false, then B is true with probability P
– Introducing Probabilistic Reasoning
– Doctor examines a patient, and X symptoms exist
but some of them missing, so doctor can conclude:
a patient has disease X with probability P
Knowledge Engineering - Natig Vahabov 26
General Methods of Inferencing
• Forward chaining – reasoning from facts to the
conclusions resulting from those facts – best
for prognosis, monitoring, and control
– primarily data-driven
• Backward chaining – reasoning in reverse from
a hypothesis, a potential conclusion to be
proved to the facts that support the
hypothesis – best for diagnosis problems
– primarily goal driven
Knowledge Engineering - Natig Vahabov 27
Production Rules
• Knowledge base is also called production
memory
• Production rules can be expressed in IF-THEN
pseudocode format
– IF you are hungry THEN eat
• In rule-based systems, the inference engine
determines which rule antecedents are
satisfied by the facts
Knowledge Engineering - Natig Vahabov 28
Production Systems
• Rule-based expert systems – most popular
type today
• Knowledge is represented as multiple rules
that specify what should/not be concluded
from different situations
• Forward chaining
– start w/facts and use rules do draw conclusions/take actions.
• Backward chaining
– start w/hypothesis and look for rules that allow hypothesis to
be proven true
Knowledge Engineering - Natig Vahabov 29
Advantages of ES
• Consistency
– Consistency is the main benefit of an ES. Since it is
a computer-based system, all the knowledge or
logic are programmed into it. If it meets the same
situation, it will make the same decision again and
again. Because always the decision will be made
based on some rules and logic.
• Availability
– The multiple users can access an ES
simultaneously and get responses immediately
Knowledge Engineering - Natig Vahabov 30
Advantages of ES
• Logic
– In an ES, all of the rules, conditions and their
understandings on the way to making a decision or
a choice are always clear because it was
programmed in.
• Persistence/Accessibility
– The ESs are always available. They can be accessed
anytime 24*7. It is one of the important
advantages of an expert system over the human
experts.
Knowledge Engineering - Natig Vahabov 31
Disadvantages of ES
• Data integrity
– The ESs need to be updated manually, because
they all itself don’t learn.
• Time & Cost
– The time and cost required to buy or set up an ES
are very high.
• Specific
– The ESs are generally developed for a specific
domain, on the other hand a human expert can be
specialized in more than one area
Knowledge Engineering - Natig Vahabov 32
Disadvantages of ES
• Emotionless
– The human experts have a sort of awareness about
the situation, that means how they feel, how they
effective in the situation. But the ESs have no
awareness about any situation that they face
• Commonsense
– An ES has to go through by following the rules and
regulations as they programmed, so it can’t provide
a solution for the totally new kind of problem
Knowledge Engineering - Natig Vahabov 33
Neural Network
Knowledge Engineering - Natig Vahabov 34
Neural Network
• Neural networks represent a brain metaphor for
information processing. Neural computing refers to a
pattern recognition methodology for machine
learning. The resulting model from neural computing
is often called an artificial neural network (ANN) or
neural network (NN)
• Due to their ability to learn from the data, their
nonparametric nature (i.e., no rigid assumptions), and
their ability to generalize, neural networks have been
shown to be promising in many forecasting and
business classification applications
Knowledge Engineering - Natig Vahabov 35
Neural Network
Knowledge Engineering - Natig Vahabov 36
Key developments in history
of NN
• 1943 − It has been assumed that the concept of neural network
started with the work of physiologist, Warren McCulloch, and
mathematician, Walter Pitts, when in 1943 they modeled a
simple neural network using electrical circuits in order to
describe how neurons in the brain might work
• 1949 − Donald Hebb’s book, The Organization of Behavior, put
forth the fact that repeated activation of one neuron by another
increases its strength each time they are used
• 1958 − A learning method for McCulloch and Pitts neuron model
named Perceptron was invented by Rosenblatt
• 1960 − Bernard Widrow and Marcian Hoff developed models
called "ADALINE" and “MADALINE”
Knowledge Engineering - Natig Vahabov 37
Key developments in history
of NN
• 1961 − Rosenblatt made an unsuccessful attempt but proposed
the “backpropagation” scheme for multilayer networks
• 1969 − Multilayer perceptron (MLP) was invented by Minsky and
Papert
• 1971 − Kohonen developed Associative memories
• 1976 − Stephen Grossberg and Gail Carpenter developed
Adaptive resonance theory
• 1985 − Boltzmann machine was developed by Ackley, Hinton, and
Sejnowski.
• 1986 − Rumelhart, Hinton, and Williams introduced Generalised
Delta Rule.
• 1988 − Kosko developed Binary Associative Memory (BAM) and
also gave the concept of Fuzzy Logic in ANN.
Knowledge Engineering - Natig Vahabov 38
Structure of a Biological
Neural Network
Knowledge Engineering - Natig Vahabov 39
Elements of BNN
• The human brain is composed of special cells called
neurons
• Neural network elements
– Nucleus
• The central processing portion of a neuron
– Soma
• The main body of the neuron in which the cell nucleus is contained
– Dendrite
• The part of a biological neuron that provides inputs to the cell
– Axon
• An outgoing connection (i.e., terminal) from a biological neuron
– Synapse
• The connection (where the weights are) between processing elements in
a neural network
Knowledge Engineering - Natig Vahabov 40
Artificial Neural Network
• An ANN model emulates a biological neural network.
• Neural concepts are usually implemented as software
simulations of the massive parallel processes that
involve processing elements (also called artificial
neurons) interconnected in a network structure.
• Connections between neurons have an associated
weight.
• Each neuron calculates a weighted sum of the
incoming neuron values, transforms this input, and
passes on its neural value as the input to subsequent
neurons or external outputs.
Knowledge Engineering - Natig Vahabov 41
Artificial Neural Network
Knowledge Engineering - Natig Vahabov 42
BNN vs ANN
Knowledge Engineering - Natig Vahabov 43
Learning in ANN
• Supervised learning
– the training data you feed to the algorithm includes the
desired solutions, called labels
– Algortihms: Regression, Classification
• Unsupervised learning
– the training data is unlabeled, the system tries to learn
without a teacher
– Algorithms: Clustering, Anomaly and novelty detection,
Visualization and dimensionality reduction, Association
rule learning
!will cover deep in later
Knowledge Engineering - Natig Vahabov 44
Learning in ANN
• Semi-supervised learning
– some algorithms can deal with partially labeled training data,
usually a lot of unlabeled data and a little bit of labeled data
– Google Photos
• Reinforcement learning
– an area of machine learning concerned with how software
agents ought to take actions in an environment so as to
maximize some notion of cumulative reward
– AlphaGo beat the world champion Ke Jie at the game of Go in
2017
!will cover deep in later
Knowledge Engineering - Natig Vahabov 45
Characteristics of ANN
• Adaptive learning
• Self-organization
• Error tolerance
• Real-time operation
• Parallel information processing
Knowledge Engineering - Natig Vahabov 46
Case-Based Reasoning
Knowledge Engineering - Natig Vahabov 47
Case-Based Reasoning
• A case has two parts: a problem and a solution
• Cases represent experience: they record how a
problem was solved in the past
• CBR is a methodology in which knowledge and
inferences are derived from historical cases. It is
based on the premise that new problems are often
similar to previously encountered problems and, past
solutions may be used in the current situations
• CBR is particularly applicable to problems in which
the domain is not understood well enough for a
robust statistical model or system of equations to be
formulated
Knowledge Engineering - Natig Vahabov 48
Process of CBR
• Retrieve
– Given a target problem, retrieve the most similar cases
• Reuse
– Map the solution and reuse the best old solution to solve the
current case
• Revise
– Test the solution and, if necessary, revise the old case to
come up with the solution
• Retain
– After the solution has been successfully adapted to the target
problem, store the resulting experience as a new case
Knowledge Engineering - Natig Vahabov 49
Process of CBR
Knowledge Engineering - Natig Vahabov 50
Similarity Computation
• Cases are ranked according to their similarity
based on the similarity of each feature
• The degree of similarity can be expressed by a
real number between 0 (not similar) and 1
(identical)
• The importance of different features may be
different. In that case, similarity is computed
by weighted average
Knowledge Engineering - Natig Vahabov 51
CBR Examples
• Intelligent customer support and sales support
• Retrieval of tour packages from travel catalogs
• Conflict resolution in air traffic control
• Conceptual building design aid
• Conceptual design aid for electronic devices
• Medical diagnosis
• Aircraft troubleshooting
• Heuristic retrieval of legal knowledge
• Computer supported conflict resolution through
negotiation or mediation
Knowledge Engineering - Natig Vahabov 52
CBR Pros/Cons
• Advantages
– Improved knowledge acquisition
– Reduced development time
– Easier explanation
– Learning over time
• Disadvantages
– Storing of cases in the KB
– Implicit link between problem and solution
– Access and retrieval speed
Knowledge Engineering - Natig Vahabov 53
Genetic Algorithms
Knowledge Engineering - Natig Vahabov 54
Genetic Algorithms
• Programs that attempt to find optimal
solutions to problems by conceptually
following steps inspired by the biological
processes of evolution
• The method learns by producing offspring
that are better and better, as measured by a
fitness-to-survive function, until an optimal or
near-optimal solution is obtained.
Knowledge Engineering - Natig Vahabov 55
Genetic Algorithm Applications
• Genetic algorithms provide a set of efficient,
domain-independent search heuristics for a
broad spectrum of applications including
– Dynamic process control
– Complex design of engineering structures
– Scheduling
– Transportation and routing
– Layout and circuit design
– Telecommunications
– Discovery of new connectivity typologies
Knowledge Engineering - Natig Vahabov 56
GA Fundamentals
• Chromosome
– A candidate solution for a genetic algorithm
• Fitness function
– A measure of the objective to be obtained
• Generation
– An iteration of the genetic algorithmic process in
which candidate solutions are combined to
produce offspring
Knowledge Engineering - Natig Vahabov 57
Processes within GA
• Reproduction
– Through reproduction, genetic algorithms produce new
generations of improved solutions by selecting parents with
higher fitness ratings or by giving such parents a greater
probability of being contributors and by using random
selection
• Crossover
– The combining of parts of two superior solutions by a genetic
algorithm in an attempt to produce an even better solution
• Mutation
– A genetic operator that causes a random change in a
potential solution
Knowledge Engineering - Natig Vahabov 58
Genetic Algorithm Process
Knowledge Engineering - Natig Vahabov 59
Genetic Algorithm Parameters
• Some parameters must be set for the genetic
algorithm
– Number of initial solutions to generate
– Number of offspring to generate
– Number of parents and offspring to keep for the next
generation
– Mutation probability
– Probability distribution of crossover point occurrence
• Their values are dependent on the problem being
solved and are usually determined through trial and
error
Knowledge Engineering - Natig Vahabov 60
GA Benefits/Limitations
• Genetic algorithms are particularly useful for complex
problems that require rapid development of set of
good solutions
• Limitations
– Not all problems can be framed in the mathematical manner
that genetic algorithms demand
– Development of a genetic algorithm is complex
– In some situations, the “genes” from a few comparatively
highly fit (but not optimal) individuals may come to dominate
the population, causing it to converge on a local maximum
– Most genetic algorithms rely on random number generators
that produce different results each time the model runs
Knowledge Engineering - Natig Vahabov 61
Knowledge-based
Intelligent Agents
Knowledge Engineering - Natig Vahabov 62
Intelligent Agents
• A computer program that carries out a set of
operations on behalf of a user or another program,
with some degree of autonomy, and in doing so,
employs some knowledge or representation of the
user’s goals or desires.
• Agents in various forms
– Software agents, wizards, software daemons, e-mail agents
(mail bots), web browsing assisting agents, intelligent search
agents (Web robots, spiders), Internet softbots, network
management and monitoring agents, e-commerce agents
Knowledge Engineering - Natig Vahabov 63
Intelligent Agents
Knowledge Engineering - Natig Vahabov 64
Features of Intelligent Agents
• Reactivity
– Agents perceive their environment and respond in a timely
fashion to changes that occur in it
• Proactiveness
– Agents are able to exhibit goal-directed behavior by taking
initiative
• Social ability
– Agents are capable of interacting with other agents in order
to satisfy their design objectives
• Autonomy
– Agents must have control over their own actions and be able
to work and launch actions independently of the user or
other actors
Knowledge Engineering - Natig Vahabov 65
Why use Intelligent Agents
• The Gartner Group findings on information overload:
– The amount of data collected by large enterprises doubles
every year.
– Knowledge workers can analyze only about 5% of this data.
– Information overload reduces our decision-making
capabilities by 50 percent.
• A major value of intelligent agents is that they are
able to assist in searching through all the data
• Intelligent agents save time by making decisions
about what is relevant to the user as well as by
automating routine tasks
Knowledge Engineering - Natig Vahabov 66
Architecture of an IA
• Knowledge Level
– The most abstract level: describe agent by saying what it
knows
– Example: A taxi agent might know that the Golden Gate
Bridge connects San Francisco with the Marin County.
• Logical Level
– The level at which the knowledge is encoded into sentences
– Example: Links(GoldenGateBridge, SanFrancisco,
MarinCounty).
• Implementation Level
– The physical representation of the sentences in the logical
level
– Example: ‘(links goldengatebridge sanfrancisco marincounty)
Knowledge Engineering - Natig Vahabov 67
How smart is an IA
Intelligence levels
• Level 0 - Agents retrieve documents for a user under
straight orders
• Level 1 - Agents provide a user-initiated searching
facility for finding relevant Web pages
• Level 2 - Agents maintain users’ profiles
• Level 3 - Agents have a learning and deductive
component to help a user who cannot formalize a
query or specify a target for a search
Knowledge Engineering - Natig Vahabov 68
IA vs ES
• Agents and expert systems are similar in that they
both intend to incorporate domain knowledge to
automate decision making
• They are different in the following aspects:
– Classic ES are not coupled to any environment in which they
act; they act through a user as a middle man. Agents can
actively search information from the environment in which
they reside
– ES are not generally capable of reactive and proactive
behavior
– ES are not generally equipped with social ability in the sense
of cooperation, coordination, and negotiation.
Knowledge Engineering - Natig Vahabov 69
Internet-Based Software
Agents
• Nine major application areas
– Assisting in workflow and administrative management
– Collaborating with other agents and people
– Supporting e-commerce
– Supporting desktop applications
– Assisting in information access and management, including
searching and FAQs
– Processing e-mail and messages
– Controlling and managing network access
– Managing systems and networks
– Creating user interfaces, including navigation (browsing)
Knowledge Engineering - Natig Vahabov 70
Tasks to tackle for IA
• Learning
• Performance
• Multi agents
• Cost justification
• Security and privacy
• Ethical issues
• Acceptance
Knowledge Engineering - Natig Vahabov 71
References
• Russell, Stuart; Norvig, Peter (1995). Artificial Intelligence: A
Modern Approach
• Lenat, Douglas B., and Randall Davis. "Knowledge-based systems
in artificial intelligence." New York: McGrav-Hill. Nev (1982)
• Jackson, Peter, and Peter Jackson. Introduction to expert
systems. Vol. 2. Reading, MA: Addison-Wesley, 1990
• Aamodt, Agnar, and Enric Plaza. "Case-based reasoning:
Foundational issues, methodological variations, and system
approaches." AI communications 7.1 (1994): 39-59.
• Wooldridge, Michael, and Nicholas R. Jennings. "Intelligent
agents: Theory and practice." The knowledge engineering
review 10.2 (1995): 115-152.
Knowledge Engineering - Natig Vahabov 72

More Related Content

PPTX
Knowledge based systems
PDF
Lecture 6 expert systems
PPTX
Hybrid systems
PPTX
Design and Analysis of Algorithms.pptx
PPTX
Dempster shafer theory
PPT
Artificial Intelligence: Knowledge Engineering
PPTX
Unification and Lifting
DOC
KBS Lecture Notes
Knowledge based systems
Lecture 6 expert systems
Hybrid systems
Design and Analysis of Algorithms.pptx
Dempster shafer theory
Artificial Intelligence: Knowledge Engineering
Unification and Lifting
KBS Lecture Notes

What's hot (20)

PDF
Hybrid Systems using Fuzzy, NN and GA (Soft Computing)
PPT
Knowledge-based Systems
PPTX
CAP Theorem
PPTX
Genetic Algorithm in Artificial Intelligence
PDF
Sensor Cloud
PPTX
Lecture 26 local beam search
PDF
Artificial Intelligence Notes Unit 1
PPTX
Uninformed search /Blind search in AI
PPTX
Knowledge based system
PPTX
Knowledge based agents
PPTX
Prolog Programming : Basics
PPTX
expertsystem.pptx email
PPT
Planning
PPTX
Constraint satisfaction problems (csp)
PPTX
Alpha beta
PPTX
First order logic
PPTX
Language models
PPTX
unit-4-dynamic programming
PPTX
Planning in Artificial Intelligence
PPTX
uninformed search part 2.pptx
Hybrid Systems using Fuzzy, NN and GA (Soft Computing)
Knowledge-based Systems
CAP Theorem
Genetic Algorithm in Artificial Intelligence
Sensor Cloud
Lecture 26 local beam search
Artificial Intelligence Notes Unit 1
Uninformed search /Blind search in AI
Knowledge based system
Knowledge based agents
Prolog Programming : Basics
expertsystem.pptx email
Planning
Constraint satisfaction problems (csp)
Alpha beta
First order logic
Language models
unit-4-dynamic programming
Planning in Artificial Intelligence
uninformed search part 2.pptx
Ad

Similar to 02 knowledge-based systems (20)

PPT
Expert systems 1
PPT
AI_LECTURE PPT FOR DEFINING ARTIFICIAL INTELLIGENCE
PPT
Introduction to Expert Systems {Artificial Intelligence}
PPT
Week 11 12 chap11 c-2
PPTX
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...
PDF
Expert systems
PPT
Expert system 21 sldes
PPTX
Module -3 expert system.pptx
PPT
An overview on ai
PPTX
Expert systems
PPT
PPT
Lecture_8.ppt
PPTX
4_5890925573521280699.pptx
PPTX
Neural Networks for Pattern Recognition
PPTX
Artificial Intelligence for Automated Decision Support Project
PPTX
Decision Support System CHapter one.pptx
PPT
Ai lecture 06 applications of es
PDF
AI R16 - UNIT-5.pdf
PPTX
Expert systems and decision making
PPT
Chapter 6 expert system
Expert systems 1
AI_LECTURE PPT FOR DEFINING ARTIFICIAL INTELLIGENCE
Introduction to Expert Systems {Artificial Intelligence}
Week 11 12 chap11 c-2
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...
Expert systems
Expert system 21 sldes
Module -3 expert system.pptx
An overview on ai
Expert systems
Lecture_8.ppt
4_5890925573521280699.pptx
Neural Networks for Pattern Recognition
Artificial Intelligence for Automated Decision Support Project
Decision Support System CHapter one.pptx
Ai lecture 06 applications of es
AI R16 - UNIT-5.pdf
Expert systems and decision making
Chapter 6 expert system
Ad

Recently uploaded (20)

PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
PPT on Performance Review to get promotions
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Lecture Notes Electrical Wiring System Components
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
composite construction of structures.pdf
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
OOP with Java - Java Introduction (Basics)
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT on Performance Review to get promotions
CH1 Production IntroductoryConcepts.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Model Code of Practice - Construction Work - 21102022 .pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Lecture Notes Electrical Wiring System Components
R24 SURVEYING LAB MANUAL for civil enggi
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
composite construction of structures.pdf
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx

02 knowledge-based systems

  • 3. Knowledge Engineering - Natig Vahabov 3 “Knowledge is of no values unless you put it into practice” Anton Chekhov Russian playwright, short-story writer
  • 4. Agenda • Knowledge-based systems • Types of KBS – Expert systems – Neural networks – Case-based reasoning – Genetic algorithms – Intelligent agents Knowledge Engineering - Natig Vahabov 4
  • 5. What are KBSs? • A knowledge based system is a system that uses artificial intelligence techniques in problem-solving processes to support human decision-making, learning, and action • Two central components of KBSs are – Knowledge base • Consists of a set of facts and a set of rules, frames, or procedures – Inference engine • Responsible for the application of knowledge base to the problem on hand. Knowledge Engineering - Natig Vahabov 5
  • 7. Types of KBSs • Expert systems • Neural networks • Case-based reasoning • Genetic algorithms • Intelligent agents Knowledge Engineering - Natig Vahabov 7
  • 9. Expert System ‘An expert system is a computer system that emulates, or acts in all respects, with the decision-making capabilities of a human expert’. Prof Edward Feigenbaum Knowledge Engineering - Natig Vahabov 9
  • 10. ES as part of AI Knowledge Engineering - Natig Vahabov 10
  • 11. Expert Systems • An expert system is a computer program designed to emulate the problem-solving behavior of an expert in a specific knowledge domain • In order to qualify as an expert system, a system must have the capability of explaining or justifying its conclusions • A system which can explain its reasoning process is said to demonstrate meta-knowledge (knowledge about its own knowledge) Knowledge Engineering - Natig Vahabov 11
  • 12. Early Expert Systems • DENDRAL – used in chemical mass spectroscopy to identify chemical constituents • MYCIN – medical diagnosis of illness • DIPMETER – geological data analysis for oil • PROSPECTOR – geological data analysis for minerals • XCON/R1 – configuring computer systems Knowledge Engineering - Natig Vahabov 12
  • 13. ES Applications (Hayes-Roth Table) Knowledge Engineering - Natig Vahabov 13 Category Problem addressed Examples Interpretation Inferring situation descriptions from sensor data Hearsay (speech recognition), PROSPECTOR Prediction Inferring likely consequences of given situations Preterm Birth Risk Assessment Diagnosis Inferring system malfunctions from observables CADUCEUS, MYCIN, PUFF, Mistral, Eydenet, Kaleidos Design Configuring objects under constraints Dendral, Mortgage Loan Advisor, R1 (DEC VAX Configuration), SID (DEC VAX 9000 CPU) Planning Designing actions Mission Planning for Autonomous Underwater Vehicle
  • 14. ES Applications (Hayes-Roth Table) Knowledge Engineering - Natig Vahabov 14 Category Problem addressed Examples Monitoring Comparing observations to plan vulnerabilities REACTOR Debugging Providing incremental solutions for complex problems SAINT, MATHLAB, MACSYMA Repair Executing a plan to administer a prescribed remedy Toxic Spill Crisis Management Instruction Diagnosing, assessing, and repairing student behavior SMH.PAL, Intelligent Clinical Training, STEAMER Control Interpreting, predicting, repairing, and monitoring system behaviors Real Time Process Control, Space Shuttle Mission Control
  • 15. Basic functions of ES Knowledge Engineering - Natig Vahabov 15
  • 16. Problem Domain vs Knowledge Domain • An expert’s knowledge is specific to one problem domain – medicine, finance, science, engineering, etc. • The expert’s knowledge about solving specific problems is called the knowledge domain. • The problem domain is always a superset of the knowledge domain. Knowledge Engineering - Natig Vahabov 16
  • 17. Problem Domain vs Knowledge Domain Knowledge Engineering - Natig Vahabov 17
  • 18. Elements of an Expert System • User interface – mechanism by which user and system communicate • Exploration facility – explains reasoning of expert system to user • Working memory – global database of facts used by rules • Inference engine – makes inferences deciding which rules are satisfied and prioritizing Knowledge Engineering - Natig Vahabov 18
  • 19. Elements of an Expert System • Agenda – a prioritized list of rules created by the inference engine, whose patterns are satisfied by facts or objects in working memory. • Knowledge acquisition facility – automatic way for the user to enter knowledge in the system bypassing the explicit coding by knowledge engineer. Knowledge Engineering - Natig Vahabov 19
  • 20. Elements of an Expert System Knowledge Engineering - Natig Vahabov 20
  • 21. Languages, Shells, and Tools • Expert system languages are post-third generation • Programming languages, LISP and PROLOG, are typically used in expert systems implementation, in particular Artificial intelligence applications • Expert system languages (e.g. CLIPS) focus on ways to represent knowledge – CLIPS is an expert system shell developed by NASA Knowledge Engineering - Natig Vahabov 21
  • 22. Development of an ES • The knowledge engineer establishes a dialog with the human expert to elicit knowledge • The knowledge engineer codes the knowledge explicitly in the knowledge base • The expert evaluates the expert system and gives a critique to the knowledge engineer Knowledge Engineering - Natig Vahabov 22
  • 23. Development of an ES Knowledge Engineering - Natig Vahabov 23
  • 24. The Role of AI • An algorithm is an ideal solution guaranteed to yield a solution in a finite amount of time. • When an algorithm is not available or is insufficient, we rely on artificial intelligence (AI). • Expert system relies on inference – we accept a “reasonable solution.” Knowledge Engineering - Natig Vahabov 24
  • 25. Uncertainty • Both human experts and expert systems must be able to deal with uncertainty • It is easier to program expert systems with shallow knowledge than with deep knowledge • Shallow knowledge – based on empirical and heuristic knowledge • Deep knowledge – based on basic structure, function, and behavior of objects Knowledge Engineering - Natig Vahabov 25
  • 26. Dealing with Uncertainty • Certainty – If A is false, then ⌐ A is true • Uncertainty – If A is false, then B is true with probability P – Introducing Probabilistic Reasoning – Doctor examines a patient, and X symptoms exist but some of them missing, so doctor can conclude: a patient has disease X with probability P Knowledge Engineering - Natig Vahabov 26
  • 27. General Methods of Inferencing • Forward chaining – reasoning from facts to the conclusions resulting from those facts – best for prognosis, monitoring, and control – primarily data-driven • Backward chaining – reasoning in reverse from a hypothesis, a potential conclusion to be proved to the facts that support the hypothesis – best for diagnosis problems – primarily goal driven Knowledge Engineering - Natig Vahabov 27
  • 28. Production Rules • Knowledge base is also called production memory • Production rules can be expressed in IF-THEN pseudocode format – IF you are hungry THEN eat • In rule-based systems, the inference engine determines which rule antecedents are satisfied by the facts Knowledge Engineering - Natig Vahabov 28
  • 29. Production Systems • Rule-based expert systems – most popular type today • Knowledge is represented as multiple rules that specify what should/not be concluded from different situations • Forward chaining – start w/facts and use rules do draw conclusions/take actions. • Backward chaining – start w/hypothesis and look for rules that allow hypothesis to be proven true Knowledge Engineering - Natig Vahabov 29
  • 30. Advantages of ES • Consistency – Consistency is the main benefit of an ES. Since it is a computer-based system, all the knowledge or logic are programmed into it. If it meets the same situation, it will make the same decision again and again. Because always the decision will be made based on some rules and logic. • Availability – The multiple users can access an ES simultaneously and get responses immediately Knowledge Engineering - Natig Vahabov 30
  • 31. Advantages of ES • Logic – In an ES, all of the rules, conditions and their understandings on the way to making a decision or a choice are always clear because it was programmed in. • Persistence/Accessibility – The ESs are always available. They can be accessed anytime 24*7. It is one of the important advantages of an expert system over the human experts. Knowledge Engineering - Natig Vahabov 31
  • 32. Disadvantages of ES • Data integrity – The ESs need to be updated manually, because they all itself don’t learn. • Time & Cost – The time and cost required to buy or set up an ES are very high. • Specific – The ESs are generally developed for a specific domain, on the other hand a human expert can be specialized in more than one area Knowledge Engineering - Natig Vahabov 32
  • 33. Disadvantages of ES • Emotionless – The human experts have a sort of awareness about the situation, that means how they feel, how they effective in the situation. But the ESs have no awareness about any situation that they face • Commonsense – An ES has to go through by following the rules and regulations as they programmed, so it can’t provide a solution for the totally new kind of problem Knowledge Engineering - Natig Vahabov 33
  • 35. Neural Network • Neural networks represent a brain metaphor for information processing. Neural computing refers to a pattern recognition methodology for machine learning. The resulting model from neural computing is often called an artificial neural network (ANN) or neural network (NN) • Due to their ability to learn from the data, their nonparametric nature (i.e., no rigid assumptions), and their ability to generalize, neural networks have been shown to be promising in many forecasting and business classification applications Knowledge Engineering - Natig Vahabov 35
  • 37. Key developments in history of NN • 1943 − It has been assumed that the concept of neural network started with the work of physiologist, Warren McCulloch, and mathematician, Walter Pitts, when in 1943 they modeled a simple neural network using electrical circuits in order to describe how neurons in the brain might work • 1949 − Donald Hebb’s book, The Organization of Behavior, put forth the fact that repeated activation of one neuron by another increases its strength each time they are used • 1958 − A learning method for McCulloch and Pitts neuron model named Perceptron was invented by Rosenblatt • 1960 − Bernard Widrow and Marcian Hoff developed models called "ADALINE" and “MADALINE” Knowledge Engineering - Natig Vahabov 37
  • 38. Key developments in history of NN • 1961 − Rosenblatt made an unsuccessful attempt but proposed the “backpropagation” scheme for multilayer networks • 1969 − Multilayer perceptron (MLP) was invented by Minsky and Papert • 1971 − Kohonen developed Associative memories • 1976 − Stephen Grossberg and Gail Carpenter developed Adaptive resonance theory • 1985 − Boltzmann machine was developed by Ackley, Hinton, and Sejnowski. • 1986 − Rumelhart, Hinton, and Williams introduced Generalised Delta Rule. • 1988 − Kosko developed Binary Associative Memory (BAM) and also gave the concept of Fuzzy Logic in ANN. Knowledge Engineering - Natig Vahabov 38
  • 39. Structure of a Biological Neural Network Knowledge Engineering - Natig Vahabov 39
  • 40. Elements of BNN • The human brain is composed of special cells called neurons • Neural network elements – Nucleus • The central processing portion of a neuron – Soma • The main body of the neuron in which the cell nucleus is contained – Dendrite • The part of a biological neuron that provides inputs to the cell – Axon • An outgoing connection (i.e., terminal) from a biological neuron – Synapse • The connection (where the weights are) between processing elements in a neural network Knowledge Engineering - Natig Vahabov 40
  • 41. Artificial Neural Network • An ANN model emulates a biological neural network. • Neural concepts are usually implemented as software simulations of the massive parallel processes that involve processing elements (also called artificial neurons) interconnected in a network structure. • Connections between neurons have an associated weight. • Each neuron calculates a weighted sum of the incoming neuron values, transforms this input, and passes on its neural value as the input to subsequent neurons or external outputs. Knowledge Engineering - Natig Vahabov 41
  • 42. Artificial Neural Network Knowledge Engineering - Natig Vahabov 42
  • 43. BNN vs ANN Knowledge Engineering - Natig Vahabov 43
  • 44. Learning in ANN • Supervised learning – the training data you feed to the algorithm includes the desired solutions, called labels – Algortihms: Regression, Classification • Unsupervised learning – the training data is unlabeled, the system tries to learn without a teacher – Algorithms: Clustering, Anomaly and novelty detection, Visualization and dimensionality reduction, Association rule learning !will cover deep in later Knowledge Engineering - Natig Vahabov 44
  • 45. Learning in ANN • Semi-supervised learning – some algorithms can deal with partially labeled training data, usually a lot of unlabeled data and a little bit of labeled data – Google Photos • Reinforcement learning – an area of machine learning concerned with how software agents ought to take actions in an environment so as to maximize some notion of cumulative reward – AlphaGo beat the world champion Ke Jie at the game of Go in 2017 !will cover deep in later Knowledge Engineering - Natig Vahabov 45
  • 46. Characteristics of ANN • Adaptive learning • Self-organization • Error tolerance • Real-time operation • Parallel information processing Knowledge Engineering - Natig Vahabov 46
  • 48. Case-Based Reasoning • A case has two parts: a problem and a solution • Cases represent experience: they record how a problem was solved in the past • CBR is a methodology in which knowledge and inferences are derived from historical cases. It is based on the premise that new problems are often similar to previously encountered problems and, past solutions may be used in the current situations • CBR is particularly applicable to problems in which the domain is not understood well enough for a robust statistical model or system of equations to be formulated Knowledge Engineering - Natig Vahabov 48
  • 49. Process of CBR • Retrieve – Given a target problem, retrieve the most similar cases • Reuse – Map the solution and reuse the best old solution to solve the current case • Revise – Test the solution and, if necessary, revise the old case to come up with the solution • Retain – After the solution has been successfully adapted to the target problem, store the resulting experience as a new case Knowledge Engineering - Natig Vahabov 49
  • 50. Process of CBR Knowledge Engineering - Natig Vahabov 50
  • 51. Similarity Computation • Cases are ranked according to their similarity based on the similarity of each feature • The degree of similarity can be expressed by a real number between 0 (not similar) and 1 (identical) • The importance of different features may be different. In that case, similarity is computed by weighted average Knowledge Engineering - Natig Vahabov 51
  • 52. CBR Examples • Intelligent customer support and sales support • Retrieval of tour packages from travel catalogs • Conflict resolution in air traffic control • Conceptual building design aid • Conceptual design aid for electronic devices • Medical diagnosis • Aircraft troubleshooting • Heuristic retrieval of legal knowledge • Computer supported conflict resolution through negotiation or mediation Knowledge Engineering - Natig Vahabov 52
  • 53. CBR Pros/Cons • Advantages – Improved knowledge acquisition – Reduced development time – Easier explanation – Learning over time • Disadvantages – Storing of cases in the KB – Implicit link between problem and solution – Access and retrieval speed Knowledge Engineering - Natig Vahabov 53
  • 55. Genetic Algorithms • Programs that attempt to find optimal solutions to problems by conceptually following steps inspired by the biological processes of evolution • The method learns by producing offspring that are better and better, as measured by a fitness-to-survive function, until an optimal or near-optimal solution is obtained. Knowledge Engineering - Natig Vahabov 55
  • 56. Genetic Algorithm Applications • Genetic algorithms provide a set of efficient, domain-independent search heuristics for a broad spectrum of applications including – Dynamic process control – Complex design of engineering structures – Scheduling – Transportation and routing – Layout and circuit design – Telecommunications – Discovery of new connectivity typologies Knowledge Engineering - Natig Vahabov 56
  • 57. GA Fundamentals • Chromosome – A candidate solution for a genetic algorithm • Fitness function – A measure of the objective to be obtained • Generation – An iteration of the genetic algorithmic process in which candidate solutions are combined to produce offspring Knowledge Engineering - Natig Vahabov 57
  • 58. Processes within GA • Reproduction – Through reproduction, genetic algorithms produce new generations of improved solutions by selecting parents with higher fitness ratings or by giving such parents a greater probability of being contributors and by using random selection • Crossover – The combining of parts of two superior solutions by a genetic algorithm in an attempt to produce an even better solution • Mutation – A genetic operator that causes a random change in a potential solution Knowledge Engineering - Natig Vahabov 58
  • 59. Genetic Algorithm Process Knowledge Engineering - Natig Vahabov 59
  • 60. Genetic Algorithm Parameters • Some parameters must be set for the genetic algorithm – Number of initial solutions to generate – Number of offspring to generate – Number of parents and offspring to keep for the next generation – Mutation probability – Probability distribution of crossover point occurrence • Their values are dependent on the problem being solved and are usually determined through trial and error Knowledge Engineering - Natig Vahabov 60
  • 61. GA Benefits/Limitations • Genetic algorithms are particularly useful for complex problems that require rapid development of set of good solutions • Limitations – Not all problems can be framed in the mathematical manner that genetic algorithms demand – Development of a genetic algorithm is complex – In some situations, the “genes” from a few comparatively highly fit (but not optimal) individuals may come to dominate the population, causing it to converge on a local maximum – Most genetic algorithms rely on random number generators that produce different results each time the model runs Knowledge Engineering - Natig Vahabov 61
  • 63. Intelligent Agents • A computer program that carries out a set of operations on behalf of a user or another program, with some degree of autonomy, and in doing so, employs some knowledge or representation of the user’s goals or desires. • Agents in various forms – Software agents, wizards, software daemons, e-mail agents (mail bots), web browsing assisting agents, intelligent search agents (Web robots, spiders), Internet softbots, network management and monitoring agents, e-commerce agents Knowledge Engineering - Natig Vahabov 63
  • 65. Features of Intelligent Agents • Reactivity – Agents perceive their environment and respond in a timely fashion to changes that occur in it • Proactiveness – Agents are able to exhibit goal-directed behavior by taking initiative • Social ability – Agents are capable of interacting with other agents in order to satisfy their design objectives • Autonomy – Agents must have control over their own actions and be able to work and launch actions independently of the user or other actors Knowledge Engineering - Natig Vahabov 65
  • 66. Why use Intelligent Agents • The Gartner Group findings on information overload: – The amount of data collected by large enterprises doubles every year. – Knowledge workers can analyze only about 5% of this data. – Information overload reduces our decision-making capabilities by 50 percent. • A major value of intelligent agents is that they are able to assist in searching through all the data • Intelligent agents save time by making decisions about what is relevant to the user as well as by automating routine tasks Knowledge Engineering - Natig Vahabov 66
  • 67. Architecture of an IA • Knowledge Level – The most abstract level: describe agent by saying what it knows – Example: A taxi agent might know that the Golden Gate Bridge connects San Francisco with the Marin County. • Logical Level – The level at which the knowledge is encoded into sentences – Example: Links(GoldenGateBridge, SanFrancisco, MarinCounty). • Implementation Level – The physical representation of the sentences in the logical level – Example: ‘(links goldengatebridge sanfrancisco marincounty) Knowledge Engineering - Natig Vahabov 67
  • 68. How smart is an IA Intelligence levels • Level 0 - Agents retrieve documents for a user under straight orders • Level 1 - Agents provide a user-initiated searching facility for finding relevant Web pages • Level 2 - Agents maintain users’ profiles • Level 3 - Agents have a learning and deductive component to help a user who cannot formalize a query or specify a target for a search Knowledge Engineering - Natig Vahabov 68
  • 69. IA vs ES • Agents and expert systems are similar in that they both intend to incorporate domain knowledge to automate decision making • They are different in the following aspects: – Classic ES are not coupled to any environment in which they act; they act through a user as a middle man. Agents can actively search information from the environment in which they reside – ES are not generally capable of reactive and proactive behavior – ES are not generally equipped with social ability in the sense of cooperation, coordination, and negotiation. Knowledge Engineering - Natig Vahabov 69
  • 70. Internet-Based Software Agents • Nine major application areas – Assisting in workflow and administrative management – Collaborating with other agents and people – Supporting e-commerce – Supporting desktop applications – Assisting in information access and management, including searching and FAQs – Processing e-mail and messages – Controlling and managing network access – Managing systems and networks – Creating user interfaces, including navigation (browsing) Knowledge Engineering - Natig Vahabov 70
  • 71. Tasks to tackle for IA • Learning • Performance • Multi agents • Cost justification • Security and privacy • Ethical issues • Acceptance Knowledge Engineering - Natig Vahabov 71
  • 72. References • Russell, Stuart; Norvig, Peter (1995). Artificial Intelligence: A Modern Approach • Lenat, Douglas B., and Randall Davis. "Knowledge-based systems in artificial intelligence." New York: McGrav-Hill. Nev (1982) • Jackson, Peter, and Peter Jackson. Introduction to expert systems. Vol. 2. Reading, MA: Addison-Wesley, 1990 • Aamodt, Agnar, and Enric Plaza. "Case-based reasoning: Foundational issues, methodological variations, and system approaches." AI communications 7.1 (1994): 39-59. • Wooldridge, Michael, and Nicholas R. Jennings. "Intelligent agents: Theory and practice." The knowledge engineering review 10.2 (1995): 115-152. Knowledge Engineering - Natig Vahabov 72