人工智慧與專家系統簡介 http://web.nutn.edu.tw/el/gjhwang/index.html CHAPTER 1 人工智慧與專家系統簡介 http://web.nutn.edu.tw/el/gjhwang/index.html.

Slides:



Advertisements
Similar presentations
1 Antecedent-Consequent Rules Rn:IF condition 1 condition 2... THEN consequent 1 consequent 2...
Advertisements

1 Chemical and Engineering Thermodynamics Chapter 2 Conservation of mass and energy Sandler.
Event Sampling 事件取樣法. 關心重點為「事件」本身明確的焦點 行為 清楚掌握主題 - 當「事件」出現時才開 始記錄 記錄程序 等待目標事件的發生 開始記錄 事件結束,停止記錄.
清華大學 ePage 教育訓練 基礎 & 進階課程 黑快馬股份有限公司. 課程大綱 平臺操作介紹及首頁畫面設定 資訊維護發佈及文檔系統 模組管理及運用 多語操作概念 資源管理及行事曆功能 帳號、權限管理 Q&A 時間.
數位學習經驗分享 「 E 化教學教室與虛擬攝影棚」推廣經驗分享暨觀摩 高高屏活動 義守大學應用數學系郎正廉.
 Prentice Hall Chapter 71 科技與工作流程設計.  Prentice Hall Chapter 72 學習目標 了解科技如何影響生產力 討論電腦輔設計 認識彈性製造系統 定義組織再造的三項要素 資訊科技如何支援決策.
Chapter 0 Computer Science (CS) 計算機概論 教學目標 瞭解現代電腦系統之發展歷程 瞭解電腦之元件、功能及組織架構 瞭解電腦如何表示資料及其處理方式 學習運用電腦來解決問題 認知成為一位電子資訊人才所需之基本條 件 認知進階電子資訊之相關領域.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 肆 資料分析與表達.
計算機視覺研究室 專題實作簡報 張元翔 老師.
Introduction to Expert Systems
How to Conduct An Effective Job Search. 自我評估 Values Interests Skill :專業知識 人際技巧 自我管理.
 Prentice Hall Chapter 111 創造與維持組織的文化.  Prentice Hall Chapter 112 學習目標 定義組織文化 描述組織文化的主要特質 定義強勢文化的品質要素 解釋組織文化的來源.
