SlideShare a Scribd company logo
1 of 27
Knowledge Representation
J. Felicia Lilian
Introduction to KR
• Human beings are good at understanding, reasoning and
interpreting knowledge.
• And using this knowledge, they are able to perform various actions
in the real world.
• But how do machines perform the same?
• Knowledge Representation in AI describes it as a study of how the
beliefs, intentions, and judgments of an intelligent agent can be
expressed suitably for automated reasoning.
• One of the primary purposes of Knowledge Representation includes
modeling intelligent behavior for an agent.
Knowledge Representation &
Reasoning
• Knowledge Representation and Reasoning (KR, KRR)
represents information from the real world for a computer
to understand and then utilize this knowledge to solve
complex real-life problems like communicating with
human beings in natural language.
• Knowledge representation in AI is not just about storing
data in a database, it allows a machine to learn from that
knowledge and behave intelligently like a human being.
Types of KR
1. Declarative Knowledge:
• Declarative knowledge is to know
about something.
• It includes concepts, facts, and
objects.
• It is also called descriptive
knowledge and expressed in
declarative sentences.
• It is simpler than procedural
language.
2. Procedural Knowledge
• It is also known as imperative
knowledge.
• Procedural knowledge is a type of
knowledge which is responsible for
knowing how to do something.
• It can be directly applied to any
task.
• It includes rules, strategies,
procedures, agendas, etc.
• Procedural knowledge depends on
the task on which it can be applied.
3. Meta-knowledge:
• Knowledge about the other types
of knowledge is called Meta-
knowledge.
4. Heuristic knowledge:
• Heuristic knowledge is representing
knowledge of some experts in a
filed or subject.
• Heuristic knowledge is rules of
thumb based on previous
experiences, awareness of
approaches, and which are good to
work but not guaranteed.
5. Structural knowledge:
• Structural knowledge is basic
knowledge to problem-solving.
• It describes relationships between
various concepts such as kind of,
part of, and grouping of something.
• It describes the relationship that
exists between concepts or objects.
Basic Cycle of Knowledge
Representation in AI
• Artificial Intelligent Systems usually consist of
various components to display their intelligent
behavior.
• Some of these components include:
– Perception
– Learning
– Knowledge Representation & Reasoning
– Planning
– Execution
Representations & Mappings
• Two kinds of entities:
– Facts  truths
– Representation of facts
• Representing these entities as,
– Knowledge level
– Symbol level
• Representation mapping
– Forward mapping
• Facts to representation
– Backward mapping
• Representation to facts
Examples
Fact : Spot is a dog
Logic representation : dog(Spot)
Fact : All dogs have tails
Logic representation : ∀ 𝑥 : 𝑑𝑜𝑔 𝑥 → ℎ𝑎𝑠𝑡𝑎𝑖𝑙𝑠(𝑥)
hastail(spot)  Spot has a tail
All dogs have tails  Every dog has at least one tail /
Every dog has several tails
Every dog has a tail  Every dog has at least one tail /
A tail that every dog has
Simple Relational knowledge
• Who is the heaviest player?
Inheritable knowledge
• Knowledge about object, attributes and associated values
• Augment the basic representation into an structure
representation
Inferential knowledge
• Inferential knowledge approach represents knowledge in the form of
formal logics.
• This approach can be used to derive more facts.
• It guaranteed correctness.
• Example: Let's suppose there are two statements:
– Marcus is a man
– All men are mortal
Then it can represent as;
man(Marcus)
∀x = man (x) ----------> mortal (x)s
Procedural knowledge
• Procedural knowledge approach uses small programs and codes
which describes how to do specific things, and how to proceed.
• In this approach, one important rule is used which is If-Then rule.
• In this knowledge, we can use various coding languages such as LISP
language and Prolog language.
• We can easily represent heuristic or domain-specific knowledge
using this approach.
• But it is not necessary that we can represent all cases in this
approach.
Approaches to KR
• Four properties:
– Representational Adequacy  represent all kinds
of knowledge
– Inferential Adequacy  manipulate the
representational structure
– Inferential Efficiency  incorporate into
knowledge
– Acquisitional Efficiency  Acquire new
information / knowledge
Techniques of knowledge
representation
Logical Representation
• Logical representation is a language with some concrete rules which
deals with propositions and has no ambiguity in representation.
• Logical representation means drawing a conclusion based on
various conditions.
• This representation lays down some important communication
rules.
• It consists of precisely defined syntax and semantics which
supports the sound inference.
• Each sentence can be translated into logics using syntax and
semantics.
Syntax:
• Syntaxes are the rules which decide how we can construct legal sentences
in the logic.
• It determines which symbol we can use in knowledge representation.
• How to write those symbols.
Semantics:
• Semantics are the rules by which we can interpret the sentence in the
logic.
• Semantic also involves assigning a meaning to each sentence.
Logical representation can be categorised into mainly two logics:
• Propositional Logics
• Predicate logics
Semantic Network Representation
• Semantic networks are alternative of predicate logic for knowledge
representation.
• In Semantic networks, we can represent our knowledge in the form
of graphical networks.
• This network consists of nodes representing objects and arcs which
describe the relationship between those objects.
• Semantic networks can categorize the object in different forms and
can also link those objects.
• Semantic networks are easy to understand and can be easily
extended.
Types of relations:
– IS-A relation (Inheritance)
– Kind-of-relation
Example: Following are some statements which we need to
represent in the form of nodes and arcs.
Axioms:
• Jerry is a cat.
• Jerry is a mammal
• Jerry is owned by Priya.
• Jerry is brown colored.
• All Mammals are animal.
Frame Representation
• A frame is a record like structure which consists of a collection of
attributes and its values to describe an entity in the world.
• Frames are the AI data structure which divides knowledge into
substructures by representing stereotypes situations.
• It consists of a collection of slots and slot values.
• These slots may be of any type and sizes.
• Slots have names and values which are called facets.
Facet
• Facets are features of frames which enable us to put
constraints on the frames.
Example: IF-NEEDED facts are called when data of any
particular slot is needed.
A frame may consist of any number of slots, and a slot
may include any number of facets and facets may have
any number of values.
A frame is also known as slot-filter knowledge
representation in artificial intelligence.
Semantic Network  Frames
• Frames are derived from semantic networks and later
evolved into our modern-day classes and objects.
• A single frame is not much useful.
• Frames system consist of a collection of frames which are
connected.
• In the frame, knowledge about an object or event can be
stored together in the knowledge base.
• The frame is a type of technology which is widely used in
various applications including Natural language processing
and machine visions.
Example: Frame for a book
Slots Filters
Title Artificial Intelligence
Genre Computer Science
Author Peter Norvig
Edition Third Edition
Year 1996
Page 1152
Example: Peter is an engineer as a profession,
and his age is 25, he lives in city London, and the
country is England.
Slots Filter
Name Peter
Profession Doctor
Age 25
Marital status Single
Weight 78
Production Rules
• Production rules system consist of (condition, action) pairs which
mean, "If condition then action".
• It has mainly three parts:
• The set of production rules
• Working Memory
• The recognize-act-cycle
• The agent checks for the condition and if the condition exists then
production rule fires and corresponding action is carried out.
• The condition part of the rule determines which rule may be
applied to a problem.
• And the action part carries out the associated problem-solving
steps.
• This complete process is called a recognize-act cycle.
• The working memory contains the description of the
current state of problems-solving and rule can write
knowledge to the working memory.
• This knowledge match and may fire other rules.
• If there is a new situation (state) generates, then
multiple production rules will be fired together, this is
called conflict set.
• In this situation, the agent needs to select a rule from
these sets, and it is called a conflict resolution.
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).

