CSC 409 UPDATED LECTURE NOTE
CSC 409 UPDATED LECTURE NOTE
Course Outline
1. Overview of Artificial Intelligence
2. Underlying concepts of Artificial Intelligence
3. Knowledge modelling and knowledge representation
4. Expert Systems
5. Intro to natural language processing
6. Intro to pattern recognition
7. Intro to Python, Lisp and Prolog
Recommended text: AI for Modern Approach 3rd Edition- Stuart Russell& Peter
DEFINITION OF AI
The study of computational agents that act intelligently. An agent acts in an environment and only
has access to its prior knowledge, its history of observations and its goals and preference. An
intelligent agent is a physical symbol system that manipulates symbols to determine what to do.
Artificial
o Man made
o rather than naturally occurring
Intelligence
o Ability to acquire and apply knowledge
o State or fact of knowing
o Possessing knowledge, intelligence and understanding
PRACTICAL DEFINITIONS OF AI
omputational intelligence is the study of the design of intelligent agents – Poole et al 1998
AI is concerned with intelligent behavior in artifacts – Nilsson 1998
GOALS OF AI
1. Constructing intelligent machines for a wide range of application e.g. augmenting human
problem solving
2. Formalizing knowledge and mechanizing intelligence
3. Using computational models to understand complex human behavior.
4. Making computers as easy to work with as people
WHY IS AI PRACTICAL
1. Cheaper sensors and better sensor processing
2. Order of magnitude in computational power e.g. Commodity processors, special purpose
processor for sensor processing and parallel/cloud computing
3. Availability of tremendous amounts of information.
APPLICATION AREAS OF AI
1. Speech recognition
2. Scheduling and planning e.g. American airline re-routing contingency planner
3. Computer vision- face recognition programs in use by banks and governments etc. Handwriting
recognition, electronic and manufacturing inspection, baggage inspection, automation of 3D
geometric model constructions
4. Diagnostic systems e.g. pathfinders for diagnosis of lymph node disease
5. Financial decision making
6. System configuration
7. Classification of systems
8. Mathematical theory proving: use inference method to prove new theories
9. Game playing: computer programs beats world best player in chess, checkers and backgammon
10. Machine translation
11. Robotic vehicles
12. Logistic planning
13. Robotics
Artificial Intelligence can be divided in various types, there are mainly two types of main
categorization which are based on capabilities and based on functionally of AI. Following is flow
diagram which explain the types of AI.
. General AI:
o General AI is a type of intelligence which could perform any intellectual task with efficiency
like a human.
o The idea behind the general AI to make such a system which could be smarter and think like
a human by its own.
o Currently, there is no such system exist which could come under general AI and can perform
any task as perfect as a human.
o The worldwide researchers are now focused on developing machines with General AI.
o As systems with general AI are still under research, and it will take lots of efforts and time to
develop such systems.
3. Super AI:
1. Reactive Machines
o Purely reactive machines are the most basic types of Artificial Intelligence.
o Such AI systems do not store memories or past experiences for future actions.
o These machines only focus on current scenarios and react on it as per possible best action.
o IBM's Deep Blue system is an example of reactive machines.
o Google's AlphaGo is also an example of reactive machines.
2. Limited Memory
o Limited memory machines can store past experiences or some data for a short period of time.
o These machines can use stored data for a limited time period only.
o Self-driving cars are one of the best examples of Limited Memory systems. These cars can
store recent speed of nearby cars, the distance of other cars, speed limit, and other
information to navigate the road.
3. Theory of Mind
o Theory of Mind AI should understand the human emotions, people, beliefs, and be able to
interact socially like humans.
o This type of AI machines are still not developed, but researchers are making lots of efforts
and improvement for developing such AI machines.
4. Self-Awareness
Conventional Computing
1. Conventional computing is based on algorithm (clearly defined step-by-step procedure)
2. Mathematical formula or sequential procedure
3. Converted into a computer program
4. Makes use of data (number, letter in words)
5. Limited to very structured quantitative applications
Artificial Intelligence
1. Based on symbolic representation and manipulation of knowledge
2. A symbol is a letter, words or numbers which represents object, processes and their environment
3. Creates a symbolic knowledge base
4. Uses various process to manipulate the symbols to generate advice or a recommendation
5. Reasons or infer with the knowledge based on search and pattern matching
6. Hunts for answers
Learning:This topic deals with research and development in different forms of development
Expert systems:This deals with knowledge processing and complex decision-making problems.
Robotics:The controlling of robots to manipulate or grasp objects and using information from
sensors to guide actions.
Problem solving and planning:This deal with systematic refinement of goal hierarchy, plan
revision mechanism and a focused search of important goals.
Genetic algorithm:These are adaptive algorithm with have learning capabilities. They are used in
research, machine learning and optimization
Pattern recognition: This is the study of how machines can observe the environment, learn to
distinguish patterns of interest and make sound and reasonable decision about a category of the
pattern.
Machine Learning is a subset of Artificial Intelligence which provides Machine the ability to
learn mathematically and improve from experience without being explicitly programmed.
Machine Learning Process involves building a predictive model that can be used to find solution
for a problem statement.
Deep-learning architectures rely on the perceptron as the basis of neural networks, often
involving large or massive datasets. Such architectures also involve heuristics and empirical
results. is a subset of machine learning which makes the multi neural network visible.
2. Computer science:
Network security, risk assessment and monitoring, autonomic self-reconfiguring of computer
systems.
3. Electrical industry:
Multi objective optimization of power distribution system operation.
5. Anti-terrorism/emergence reports:
Simulator for teaching police force in urban environment and a training tool to coordinate
various disasters and emergency response such as fire engines and police car.
Types of AI problems
1) Domain expert: Problems which involve Reasoning based on a complex body of knowledge
This includes tasks which are based on learning a body of knowledge like Legal, financial etc. and
then formulating a process where the machine can simulate an expert in the field
Here, the machine learns a complex body of knowledge like information about existing medication
etc. and then can suggest new insights to the domain itself – for example new drugs to cure diseases.
Many logistics and scheduling tasks can be done by current (non AI) algorithms. But increasingly, as
the optimization becomes complex AI could help. One example is the use of AI techniques in IoT for
Sparse datasets AI techniques help on this case because we have large and complex datasets where
human beings cannot detect patterns but a machine can do so easily.
AI and Deep Learning benefit many communication modes such as automatic translation, intelligent
agents etc
AI and Deep Learning enable newer forms of Perception which enables new services such as
autonomous vehicles
While autonomous vehicles etc get a lot of media attention, AI will be deployed in almost all sectors
of the economy. In each case, the same principles apply i.e. AI will be used to create new insights
from automatic feature detection via Deep Learning – which in turn help to optimize, improve or
change a business process (over and above what can be done with traditional machine learning). I
outlined some of these processes in financial services in a previous blog: Enterprise AI insights from
the AI Europe event in London. In a wider sense, you could view this as Re-engineering the
Corporation meets AI/ Artificial Intelligence. This is very much part of the Enterprise AI course
7) Enterprise AI adding unstructured data and Cognitive capabilities to ERP and Datawarehousing
For reasons listed above, unstructured data offers a huge opportunity for Deep Learning and hence
AI. As per Bernard Marr writing in Forbes: “The vast majority of the data available to most
organizations is unstructured – call logs, emails, transcripts, video and audio data which, while full of
valuable insights, can’t easily be universally formatted into rows and columns to make quantitative
analysis straightforward. With advances in fields such as image recognition, sentiment analysis and
natural language processing, this information is starting to give up its secrets, and mining it will
become increasingly big business in 2017.” I very much agree to this. In practise, this will mean
enhancing the features of ERP and Datawarehousing systems through Cognitive systems.
David Kelnar says in The fourth industrial revolution a primer on artificial intelligenc…
“The second-order consequences of machine learning will exceed its immediate impact. Deep
learning has improved computer vision, for example, to the point that autonomous vehicles (cars and
trucks) are viable. But what will be their impact? Today, 90% of people and 80% of freight are
transported via road in the UK. Autonomous vehicles alone will impact: safety (90% of accidents are
caused by driver inattention) employment (2.2 million people work in the UK haulage and logistics
industry, receiving an estimated £57B in annual salaries) insurance (Autonomous Research
anticipates a 63% fall in UK car insurance premiums over time) sector economics (consumers are
likely to use on-demand transportation services in place of car ownership); vehicle throughput; urban
planning; regulation and more. “
9) Problems in the near future that could benefit from improved algorithms
A catch-all category for things which were not possible in the past, could be possible in the near
future due to better algorithms or better hardware. For example, in Speech recognition,
improvements continue to be made and currently, the abilities of the machine equal that of a human.
From 2012, Google used LSTMs to power the speech recognition system in Android. Just six weeks
ago, Microsoft engineers reported that their system reached a word error rate of 5.9% — a figure
roughly equal to that of human abilities for the first time in history. The goal-post continues to be
moved rapidly .. for example loom.ai is building an avatar that can capture your personality
Expert systems have been around for a long time. Much of the vision of Expert systems could be
implemented in AI/Deep Learning algorithms in the near future. If you study the architecture of IBM
Watson, you can see that the Watson strategy leads to an Expert system vision. Of course, the same
ideas can be implemented independently of Watson today.
This domain is of personal interest to me due to my background with IoT see my course at Oxford
University Data Science for Internet of Things. I got this title from a slide from Uber’s head of Deep
Learning who I met at the AI Europe event in London. The application of AI techniques to sequential
pattern recognition is still an early stage domain(and does not yet get the kind of attention as CNNs
for example) – but in my view, this will be a rapidly expanding space. For some background see this
thesis from Technische Universitat Munchen (TUM) Deep Learning For Sequential P… and also
this blog by Jakob Aungiers LSTM Neural Network for Time Series Prediction
The interplay between AI and Sentiment analysis is also a new area. There are already many
synergies between AI and Sentiment analysis because many functions of AI apps need sentiment
analysis features.
“The common interest areas where Artificial Intelligence (AI) meets sentiment analysis can be
viewed from four aspects of the problem and the aspects can be grouped as Object identification,
Feature extraction, Orientation classification and Integration. The existing reported solutions or
available systems are still far from being perfect or fail to meet the satisfaction level of the end users.
The main issue may be that there are many conceptual rules that govern sentiment and there are even
more clues (possibly unlimited) that can convey these concepts from realization to verbalization of a
human being.” source: SAAIP
Notes: the post The fourth industrial revolution a primer on artificial intelligenc… also offers a good
insight on AI domains also see #AI application areas – a paper review of AI applications (pdf)
o Chess
o N-Queen problem
o Tower of Hanoi Problem
o Travelling Salesman Problem
o Water-Jug Problem
Searching Algorithms
Several of the fundamental ways that AI solves every challenge is through
searching. These searching algorithms are used by rational agents or problem-
solving agents for select the most appropriate answers. Intelligent entities use
molecular representations and seem to be frequently main objective when
finding solutions. Depending upon that calibre of the solutions they produce,
most searching algorithms also have attributes of completeness, optimality,
time complexity, and high computational.
Computing Evolutionary
This approach to issue makes use of the well-established evolutionary idea. The
idea of "survival of the fittest underlies the evolutionary theory. According to
this, when a creature successfully reproduces in a tough or changing
environment, these coping mechanisms are eventually passed down to the later
generations, leading to something like a variety of new young species. By
combining several traits that go along with that severe environment, these
mutated animals aren't just clones of something like the old ones. The much
more notable example as to how development is changed and expanded is
humanity, which have done so as a consequence of the accumulation of
advantageous mutations over countless generations.
Genetic Algorithms
Genetic algorithms have been proposed upon that evolutionary theory. These
programs employ a technique called direct random search. In order to combine
the two healthiest possibilities and produce a desirable offspring, the developers
calculate the fit factor. Overall health of each individual is determined by first
gathering demographic information and afterwards assessing each individual.
According on how well each member matches that intended need, a calculation
is made. Next, its creators employ a variety of methodologies to retain their
finest participants.
1. Rank Selection
2. Tournament Selection
3. Steady Selection
4. Roulette Wheel Selection (Fitness Proportionate Selection)
5. Elitism
WHY A.I. IS HARD
1. Uncertainty in the information that is sensed from the environment
2. The lack of complete theories that fully explain naturally occurring phenomenon
3. The bounded rationality of computation that fully makes it impossible to access all options
4. The situation of specificity of knowledge: there is rarely common sense knowledge that can be
applied uniformly over a broad spectrum of real world situations.
A.I. TECHNIQUES
An A.I. technique is a method that exploits knowledge in solving a problem.
Nature of knowledge;
Knowledge is voluminous
It is constantly changing
It is hard to characterize accurately
It differs from data by being organized in a way that corresponds to the way it will be used
Abstraction: Provides a way of separating important features and variables from many
unimportant ones that will otherwise overwhelm the process.
Search: A way of solving important problems for which no more direct approach is available
as well as a framework into which any direct technique that are available can be embedded.
UNDERLYING CONCEPTS OF ARTRIFICIAL INTELLIGENCE
Agent: an agent is anything that can be viewed as perceiving its environment through sensors
and acting upon that environment through actuators.
An agent includes
1. Humans
2. Robots
3. Software
4. Thermostats
5. Airplanes etc.
We are interested in what agent does, that is how it acts and we judge an agent by its actions.
Percept: refers to an agent perceptual input at any given instance. An agent percept sequence is the
complete history of everything the agent has ever conceived.
In general, an agent choice of action at any given instant can depend on the entire sequence
percept observed to date but not on anything, it has not perceived.
A rational agent is one that does the right thing. A rational agent takes action it believes will achieve
its goals or takes action by considering the consequence of its behaviour.
What is rational at any given time depends on four things;
1. The performance measure that defines the criterion of success.
2. The agent’s prior knowledge of the environment.
3. The action that the agent can perform.
4. The agent’s percept sequence to date.
Definition of Rational Agent: for each possible percept sequence, a rational agent should select
an action that is expected to maximize performance measure, given the evidence provided by the
percept sequence and whatever built-in knowledge the agent has.
TASK ENVIRONMENT
S/N AGENT PERFORMANCE ENVIRONMENT ACTUATOR SENSORS
TYPE S
1 Medical Healthy patient, Patient, hospital Display of Keyboard
diagnosis reduced cost and staff question, test entry of
system diagnoses, symptoms
treatment findings,
referrals patient
answers
2 Past picking Percentage of part Conveyor belt with Jointed arm Camera, joint
Robot in correct bins parts; bins and hand angle sensors
3 Satellite Correct image Downlink from Display of Colour pixel
image categorization orbiting satellite scene arrays
analysis categories
system
4 Taxi driver Safety, fast, legal, Road, other traffic Steering, GPS, sonar,
comfortable trips pedestrians, horns, speedometer,
and maximize customer accelerators, odometer,
profits brake, display camera, engine
etc. sensor,
keyboard etc.
5 Refinery Purity, yield, safety Refinery operators Valves, pumps, Temperature,
controller heaters, display pressure,
chemical
sensor
6 Interactive Student’s score on Set of students Display of Keyboard
English tutor test testing agency exercises, entry
suggestion,
correction
INTELLIGENT AGENTS
An agent acts intelligently when:
What it does is appropriate for its circumstance and its goals.
It is flexible to changing environment and changing goals.
It learns from experience.
It makes appropriate choices given its perceptual and computational limitations.
CHARACTERISITICS OF KNOWLEDGE
Knowledge is voluminous
It is constantly changing
It is hard to characterize accurately
It differs from data by being organized in a way that corresponds to the way it will be used.
ACTIVITIES IN AI ABOUT KNOWLEDGE
o Acquisition
This has to do with creating, finding, collecting and eliciting the necessary information and
knowledge to create a cognitive model. It is highly dependent on the technology that is being
utilized.
o Representation
This has to with transforming the acquired information and knowledge into a computer
readable model.
Represents the computer’s knowledge of the world by some kind of data structure in the
machine’s memory.
Representation = Syntax + Semantics + Reasoning
o Search
This is a problem solving technique that systematically explores a space of problem states.
REPRESENTATION
Representation = Syntax + Semantics + Reasoning
Syntax
i. Syntax can be checked by compilers
ii. Syntax can take on many forms; mathematical, logical, model, cases, rules, graphs, frames and
symbols.
Semantics
i. Must be checked by man.
ii. Specification of behaviors.
iii. Careful attention to semantics allow us to be precise about system capabilities.
Reasoning
Reasoning with certainty: has to do with deterministic such as propositional logic and predicate
logic.
Reasoning with uncertainty: has to do with non-deterministicsuch as multi-value logic,
probability theory, Bayesian deduction, certainty factor and fuzzy logic.
PROPOSITIONAL LOGIC
In general a logic is defined by
Syntax: Describes the possible configuration that can constitute sentences.
Semantics: Determines the facts in the world to which the sentences refer.
Reasoning: Process of construction new sentences from old ones.
This relationship is called entailment and can be expressed as
KB|= (knowledge base KB entails the sentence alpha)
Propositional Logic: Syntax
Symbols (e.g. letters, words) are used to represent facts about the world: e.g.
o “P” represents the fact “Ali likes chocolate”.
o “Q” represents the fact “Ali has chocolate”.
These are atomic propositions
Logical connectives are used to represent and : , or , if-then: , not: , equality: IFF .
Statements or sentences in the language are constructed from atomic propositions and logical
connectives.
PQ “Ali likes chocolate and he doesn’t have any (Ali doesn’t have chocolate).”
PQ “If Ali likes chocolatethen Ali has chocolate”.
EXPERT
USER
FACTS OF THE RECOMMENTDATION,
CASE EXPLANATION
USER INTERFACE
KNOWLEDGE
ENGINEER
EXPLANATION FACILITY
INFERENCE ENGINE
FACTS OF THE
CASE KNOWLEDGE ACQUISITION FACILITY
WORKING MEMORY
KNOWLEDGE BASE DOMAIN KNOWLEDGE (ELEMENTS OF KNOWLEDGE BASE)
Knowledge Engineering
This is a process of acquiring knowledge from experts and building knowledge
base. This can be viewed in two perspectives namely; narrow and broad perspective.
o Narrow perspective:
Knowledge acquisition, representation, validation, inference and maintenance
1. Broad perspective:
Developing and maintaining of intelligent systems
KNOWLEDGE SOURCES OF
VALIDATION KNOWLEDGE (EXPERT,
(TEST CASES) OTHERS)
Encoding
KNOWLEDGE BASE KNOWLEDGE
REPRESENTION
EXPLANATION
JUSTIFICATION
INFERENCING
KNOWLEDGE SOURCES
1. Documented: viewed, written, sensory and behavior
2. Undocumented: memory
3. Acquired: human senses and machine
KNOWLEDGE CATEGORIES
1. Declarative: which has to do with descriptive representation of knowledge.
2. Procedural: has to do with how things work under different circumstances and how to use declarative
knowledge in solving problems
3. Meta Knowledge:
KNOWLEDGE ENGINEERS
1. These are professionals who elicit knowledge from experts.
Wide range of understanding and capabilities.
Empathetic and patient
2. Integrate knowledge from various sources
Create and edit codes and operate tools
3. Build knowledge base
Validate information and train users
KNOWLEDGE EDIT
BASE
MANAGE
ENCDOING KNOWLEDGE
ENCODING EDIT ENGINEER
CLIENT II
ES TOOLS
CLIENT I
ELICITATION METHODS
1. Manual methods: through interviews, track reasoning process and observation
2. Semi-automatic methods: build base with minimal help from knowledge engineer and allow the
execution of routine tasks with minimal expert input
3. Automatic methods: minimal input from both experts and knowledge engineers
Alternatively, pattern recognition is the science for observing the environment, learning to
distinguish patterns of interest from their background and making sound decision about the pattern or
pattern classes.
The application areas of Pattern Recognition are as follows:
Optical Character Recognition (OCR) –
Handwritten: which has to do with sorting letters by poster.
Printed text: reading machines for blind people and digitalization of text
Biometrics-
Face recognition, verification and retrieval
Fingerprint recognition
Speech recognition
Diagnostics systems
a) Medical Diagnostics such as X-ray, EKG analysis
b) Machine Diagnostics
Military Application
Automated Target Recognition
Image Segmentation and Analysis (recognition from area or satellite photography)
Data Mining
Organization and Retrieval of multimedia databases)
Document Classification
PHYSICAL ENVIRONMENT
TRAINING DATA
DATA ACQUISITION/SENSING
PRE-PROCESSING
PRE-PROCESSING
FEATURE
FEATURE EXTRACTION EXTRACTION/SELECTION
FEATURES FEATURES
CLASSIFICATION MODEL
MODEL
LEARNING/ESTIMATION
POST-PROCESSING
DECISION
Data Acquisition
This has to do with measurement of physical variables considering issues such as bandwidth,
resolution, sensitivity, distortion
Pre-Processing
This has to do with removal of noise in data and isolation of patterns of interest from the background.
Feature Extraction
This has to do with extracting features which are good for the classification and finding a new
representation in terms of the features.
Classification
Using features and learned models to assign a pattern to a category
Post-processing
Evaluation of confidence in the decision, exploitation of context to improve performance and
combination of experts
Syntactic/Structural Approach: Pattern classes, represented by mean of formal structure such as grammar,
automata and stream.
Neural Network Approach: Classifier is represented as a network of cells modelling neurons from a
human brain.
Application area of natural language processing are:
(i) Communication
(ii) Faster diagnosis.
(iii)Customer review
(iv)Virtual digital assistant.
Python is an open source oriented programming language mainly used for data science. Stack-
overflow calls it as the fastest growing programming language.
Reasons why Python is necessary in Artificial Intelligence are:
Less code
Prebuilt library
Plat form dependent
Massive support
Ease of learning
Python Libraries and their Features
(i) Scikit: It is a python library associated with Numpy and Scipy. It is considered as one of the best
library for working with complex data.
Features
Cross Validation
Unsupervised learning algorithm
Feature Extraction in images and text
(ii) Keras: These simplifies the implementation of neural network. It provides some of the best
utilities for combining models processing, datasets, visualization of graph etc.
Features
Run smoothly on both CPU and GPU
Support all types of neural network
Complete Python based
(iii) Tensor Flow: It was developed by google in collaboration with brain tip. It is popularly used in
writing machine learning algorithms.
Features
Responsive construct
Flexibility
Easily trainable
Parallel neural network training
(iv) Numpy: This a Python library that is mainly used for computing scientific/ mathematical data.
Features
Support multi-dimensional array
Numerical Analysis
Intuitive
PROLOG,
In Prolog, Facts are always true. Facts are unconditional statement which are assumed to be correct
at the time of use. Facts can also be called predicates. Facts are means of stating that a relationship
holds between objects (arguments).
(ii) Atoms are constants that do not have numerical values.
In prolog Rule is defined as what give prolog the ability to pursue its decision making process.
Rules extend the capability of a logic program. The simplest type of rule is called production rule
and it takes the form; IF <Condition> THEN <Conclusion>, the right side is the antecedent while
the left side is the consequence of the part.
(iv) Prolog is sent into action by giving it a goal, which we can think of for the moment just as a
simple command. Simple Prolog commands are formed by a name (the predicate name), followed by
brackets round the data item(s) involved (the arguments).
Basic facts
about PROLOG and main applications areas of Prolog
Prolog is a high-level logic programming language (Programming in LOGic);
Good at pattern matching (by unification) and searching;
Not very good for repetitive number crunching;
Excellent for language processing, rule-based expert systems, planning and other AI
applications;
Uses depth-first search and backtracking to search for solutions automatically;
Best written in little chunks (modular code): indeed this is assumed in its syntax;
Uses a % to prefix comments or /* ... */ to surround them.
1. Logical Representation
2. Semantic Network Representation
3. Frame Representation
4. Production Rules
What to Represent:
The types of knowledge that must be represented in AI systems are as follows:
1.Logical Representation
A language with certain concrete principles that deals with propositions and has
no ambiguity in representation is referred to as logical representation. Drawing
a conclusion based on numerous criteria is referred to as logical representation.
Some important communication guidelines are laid out in this diagram. It's
made up of well-defined syntax and semantics that facilitate sound inference.
Each sentence could be translated into logics using the syntax and semantics.
Syntax:
Syntaxes are the principles that govern how legal sentences are
constructed in logic.
It determines the symbol we can use to express knowledge.
What is the best way to write those symbols?
Semantics:
Note: That logical representation and logical reasoning are not the
same thing; logical representation is a representation language, and
reasoning is a logical thinking process.
Statements:
Jerry is a cat.
Jerry is a mammal.
Jerry is owned by Priya.
Jerry is brown colored.
All Mammals are animal.
We've used nodes and arcs to represent different types of knowledge in the
diagram above. Each object has some sort of relationship with another object.
3. Frame Representation
Semantic networks gave rise to frames, which later evolved into our modern-
day classes and objects. A single frame is of limited utility. A frames system is
made up of a group of interconnected frames. Knowledge about an object or
event can be kept in the knowledge base in the frame. The frame is a form of
technology that can be used in a wide range of applications.
Example: 1
Slots Filter
Title Artificial Intelligence
Genre Computer Science
Author Peter Norvig
Edition PThird Edition
Year 1996
Page 1152
Example: 2
Slots
Name Peter
Profession Doctor
Age 25
Marital Status Single
Year 1996
Weight 78
Advantages of frame representation:
The agent in production rules checks for the condition, and if it exists, the
production rule fires and the appropriate action is taken. The rule's condition
component determines which rule can be used to solve an issue. The action
portion, on the other hand, is responsible for carrying out the corresponding
problem-solving actions. A recognize-act cycle is the name given to the entire
procedure.
If a new scenario (state) arises, numerous production rules will be fired at the
same time, which is known as a conflict set. In this case, the agent must choose
a rule from among these sets, and it is called a recognize-act cycle.
Example:
IF (at bus stop AND bus arrives) THEN action (get into the bus)
IF (on the bus AND paid AND empty seat) THEN action (sit down).
IF (on bus AND unpaid) THEN action (pay charges).
IF (bus arrives at destination) THEN action (get down from the bus.