STAT0_corr1 二變數的相關性  變數之間的關係是統計研究上的一大目標  討論二分類變數的相關性,以列聯表來表示  討論二連續隨機變數時,可以作 x-y 散佈圖觀察它 們的關係強度  以相關係數來代表二者關係的強度.
Chapter I: 資料探勘 - 初探. 目標 定義 DM 並瞭解如何用來解決問題 瞭解電腦是最佳學習概念的工具 瞭解 DM 可被用來當成可能問題解決策略 之時機 瞭解專家系統與資料探勘使用不同的方 法來完成相似的目標 瞭解如何從事前定義的類別資料所形成 概念定義來建立監督式學習的模型.
Making a Diagnosis At a Distance By the Telecommunications Links Dr Alexander Chang Department of Anatomical & Cellular Pathology The Chinese University.
Department of Air-conditioning and Refrigeration Engineering/ National Taipei University of Technology 模糊控制設計使用 MATLAB 李達生.
專題製作(一) 邱明星 老師 遠東科技大學 資訊管理系. 專題製作的緣起 Learning how to learn. Know more. Learning space.
第 1 章 PC 的基本構造. 本章提要 PC 系統簡介 80x86 系列 CPU 及其暫存器群 記憶體: Memory 80x86 的分節式記憶體管理 80x86 的 I/O 結構 學習組合語言的基本工具.
Chapter10 管理支援系統 1.
Course Website: 漫談人工智慧 李俊宏 /03/05 Course Website:
FGU LDT. FGU EIS 96 ‧ 8 ‧ 25 FGU LDT 佛光大學學習與數位科技學系.
Chapter 1 序論 Introduction. 2/15 Contents 1.1. 工程分析 Engineering Analysis 1.2. 教學目標與方法 Objectives and Approaches.
卓越大學英文網 英文導讀 ( 網路輔助英文閱讀) Internet-aided Reading 主講人 : 李素貞 輔仁大學全人中心共同外語科.
第三部分:研究設計 ( 二): 研究工具的信效度 與研究效度 (第九章之第 306 頁 -308 頁;第四章)
CS1103 電機資訊工程實習 Department of Computer Science National Tsing Hua University.
文件製作 陳彥良. Phase 1 Identifying problems Identifying opportunities Identifying objectives.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 參 資料蒐集的方法.
行政院國家科學委員會工程技術發展處自動化學門 * 試以國立成功大學製造工程研究所 鄭芳田教授 產學合作計畫 : 智慧預測保養系統之設計與實作 成果報告盤點為範例 國科會工程處專題計畫成果典藏 自動化學門成果報告盤點範例.
North Point Government Primary PM School 北角官立下午小學 應用 ‘ 基本能力學生評估 ’ 及 ‘ 網上學與教支援系統 ’ 經驗分享.
卡內基訓練  Copyright, 1997 © Dale Carnegie & Associates, Inc. 1 簡報標題 TIP 如需進一步建議, 請看卡內基訓練  的簡報技巧.
1 Chapter 9 Rules and Expert Systems. 2 Chapter 9 Contents (1) l Rules for Knowledge Representation l Rule Based Production Systems l Forward Chaining.
1 高等演算法 授課老師 : 陳建源 研究室 : 法 401 網站
人工智慧序論 陳詩豐 龍華科技大學 機械系.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 7: Expert Systems and Artificial Intelligence Decision Support.
什麼是科技 科技改變了什麼 人 與科技 教育與科技 我能做什麼. 什麼是科技 不是我們身體的一部份, 是科學的, 經由 製造而來的, 是有實用目的。 配合 人類在身體或精神上的行動, 有所 思 考 發生, 或是使用工具, 可能是有形的 或 是概念的。 組織 團體 機構 。 人與人之間的互動 道德層面的觀點,
寬頻通訊系統基礎教育計畫 分項計畫二 寬頻網路通訊 主要參與人員 黎碧煌 教 授 鍾順平 副教授
廣電新聞播報品質電腦化 評估系統之研發 國立政治大學 資訊科學系 指導教授:廖文宏 學生:蘇以暄.
EXPERT SYSTEMS Part I.
Open Services Gateway Initiative (OSGi) Service Platform 1 OSGi Architecture.
李宜玲 92 上人力資源管理 / 第四章 1 第 四 章 測 驗 與 人 員 評 量測 驗 與 人 員 評 量.
統計學 ( 二 ) 朝陽科技大學工業工程與管理系副教授洪弘祈 Statistics II2 企業與統計之關係 n 品質管制 n 預測統計與市場調查 n 績效與人事管理 n 例行報告之方案評估與決策參考 n 製程改善 n 研發能力之提昇 n 產品可靠度 n 生產管制.
概念性產品企劃書 呂學儒 李政翰.
1 © 2011 台灣培生教育出版 (Pearson Education Taiwan). 2 學習目標 1. 當面對可預測的變異性時,同步管理並改善供應鏈 中的供給。 2. 當面對可預測的變異性時,同步管理並改善供應鏈 中的需求。 3. 當面對可預測的變異性時,使用總體規劃將利潤最 大化。
資訊教育 吳桂光 東海大學物理系助理教授 Tel: 3467 Office: ST223 Office hour: Tue, Fri. (10-11am)
Knowledge Management System -for Agenda 顏亦笛 陳靖宜 指噵教授 : 劉寶均教授 指噵公司 : 安捷達.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 壹 企業研究導論.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 參 資料蒐集的方法.
電機工程系 選課輔導說明會. 選課輔導說明會宗旨 電機系自 95 年開始,同步進行『工程教育 認證』以及『系科本位課程』兩大與學生 課程相關的認證計畫。 電機系自 95 年開始,同步進行『工程教育 認證』以及『系科本位課程』兩大與學生 課程相關的認證計畫。 本系每年至少一次的系教育諮詢委員會, 廣邀產業界、學界、家長、畢業生、在校.
導論 人力資源管理 教 師:林昌榮 人力資源管理.
1 寬頻分碼多重進接無線通訊上 鏈傳收系統之設計與製作 Transceiver System Design and Implementation for WCDMA Uplink Communication 國科會計畫 (1999/8 – 2002/7) 簡介 2004/1.
數位系統實驗 -- 課程介紹 教師:潘欣泰. 課程目標  數位系統導論課程之實習課程  接續數位電路學課程  養成學生動手做的習慣  使學生對數位電路設計有實際的體驗.
第12章 團體溝通情境中的領導者.
1 Chemical and Engineering Thermodynamics Chapter 1 Introduction Sandler.
第 1 章 PC 的基本構造. 本章提要 PC 系統簡介 80x86 系列 CPU 及其暫存器群 記憶體: Memory 80x86 的分節式記憶體管理 80x86 的 I/O 結構 學習組合語言的基本工具.
啤酒遊戲- 供應鍊模擬 Dr. CK Farn 2006 Spring. 中央大學。范錚強 2 模擬設定 過度簡化的供應鍊 銷售桶裝啤酒 角色 工廠(倉庫) 配銷商 大盤商 零售商.
Sepandar Sepehr McMaster University November 2008
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Information Technology 資訊科技. What is IT? IT is all about the applications of wide variety of electronic technologies ( 電子科技 ) to the information-handling.
Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition.
School of Computer Science and Technology, Tianjin University
Expert Systems An Introduction to Expert Systems and CLIPS by Charles Weddle.
EDUCATION PSYCHOLOGY 教 育心理學. EDUCATION CONCEPT 教育概念 Activities that relate to the development of knowledge, skills, physical and spiritual. 知識、技能、生理、與心靈的發展行動.
Survey on Expert System Seung Jun Lee Dept. of Nuclear and Quantum Engineering KAIST Mar 3, 2003.
Artificial Intelligence: Applications
Artificial Intelligence
CHAPTER 1 Introduction BIC 3337 EXPERT SYSTEM.
Introduction to Expert Systems Bai Xiao
Intro to Expert Systems Paula Matuszek CSC 8750, Fall, 2004
Artificial Intelligence introduction(2)
전문가 시스템(Expert Systems)
Presentation transcript:

