Ch8-Expert-System-Department-of-Computer-Science8专家系统-计算机科学系课件_第1页
Ch8-Expert-System-Department-of-Computer-Science8专家系统-计算机科学系课件_第2页
Ch8-Expert-System-Department-of-Computer-Science8专家系统-计算机科学系课件_第3页
Ch8-Expert-System-Department-of-Computer-Science8专家系统-计算机科学系课件_第4页
Ch8-Expert-System-Department-of-Computer-Science8专家系统-计算机科学系课件_第5页
已阅读5页,还剩113页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Ch8ExpertSystemDr.BernardChenPh.D.UniversityofCentralArkansasSpring2019Ch8ExpertSystem1OutlineExpertSystemintroductionRule-BasedExpertSystemGoalDrivenApproachDataDrivenApproachModel-BasedExpertSystemOutlineExpertSystemintroduc2ExpertSystemIntroductionHumanexpertsareabletoperformatasuccessfullevelbecausetheyknowalotabouttheirareasofexpertiseAnExpertSystemuseknowledgespecifictoaproblemdomaintoprovide“expertquality”performanceinthatapplicationareaAswithskilledhumans,expertsystemstendtobespecialists,focusingonanarrowsetofproblemsExpertSystemIntroductionHum3ExpertSystemIntroductionBecauseoftheirheuristic,knowledgeintensivenature,expertsystemsgenerally:SupportinspectionoftheirreasoningprocessesAlloweasymodificationinaddinganddeletingskillsfromknowledgebaseReasonheuristically,usingknowledgetogetusefulsolutionsExpertSystemIntroductionBeca4ExpertSystemIntroductionExpertsystemsarebuilttosolveawiderangeofproblemsindomainsuchasmedicine,math,engineering,chemistry,geology,computerscience,business,low,defenseandeducationTheseprogramsaddressavarietyofproblems,thefollowinglistisasummaryofgeneralexpertsystemproblemcategories:ExpertSystemIntroductionExpe5ExpertSystemIntroductionInterpretation---forminghigh-levelconclusionsfromcollectionsofrawdataPrediction---projectingprobableconsequencesofgivensituationsDiagnosis---determiningthecauseofmalfunctionsbasedonobservablesymptomsExpertSystemIntroductionInte6ExpertSystemIntroductionDesign---findingaconfigurationofsystemcomponentsthatmeetsperformancegoalswhilesatisfyingasetofdesignconstrainsPlanning---devisingasequenceofactionsthatwillachieveasetofgoalsgivenstartingconditionsandruntimeconstrainsExpertSystemIntroductionDesi7TheDesignofRule-BasedExpertSystemarchitectureofatypicalexpertsystemforaparticularproblemdomain.TheDesignofRule-BasedExper8TheDesignofRule-BasedExpertSystemThehearoftheexpertsystemistheknowledgebase,whichcontainstheknowledgeofaparticularapplicationdomainInarule-basedexpertsystem,thisknowledgeismostoftenrepresentedintheformofif…then…Inthefigure,theknowledgebasecontainsbothgeneralandcase-specificinformationTheDesignofRule-BasedExper9TheDesignofRule-BasedExpertSystemTheinferenceengineappliestheknowledgetothesolutionofactualproblemsItisimportanttomaintainthisseparationoftheknowledgeandinferenceenginebecause:MakesitpossibletorepresentknowledgeinamorenaturalfashionExpertsystembuildercanfocusoncapturingandorganizingproblem-solvingknowledgethanthedetailsofcodeimplementationAllowchangetobemadeeasilyAllowsthesamecontrolandinterfacesoftwaretobeusedindifferentsystemsTheDesignofRule-BasedExper10SelectingaproblemExpertSysteminvolveaconsiderableinvestmentofmoneyandhumaneffortResearchershavedevelopedguidelinestodeterminewhetheraproblemisappropriateforexpertsystemsolution:TheneedforthesolutionjustifiesthecostandeffortsofbuildinganexpertsystemHumanexpertiseisnotavailableinallsituationwhereitisneededSelectingaproblemExpertSyst11SelectingaproblemTheproblemdomainiswellstructuredanddoesnotrequirecommonsensereasoningTheproblemmaynotbesolvedusingtraditionalcomputingmethodsCooperativeandarticulateexpertsexistTheproblemispropersizeandscopeSelectingaproblemTheproblem12NASAExampleNASAhassupporteditspresenceinspacebydevelopingafleetofintelligentspaceprobesthatautonomouslyexplorethesolarsystemToachievesuccessthroughyearsintheharshconditionsofspacetravel,acraftneedstobeabletoradicallyreconfigureitscontrolregimeinresponsetofailuresandthenplanaroundthesefailuresduringitremainingflightNASAExampleNASAhassupported13NASAExampleFinally,NASAexpectsthatthesetofpotentialfailurescenariosandpossibleresponseswillbemuchtoolargetousesoftwarethatsupportspreflightenumerationofallcontingenciesLivingstoneisanimplementedkernelforamodel-basedreactiveself-configuringautonomoussystemNASAExampleFinally,NASAexpe14NASAExampleAlong-heldvisionofmodel-basedreasoninghasbeentouseasinglecentralizedmodeltosupportavarietyofengineeringtasksThetasksincludekeeping-trackofdevelopingplansConfirminghardwaremodesReconfiguringhardwareDetectinganomaliesDiagnosisFaultrecoveryNASAExampleAlong-heldvision15NASAExampleNASAExample16NASAExampleItconsistofaheliumtankRegulatorsPropellanttanksApairofmainengineLatchvalvesPyrovalvesNASAExampleItconsistof17NASAExampleTheheliumtankpressurizesthetwopropellanttanks,withtheregulatorsactingtoreducethehighheliumpressureWhenpropellantpathtoamainengineareopen,thepressurizedtankforcesfuelandoxidizerintothemainenginetoproducethrustThepyrovalveistoisolatepartsofthemainenginesubsystemuntiltheyareneeded,ortopermanentlyisolatefailedcomponentsThelatchvalvearecontrolledusingvalvedriversandtheaccelerometerNASAExampleTheheliumtankpr18NASAExampleThrustcanbeprovidedbyeitherofthemainenginesandthereareanumberofwaysofopeningpropellantpathstoeithermainengineNASAExampleThrustcanbeprov19NASAExampleSupposethemainenginesubsystemhasbeenconfiguredtoprovidethrustfromtheleftenginebyopeningthelatchvalvesleadingtoitAndsupposethisenginefails(overheating),sothatisfailstoprovidetherequiredthrustToensurethatthedesirethrustisprovided,thespacecraftmustbetransitionedtoanewconfigurationinwhichthrustisnowprovidedbythemainengineontherightsideNASAExampleSupposethemaine20SelectingaproblemTheprimarypeopleinvolvedinbuildinganexpertsystemaretheknowledgeengineer,domainexpert,andenduserThedomainexpertisprimarilyresponsibleforspellingoutskillstoknowledgeengineerItisoftenusefulforknowledgeengineertobeanoviceintheproblemdomainSelectingaproblemTheprimary21Exploratorydevelopmentcycle