More Related Content

Similar to uploadscribd2.pptx

Frame-Script and Predicate logic.pptx
Frame-Script and Predicate logic.pptxFrame-Script and Predicate logic.pptx
Frame-Script and Predicate logic.pptxnilesh405711
 
Oo concepts and class modeling
Oo concepts and class modelingOo concepts and class modeling
Oo concepts and class modelingPreeti Mishra
 
How to Create a Golden Ontology
How to Create a Golden OntologyHow to Create a Golden Ontology
How to Create a Golden OntologyMike Bennett
 
knowledge representation in artificial intelligence
knowledge representation in artificial intelligenceknowledge representation in artificial intelligence
knowledge representation in artificial intelligencePriyadharshiniG41
 
Artificial Intelligence by B. Ravikumar
Artificial Intelligence by B. RavikumarArtificial Intelligence by B. Ravikumar
Artificial Intelligence by B. RavikumarGarry D. Lasaga
 
Knowledge base system appl. p 1,2-ver1
Knowledge base system appl.  p 1,2-ver1Knowledge base system appl.  p 1,2-ver1
Knowledge base system appl. p 1,2-ver1Taymoor Nazmy
 
knowledgerepresentation.pdf
knowledgerepresentation.pdfknowledgerepresentation.pdf
knowledgerepresentation.pdfAbdullah251975
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceRamla Sheikh
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxkitsenthilkumarcse
 