人工智慧與專家系統簡介 http://web.nutn.edu.tw/el/gjhwang/index.html CHAPTER 1 人工智慧與專家系統簡介 http://web.nutn.edu.tw/el/gjhwang/index.html

What is an expert system ? An intelligent computer program that uses knowledge and inference procedure to solve problems. 知 識 庫 推 理 機 事實 結論 使用者 使用者介面 解釋系統 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

參與成員 Users Experts Knowledge Engineers An expert’s knowledge is specific to one problem domain, as opposed to knowledge about general problem-solving techniques The expert’s knowledge about specific problems is called the knowledge domain of the expert. Knowledge Engineers 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Information processing Data processing 資料處理 Information processing 資料處理 Intelligence processing 智慧處理 Knowledge processing 知識處理 增加被處理材料之 容  量 增進處理之複雜性 電腦處理之演進空間 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Complexity of Computations 1. Problem size influences computation time. 2. There is a functional relationship T(n) between problem size n and computation time T. 3.Different algorithms for the same problem may have vastly different time complexity T(n). 4.Time complexity influences the size problem we can afford to solve. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

6. Problems having only exponential methods are called intractable. 5. Exponential growth:An exponential relationship T(n)=an represents a gloomy situation -order of magnitude improvement in processor speed does not multiply the size problem we can handle. It only adds a small constant to the size. 6. Problems having only exponential methods are called intractable. 7. Problems having polynomial time methods are called tractable. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Combinatorial Explosion - Examining all possibilities usually leads to exponential complexity.  * Tree with branching factor b.   There are bk nodes on level k.   * There are 9 * 10n-1 decimal numbers worse than exponential!  * There are n! orderings of n items.   This is worse than exponential!  * There are 2n subsets of a set with n items. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

