Chapter 4
Chapter 4
Chapter 4
1
Outline
2
Technologies for Applying Knowledge
3
Technologies for Applying Knowledge
• Artificial Intelligence (AI) is useful as a facilitating technology for
knowledge management.
• AI refers to enabling computers to perform tasks that resemble/look like
human thinking ability.
• Definitions for AI range from:
4
Technologies for Applying Knowledge
• Systems that act like humans refer to those that pass the Turing Test, which
refers to a computer passing a test by a human interrogator, who cannot tell
whether the responses came from a person or not.
• Demonstrate human intelligence.
5
Cont..
• Systems that think rationally refer to those that follow a specific logic to
solve a problem.
• Finally, systems that act rationally refer to those computer agents that
are expected to have specific characteristics that enable them to operate
autonomously within their environments, and even adapt to change in the
face of uncertainty.
6
Technologies for Applying Knowledge
• knowledge-based systems is one of the areas in AI that has the greatest
popularity and which refers as knowledge application systems.
• Other areas of research within AI include natural language understanding,
classification, diagnostics, machine learning, planning and scheduling,
robotics, and computer vision.
• Next we describe the two most relevant intelligent technologies that underpin
the development of knowledge application systems: rule-based expert systems
and case-based reasoning
7
Rule-Based Systems
• The development of knowledge-based systems had been based on the use of rule
or models to represent the domain knowledge.
• The development of such systems requires the collaboration of a subject matter
expert with a knowledge engineer, the latter being responsible for the elicitation
and representation of the expert`s knowledge.
• The process of developing knowledge application systems requires eliciting the
knowledge from the expert and representing it in a form that is usable by
computers. This process is called knowledge engineering.
• Knowledge engineers typically build knowledge application systems by first
interviewing in detail the domain expert and representing the knowledge more
commonly in a set of experiential or rules-of-thumb.
8
Rule-Based Systems
• Experts develop these rules-of-thumb over years of practical experience at
solving problems.
• In order for the computer to understand these rules-of-thumb, we represent
them as production rules or IF-THEN statements.
• For example: IF the number of employees is less than 500, THEN the firm is a
small business.
• The IF portion is the condition (also premise or antecedent), which tests the
truth-value of a set of assertions.
• If the statement is true, the THEN part of the rule (also action, conclusion, or
consequence) is also inferred as a fact.
9
Rule-Based Systems
• A classic example of a rule-based system is the domain-specific expert
system that uses rules to make deductions or choices.
• For example, an expert system might help a doctor choose the correct
diagnosis based on a cluster of symptoms
• Rule-based systems have some disadvantages.
• One is that in many circumstances, the number of rules that may be needed to
properly represent the domain may be quite large.
• Expert systems with such a large number of rules offer many disadvantages,
namely
1. Difficulty in coding, verifying, validating, and maintaining the rules; and
2. Reduction in the efficiency of the inference engine executing the rules .
10
Case-Based Reasoning
• Case-based reasoning (CBR) is the process of solving new problems
based on the solutions of similar past problems.
• It is an experience-based approach to solving new problems by adapting
previously successful solutions to similar/identical problems.
• CBR is an AI technique designed to mimic/resemble/imitate human
problem solving.
• In CBR, the “intelligent” reuse of knowledge formal ready-solved
problems, or cases, relies on the premise that the more similar two
problems are, the more similar their solutions will be.
11
Case-Based Reasoning
• Its goal is to mimic the way humans solve problems. When faced with a
new problem, humans search their memories for past problems
resembling the current problem and adapt the prior solution to “fit” the
current problem.
• CBR is a method of analogical reasoning that utilizes old cases or
experiences in an effort to solve problems, critique solutions, explain
anomalous/irregular situations, or interpret situations.
12
Case-Based Reasoning
Four step process:
13
Case-Based Reasoning
A typical case-based knowledge application system will consist of the
following processes:
• Search the case library for similar cases. This implies utilizing a search engine
that examines only the appropriate cases and not the entire case library, as it
may be quite large.
• Select and retrieve the most similar case(s). New problems are solved by first
retrieving previously experienced cases. This implies having a means to
compare each examined case to the current problem, quantifying their similarity,
and somehow ranking them in decreasing order of similarity.
• Adapt the solution for the most similar case. If the current problem and the
most similar case are not similar enough, then the solution may have to be
adapted to fit the needs of the current problem. The new problem will be
solved with the aid of an old solution that has been adapted to the new problem.
14
Case-Based Reasoning
• Apply the generated solution and obtain feedback. Once a solution or
classification is generated by the system, it must be applied to the problem.
• Its effect on the problem is fed back to the CBR system for classification of its
solution (as success or failure).
• Add the newly solved problem to the case library. The new experience is likely
to be useful in future problem solving. This step requires identifying if the new
case is worth adding to the library and placing it in the appropriate location in
the case library.
15
Constraint-Based Reasoning
• Constraint-based reasoning is an AI technique that uses essentially “what
cannot be done” to guide the process of finding a solution.
• This technique is useful in naturally constrained tasks such as planning and
scheduling.
• problem solving technique that, when given a set of variables and constraints
on these variables, can find a set of values that satisfy all the constraints.
• For example, to schedule a meeting all the individuals that need to attend must
be available at the same time, otherwise the “availability constraint” will be
violated.
16
Model-Based reasoning
• Model-based reasoning is an intelligent reasoning technique that uses a model of
an engineered system to simulate its normal behavior.
• Create a simulation, or model, of a device, system, or situation and use the
model to find explanations for the system's behavior.
• The simulated operation is compared with the behavior of a real system and
noted discrepancies can lead to a diagnosis;
• Example: In a self-driving car system, the model-based reasoning approach involves
creating a model of the environment, including the road, obstacles, traffic signs, and
signals. The model contains information about speed limits, traffic rules, and the car's
capabilities. Using this model, the system reasons about the current state, predicts
possible future states, and makes decisions such as when to accelerate, brake, or change
lanes based on the model's constraints and objectives.
17
Diagrammatic Reasoning
• Diagrammatic reasoning is an artificial intelligence technique that aims to understand
concepts and ideas using diagrams that represent knowledge
• understanding of concepts and ideas through the use of diagrams and imagery, versus
linguistic or algebraic representations
• instrumental in developing systems such as Gelernter’s Geometry Machine
18
Types of Knowledge Application Systems
• Knowledge Application Systems support the process through which some
individuals utilize knowledge possessed by other individuals without actually
acquiring, or learning, that knowledge.
• Knowledge application systems include:
– Help desk systems: An IT help desk is a software platform that helps users
solve their problems through single (or multiple) points of contact.
– enables the companies to resolve customer grievances faster and efficiently
by simply automating the complaint resolution process
– Decision-support systems
– Expert systems:
• Advisory Systems
• fault diagnosis or troubleshooting systems
19
An expert system
20
An expert system (cont.…)
• There are set of rules on which it makes decisions using an if-else
structure.
• A wide variety of methods can be used to simulate the performance
of the expert however common to most are:
– The creation of a knowledge base which uses some knowledge
representation formalism to capture the subject matter expert's
knowledge.
– A process of gathering that knowledge from the subject matter
expert's and codifying it according to the formalism, which is
called knowledge engineering. 21
An expert system (cont.…)
• Components of Expert System:
– The knowledge base in an expert system represents facts and rules. It contains
knowledge in specific domains along with rules in order to solve problems and
form procedures that are relevant to the domain.
– Inference Engine: The most basic function of the inference engine is to
acquire relevant data from the knowledge base, interpret it, and find a
solution to the user’s problem. Inference engines also have explanatory and
debugging abilities.
– Knowledge acquisition and learning module: This component functions to
allow the expert systems to acquire more data from various sources and
store it in the knowledge base.
– User interface: This component is essential for a non-expert user to interact
with the expert system and find solutions.
– Explanation module: As the name suggests, this module helps in providing
the user with an explanation of the achieved conclusion..
22
A Decision Support System (DSS)
• DSS is a class of information systems (including but not limited to
computerized systems) that support business and organizational decision-
making activities.
• It is intended to help decision makers to compile useful information from a
combination of raw data, documents, personal knowledge, or business
models to identify and solve problems and make decisions.
• It is an interactive, flexible and adaptable computer system. It is specially
developed for supporting the solution of a non-structured management
problem for improved decision-making.
23
A Decision Support System…
• Typical information that a decision support application might gather and
present are:
– Inventories of all of your current information assets (including legacy and
relational data sources, and data warehouses),
– Comparative sales figures between one week and the next,
29
The Two Main Tasks of Knowledge Engineer
• Knowledge capture/acquisition
– Techniques such as logic are a powerful tool for KR and reasoning. However,
such techniques consists of only the syntax, semantics and proof theory.
– KR techniques do not offer any guidance as to what facts should be expressed,
nor what vocabulary should be used to express them
– Knowledge base is used to store facts and rules.
30
Developing knowledge application system
• Developing a Case-Based Reasoning (CBR) knowledge application system involves a
series of steps to ensure a successful implementation.
Problem Analysis: Identify the problem domain where the CBR system will be
applied. Determine the specific knowledge or expertise required to solve the
problem using CBR.
Case Base Design: Create a case base, which is a repository of past problem-solving
cases. These cases should cover a wide range of scenarios and include relevant
attributes, such as symptoms, diagnoses, treatments, and outcomes.
Case Representation: Develop a case representation scheme to structure and
organize the information within each case.
Similarity Measurement: Define a similarity function that calculates the similarity
between a new problem and the cases in the case base.
Retrieval Strategy
Adaptation and Solution Generation: that modifies the retrieved cases to fit the
current problem context
Case Learning:
User Interface:
Integration and Deployment: Integrate the CBR knowledge application system into
the existing infrastructure or deploy it as a standalone application. 31
•
Cont..
Developing rule based reasoning knowledge application system
Identify the domain: Choose the specific domain or area of expertise where the RBR
system will be implemented.
Gather knowledge sources: Collect the relevant rules, facts, and expert knowledge
from domain experts or existing documentation.
Formalize rules: Convert the collected knowledge into a formal rule-based
representation.
Develop the inference engine: Implement the reasoning engine responsible for
applying the rules and making decisions based on given inputs.
Design the user interface: Create an intuitive and user-friendly interface to interact
with the Knowledge Application System.
Integrate with data sources: Connect the RBR system with relevant data sources,
such as databases or external APIs, to retrieve the required data for rule evaluation.
Test and validate: verifying the correctness of rule execution, evaluating the system's
performance, and validating the system's output against known test cases or expert
opinion.
Refine and optimize: Continuously improve the system by incorporating feedback
from users, refining the rules, and optimizing the overall performance.
Deploy and maintain:
32
Group - Assignment I (10%)
• Review paper/article which is conducted on expert
systems, decision support systems, and knowledge-based
systems.
33