动物识别专家系统简介.docVIP

  • 10
  • 0
  • 约4.39千字
  • 约 4页
  • 2019-10-23 发布于天津
  • 举报
动物识别专家系统简介 动物识别专家系统是经典的专家系统实验模型,它用产生式规则来表示知识,共15条规则,可以识别七种动物。这些规则既少又简单,可以改造他们,也可以加进新的规则,还可以用来识别其他东西的新规则来取代这些规则。 2.1、建立动物识别专家系统的规则库,并用与/或图来描述这个规则库。 规则库由15条规则组成,编写一段程序,把15条规则组成一个表直接赋值给规则库rules,规则名分别是;rule1,rule2,┉,rule15。 ( rules ((rule1 (if (animal has hair)) 若动物有毛发(F1) (then (animal is mammal))) 则动物是哺乳动物(M1) ((rule2 (if (animal gives milk)) 若动物有奶(F2) (then (animal is mammal))) 则动物是哺乳动物(M1) ((rule3 (if (animal has feathers)) 若动物有羽毛(F9) (then (animal is bird))) 则动物是鸟(M4) ((rule4 (if (animal flies)) 若动物会飞(F10) (animal lays eggs)) 且生蛋(F11) (then (animal is bird))) 则动物是鸟(M4) ((rule5 (if (animal eats meat)) 若动物吃肉类(F3) (then (animal is carnivore))) 则动物是食肉动物(M2) ((rule6 (if (animal Raspointed teeth)) 若动物有犀利牙齿(F4) (animal has claws) 且有爪(F5) (animal has forword eyes)) 且眼向前方(F6) (then (animal is carnivore))) 则动物是食肉动物(M2) ((rule7 (if (animal has mammal)) 若动物是哺乳动物(M1) (animal has hoofs)) 且有蹄(F7) (then (animal is ungulate))) 则动物是有蹄类动物(M3) ((rule8 (if (animal has mammal)) 若动物是哺乳动物(M1) (animal chews cud)) 且反刍(F8) (then (animal is ungulate))) 则动物是有蹄类动物(M3) ((rule9 (if (animal is mammal)) 若动物是哺乳动物(M1) (animal is carnivore) 且是食肉动物(M2) (animal has tawny color) 且有黄褐色(F12) (animal has dark sports)) 且有暗斑点(F13) (then (animal is cheetah))) 则动物是豹(H1) ((rule10 (if (animal is mammal)) 若动物是哺乳动物(M1) (animal is carnivore) 且是食肉动物(M2) (animal has tawny color) 且有黄褐色(F12) (animal has black stripes) 且有黑色条纹(F15) (then (animal is tiger))) 则动物是虎(H2) ((rule11 (if (animal is ungulate)) 若动物是有蹄类动物(M3) (animal has long neck) 且有长脖子(F16) (animal has long legs)

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档