Exploratorydevelopmentcycle22ExploratorydevelopmentcycleItisalsounderstoodthattheprototypemaybethrownawayifitbecomestocumbersomeorifthedesignersdecidetochangetheirbasicapproachtotheproblemAnothermajorfeatureofexpertsystemisthattheprogramneedneverbeconsidered“finished”ExploratorydevelopmentcycleI23OutlineExpertSystemintroductionRule-BasedExpertSystemGoalDrivenApproachDataDrivenApproachModel-BasedExpertSystemOutlineExpertSystemintroduc24StrategiesforstatespacesearchIndatadrivensearch,alsocalledforwardchaining,theproblemsolverbeginswiththegivenfactsoftheproblemandsetoflegalmovesforchangingstateThisprocesscontinuesuntil(wehope!!)itgeneratesapaththatsatisfiesthegoalconditionStrategiesforstatespacesea25“tic-tac-toe”

statespacegraph

“tic-tac-toe”statespacegrap26StrategiesforstatespacesearchAnalternativeapproach(GoalDriven)isstartwiththegoalthatwewanttosolveSeewhatrulescangeneratethisgoalanddeterminewhatconditionsmustbetruetousethemTheseconditionsbecomethenewgoalsWorkingbackwardthroughsuccessivesubgoalsuntil(wehopeagain!)itworkbacktoStrategiesforstatespacesea27Rule-BasedExpertSystemRulebasedexpertsystemrepresentproblem-solvingknowledgeasif…then…ItisoneoftheoldesttechniquesforrepresentingdomainknowledgeinanexpertsystemItisalsooneofthemostnaturalandwidelyusedinpracticalandexperimentalexpertsystemRule-BasedExpertSystemRuleb28Rule-BasedExpertSystemInagoal-drivenexpertsystem,thegoalexpressionisinitiallyplacedinworkingmemoryThesystemmatchesruleconclusionswiththegoal,selectingoneruleandplacingitspremisesintheworkingmemoryThiscorrespondstoadecompositionoftheproblems’goalintosimplersubgoalsTheprocesscontinuesinthenextiterationoftheproductionsystem,withthesepremisesbecomingthenewgoalstomatchRule-BasedExpertSystemInag29AunrealExpertSystemExample

