SlideShare a Scribd company logo
1 of 24
Artificial Intelligence 
4. Knowledge Representation 
Akhtar Hussain
Representation Representation Representation 
 Think about knowledge, rather than data in AI 
 Facts 
 Procedures 
 Meaning 
– Cannot have intelligence without knowledge 
 Always been very important in AI 
 Choosing the wrong representation 
– Could lead to a project failing 
 Still a lot of work done on representation issues
Representations for 
Problem solving techniques 
 For certain problem solving techniques 
– The “best” representation has already been worked out 
– Often it is an obvious requirement of the technique 
– Or a requirement of the programming language (e.g., Prolog) 
 Examples: 
– First order theorem proving (first order logic) 
– Inductive logic programming (logic programs) 
– Neural networks learning (neural networks) 
 But what if you have a new project? 
– What kind of general representations schemes are there?
Four General Representation Types 
 Logical Representations 
 Semantic Networks 
 Production Rules 
 Frames
4.1 Logical Representations 
What is a Logic? 
 Lay down some concrete communication rules 
– In order to give information to agents, and get info 
 Without errors in communication (or at least, fewer) 
 Think of a logic as a language 
– Many ways to translate from one language to another 
 Expressiveness 
– How much of natural language (e.g., English) 
 We are able to translate into the logical language 
 Not to be confused with logical reasoning 
– “Sherlock Holmes used pure logic to solve that…” 
– This is a process, not a language
Syntax and Semantics of Logics 
 Syntax 
– How we can construct legal sentences in the logic 
– Which symbols we can use (English: letters, punctuation) 
– How we are allowed to write down those symbols 
 Semantics 
– How we interpret (read) sentences in the logic 
– i.e., what the meaning of a sentence is 
 Example: “All lecturers are six foot tall” 
– Perfectly valid sentence (syntax) 
– And we can understand the meaning (semantics) 
– This sentence happens to be false (there is a counterexample)
Propositional Logic 
 Syntax 
– Propositions such as P meaning “it is wet” 
– Connectives: and, or, not, implies, equivalent 
– Brackets, T (true) and F (false) 
 Semantics 
– How to work out the truth of a sentence 
 Need to know how connectives affect truth 
 E.g., “P and Q” is true if and only if P is true and Q is true 
 “P implies Q” is true if P and Q are true or if P is false 
– Can draw up truth tables to work out the truth of statements
Logical Implication
First Order Predicate Logic 
 More expressive logic than propositional 
– And one we will use a lot in this course 
 Later lecture all about first order predicate logic 
 Syntax allows 
– Constants, variables, predicates, functions and quantifiers 
 So, we say something is true for all objects (universal) 
– Or something is true for at least one object (existential) 
 Semantics 
– Working out the truth of statement 
 This can be done using rules of deduction
Example Sentence 
 In English: 
– “Every Monday and Wednesday I go to John’s 
house for dinner” 
 In first order predicate logic: 