Expert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth EditionExpert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth Editionmercyzyada1999
 

Similar to uploadscribd2.pptx (20)

Artificial intelligence course work
Artificial intelligence  course workArtificial intelligence  course work
Artificial intelligence course work
 
Knowledge Representation in AI.pptx
Knowledge Representation in AI.pptxKnowledge Representation in AI.pptx
Knowledge Representation in AI.pptx
 
Introduction
IntroductionIntroduction
Introduction
 
Frame-Script and Predicate logic.pptx
Frame-Script and Predicate logic.pptxFrame-Script and Predicate logic.pptx
Frame-Script and Predicate logic.pptx
 
Oo concepts and class modeling
Oo concepts and class modelingOo concepts and class modeling
Oo concepts and class modeling
 
How to Create a Golden Ontology
How to Create a Golden OntologyHow to Create a Golden Ontology
How to Create a Golden Ontology
 
Lesson 19
Lesson 19Lesson 19
Lesson 19
 
AI Lesson 19
AI Lesson 19AI Lesson 19
AI Lesson 19
 
6 KBS_ES.ppt
6 KBS_ES.ppt6 KBS_ES.ppt
6 KBS_ES.ppt
 
knowledge representation in artificial intelligence
knowledge representation in artificial intelligenceknowledge representation in artificial intelligence
knowledge representation in artificial intelligence
 
4KN Editted 2012.ppt
4KN Editted 2012.ppt4KN Editted 2012.ppt
4KN Editted 2012.ppt
 
Artificial Intelligence by B. Ravikumar
Artificial Intelligence by B. RavikumarArtificial Intelligence by B. Ravikumar
Artificial Intelligence by B. Ravikumar
 
07 intro2 oop
07 intro2 oop07 intro2 oop
07 intro2 oop
 
Knowledge base system appl. p 1,2-ver1
Knowledge base system appl.  p 1,2-ver1Knowledge base system appl.  p 1,2-ver1
Knowledge base system appl. p 1,2-ver1
 
knowledgerepresentation.pdf
knowledgerepresentation.pdfknowledgerepresentation.pdf
knowledgerepresentation.pdf
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptx
 
Database design
Database designDatabase design
Database design
 
Lec 09
Lec 09Lec 09
Lec 09
 
Expert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth EditionExpert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth Edition
 

More from FELICIALILIANJ

Artificial Intelligence and its application
Artificial Intelligence and its applicationArtificial Intelligence and its application
Artificial Intelligence and its applicationFELICIALILIANJ
 
Ch8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.pptCh8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.pptFELICIALILIANJ
 
Innovation and Entrepreneurship- Introduction.ppt
Innovation and Entrepreneurship- Introduction.pptInnovation and Entrepreneurship- Introduction.ppt
Innovation and Entrepreneurship- Introduction.pptFELICIALILIANJ
 

More from FELICIALILIANJ (7)

Artificial Intelligence and its application
Artificial Intelligence and its applicationArtificial Intelligence and its application
Artificial Intelligence and its application
 