b Tree with constant branching factor b. Root level 0 level k 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Brute force or exhaustive search cannot solve many general problems * For humans, mental arithmetic: n must be ≦ 5. * For humans, using paper and pencil: n must be ≦ 11. * For very fast machines: n must be ≦ 30 or 40. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Different Views of Technology Manager:    What can I use it for ? Technologist:    How can I best implement it ? Researcher:    How can I extend it ? Consumers:    How will it help me ?    Is it worth the trouble and expense ?    How reliable is it ? 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Basic Concepts Professor Edward Feigenbaum of Stamford Univ., defined an expert system as “an intelligent computer program that uses knowledge and inference procedures to solve problems that are difficult enough to require significant human expertise for their solutions”. A program that emulates the decision-making ability of a human expert. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Artificial Intelligence (AI) The study of the computation that makes it possible to perceive, reason,and act. 智慧型 遊戲 電腦語 音 類神經 系統 專家系 統 解題能 力 自然語 言 電腦視 覺 機器人 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Expert Systems and AI Expert system is a branch of AI that makes extensive use of specialized knowledge to solve problems at the level of a human expert by restricting the problem domain. The terms “expert system”, “knowledge-based system”, or “knowledge-based expert system” are used to represent the same thing. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Knowledge-based Systems V.S. Conventional programs 推論引擎 解釋系統 程式 (固定) 資料 (動態) 知識庫 插入 刪除 Can be easily examined for correctness, consistency, and completeness. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Knowledge-based Systems V.S. Conventional programs CONVENTIONAL SOFTWARE DEVELOPMENT……2000 LINES / YEAR EXPERT LISP PROGRAMMERS CAN PRODUCE THE EQUILIVANT OF ….100,000 LINES/YEAR 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Advantages of expert systems Increased availability  A person     An expert  A computer     Many experts Reduced cost (the cost of providing expertise) Reduced danger Knowledge integration Permanence -- no complaint never get tired Multiple expertise 20 years 40 years 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Second opinion to an expert Break a tie when no agreement is available Fast response Increase reliability  Second opinion to an expert  Break a tie when no agreement is available  from multiple experts. Intelligent tutor  Consultation and explanation Intelligent database 專家系統 知識庫 資料庫 使用者 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Knowledge Engineering The process of building an expert system 人類專家 知識工程師 專家系統中知識庫 交談 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Knowledge acquisition is the bottleneck for building knowledge-based systems. KE TOOL (KEE, SI, PC Plus,...) WORLD KNOWLEDGE SYSTEM DESCRIPTION =MODEL TASK EXPERT’S DESCRIPTION OF TASK ○ Knowledge Acquisition KNOWLEDGE ENGINEER 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Three approaches of Knowledge acquisition By a knowledge engineer (知識工程師) By a knowledge acquisition tool By machine learning (機器學習) approaches e.g.,learn rules by example, through rule induction, in which the system create rules from tables of data. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Limitations of Expert Systems Lack of causal knowledge (因果的知識) -the expert system do not really have an understanding of the underlying causes and effects in a system. Cannot generalize their knowledge by using analogy to reason about new situations the way people can (limited to the problem domain). Building is very time-consuming It is much easier to program expert system with shallow knowledge (淺層知識). 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Shallow & Deep Knowledge Shallow Knowledge (淺層知識): based on empirical and heuristic knowledge Algorithm:guaranteed to have a solution Heuristic:no guarantee Deep Knowledge (深層知識- Causal Knowledge): based on the basic structure, function, and behavior of objects Example: Prescribe an aspirin for a person’s headache (shallow) Programming of a causal model of a human body (deep) 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Characteristics of an Expert System High performance Adequate response time Good reliability Understandable rather than being just a black box convince the user confirm the knowledge Flexibility adding, changing, and deleting grow incrementally rapid prototyping 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Explanation Facility 1. List all the facts that made the latest rule execute 2. List all the reasons for and against a particular hypothesis 3. List all the hypotheses that may explain the observed evidence 4. Explain all the consequences of a hypothesis 5. Give a prediction of what will occur if the hypothesis is true 6. Justify the questions that the program asks of the user for further information 7. Justify the knowledge of the program 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

