28
Knowledge Representation and Reasoning Peter Lucas 1 and Martijn van Otterlo 2 [email protected],[email protected] 1 Institute for Computing and Information Sciences, and 2 Cognitive Artificial Intelligence (CAI), Radboud University Nijmegen Knowledge Representationand Reasoning – p. 1/28

Knowledge Representation and Reasoning · 2012. 9. 9. · Knowledge Representation and Reasoning Peter Lucas1 and Martijn van Otterlo2 [email protected],[email protected] 1Institute

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

  • Knowledge Representationand Reasoning

    Peter Lucas1 and Martijn van Otterlo2

    [email protected],[email protected]

    1Institute for Computing and Information Sciences, and2Cognitive Artificial Intelligence (CAI), Radboud University Nijmegen

    Knowledge Representationand Reasoning– p. 1/28

  • People involvedLectures:

    Peter Lucas

    Martijn van Otterlo

    Arjen Hommersom

    Practicals and tutorials:

    Wenyun Quan ([email protected])

    Maarten van der Heijden([email protected])

    Martijn van Otterlo([email protected])

    Arjen Hommersom ([email protected])

    Start practical:See blackboard/websiteKnowledge Representationand Reasoning– p. 2/28

  • Course outlineWebsite:http://www.cs.ru.nl/∼peterl/teaching/KeR

    (1) Lectures:

    Theory of knowledge representation andreasoning; core of this formed by:

    AI-style logics and probability theoryNowadays you can even combine logic andprobability theory

    (2) Tutorials:do exercises

    (3) Practical:

    Learn some programming in Prolog (the AI logicprogramming language)

    Develop reasoning systems in AIlogKnowledge Representationand Reasoning– p. 3/28

  • TopicsRefresh your memory on formal logic

    this week: read “Logic and Resolution”(available on blackboard and website) –nolectures on 13th September!17th September:revision lecture on logic20th September:no lecture!

    Week 24th September: programming in Prologand AILog

    Knowledge representation formalisms

    Model-based reasoning

    Reasoning with uncertainty and probabilisticlogic

    ApplicationsKnowledge Representationand Reasoning– p. 4/28

  • Learning aims of the courseObtain insight into thedevelopmentofknowledge systems, the use of problem solvingmethods, forms of knowledge representation, andmodel-based reasoning

    Gain knowledge aboutlogical expressivenessofforms of knowledge representation and the use ofprobability theory in reasoning with uncertainty

    Being able to develop reasoning programs usingPrologandAILog

    Being able to understandcore AI researchasreflected in ECAI, IJCAI, AAAI

    Knowledge Representationand Reasoning– p. 5/28

  • Reading and study materialSlidesandexercises

    Summarising lecture notes

    Practical manual

    Some material can be found in:S. Russell and P. Norvig,Artificial Intelligence:A Modern Approach, 2003 or 2009:

    Part III Knowledge and Reasoning8 First-Order Logic9 Inference in First-Order Logic

    10 Knowledge RepresentationPart V Uncertain Knowledge and Reasoning

    13 Uncertainty14 Probabilistic Reasoning

    Knowledge Representationand Reasoning– p. 6/28

  • Further readingR.J. Brachman and H.J. Levesque,Rea-dings in Knowledge Representation, MorganKaufmann, San Mateo, CA, 1985

    good collection of early KR papers

    F. van Harmelen, V. Lifschitz, and B. Po-ter, Handbook of Knowledge Representati-on, Elsevier, Amsterdam, 2008

    state of the art handbook on KR

    D. Poole, Artificial Intelligence: Founda-tions of Computational Agents, CambridgeUniversity Press, 2010

    nicesystematic and coherentapproach to AI usinglogical and probabilistic reasoning (freely accessible)

    Knowledge Representationand Reasoning– p. 7/28

  • Knowledge systems

    Knowledge system:a system that is able to solve problems (diagnosis, trouble shooting, control a

    a robot, planning of a task) using knowledge of the domain and given goals

    representationknowledge reasoning

    modellingformal and

    natural language

    psychologymachinelearningknowledgeengineering

    Knowledge Representationand Reasoning– p. 8/28

  • Early knowledge systemsExpert system: use of alarge collection ofsymbolicexpertknowledge to solve problems:

    E.A. Feigenbaum, B.G. Buchanan, J.Lederberg –Heuristic DENDRAL(1965):contains knowledge from organic chemistry

    E.H. Shortliffe:MYCIN (1974–1979) –diagnostics of infectious diseases

    H.E. Pople, J.D. Myers:Internist-1(1973-1982) – diagnosis in the big area ofinternal medicine

    D. Lenat:Cyc (1984-) – representation ofcommon sense knowledge

    Knowledge Representationand Reasoning– p. 9/28

  • Modern knowledge systemsUse of more sophisticated logical methods:

    abductive reasoning(cause-effect reasoningand explaining observations), e.g., used inabductive diagnosisuse offunctional models of behaviour, e.g., inconsistency-based diagnosis

    Use of probabilistic and decision-theoreticmethods:

    Bayesian networks(to reason with uncertainknowledge)augmented by decision theory (to allowmaking decision about appropriate actions)Probabilistic logics

    Knowledge Representationand Reasoning– p. 10/28

  • Knowledge: Implicit versus explicitTwo hypotheses:

    (1) Human reasoning is hard to cap-ture, and, thus, intricateimpli-cit methods, such as neural net-works, capture human reasoningbest

    (2) Human reasoning can be captured, althoughpossibly incompletely. However,explicitrepresentation is necessary for getting a grip onthat knowledge (e.g., to be able toexplainrecommendations)

    Choice:explicit knowledge

    Knowledge Representationand Reasoning– p. 11/28

  • Knowledge representationhypothesisBrian Smith (1982):

    Any mechanically embodied intelligent process willbe comprised ofstructural ingredientsthat

    (a) we as external observers naturally take torepresent a propositionalaccount of theknowledgethat the overall process exhibits

    (b) independent of such external semanticalattribution, play a formal but causal and essentialrole inengendering the behaviourthat manifeststhat knowledge

    Knowledge Representationand Reasoning– p. 12/28

  • Knowledge representationhypothesis

    Forall x (Fish(x) and InAquarium(x) and ...

    Observers

    The observers will be able to build a knowledge theory

    based on what they observe

    The agent is driven in his behaviour by knowledge

    (although possibly different from that of the observers)Knowledge Representationand Reasoning– p. 13/28

  • Formal knowledge representationLogic was originally developed as a language formathematicalreasoning

    Goal of knowledge representation different:representsemanticcontent of psychologicallyplausible memory models

    Needfor semantics shared by most researchers inknowledge representation

    In time logic has become thedominantlanguageas probability theory for uncertainty reasoning

    Knowledge Representationand Reasoning– p. 14/28

  • Natural kindsMathematical definitions:exact and complete.Exampletriangle: shape defined by three pointsthat are not on a straight line and that areconnected by lines

    Natural kinds:objects in the real word.‘Definitions’ of objects are often approximate andincomplete

    Example:∀x(Human(x) → Animal(x))∀x(Human(x) → (walks(x) = upright∧ · · · ∧ · · ·))

    Knowledge Representationand Reasoning– p. 15/28

  • Role of representation systemTo managebeliefsexpressed in the language

    More than just implementation of a (logical,probabilistic) calculus

    The symbolic representation cause the system tobehave in a particular fashion

    Thus,

    Any language with sufficient expressivepower can be used

    Knowledge Representationand Reasoning– p. 16/28

  • Language requirementsLevesque & Brachman (A fundamental tradeoff inknowledge representation and reasoning)

    Emphasis on:

    Whatis represented≡ content⇒ knowledgelevel (rather thansymbol level)

    Statements must be interpreted in relationship toother statements (otherwiseno knowledge)

    This implies: language should have atruth theory

    Not a single language, butspectrumof languages(from simple, computationally tractable, tocomplex, computationally intractable)

    Knowledge Representationand Reasoning– p. 17/28

  • Truth theoryKnowledge baseKB: what we know about theworld

    Question: is the truth of statementϕ implied byKB (noteϕ need not beincludedin KB)

    Notation:KB � ϕ

    In the form ofinference= reasoning:

    KB ⊢ ϕ

    or,⊢ KB → ϕ

    (KB → ϕ is atheorem) if we use logic, but manylogics and other languages are still possible

    Knowledge Representationand Reasoning– p. 18/28

  • Logics for knowledge representationFirst-order logic:

    satisfiability:undecidablewhen it is known that KB is unsatisfiable, thenKB � ⊥ is decidable

    (Finite) propositional logic:decidable, butNP completepropositional Horn logic: model checking inpolynomial time

    Horn formula:(A1 ∧ · · · ∧ An) → B, with AiandB positiveliterals

    ⇒ tradeoffbetween expressive power andcomputational complexity

    Knowledge Representationand Reasoning– p. 19/28

  • PrologLogical (programming) language with somerestrictions, but based on first-order predicatelogic

    One of the typical AI programming languages(other Lisp)

    Close relationship with knowledge representationand reasoning:AILog

    in_mind([h,o,l,i,d,a,y]).

    start :- write(’Guess first letter’), read(X),

    in_mind([X|T]), write(’OK. ’), guess(T).

    guess([]) :- write(’The word is ’),

    in_mind(W), write(W),!.

    guess(L) :- repeat, write(’Next letter’), read(X),

    ((L=[X|T1], write(’OK. ’), guess(T1));

    (write(’Fail. Try again!’), guess(L))).Knowledge Representationand Reasoning– p. 20/28

  • Model-based reasoninginternalmeatus

    facial canal

    IV: herpes meatus

    V: deafness

    III: hyperacusis

    II: taste

    I: drooping mouth angle

    level

    n. stapedius

    Explicit representation of structure and functionof systems (= model)

    Reasoning with this model to solve problems(e.g. diagnosis)

    Knowledge Representationand Reasoning– p. 21/28

  • Reasoning with uncertaintyEarly: uncertainty attached to rule-basedreasoning (ako uncertain reasoning with logicalimplications)

    1990s: introduction of Bayesian/belief networks(causal networks with attached probabilitydistributions)

    1990s: extension to decision networks/influencediagrams (decision making under uncertainty)

    Recent: probabilistic logics (logic and probabilitytheory integrated in an AI fashion)

    Thus, after 30 years back to the early problem, whichis now well understood

    Knowledge Representationand Reasoning– p. 22/28

  • Pacemaker programming

    reprogrammed settings

    display histograms, counters, holters

    display patient informationshow settings

    provide treatment advice

    diagnostics

    settings

    tests

    change settings, perform tests

    enter patient data

    Knowledge Representationand Reasoning– p. 23/28

  • Causal pacemaker model

    arrhythmiaP amplitude low

    atr. connector failureatr. undersensing

    EMIatr. lead break

    atr. sensitivity < 1 mV

    atr. sensing polarity unipolar

    retrograde conduction

    P wave measurement shows a amplitude close to the prog. settingsfirst bin of P hist is highECG shows a lot of arrhythmia

    atr. threshold test shows a threshold higher than settings of amplitude and duration

    VA interval test shows a lot of events between 200 and 500 ms.AV hist has a lot of events between 200 and 500 ms.

    atr. oversensing

    VA crosstalk

    atr. blanking < 50 ms

    ECG looks like asynchronous DOO pacing

    atr. sensing polarity unipolaratr. sensitivity < 1 mV

    atr. blanking < 100 ms

    far field R wave sensing

    atr. rate hist contains 2 topsatr. path. rate counters > 5%

    AV synchrony counter < 95%P hist is scatteredpalpitations

    skeletal myopotential test shows skeletal myopotential

    skeletal myopotential

    atr. sensitivity < 1 mV

    atr. sensing polarity unipolar

    loss of atr. capture

    atr. sensitivity < 0.5 mV

    ECG shows loss of capture

    high atr. stimulation threshold

    atr. lead dislocation

    atr. pacing polarity bipolaratr. sensing polarity bipolar

    atr. threshold test shows no caption even at highest atr. output

    P hist is empty

    ECG shows 2:1 tracking

    X-ray test shows a connector failure

    X-ray test shows a kink in the leadatr. lead impendance is not between 200 and 3000

    VA hist interval test shows a lot of events < 200 msAV hist has lot of events < 200 ms

    ECG shows atr. senses within 200 ms after V event without atr. activity

    AV hist has lot of events < 100 msV output test shows atr. senses immediately after V pace

    VA interval test shows a lot of events < 100 ms

    P wave measurement shows a small amplitude

    X-ray test shows a dislocation

    pacemaker syndrome

    ECG shows atr. asynchronous pacing

    Knowledge Representationand Reasoning– p. 24/28

  • Smart production printersproject with Océ and Embedded Systems Institute

    model-based reasoning about behaviour ofprinters/copiers

    interpretation of sensor information

    adaptation to changing environment

    Knowledge Representationand Reasoning– p. 25/28

  • Adaptive controlAvoid that paper temperature becomes lower than66◦C with 99% certainty:

    Knowledge Representationand Reasoning– p. 26/28

  • MartijnConnection to recent AI research

    Knowledge Representationand Reasoning– p. 27/28

  • ConclusionsKnowledge representation and reasoning definesthe very core of AI

    Logic, probability theory and decision theoryform its theoretical foundations

    The basis for building intelligent agents andapplications

    Concepts form the basis of modern theories onhumanknowledge representation and reasoningand their complexity

    Knowledge Representationand Reasoning– p. 28/28

    People involvedCourse outlineTopicsLearning aims of the courseReading and study materialFurther readingKnowledge systemsEarly knowledge systemsModern knowledge systemsmbox {Knowledge: Implicit versus explicit}put [lb](0.2,-0.6){parbox{10cm}{Knowledge representation \ hypothesis}}put [lb](0.2,-0.6){parbox{10cm}{Knowledge representation \ hypothesis}}mbox {Formal knowledge representation}Natural kindsRole of representation systemLanguage requirementsTruth theorymbox {Logics for knowledge representation}PrologModel-based reasoningReasoning with uncertaintyPacemaker programmingCausal pacemaker modelSmart production printersAdaptive controlMartijnConclusions