X ((day_of_week(X, monday) day_of_week(X, weds)) 
(go_to(me, house_of(john) 
 Note the change from “and” to “or” 
– Translating is problematic 
eat(me, dinner))).
Higher Order Predicate Logic 
 More expressive than first order predicate logic 
 Allows quantification over functions and 
predicates, as well as objects 
 For example 
– We can say that all our polynomials have a zero at 17: 
f (f(17)=0). 
Working at the meta-level 
– Important to AI, but not often used
Other Logics 
 Fuzzy logic 
– Use probabilities, rather than truth values 
 Multi-valued logics 
– Assertions other than true and false allowed 
E.g., “unknown” 
 Modal logics 
– Include beliefs about the world 
 Temporal logics 
– Incorporate considerations of time
Why Logic is a Good 
Representation 
 Some of many reasons are: 
– It’s fairly easy to do the translation when possible 
– There are whole tracts of mathematics devoted to it 
– It enables us to do logical reasoning 
– Programming languages have grown out of logics 
Prolog uses logic programs (a subset of predicate logic)
Semantic Networks 
 Logic is not the only fruit 
 Humans draw diagrams all the time, e.g., 
– E.g. causal relationships: 
– And relationships between ideas:
Graphical Representations 
 Graphs are very easy to store inside a computer 
 For information to be of any use 
– We must impose a formalism on the graphs 
– Jason is 15, Bryan is 40, Arthur is 70, Jim is 74 
– How old is Julia?
Better Graphical Representation 
 Because the formalism is the same 
– We can guess that Julia’s age is similar to Bryan’s 
 Limited the syntax to impose formalism
Semantic Network Formalisms 
 Used a lot for natural language understanding 
– Represent two sentences by graphs 
Sentences with same meaning have exactly same graphs 
 Conceptual Dependency Theory 
– Roger Schank’s brainchild 
– Concepts are nodes, relationships are edges 
– Narrow down labels for edges to a very few possibilities 
– Problem: 
Not clear whether reduction to graphs can be automated for all 
sentences in a natural language
Conceptual Graphs 
 John Sowa 
 Each graph represents a single proposition 
 Concept nodes can be: 
– Concrete (visualisable) such as restaurant, my dog spot 
– Abstract (not easily visualisable) such as anger 
 Edges do not have labels 
– Instead, we introduce conceptual relation nodes 
 Many other considerations in the formalism 
– See Russell and Norvig for details
Example Conceptual Graph 
 Advantage: 
– Single relationship between multiple concepts is 
easily representable
Production Rule Representations 
 Consists of <condition,action> pairs 
 Agent checks if a condition holds 
– If so, the production rule “fires” and the action is carried out 
– This is a recognize-act cycle 
 Given a new situation (state) 
– Multiple production rules will fire at once 
– Call this the conflict set 
– Agent must choose from this set 
 Call this conflict resolution 
 Production system is any agent 
– Which performs using recognize-act cycles
Example Production Rule 
 As reported in Doug Lenat’s PhD thesis 
102. After creating a new generalization G of Concept C 
– Consider looking for non-examples of G 
 This was paraphrased 
– In general, we have to be more concrete 
About exactly when to fire and what to do
Frame Representations 
 Information retrieval when facing a new situation 
– The information is stored in frames with slots 
– Some of the slots trigger actions, causing new situations 
 Frames are templates 
– Which are to be filled-in in a situation 
– Filling them in causes an agent to 
Undertake actions and retrieve other frames 
 Frames are extensions of record datatype in databases 
– Also very similar to objects in OOP
Flexibility in Frames 
 Slots in a frame can contain 
– Information for choosing a frame in a situation 
– Relationships between this and other frames 
– Procedures to carry out after various slots filled 
– Default information to use where input is missing 
– Blank slots - left blank unless required for a task 
– Other frames, which gives a hierarchy
Example Frame

More Related Content

What's hot

Semantic net in AI
Semantic net in AISemantic net in AI
Semantic net in AIShahDhruv21
 
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Garry D. Lasaga
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMvikas dhakane
 
Conceptual dependency
Conceptual dependencyConceptual dependency
Conceptual dependencyJismy .K.Jose
 
Types of environment in Artificial Intelligence
Types of environment in Artificial IntelligenceTypes of environment in Artificial Intelligence
Types of environment in Artificial IntelligenceNoman Ullah Khan
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & ReasoningSajid Marwat
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 DigiGurukul
 
State space search and Problem Solving techniques
State space search and Problem Solving techniquesState space search and Problem Solving techniques
State space search and Problem Solving techniquesKirti Verma
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligencelordmwesh
 
Artificial intelligence agents and environment
Artificial intelligence agents and environmentArtificial intelligence agents and environment
Artificial intelligence agents and environmentMinakshi Atre
 
Semantic nets in artificial intelligence
Semantic nets in artificial intelligenceSemantic nets in artificial intelligence
Semantic nets in artificial intelligenceharshita virwani
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AIMegha Sharma
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsNuruzzaman Milon
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AIAmey Kerkar
 

What's hot (20)

Semantic net in AI
Semantic net in AISemantic net in AI
Semantic net in AI
 
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
Introduction Artificial Intelligence a modern approach by Russel and Norvig 1
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
Conceptual dependency
Conceptual dependencyConceptual dependency
Conceptual dependency
 
Frames
FramesFrames
Frames
 
Types of environment in Artificial Intelligence
Types of environment in Artificial IntelligenceTypes of environment in Artificial Intelligence
Types of environment in Artificial Intelligence
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1
 
State space search and Problem Solving techniques
State space search and Problem Solving techniquesState space search and Problem Solving techniques
State space search and Problem Solving techniques
 
AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligence
 
Artificial intelligence agents and environment
Artificial intelligence agents and environmentArtificial intelligence agents and environment
Artificial intelligence agents and environment
 
Semantic nets in artificial intelligence
Semantic nets in artificial intelligenceSemantic nets in artificial intelligence
Semantic nets in artificial intelligence
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AI
 
Artificial intelligence- Logic Agents
Artificial intelligence- Logic AgentsArtificial intelligence- Logic Agents
Artificial intelligence- Logic Agents
 
Reasoning in AI
Reasoning in AIReasoning in AI
Reasoning in AI
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 

Viewers also liked

Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceGagan Deep
 
Software engineering introduction
Software engineering introductionSoftware engineering introduction
Software engineering introductionVishal Singh
 
Software Requirement Specification
Software Requirement SpecificationSoftware Requirement Specification
Software Requirement SpecificationVishal Singh
 
Issues in knowledge representation
Issues in knowledge representationIssues in knowledge representation
Issues in knowledge representationSravanthi Emani
 
The electronic payment systems
The electronic payment systemsThe electronic payment systems
The electronic payment systemsVishal Singh
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 

Viewers also liked (12)

Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software engineering introduction
Software engineering introductionSoftware engineering introduction
Software engineering introduction
 
Coding
CodingCoding
Coding
 
Software Requirement Specification
Software Requirement SpecificationSoftware Requirement Specification
Software Requirement Specification
 
Issues in knowledge representation
Issues in knowledge representationIssues in knowledge representation
Issues in knowledge representation
 
The electronic payment systems
The electronic payment systemsThe electronic payment systems
The electronic payment systems
 
Memory management
Memory managementMemory management
Memory management
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Research report
Research reportResearch report
Research report
 
File management
File managementFile management
File management
 

Similar to Knowledge Representation in Artificial intelligence

Possible Word Representation
Possible Word RepresentationPossible Word Representation
Possible Word Representationchauhankapil
 
Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4DigiGurukul
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingToine Bogers
 
Thinking and Language
Thinking and LanguageThinking and Language
Thinking and Languagelorilynw
 
NLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.pptNLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.pptOlusolaTop
 
Representation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logicsRepresentation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logicschauhankapil
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxRuchitaMaaran
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Sabu Francis
 
$RGK1H9G.ppt
$RGK1H9G.ppt$RGK1H9G.ppt
$RGK1H9G.pptWepper1
 
intro.ppt
intro.pptintro.ppt
intro.pptth_oh
 
intro.ppt
intro.pptintro.ppt
intro.pptYipYop1
 

Similar to Knowledge Representation in Artificial intelligence (20)

Possible Word Representation
Possible Word RepresentationPossible Word Representation
Possible Word Representation
 
Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4
 
Artificial intelligence course work
Artificial intelligence  course workArtificial intelligence  course work
Artificial intelligence course work
 
NLP
NLPNLP
NLP
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Oop concept
Oop conceptOop concept
Oop concept
 
Thinking and Language
Thinking and LanguageThinking and Language
Thinking and Language
 
NLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.pptNLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.ppt
 
Representation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logicsRepresentation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logics
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
$RGK1H9G.ppt
$RGK1H9G.ppt$RGK1H9G.ppt
$RGK1H9G.ppt
 
ai.ppt
ai.pptai.ppt
ai.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 

More from Yasir Khan (20)

Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lec#1
Lec#1Lec#1
Lec#1
 
Ch10 (1)
Ch10 (1)Ch10 (1)
Ch10 (1)
 
Ch09
Ch09Ch09
Ch09
 
Ch05
Ch05Ch05
Ch05
 
Snooping protocols 3
Snooping protocols 3Snooping protocols 3
Snooping protocols 3
 
Snooping 2
Snooping 2Snooping 2
Snooping 2
 
Introduction 1
Introduction 1Introduction 1
Introduction 1
 
Hpc sys
Hpc sysHpc sys
Hpc sys
 
Hpc 6 7
Hpc 6 7Hpc 6 7
Hpc 6 7
 
Hpc 4 5
Hpc 4 5Hpc 4 5
Hpc 4 5
 
Hpc 3
Hpc 3Hpc 3
Hpc 3
 
Hpc 2
Hpc 2Hpc 2
Hpc 2
 
Hpc 1
Hpc 1Hpc 1
Hpc 1
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 
Dir based imp_5
Dir based imp_5Dir based imp_5
Dir based imp_5
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

Knowledge Representation in Artificial intelligence

  • 1. Artificial Intelligence 4. Knowledge Representation Akhtar Hussain
  • 2. Representation Representation Representation  Think about knowledge, rather than data in AI  Facts  Procedures  Meaning – Cannot have intelligence without knowledge  Always been very important in AI  Choosing the wrong representation – Could lead to a project failing  Still a lot of work done on representation issues
  • 3. Representations for Problem solving techniques  For certain problem solving techniques – The “best” representation has already been worked out – Often it is an obvious requirement of the technique – Or a requirement of the programming language (e.g., Prolog)  Examples: – First order theorem proving (first order logic) – Inductive logic programming (logic programs) – Neural networks learning (neural networks)  But what if you have a new project? – What kind of general representations schemes are there?
  • 4. Four General Representation Types  Logical Representations  Semantic Networks  Production Rules  Frames
  • 5. 4.1 Logical Representations What is a Logic?  Lay down some concrete communication rules – In order to give information to agents, and get info  Without errors in communication (or at least, fewer)  Think of a logic as a language – Many ways to translate from one language to another  Expressiveness – How much of natural language (e.g., English)  We are able to translate into the logical language  Not to be confused with logical reasoning – “Sherlock Holmes used pure logic to solve that…” – This is a process, not a language
  • 6. Syntax and Semantics of Logics  Syntax – How we can construct legal sentences in the logic – Which symbols we can use (English: letters, punctuation) – How we are allowed to write down those symbols  Semantics – How we interpret (read) sentences in the logic – i.e., what the meaning of a sentence is  Example: “All lecturers are six foot tall” – Perfectly valid sentence (syntax) – And we can understand the meaning (semantics) – This sentence happens to be false (there is a counterexample)
  • 7. Propositional Logic  Syntax – Propositions such as P meaning “it is wet” – Connectives: and, or, not, implies, equivalent – Brackets, T (true) and F (false)  Semantics – How to work out the truth of a sentence  Need to know how connectives affect truth  E.g., “P and Q” is true if and only if P is true and Q is true  “P implies Q” is true if P and Q are true or if P is false – Can draw up truth tables to work out the truth of statements
  • 9. First Order Predicate Logic  More expressive logic than propositional – And one we will use a lot in this course  Later lecture all about first order predicate logic  Syntax allows – Constants, variables, predicates, functions and quantifiers  So, we say something is true for all objects (universal) – Or something is true for at least one object (existential)  Semantics – Working out the truth of statement  This can be done using rules of deduction
  • 10. Example Sentence  In English: – “Every Monday and Wednesday I go to John’s house for dinner”  In first order predicate logic: X ((day_of_week(X, monday) day_of_week(X, weds)) (go_to(me, house_of(john)  Note the change from “and” to “or” – Translating is problematic eat(me, dinner))).
  • 11. Higher Order Predicate Logic  More expressive than first order predicate logic  Allows quantification over functions and predicates, as well as objects  For example – We can say that all our polynomials have a zero at 17: f (f(17)=0). Working at the meta-level – Important to AI, but not often used
  • 12. Other Logics  Fuzzy logic – Use probabilities, rather than truth values  Multi-valued logics – Assertions other than true and false allowed E.g., “unknown”  Modal logics – Include beliefs about the world  Temporal logics – Incorporate considerations of time
  • 13. Why Logic is a Good Representation  Some of many reasons are: – It’s fairly easy to do the translation when possible – There are whole tracts of mathematics devoted to it – It enables us to do logical reasoning – Programming languages have grown out of logics Prolog uses logic programs (a subset of predicate logic)
  • 14. Semantic Networks  Logic is not the only fruit  Humans draw diagrams all the time, e.g., – E.g. causal relationships: – And relationships between ideas:
  • 15. Graphical Representations  Graphs are very easy to store inside a computer  For information to be of any use – We must impose a formalism on the graphs – Jason is 15, Bryan is 40, Arthur is 70, Jim is 74 – How old is Julia?
  • 16. Better Graphical Representation  Because the formalism is the same – We can guess that Julia’s age is similar to Bryan’s  Limited the syntax to impose formalism
  • 17. Semantic Network Formalisms  Used a lot for natural language understanding – Represent two sentences by graphs Sentences with same meaning have exactly same graphs  Conceptual Dependency Theory – Roger Schank’s brainchild – Concepts are nodes, relationships are edges – Narrow down labels for edges to a very few possibilities – Problem: Not clear whether reduction to graphs can be automated for all sentences in a natural language
  • 18. Conceptual Graphs  John Sowa  Each graph represents a single proposition  Concept nodes can be: – Concrete (visualisable) such as restaurant, my dog spot – Abstract (not easily visualisable) such as anger  Edges do not have labels – Instead, we introduce conceptual relation nodes  Many other considerations in the formalism – See Russell and Norvig for details
  • 19. Example Conceptual Graph  Advantage: – Single relationship between multiple concepts is easily representable
  • 20. Production Rule Representations  Consists of <condition,action> pairs  Agent checks if a condition holds – If so, the production rule “fires” and the action is carried out – This is a recognize-act cycle  Given a new situation (state) – Multiple production rules will fire at once – Call this the conflict set – Agent must choose from this set  Call this conflict resolution  Production system is any agent – Which performs using recognize-act cycles
  • 21. Example Production Rule  As reported in Doug Lenat’s PhD thesis 102. After creating a new generalization G of Concept C – Consider looking for non-examples of G  This was paraphrased – In general, we have to be more concrete About exactly when to fire and what to do
  • 22. Frame Representations  Information retrieval when facing a new situation – The information is stored in frames with slots – Some of the slots trigger actions, causing new situations  Frames are templates – Which are to be filled-in in a situation – Filling them in causes an agent to Undertake actions and retrieve other frames  Frames are extensions of record datatype in databases – Also very similar to objects in OOP
  • 23. Flexibility in Frames  Slots in a frame can contain – Information for choosing a frame in a situation – Relationships between this and other frames – Procedures to carry out after various slots filled – Default information to use where input is missing – Blank slots - left blank unless required for a task – Other frames, which gives a hierarchy

Editor's Notes

  1. We examine below four examples of meta-level knowledge, and review for each (/) the general idea; (//&amp;apos;) a specific instance, detailing the information it contains; (iii) an example of how that information is used to support knowledge base construction, maintenance, or use; and (/V) the other capabilities it makes possible. Figure 3 summarizes the type of information contained in each of the four examples. KNOWLEDGE ABOUT IS ENCODED IN *************** ************* representation of objects schemata representation of functions function templates inference rules rule models reasoning strategies meta-rules