History of AI & Expert Systems  ?   Cognitive Science     The study of how humans process information 1943  A.I.  1957  GPS (General Problem Solver) 1958  LISP 1965  Dendral(The first expert system) 1970  PROLOG 1971  Hearsay 1 for speech recognition 1973  MYCIN 1975  Frames , knowledge representation (Minsky) 1976  PROSPECTOR      .Mineral deposit      .Worth $100 millions 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

.Configuration of a computer system .Fifteen times faster 1978  XCON / R1      .Configuration of a computer system      .Fifteen times faster      .98% accuracy (humans:70%) 1979  Rete Algorithm for fast pattern match 1980  Symbolic LISP Machine 1982  Japanese Fifth Generation project to develop intelligent computer 1983  KEE (Knowledge Engineering Tool) 1985  CLIPS      .By NASA      .Written in C language      .Match rules by Rete algorithm DRAMA .By National Chiao Tung University, Taiwan .Providing Web-based interface 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Japan’s Fifth-Generation computer project Announced in 1981 2 8 9 1 3 4 5 6 7 Phase Ⅰ:3 years EXPLORATORY RESEARCH Phase Ⅱ:4 years PROTOTYPE DEVELOPMENT Phase Ⅲ :3 years COMMERCIALIZATION Goal: High-performance personal PROLOG machine $50 million budgeted for 1982-1984 $450 million budgeted for 1985-1991 Goal: VLSI design Automatic Programming Responses as of 1985 United States:Microelectronics & Computer Technology Corp (MCC) common Market:ESPRIT (50year program budgeted at $1.3 billion) Great Britain: Alvoy Programme 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

General Problem Solver Human knowledge expressed by IF-Then rules  Long term memory (rules) Short term memory (working memory) Cognitive Processors (inference engine) Conflict Resolution  e.g. IF there is a fire THEN leave     IF my clothes are burning THEN put out the fire Relied little on domain knowledge and more on powerful reasoning A basis of modern rule-based expert systems 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Dendral-The first expert system Domain Knowledge plays the main role Chemical Formula + Mass Spectrogram→ Chemical Structure C8H16O Relative frequency 40 80 120 Mass/charge    H H   H H H H H      | |   | | | | | H-C-C-C-C-C-C-C-C-H    | | | | | | | |     H H O H H H H H 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Generation of Spectrogram Charged chunks of various sizes Sample Bombarded by high energy electronics 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Rules in Dendral Reduce the number of possibilities necessary substructure spectrogram + rule base forbidden substructure C=0 C-H H-H Rule:  IF high peak at 71,43,86 and any peak at 58  THEN C=O is necessary .Thousands of possibility  tens of possibility 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Generator and Tester Generator: Generate possible structure Produce a synthetic mass  spectrogram by simulation Tester: Compare the real mass spectrogram  with those produced by the generator 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

MYCIN For bacterial infection diagnosis Explanation facility Automatic acquisition of knowledge Intelligent tutoring Feasibility of SHELL(EMYCIN) Separate the knowledge base from the inference engine Backward Chaining 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