Rule1: if theengineisgettinggas,and theenginewillturnover, then theproblemissparkplugs.Rule2: if theenginedoesnotturnover,and thelightsdonotcomeon then theproblemisbatteryorcables.Rule3: if theenginedoesnotturnover,and thelightsdocomeon then theproblemisthestartermotor.Rule4: if thereisgasinthefueltank,and thereisgasinthecarburetor then theengineisgettinggas.AunrealExpertSystemExample30Theproductionsystematthestartofaconsultationinthecar diagnosticexample.

Theproductionsystematthes31Theproductionsystematthestartofaconsultationinthecar diagnosticexample.Threerulesmatchwiththisexpressioninworkingmemory:rule1,2,and3Ifweresolveconflictsinfavorofthelowest-numberedrule,thenrule1willfireThiscauseXtobeboundtothevaluesparkplugsandthepremisesofrule1tobeplacedintheworkingmemoryTheproductionsystematthes32TheproductionsystemafterRule1hasfired.

TheproductionsystemafterRu33TheproductionsystemafterRule1hasfired.Notethattherearetwopremisestorule1,bothofwhichmustbesatisfiedtoprovetheconclusiontrueSonowweneedtofindoutwhetherTheengineisgettinggas,andTheenginewillturnoverWemaythenfirerule4forwhether“Theengineisgettinggas”TheproductionsystemafterRu34ThesystemafterRule4hasfired.Notethestack-basedapproachtogoalreduction.

ThesystemafterRule4hasfi35Theand/orgraphsearchedinthe

cardiagnosisexample,withtheconclusionofRule4matchingthefirstpremiseofRule1.

Theand/orgraphsearchedint36ExplanationandTransparencyinGoal-DrivenReasoningThefollowingdialoguebeginswiththecomputeraskingtheuseraboutthegoalspresentintheworkingmemory:Gasinfueltank?YESGasincarburetor?YESEnginewillturnover?WHYExplanationandTransparencyi37ExplanationandTransparencyinGoal-DrivenReasoningIngeneral,thetwoquestionsansweredbyrule-basedexpertsystemareWHY?andHOW?WHYmeans“whydidyouaskforthatinformation”TheansweristhecurrentrulethattheproductionsystemisattemptingtofireHOWmeans“Howdidyougettheresult”TheansweristhesequenceofrulesthatwereusedtoconcludeagoalExplanationandTransparencyi38ExplanationandTransparencyinGoal-DrivenReasoningThefollowingdialoguebeginswiththecomputeraskingtheuseraboutthegoalspresentintheworkingmemory:Gasinfueltank?YESGasincarburetor?YESEnginewillturnover?WHYIthasbeenestablishedthat:1.Theengineisgettinggas,2.Theenginewillturnover,(weneedtoknow)Sothatwecanmaketheconclusionthat“Thentheproblemisthesparkplugs.”