Ch8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.pptCh8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.ppt
 
EIK - CO4.pptx
EIK - CO4.pptxEIK - CO4.pptx
EIK - CO4.pptx
 
IP 1.pptx
IP 1.pptxIP 1.pptx
IP 1.pptx
 
Innovation and Entrepreneurship- Introduction.ppt
Innovation and Entrepreneurship- Introduction.pptInnovation and Entrepreneurship- Introduction.ppt
Innovation and Entrepreneurship- Introduction.ppt
 
upload3.pptx
upload3.pptxupload3.pptx
upload3.pptx
 
uploadscribd.pptx
uploadscribd.pptxuploadscribd.pptx
uploadscribd.pptx
 

Recently uploaded

HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 

Recently uploaded (20)

HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 

uploadscribd2.pptx

  • 2. Introduction to KR • Human beings are good at understanding, reasoning and interpreting knowledge. • And using this knowledge, they are able to perform various actions in the real world. • But how do machines perform the same? • Knowledge Representation in AI describes it as a study of how the beliefs, intentions, and judgments of an intelligent agent can be expressed suitably for automated reasoning. • One of the primary purposes of Knowledge Representation includes modeling intelligent behavior for an agent.
  • 3. Knowledge Representation & Reasoning • Knowledge Representation and Reasoning (KR, KRR) represents information from the real world for a computer to understand and then utilize this knowledge to solve complex real-life problems like communicating with human beings in natural language. • Knowledge representation in AI is not just about storing data in a database, it allows a machine to learn from that knowledge and behave intelligently like a human being.
  • 5. 1. Declarative Knowledge: • Declarative knowledge is to know about something. • It includes concepts, facts, and objects. • It is also called descriptive knowledge and expressed in declarative sentences. • It is simpler than procedural language. 2. Procedural Knowledge • It is also known as imperative knowledge. • Procedural knowledge is a type of knowledge which is responsible for knowing how to do something. • It can be directly applied to any task. • It includes rules, strategies, procedures, agendas, etc. • Procedural knowledge depends on the task on which it can be applied. 3. Meta-knowledge: • Knowledge about the other types of knowledge is called Meta- knowledge. 4. Heuristic knowledge: • Heuristic knowledge is representing knowledge of some experts in a filed or subject. • Heuristic knowledge is rules of thumb based on previous experiences, awareness of approaches, and which are good to work but not guaranteed. 5. Structural knowledge: • Structural knowledge is basic knowledge to problem-solving. • It describes relationships between various concepts such as kind of, part of, and grouping of something. • It describes the relationship that exists between concepts or objects.
  • 6. Basic Cycle of Knowledge Representation in AI • Artificial Intelligent Systems usually consist of various components to display their intelligent behavior. • Some of these components include: – Perception – Learning – Knowledge Representation & Reasoning – Planning – Execution
  • 7.
  • 8. Representations & Mappings • Two kinds of entities: – Facts  truths – Representation of facts • Representing these entities as, – Knowledge level – Symbol level • Representation mapping – Forward mapping • Facts to representation – Backward mapping • Representation to facts
  • 9. Examples Fact : Spot is a dog Logic representation : dog(Spot) Fact : All dogs have tails Logic representation : ∀ 𝑥 : 𝑑𝑜𝑔 𝑥 → ℎ𝑎𝑠𝑡𝑎𝑖𝑙𝑠(𝑥) hastail(spot)  Spot has a tail All dogs have tails  Every dog has at least one tail / Every dog has several tails Every dog has a tail  Every dog has at least one tail / A tail that every dog has
  • 10. Simple Relational knowledge • Who is the heaviest player?
  • 11. Inheritable knowledge • Knowledge about object, attributes and associated values • Augment the basic representation into an structure representation
  • 12. Inferential knowledge • Inferential knowledge approach represents knowledge in the form of formal logics. • This approach can be used to derive more facts. • It guaranteed correctness. • Example: Let's suppose there are two statements: – Marcus is a man – All men are mortal Then it can represent as; man(Marcus) ∀x = man (x) ----------> mortal (x)s
  • 13. Procedural knowledge • Procedural knowledge approach uses small programs and codes which describes how to do specific things, and how to proceed. • In this approach, one important rule is used which is If-Then rule. • In this knowledge, we can use various coding languages such as LISP language and Prolog language. • We can easily represent heuristic or domain-specific knowledge using this approach. • But it is not necessary that we can represent all cases in this approach.
  • 14. Approaches to KR • Four properties: – Representational Adequacy  represent all kinds of knowledge – Inferential Adequacy  manipulate the representational structure – Inferential Efficiency  incorporate into knowledge – Acquisitional Efficiency  Acquire new information / knowledge
  • 16. Logical Representation • Logical representation is a language with some concrete rules which deals with propositions and has no ambiguity in representation. • Logical representation means drawing a conclusion based on various conditions. • This representation lays down some important communication rules. • It consists of precisely defined syntax and semantics which supports the sound inference. • Each sentence can be translated into logics using syntax and semantics.
  • 17. Syntax: • Syntaxes are the rules which decide how we can construct legal sentences in the logic. • It determines which symbol we can use in knowledge representation. • How to write those symbols. Semantics: • Semantics are the rules by which we can interpret the sentence in the logic. • Semantic also involves assigning a meaning to each sentence. Logical representation can be categorised into mainly two logics: • Propositional Logics • Predicate logics
  • 18. Semantic Network Representation • Semantic networks are alternative of predicate logic for knowledge representation. • In Semantic networks, we can represent our knowledge in the form of graphical networks. • This network consists of nodes representing objects and arcs which describe the relationship between those objects. • Semantic networks can categorize the object in different forms and can also link those objects. • Semantic networks are easy to understand and can be easily extended.
  • 19. Types of relations: – IS-A relation (Inheritance) – Kind-of-relation Example: Following are some statements which we need to represent in the form of nodes and arcs. Axioms: • Jerry is a cat. • Jerry is a mammal • Jerry is owned by Priya. • Jerry is brown colored. • All Mammals are animal.
  • 20. Frame Representation • A frame is a record like structure which consists of a collection of attributes and its values to describe an entity in the world. • Frames are the AI data structure which divides knowledge into substructures by representing stereotypes situations. • It consists of a collection of slots and slot values. • These slots may be of any type and sizes. • Slots have names and values which are called facets.
  • 21. Facet • Facets are features of frames which enable us to put constraints on the frames. Example: IF-NEEDED facts are called when data of any particular slot is needed. A frame may consist of any number of slots, and a slot may include any number of facets and facets may have any number of values. A frame is also known as slot-filter knowledge representation in artificial intelligence.
  • 22. Semantic Network  Frames • Frames are derived from semantic networks and later evolved into our modern-day classes and objects. • A single frame is not much useful. • Frames system consist of a collection of frames which are connected. • In the frame, knowledge about an object or event can be stored together in the knowledge base. • The frame is a type of technology which is widely used in various applications including Natural language processing and machine visions.
  • 23. Example: Frame for a book Slots Filters Title Artificial Intelligence Genre Computer Science Author Peter Norvig Edition Third Edition Year 1996 Page 1152
  • 24. Example: Peter is an engineer as a profession, and his age is 25, he lives in city London, and the country is England. Slots Filter Name Peter Profession Doctor Age 25 Marital status Single Weight 78
  • 25. Production Rules • Production rules system consist of (condition, action) pairs which mean, "If condition then action". • It has mainly three parts: • The set of production rules • Working Memory • The recognize-act-cycle • The agent checks for the condition and if the condition exists then production rule fires and corresponding action is carried out. • The condition part of the rule determines which rule may be applied to a problem. • And the action part carries out the associated problem-solving steps. • This complete process is called a recognize-act cycle.
  • 26. • The working memory contains the description of the current state of problems-solving and rule can write knowledge to the working memory. • This knowledge match and may fire other rules. • If there is a new situation (state) generates, then multiple production rules will be fired together, this is called conflict set. • In this situation, the agent needs to select a rule from these sets, and it is called a conflict resolution.
  • 27. 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).