The MYCIN Family Drilling Advisor KS300 S. 1 MYCIN EMYCIN PUFF M. 1 SACON Personal Consultant IRA Advisor prospector KAS 1975 1985 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Example of MYCIN What is the patient’s name? John Doe. Male or female? Age? He is 55. Have you obtained positive cultures indicating general type? Yes. What type of infection is it? Primary bacteria. When did symptoms first appear? May 5. Let’s call the most recent positive culture C1. From what site was C1 taken? From the blood. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Is U1 a rod or a coccus or something else? Rod. When? May 9. Let’s call the first significant organism from this culture U1. Do you know the identity of U1? No. Is U1 a rod or a coccus or something else? Rod. What is the gram stain of U1? Gram-negative. Have there been positive cultures from sites that are not associated with the infections about which you are seeking advice? Did U1 grow aerobically? Yes. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

1. Pseudomonas-aeruginosa 2. Klebsiella-pneumoniae 3. E. coli When it is satisfied that it has a reasonably good grasp of the situation, MYCIN announces its diagnosis; My recommendation will be based on the opinion that the identity of U1 may be 1. Pseudomonas-aeruginosa 2. Klebsiella-pneumoniae 3. E. coli 4. Bacteroides-fragilis 5. Enterobacter 6. Proteus-nonmirabilis. After asking a few more questions about the patient, MYCIN announces its recommendation: On a scale of 0 to 4, where higher numbers indicate greater severity, how would you rate the patient’s degree of sickness? 3. Does the patient have a clinically significant allergic reaction to any antimicrobial agent? No. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

How much does the patient weigh? 70 kilograms. My first recommendation is as follows:to cover for items 1,2,3,5, and 6, give gentamycin using a dose of 119 mg (1.7 mg/kg) q8h IV [or IM] for 10 days. Modify dose in renal failure. Also, to cover for item 4, give clindamycin using a dose of 595 mg (8.5 mg/kg) q6h IV [or IM] for 14 days. If diarrhea or other gastrointestinal symptoms develop, check for pseudomembranous colitis. MYCIN’s pool of knowledge consists of approximately 500 antecedent-consequent rules, which give MYCIN the ability to recognize about 100 causes of bacterial infections. The following rules is typical: M88: IF ?x’s type is primary bacteremia       the suspected entry point of ?x is the            gastrointestinal tract     THYEN there is evidence that ?x is bacteroides 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Separation of Knowledge Knowledge as the Key to Expertise Tendency Production Rules To Modern Human Problem Solving Separation of Knowledge and Inference Engine The SHELL Expert Systems Knowledge as the Key to Expertise 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

專家系統的分類 解釋系統: 從觀察的資料中分析推論如 DENTRAL 預測系統:氣象預報、石油市場預測如 PROSPECTOR 診斷系統: MYCIN、PUFF 設計系統: XCON 監督系統: 核能廠 偵錯系統: 程式偵錯、電話線路偵錯 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

實驗中暨使用中之專家系統輯要

When should expert systems be employed to solve problems? 1. Difficult problems (can the problem be effectively solved by conventional programming?) (NP-hard, NP-complete, undecidable) 2. In the domain with mainly   heuristics and uncertainties.   (experienced knowledge) 3. Dangerous environments. 4. Previous knowledge that might be lost. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Expert System Procedural Language       Language represent knowledge   represent data (data and knowledge abstraction) (data abstraction) data and inference separate   data and algorithm                interwoven less rigid control   rigid control of execution                   sequence knowledge intensive less knowledge intensive             more special applications   more general applications       人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Languages, Shells, and Tools Language:LISP, Prolog, C A translator of commands written in a specific syntax Prolog LISP C 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Tool: Language + Utilities (Editor, debuggers) Shell: knowledge base is empty (waiting for input expertise) PCPlus, CLIPS, KEE, ART, ... 推 論 機 使用者介面 解釋系統 事實 結論 使用者 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Components of an Expert System INFERENCE ENGINE KNOWLEDGE BASE (RULES) WORKING MEMORY (FACTS) AGENDA KNOWLEDGE ACQUISTION FACILITY EXPLANATION FACILITY USER INTERFACE 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