ExplanationandTransparencyi39ExplanationandTransparencyinGoal-DrivenReasoningGasinfueltank?YesGasincarburetor?YesEnginewillturnover?Why

Ithasbeenestablishedthat:1.Theengineisgettinggas,2.Theenginewillturnover,Thentheproblemisthesparkplugs.

Howtheengineisgettinggas

Thisfollowsfromrule4:ifgasinfueltank,andgasincarburetorthenengineisgettinggas.gasinfueltankwasgivenbytheusergasincarburetorwasgivenbytheuserExplanationandTransparencyi40OutlineExpertSystemintroductionRule-BasedExpertSystemGoalDrivenApproachDataDrivenApproachModel-BasedExpertSystemOutlineExpertSystemintroduc41Data-DrivenReasoningThepreviousexampleexhibitsgoal-drivensearch.Thesearchwasalsodepth-firstsearchBreadth-firstsearchismorecommoninDataDrivenreasoningThealgorithmforthiscategoryissimple:comparethecontentsofworkingmemorywiththeconditionsofeachruleintherulebaseaccordingtotheorderoftherulesData-DrivenReasoningTheprevi42Data-DrivenReasoningIfapieceofinformationthatmakesupthepremiseofaruleisnottheconclusionofsomeotherrule,thenthatfactwillbedeemed“askable”Forexample:theengineisgettinggasisnotaskableinthepremiseofrule1Data-DrivenReasoningIfapiec43AunrealExpertSystemExample

Rule1: if

(notaskable)theengineisgettinggas,and theenginewillturnover, then theproblemissparkplugs.Rule2: if theenginedoesnotturnover,and thelightsdonotcomeon then theproblemisbatteryorcables.Rule3: if theenginedoesnotturnover,and thelightsdocomeon then theproblemisthestartermotor.Rule4: if thereisgasinthefueltank,and thereisgasinthecarburetor then theengineisgettinggas.AunrealExpertSystemExample44Data-DrivenReasoningData-DrivenReasoning45Data-DrivenReasoningThepremise,theengineisgettinggasisNOTaskable,sorule1failsandcontinuetorule2TheenginedoesnotturnoverisaskableSupposetheanswertothisqueryisfalse,so“theenginewillturnover”isplacedinworkingmemoryData-DrivenReasoningThepremi46TheproductionsystemafterevaluatingthefirstpremiseofRule2,whichthenfails.

Theproductionsystemafterev47TheproductionsystemafterevaluatingthefirstpremiseofRule2,whichthenfails.Rule2fails,sincethefirstoftwoANDpremisesisfalse,wemovetorule3Whererule3alsofailsSofinally,wemovetorule4Theproductionsystemafterev48Thedata-drivenproductionsystemafterconsideringRule4,beginningitssecondpassthroughtherules.

