31
AI: 人人人人人人 人人人人 (Artificial intelligent, AI) 人人 人人人人人 人人人人人人 人人人人人人人人人 人人人人人 人人人人 人人人人人 人人人人人人

AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

  • View
    243

  • Download
    5

Embed Size (px)

Citation preview

Page 1: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法 智慧型代理人

Page 2: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

人工智慧 以電腦或機電整合裝置協助或代替人類解決

日常生活或專業領域所面臨的問題。 其探索領域包括邏輯、機率和連續數學、感

知、推理、學習和行動 通常以智慧型代理人來實現人工智慧之理念,

可從環境中接收感知資訊,在以擬人化解決問題之眼算法來執行對應行動。

Page 3: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Intelligent machines, or what machines Intelligent machines, or what machines can docan do

Philosophers have been trying for over 2000 years Philosophers have been trying for over 2000 years to understand and resolve two to understand and resolve two Big QuestionsBig Questions of the of the Universe: Universe: How does a human mind work, and How does a human mind work, and Can non-humans have minds?Can non-humans have minds? These questions These questions are still unanswered.are still unanswered.

IntelligenceIntelligence is their ability to understand and learn is their ability to understand and learn things. things.

Page 4: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Intelligent machines, or what machines Intelligent machines, or what machines can docan do

IntelligenceIntelligence is the ability to think and understand is the ability to think and understand instead of doing things by instinct or automatically. instead of doing things by instinct or automatically. ((Essential English DictionaryEssential English Dictionary, Collins, London, , Collins, London, 1990)1990)

Page 5: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

In order to think, someIn order to think, someoneone or some or somethingthing has to has to have a brain, or an organ that enables somehave a brain, or an organ that enables someoneone or or somesomethingthing to learn and understand things, to solve to learn and understand things, to solve problems and to make decisions. So we can define problems and to make decisions. So we can define intelligence as intelligence as the ability to learn and understand, the ability to learn and understand, to solve problems and to make decisionsto solve problems and to make decisions..

The goal of The goal of artificial intelligenceartificial intelligence (AI) as a science (AI) as a science is to make machines do things that would require is to make machines do things that would require intelligence if done by humans. Therefore, the intelligence if done by humans. Therefore, the answer to the question answer to the question Can Machines Think?Can Machines Think? was was vitally important to the discipline.vitally important to the discipline.

The answer is not a simple “The answer is not a simple “YesYes” or “” or “NoNo”.”.

Page 6: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Problem Solving Procedures

Defining and Representing the Problem Descriptions of Problem Solving Selecting Some Suitable Solving Methods Finding Several Possible Solutions Choosing One Feasible Solution to Make a

Decision

Page 7: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Defining and Representing the Problem State space: The combination of the initial state and the

set of operators make up the state space of the problem. Initiate state: The original state of the problem. Operators: used to modify the current state, thereby

creating a new state. Path: The sequence of states produced by the valid

application of operators from an old state to a new state is called the path.

Goal state: A state fit to the searching objective is called the goal state.

Page 8: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Common Problem Solving Methods

線性規劃法 (Linear Programming: LP) 整數規劃法 (Integer Programming) 分支界限法 (Branch and Bound Method) 啟發式解法: MST, RMST, SA

Kruskal, 1956; Prim, 1959; Dijkstra, 1959; Sollin, 1965; Yu, 1998

全域搜尋法 (Global Searching) : GA Brute-Force Search Method

Page 9: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

知識表示方法 Represent and manipulate the domain

knowledge Knowledge Definition Knowledge Storing Knowledge Representation

Page 10: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Knowledge Definition

“The fact or condition of knowing something with familiarity gained through experience or association.” (Webster’s Dictionary, 1988)(Knowing something via seeing, hearing, touching, feeling, and tasting.)

“The fact or condition of being aware of something” .(Ex. Sun is hot, balls are round, sky is blue,…)

Page 11: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Knowledge Storing

Natural language for people Symbols for computer: a number or

character string that represents an object or idea (Internal representation of the knowledge).

The core concepts: mapping from facts to an internal computer representation and also to a form that people can understand.

Page 12: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Knowledge Representation

Simple facts or complex relationships Mathematical formulas or rules for natural

language syntax Associations between related concepts Inheritance hierarchies between classes of

objects Knowledge is not a “one-size-fits-all”

proposition

Page 13: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Knowledge Representation Methods

Effective knowledge representation methods: Easy to use. Easily modified and extended (changing

the knowledge manually or through automatic machine learning techniques).

Page 14: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Knowledge Representation Methods

Procedural method Declarative method Relational method Hierarchical method Complex network graph

Page 15: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

推理機制與專家系統 Reasoning with rules Forward chaining Backward chaining Rule examples Fuzzy rule systems Planning