If your spouse is in a bad mood THEN don’t appear happy Premise, LHS, Antecedent, Condition Conclusion, Action, RHS If your spouse is in a bad mood THEN don’t appear happy p1 If p1 THEN p2 P2 p2 If p2 THEN p3 If p2 THEN p4 p3 p4

Facts Rules Match (Conflict set) Conflict resolution Fire (act) Modification

Advantages of rule-based systems Modular nature: easy to increase knowledge Similar to human cognitive process Explanation facilities(解釋能力) If A and B THEN C If C and D THEN E Why (E)? :because Explain (C) and Explain(D) Why (D)? :D is an input fact. Why (C)? : :because Explain (A) and Explain(B) 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Illustrative example Rule 1: If h-fever and r-spot THEN Danger-fever Rule 2:If temperature > 38 THEN h-fever = true Why danger fever? According rule 1: Because Explain(h-fever) and Explain(r-spot) 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Classification of Expert Systems Knowledge representation Forward or backward chaining Support of uncertainty Hypothetical reasoning Explanation facilities Applications 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Forward chaining and backward chaining Forward chaining: OPS5, CLIPS, DRAMA Backward chaining:EMYCIN, PROLOG Both: ART,KEE Depends on the problem domain Diagnostic problem –backward Prognosis, monitoring, control -forward 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Procedural paradigms Procedural (sequential) languages Imperative ADA,PASCAL ,C Functional LISP, APL 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Nonprocedural paradigms Nonprocedural languages Declarative Object-oriented: SMALLTALK Logic: PROLOG Rule-based: CLIPS, ART, OPS5 Frame-based: KEE Nondeclarative Induction-based: RULEMASTER, ANS 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Functional programming Idea: Combine simple functions to yield more powerful functions (bottom-up design) Referentially transparent Data objects Primitive functions Functional forms Application operations Naming procedures LISP- leading AI language 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Logic programming GPS was designed to solve any kind of logic problem (puzzles, Tower of Hanoi, Missionaries and Cannibals, cryptarithmetic) PROLOG is more than just a language An interpreter or inference engine A database (facts and rules) A form of pattern matching called unification A backtracking mechanism Turbo PROLOG 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

Artificial Neural Systems ANS based on how the brain processes information Connectionist (neural network) models are attracting interest as useful tools for AI. The “perceptron model” is the simplest, and quite suitable for implementing classification systems Two main disadvantages: It is very time-consuming when the training set is large It is only suitable for a linearly separable training set 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

專家系統的發展程序(1/2) 問題分析 選擇合適的領域 是否有合適之專家 可行性考慮 發展計畫 知識擷取與知識表示 專家與知識工程師的溝通 知識擷取與知識表示  專家與知識工程師的溝通 知識擷取工具 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

專家系統的發展程序(2/2) 雛型系統製作與系統評估 學習專業領域之知識 評估標準及方式之抉擇 選擇建構工具 擴充增強知識庫 擴充知識庫 檢討知識庫結構 改善使用者介面 實際應用 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

建構專家系統之基本需求 是否有專家可配合? 專家們合作的態度如何? 專家能否精確表達其知識? 專家們是否已有共識? 知識擷取的技巧是否足夠? 是否以傳統方式發展會更好? 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

習 題(1/2) 1. Identify a person other than yourself who is considered either an expert or very knowledgeable. Interview this expert and discuss how well this person’s expertise would be modeled by an expert system in terms of each criterion in “advantages of Expert Systems” Write ten nontrivial rules expressing the knowledge of the expert in the above problem. Show that each of the ten rules gives the correct advice. 人工智慧與專家系統 S.S. Tseng & G.J. Hwang

習 題(2/2) 2. Write a program that can solve cryptarithmetic problems. Show the result for the following problem, where D = 5. DONALD + GERALD ROBERT 人工智慧與專家系統 S.S. Tseng & G.J. Hwang