Thedata-drivenproductionsys49Thedata-drivenproductionsystemafterconsideringRule4,beginningitssecondpassthroughtherules.Atthispoint,alltheruleshavebeenconsideredWiththenewcontentsofworkingmemory,weconsidertherulesinorderforthesecondroundThedata-drivenproductionsys50OutlineExpertSystemintroductionRule-BasedExpertSystemGoalDrivenApproachDataDrivenApproachModel-BasedExpertSystemOutlineExpertSystemintroduc51Model-BasedExpertSystemHumanexpertiseisanextremelycomplexcombinationof:TheoreticalknowledgeExperiencedbasedproblemsolvingheuristicsExampleofpastproblemsandtheirsolutionsInterpretiveskillsThroughyearsofexperience,humanexpertdevelopverypowerfulrulesfordealingwithcommonlyencounteredsituationsTheserulesareoftenhighly“complied”Model-BasedExpertSystemHuman52Model-BasedExpertSystemInarule-basedexpertsystemexampleforsemiconductorfailureanalysis,adescriptiveapproachmightbaseon:Discolorationofcomponents(burned-out)HistoryoffaultsinsimilardevicesObservationofcomponentbyelectronmicroscopeHowever,approachesthatuserulestolinkobservationsanddiagnosisdonotofferthebenefitsofadeeperanalysisofdevice’sstructureandfunctionModel-BasedExpertSystemIna53Model-BasedExpertSystemAmorerobust,deeplyexplanatoryapproachwouldbeginwithadetailedmodelofthephysicalstructureofthecircuitandequationsdescribingtheexpectedbehaviorofeachcomponentandtheirinteractions.AknowledgebasedreasonerwhoseanalysisisfoundeddirectlyonthespecificationandfunctionalityofaphysicalsystemiscalledaMODEL-BASEDSystemModel-BasedExpertSystemAmor54Model-BasedExpertSystemThemodelbasedsystemtellsitsuserwhattoexpect,andwhenobservationsdifferfromtheseexpectations,itwillleadtoidentificationoffaultsQualitativemodel-basedreasoningincludes:AdescriptionofeachcomponentinthedeviceAdescriptionofthedevices’internalstructureObservationofthedevices’actualperformanceModel-BasedExpertSystemThem55Model-BasedExpertSystemExampleTheexpectedoutputvaluearegivenin()andtheactualoutputsin[]Model-BasedExpertSystemExam56Model-BasedExpertSystemExampleAtF,wehaveaconflictWecheckthedependenciesatthispointanddeterminedADD1,MULT1andMULT2areinvolvedOneofthesethreedevicesmusthaveafault,sowehavethreehypothesestoconsider:EithertheadderbehaviorisbadoroneofitstwoinputswasincorrectModel-BasedExpertSystemExam57Model-BasedExpertSystemExampleAssumingADD1andoneofitsinputXiscorrect(6)AnotherinputYmustbe(4)Continuethisreasoning,YcannotbeMULT2sinceGiscorrectWeareleftwiththehypothesesthatthefaultliesineitherMULT1orADD1Model-BasedExpertSystemExam58Model-BasedExpertSystemExampleFinally,weshouldnotethatintheexample,therewasassumedtobeasinglefaultydevice.TheworldisnotalwaysthisperfectManyotherpossibleproblemsmayoccur:WireisbrokenFaultyconnectiontothemultiplierModel-BasedExpertSystemExam59Ch8ExpertSystemDr.BernardChenPh.D.UniversityofCentralArkansasSpring2019Ch8ExpertSystem60OutlineExpertSystemintroductionRule-BasedExpertSystemGoalDrivenApproachDataDrivenApproachModel-BasedExpertSystemOutlineExpertSystemintroduc61ExpertSystemIntroductionHumanexpertsareabletoperformatasuccessfullevelbecausetheyknowalotabouttheirareasofexpertiseAnExpertSystemuseknowledgespecifictoaproblemdomaintoprovide“expertquality”performanceinthatapplicationareaAswithskilledhumans,expertsystemstendtobespecialists,focusingonanarrowsetofproblemsExpertSystemIntroductionHum62ExpertSystemIntroductionBecauseoftheirheuristic,knowledgeintensivenature,expertsystemsgenerally:SupportinspectionoftheirreasoningprocessesAlloweasymodificationinaddinganddeletingskillsfromknowledgebaseReasonheuristically,usingknowledgetogetusefulsolutionsExpertSystemIntroductionBeca63ExpertSystemIntroductionExpertsystemsarebuilttosolveawiderangeofproblemsindomainsuchasmedicine,math,engineering,chemistry,geology,computerscience,business,low,defenseandeducationTheseprogramsaddressavarietyofproblems,thefollowinglistisasummaryofgeneralexpertsystemproblemcategories:ExpertSystemIntroductionExpe64ExpertSystemIntroductionInterpretation---forminghigh-levelconclusionsfromcollectionsofrawdataPrediction---projectingprobableconsequencesofgivensituationsDiagnosis---determiningthecauseofmalfunctionsbasedonobservablesymptomsExpertSystemIntroductionInte65ExpertSystemIntroductionDesign---findingaconfigurationofsystemcomponentsthatmeetsperformancegoalswhilesatisfyingasetofdesignconstrainsPlanning---devisingasequenceofactionsthatwillachieveasetofgoalsgivenstartingconditionsandruntimeconstrainsExpertSystemIntroductionDesi66TheDesignofRule-BasedExpertSystemarchitectureofatypicalexpertsystemforaparticularproblemdomain.TheDesignofRule-BasedExper67TheDesignofRule-BasedExpertSystemThehearoftheexpertsystemistheknowledgebase,whichcontainstheknowledgeofaparticularapplicationdomainInarule-basedexpertsystem,thisknowledgeismostoftenrepresentedintheformofif…then…Inthefigure,theknowledgebasecontainsbothgeneralandcase-specificinformationTheDesignofRule-BasedExper68TheDesignofRule-BasedExpertSystemTheinferenceengineappliestheknowledgetothesolutionofactualproblemsItisimportanttomaintainthisseparationoftheknowledgeandinferenceenginebecause:MakesitpossibletorepresentknowledgeinamorenaturalfashionExpertsystembuildercanfocusoncapturingandorganizingproblem-solvingknowledgethanthedetailsofcodeimplementationAllowchangetobemadeeasilyAllowsthesamecontrolandinterfacesoftwaretobeusedindifferentsystemsTheDesignofRule-BasedExper69SelectingaproblemExpertSysteminvolveaconsiderableinvestmentofmoneyandhumaneffortResearchershavedevelopedguidelinestodeterminewhetheraproblemisappropriateforexpertsystemsolution:TheneedforthesolutionjustifiesthecostandeffortsofbuildinganexpertsystemHumanexpertiseisnotavailableinallsituationwhereitisneededSelectingaproblemExpertSyst70SelectingaproblemTheproblemdomainiswellstructuredanddoesnotrequirecommonsensereasoningTheproblemmaynotbesolvedusingtraditionalcomputingmethodsCooperativeandarticulateexpertsexistTheproblemispropersizeandscopeSelectingaproblemTheproblem71NASAExampleNASAhassupporteditspresenceinspacebydevelopingafleetofintelligentspaceprobesthatautonomouslyexplorethesolarsystemToachievesuccessthroughyearsintheharshconditionsofspacetravel,acraftneedstobeabletoradicallyreconfigureitscontrolregimeinresponsetofailuresandthenplanaroundthesefailuresduringitremainingflightNASAExampleNASAhassupported72NASAExampleFinally,NASAexpectsthatthesetofpotentialfailurescenariosandpossibleresponseswillbemuchtoolargetousesoftwarethatsupportspreflightenumerationofallcontingenciesLivingstoneisanimplementedkernelforamodel-basedreactiveself-configuringautonomoussystemNASAExampleFinally,NASAexpe73NASAExampleAlong-heldvisionofmodel-basedreasoninghasbeentouseasinglecentralizedmodeltosupportavarietyofengineeringtasksThetasksincludekeeping-trackofdevelopingplansConfirminghardwaremodesReconfiguringhardwareDetectinganomaliesDiagnosisFaultrecoveryNASAExampleAlong-heldvision74NASAExampleNASAExample75NASAExampleItconsistofaheliumtankRegulatorsPropellanttanksApairofmainengineLatchvalvesPyrovalvesNASAExampleItconsistof76NASAExampleTheheliumtankpressurizesthetwopropellanttanks,withtheregulatorsactingtoreducethehighheliumpressureWhenpropellantpathtoamainengineareopen,thepressurizedtankforcesfuelandoxidizerintothemainenginetoproducethrustThepyrovalveistoisolatepartsofthemainenginesubsystemuntiltheyareneeded,ortopermanentlyisolatefailedcomponentsThelatchvalvearecontrolledusingvalvedriversandtheaccelerometerNASAExampleTheheliumtankpr77NASAExampleThrustcanbeprovidedbyeitherofthemainenginesandthereareanumberofwaysofopeningpropellantpathstoeithermainengineNASAExampleThrustcanbeprov78NASAExampleSupposethemainenginesubsystemhasbeenconfiguredtoprovidethrustfromtheleftenginebyopeningthelatchvalvesleadingtoitAndsupposethisenginefails(overheating),sothatisfailstoprovidetherequiredthrustToensurethatthedesirethrustisprovided,thespacecraftmustbetransitionedtoanewconfigurationinwhichthrustisnowprovidedbythemainengineontherightsideNASAExampleSupposethemaine79SelectingaproblemTheprimarypeopleinvolvedinbuildinganexpertsystemaretheknowledgeengineer,domainexpert,andenduserThedomainexpertisprimarilyresponsibleforspellingoutskillstoknowledgeengineerItisoftenusefulforknowledgeengineertobeanoviceintheproblemdomainSelectingaproblemTheprimary80Exploratorydevelopmentcycle