Page 16: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Reasoning with rules Rule format: If-then-else rules The reasons for using rules

Easily understand Easily read Easily add Easily modify

Page 17: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Reasoning with rules Rules are normally manipulated by reasoning

systems: Forward chaining: can generate new facts. Backward chaining: can deduce whether statements

are true or not.

Page 18: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

Rule base system An expert system or knowledge-based system is

the common term used to describe a rule-based processing system. It consists three elements: A knowledge base (the set of if-then-else rules and

known facts) A working memory or database of derived facts and

data An inference engine which contains the reasoning

logic used to process the rules and data.

Page 19: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

An example of simple rule

if num_wheel =4 and motor=yes then vehicle =automobile

Antecedent ClauseConsequent Clause

Page 20: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

基因演算法 基因演算法最早由 Holland (1975) 所提出,它是

一種隨機全域搜尋之求解技術,可以仿照自然界生物適者生存之智慧型演化法則,逐步的將解答空間收斂在很小的範圍內,然後從中選取滿意解。求解方式乃將可行解以字元串形式表示基因串列,然後將之置入交配池,作為後續之基因演化之交配或突變之群體。求解過程屬一重複性的程序,朝向事先規範的方向(適應函數)重複執行,直到收斂解或設定條件出現為止。

Page 21: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

基因演算求解步驟 步驟 1. 隨機產生一母體大小為 P 之基因串列作為

起始解。 步驟 2. 將起始母體之各基因串編碼及計算對應之

目標值。 步驟 3. 計算各基因串之適應值( fitness value )。 步驟 4. 將最差之基因串捨棄,捨棄之基因串則以

最佳之基因串替代,其中為略小於實數 X 之整數,R 為事先規劃之基因演算之複製比例。

Page 22: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

基因演算求解步驟 步驟 5. 進行選擇運算:從目前的母體中選擇群體為 P

之基因串,並置入交配池中。 步驟 6. 進行交配或突變運算:從交配池中選取一對基

因串來產生子代,選出之基因串不再置回原交配池中。 步驟 7. 將產生之子代置入新的母體群,若新的母體未

滿,則回步驟 6 。 步驟 8.確認是否滿足停止準則,假如滿足則停止搜尋

程序,然後從最近一代之基因串中選出最佳之基因串,並予以解碼,否則繼續產生下一世代。

Page 23: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

類神經網路簡介 「類神經網路是一種由軟體和硬體所組成之計算系統,使用許多相連的人工神經元來模仿生物神經網路。透過人工神經元從外界環境或其它神經元取得所需資訊,經過簡單的運算之後,將結果輸出到外界環境或其它神經元,這些資訊可作進階使用。」

Page 24: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

類神經網路簡介 ( 續 )

神經樹 神經節神經核

神經軸

生物神經元模型示意圖

Page 25: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

類神經網路簡介 ( 續 )

人工神經元模型

netj f

X1

X2

Xn

Wij Yj

閥值

輸入訊號

連結加權值

處理單元淨值

轉換函數

輸出訊號

θj

Page 26: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

類神經網路簡介 ( 續 ) 人工神經元資訊處理模型

其中 Yj 表模仿生物神經元模型的輸出訊號 f 表模仿生物神經元模型之轉換函數( transfer functio

n ) Wij 表模仿生物神經元模型之神經節強度,又稱為連結加權值

Xi 表模仿生物神經元模型之輸入訊號 θj 表模仿生物神經元模型之閥值

)( ji

iijj XWfY

Page 27: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

類神經網路簡介 ( 續 )類神經網路組成單元

輸入層:用來輸入外在環境之資訊

隱藏層 (有些網路模型無此層 ) : 提供類神經網路表現處理單元間之交互作用,

以及所處理問題之內在結構能力

輸出層:用來輸出訊息給外在環境

Page 28: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

類神經網路簡介 ( 續 )

倒傳遞類神經網路模型

輸入向量

輸入層 隱藏層 輸出層

輸出向量

Page 29: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

類神經網路之類型 可綜合為四大類

監督式學習模型( Supervised learning network)

非監督式學習模型( Unsupervised learning network)

聯想式學習( Associated learning network)

最適化應用網路( Optimization application network)

Page 30: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

類神經網路之應用

實例一:信用卡持卡者之信用判斷

實例二:從技術面預測證交所隔日收盤指數之變化率

實例三:從技術面預測證交所隔日收盤指數之變化

Page 31: AI: 人工智慧簡介 人工智慧 (Artificial intelligent, AI) 簡介 問題與求解 知識表示方法 推理機制與專家系統 類神經網路 模糊控制 基因演算法

類神經網路之應用

實例四:從穩定液之成分及濃度來預估黏度

實例五:從取得之樣本值來診斷乳癌之良惡性情形

實例六:依據施工條件及地層基礎選擇適合的建築基樁型式