Exploratorydevelopmentcycle81ExploratorydevelopmentcycleItisalsounderstoodthattheprototypemaybethrownawayifitbecomestocumbersomeorifthedesignersdecidetochangetheirbasicapproachtotheproblemAnothermajorfeatureofexpertsystemisthattheprogramneedneverbeconsidered“finished”ExploratorydevelopmentcycleI82OutlineExpertSystemintroductionRule-BasedExpertSystemGoalDrivenApproachDataDrivenApproachModel-BasedExpertSystemOutlineExpertSystemintroduc83StrategiesforstatespacesearchIndatadrivensearch,alsocalledforwardchaining,theproblemsolverbeginswiththegivenfactsoftheproblemandsetoflegalmovesforchangingstateThisprocesscontinuesuntil(wehope!!)itgeneratesapaththatsatisfiesthegoalconditionStrategiesforstatespacesea84“tic-tac-toe”

statespacegraph

“tic-tac-toe”statespacegrap85StrategiesforstatespacesearchAnalternativeapproach(GoalDriven)isstartwiththegoalthatwewanttosolveSeewhatrulescangeneratethisgoalanddeterminewhatconditionsmustbetruetousethemTheseconditionsbecomethenewgoalsWorkingbackwardthroughsuccessivesubgoalsuntil(wehopeagain!)itworkbacktoStrategiesforstatespacesea86Rule-BasedExpertSystemRulebasedexpertsystemrepresentproblem-solvingknowledgeasif…then…ItisoneoftheoldesttechniquesforrepresentingdomainknowledgeinanexpertsystemItisalsooneofthemostnaturalandwidelyusedinpracticalandexperimentalexpertsystemRule-BasedExpertSystemRuleb87Rule-BasedExpertSystemInagoal-drivenexpertsystem,thegoalexpressionisinitiallyplacedinworkingmemoryThesystemmatchesruleconclusionswiththegoal,selectingoneruleandplacingitspremisesintheworkingmemoryThiscorrespondstoadecompositionoftheproblems’goalintosimplersubgoalsTheprocesscontinuesinthenextiterationoftheproductionsystem,withthesepremisesbecomingthenewgoalstomatchRule-BasedExpertSystemInag88AunrealExpertSystemExample

Rule1: if theengineisgettinggas,and theenginewillturnover, then theproblemissparkplugs.Rule2: if theenginedoesnotturnover,and thelightsdonotcomeon then theproblemisbatteryorcables.Rule3: if theenginedoesnotturnover,and thelightsdocomeon then theproblemisthestartermotor.Rule4: if thereisgasinthefueltank,and thereisgasinthecarburetor then theengineisgettinggas.AunrealExpertSystemExample89Theproductionsystematthestartofaconsultationinthecar diagnosticexample.

Theproductionsystematthes90Theproductionsystematthestartofaconsultationinthecar diagnosticexample.Threerulesmatchwiththisexpressioninworkingmemory:rule1,2,and3Ifweresolveconflictsinfavorofthelowest-numberedrule,thenrule1willfireThiscauseXtobeboundtothevaluesparkplugsandthepremisesofrule1tobeplacedintheworkingmemoryTheproductionsystematthes91TheproductionsystemafterRule1hasfired.

TheproductionsystemafterRu92TheproductionsystemafterRule1hasfired.Notethatthe

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论