99
450-101 Management Information System 450-101 Management Information System Artificial Intelligence & Expert Systems ผผ.ผผ. ผผผผผผ ผผผผผผผผผผผผผผ Office :CS320, Computer Science Building Email :[email protected] Website :http://staff.cs.psu.ac.th/wipha da Phone :0-7428-8596

450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

Embed Size (px)

Citation preview

Page 1: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

450-101 Management Information System450-101 Management Information System

Artificial Intelligence &Expert Systems

ผศ.ดร. วิ�ภาดา เวิทย์ ประสิ�ทธิ์��

Office :CS320, Computer Science BuildingEmail :[email protected] :http://staff.cs.psu.ac.th/wiphadaPhone :0-7428-8596

Page 2: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 12

Artificial Intelligence

artificial intelligencen. (Abbr. AI) The ability of a computer or other machine

to perform those activities that are normally thought to require intelligence.

The branch of computer science concerned with the development of machines having this ability.

Page 3: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 13

Artificial Intelligence

• The subfield of computer science concerned with understanding the nature of intelligence and constructing computer systems capable of intelligent action.

• It embodies the dual motives of furthering basic scientific understanding and making computers more sophisticated in the service of humanity.

Page 4: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 14

Artificial Intelligence

• Many activities involve intelligent action

—problem solving, perception, learning, planning and other symbolic reasoning, creativity, language, and so forth—and therein lie an immense diversity of phenomena.

Page 5: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 15

Artificial Intelligence

• Computer Encyclopedia • (Artificial Intelligence) Devices and

applications that exhibit human intelligence and behavior including robots, expert systems, voice recognition, natural and foreign language processing. It also implies the ability to learn and adapt through experience.

Page 6: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 16

Artificial Intelligence

WikipediaThe term Artificial Intelligence (AI)

was first used by John McCarthy who considers it to mean "the science and engineering of making intelligent machines".[1]

It can also refer to intelligence as exhibited by an artificial (man-made, non-natural, manufactured) entity.

Page 7: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 17

Artificial Intelligence

WikipediaAI is studied in overlapping fields

of computer science, psychology, neuroscience and engineering, dealing with intelligent behavior, learning and adaptation and usually developed using customized machines or computers.

Page 8: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 18

tic tac toe

Page 9: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 19

Tic Tac Toe

Page 10: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 110

3D Tic Tac Toe

Page 11: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

Artificial Intelligence Fields

1.1. Natural Language Processing Natural Language Processing

Neural NetworksNeural NetworksMachine LearningMachine LearningRoboticsRoboticsComputer VisionComputer VisionExpert SystemsExpert Systems

Page 12: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 112

1 Natural Language Processing

• Wikipedia

• Natural language processing (NLP) is a subfield of artificial intelligence and linguistics. It studies the problems of automated generation and understanding of natural human languages.

• Natural language generation systems convert information from computer databases into normal-sounding human language, and natural language understanding systems convert samples of human language into more formal representations that are easier for computer programs to manipulate.

Page 13: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 113

Natural Language Processing

• have the same surface grammatical structure. However, in one of them the word they refers to the monkeys, in the other it refers to the bananas:

• the sentence cannot be understood properly without knowledge of the properties and behaviour of monkeys

• We gave the monkeys the bananas because they were hungry and We gave the monkeys the bananas because they were over-ripe.

Page 14: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 114

Natural Language Processing

• A string of words may be interpreted in myriad ways. For example,

1. time moves quickly just like an arrow does; 2. measure the speed of flying insects like you

would measure that of an arrow - i.e. (You should) time flies like you would an arrow.;

3. measure the speed of flying insects like an arrow would - i.e. Time flies in the same way that an arrow would (time them).;

4. measure the speed of flying insects that are like arrows - i.e. Time those flies that are like arrows;

5. a type of flying insect, "time-flies," enjoy arrows (compare Fruit flies like a banana.)

Time flies like an arrow

Page 15: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 115

Natural Language Processing

• English and several other languages don't specify which word an adjective applies to.

• For example, in the string "pretty little girls' school". – Does the school look little? – Do the girls look little? – Do the girls look pretty? – Does the school look pretty?

•"pretty little girls' school"

Page 16: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 116

Question Answering 2

•Mary went shopping for a new coat.

•She found a red one she really liked.

•When she got it home, she discovered that it went perfectly with her favorite dress.

ELIZA Q1:What did Mary go shopping for?A1: .............................................Q2:What did Mary find she liked?A2:.............................................Q3: Did Mary buy anything ?A3:.............................................

Page 17: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 117

Figure14.5: More Interaction among Components

S

NP

VJohn

VP

NP PP

N

boy

saw DET

the

PP with a telescope

in the park

John saw the boy in the park with a telescope.

Page 18: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 118

Figure14.5: More Interaction among Components

S

NP

VJohn

VP

NP

PPN

boy

saw DET

the

PP

with a dogin the park

John saw the boy in the park with a dog.

Page 19: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 119

Figure14.5: More Interaction among Components

John saw the boy in the park with a statue.

S

NP

VJohn

VP

NP

N

boy

saw DET

the

PP

with a statue

in the park

Page 20: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 120

2 Neural Networks

• neural network also neural net n. • A real or virtual device, modeled

after the human brain, in which several interconnected elements process information simultaneously, adapting and learning from past patterns

Page 21: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 121

Neural Network

• Computer Encyclopedia • neural network •A modeling technique based

on the observed behavior of biological neurons and used to mimic (imitate) the performance of a system.

Page 22: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 122

Neural Network

• It consists of a set of elements that start out connected in a random pattern, and, based upon operational feedback, are molded into the pattern required to generate the required results.

• It is used in applications such as robotics, diagnosing, forecasting, image processing and pattern recognition.

Page 23: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 123

Neural Network

• Accounting Dictionary • Neural Networks • Technology in which computers

actually try to learn from the data base and operator what the right answer is to a question.

Page 24: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 124

Neural Network

• The system gets positive or negative response to output from the operator and stores that data so that it will make a better decision the next time.

• While still in its infancy, this technology shows promise for use in accounting, fraud detection, economic forecasting, and risk appraisals.

• The idea behind this software is to convert the order-taking computer into a "thinking" problem solver.

Page 25: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 125

Neural Network

• Britannica Concise Encyclopedia • neural network • Type of parallel computation in which

computing elements are modeled on the network of neurons that constitute animal nervous systems.

• This model, intended to simulate the way the brain processes information, enables the computer to "learn" to a certain degree.

Page 26: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 126

Neural Network

• A neural network typically consists of a number of interconnected processors, or nodes. Each handles a designated sphere of knowledge, and has several inputs and one output to the network. Based on the inputs it gets, a node can "learn" about the relationships between sets of data, sometimes using the principles of fuzzy logic.

Page 27: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 127

Neural Network

•Neural networks have been used in pattern recognition, speech analysis, oil exploration, weather prediction, and the modeling of thinking and consciousness.

Page 28: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 128

Neural Network

Page 29: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 129

Neural Network

Page 30: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 130

Page 31: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 131

Page 32: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 132

Page 33: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 133

Page 34: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 134

Page 35: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 135

Page 36: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 136

A Neuron

• The n-dimensional input vector x is mapped into variable y by means of the scalar product and a nonlinear function mapping

k-

f

weighted sum

Inputvector x

output y

Activationfunction

weightvector w

w0

w1

wn

x0

x1

xn

Page 37: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 1

Multi-Layer Perceptron

Output nodes

Input nodes

Hidden nodes

Output vector

Input vector: xi

wij i

jiijj OwI

jIje

O

1

1

Page 38: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 138

Neural Network Training: A Detailed ViewNeural Network Training: A Detailed View

Page 39: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 139

Neural Networks

• Advantages– prediction accuracy is generally high– robust, works when training examples contain

errors– output may be discrete, real-valued, or a vector of

several discrete or real-valued attributes– fast evaluation of the learned target function

• Criticism– long training time– difficult to understand the learned function

(weights)– not easy to incorporate domain knowledge

Page 40: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 1

Network Training• The ultimate objective of training

– obtain a set of weights that makes almost all the tuples in the training data classified correctly

• Steps– Initialize weights with random values – Feed the input tuples into the network..... one by one– For each unit

• Compute the net input to the unit as a linear combination of all the inputs to the unit

• Compute the output value using the activation function

• Compute the error• Update the weights and the bias

Page 41: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 141

Feed-Forward Neural NetworkFeed-Forward Neural Network

Page 42: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 142

Neural Network Training: A Conceptual ViewNeural Network Training: A Conceptual View

Page 43: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 143

3 Machine Learning

• Sci-Tech Dictionary

• machine learning (mə′shēn ′lərn·iŋ)

• (computer science) The process or technique by which a device modifies its own behavior as the result of its past experience and performance.

Page 44: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 144

Machine Learning• Wikipedia • machine learning is concerned

with the development of algorithms and techniques that allow computers to "learn".

• At a general level, there are two types of learning: inductive, and deductive. Inductive machine learning methods extract rules and patterns out of massive data sets.

Page 45: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 145

Machine Learning• inductive, • Logic.

– The process of deriving general principles from particular facts or instances.

• Mathematics. – A two-part method of proving a theorem

involving an integral parameter . First the theorem is verified for the smallest admissible value of the integer. Then it is proven that if the theorem is true for any value of the integer, it is true for the next greater value. The final proof contains the two parts .

Page 46: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 146

Machine Learning• inductive, • reasoning from detailed facts to gen

eral principles– Rule induction is an area of machine

learning in which formal rules are

extracted from a set of observations .

Page 47: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 147

Machine Learning• deductive. Logic.

– The process of reasoning in which a conclusion follows necessarily from the stated premises; inference by reasoning from the general to the specific .

– reasoning from the general to the particular

– Deduction is the process of drawing conclusions from premises

Page 48: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 148

Machine Learning– Deduction The process of reaching a co

nclusion through reasoning from genera l premises to a specific premise.

– An example of deduction is present in th e following syllogism:

– Premise: All mammals are animals. – Premise: All whales are mammals .– Conclusion: Therefore, all whales are an

imals.

Page 49: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 149

Machine Learning

• deduction, in logic, form of inference

such that the conclusion must be true if the premises are true .

• For example, – if we know that….. all men have two legs – And that …………..John is a man,

– it is then logical to deduce that

……………………..John has two legs.

Page 50: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 150

4 Robotics

• Shakey the Robot Developed in 1969 by the Stanford Research Institute, Shakey was the first fully mobile robot with artificial intelligence. Seven feet tall, Shakey was named after its rather unstable movements. (Image courtesy of The Computer History Museum, www.computerhistory.org)

Page 51: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 151

Robotics

• A legged game from RoboCup 2004 in Lisbon, Portugal

• Team ENSCO's entry in the first Grand Challenge, DAVID

Page 52: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 152

Robotics• The DARPA Grand Challenge is

a race for a $2 million prize where cars drive themselves across several hundred miles of challenging desert terrain without any communication with humans, using GPS, computers and a sophisticated array of sensors. In 2005 the winning vehicles completed all 132 miles of the course in just under 7 hours.

Page 53: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 153

Robotics

• ro·bot A mechanical device that sometimes resembles a human and is capable of performing a variety of often complex human tasks on command or by being programmed in advance.

• A machine or device that operates automatically or by remote control.

• A person who works mechanically without original thought, especially one who responds automatically to the commands of others.

Page 54: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 154

Robotics

• Computer Encyclopedia • robot • A stand-alone hybrid computer system that

performs physical and computational activities. Capable of performing many different tasks, it is a multiple-motion device with one or more arms and joints.

• Robots can be similar in form to a human, but industrial robots do not resemble people at all.

Page 55: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 155

Robotics

• Huey, Dewey and Louie• Named after Donald

Duck's famous nephews, robots at this Wayne, Michigan plant apply sealant to prevent possible water leakage into the car. Huey (top) seals the drip rails while Dewey (right) seals the interior weld seams. Louie is outside of the view of this picture. (Image courtesy of Ford Motor Company.)

Page 56: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 156

Robotics• Inspect Pipes from the

Inside• Developed by SRI for

Osaka Gas in Japan, this Magnetically Attached General Purpose Inspection Engine (MAGPIE) goes inside gas pipes and looks for leaks. This unit served as the prototype for multicar models that perform temporary repairs while capturing pictures. (Image courtesy of SRI International.)

Page 57: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 157

Robotics

• Computers Making Computers

• Robots, whose brains are nothing but chips, are making chips in this TI fabrication plant. (Image courtesy of Texas Instruments, Inc.)

Page 58: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 158

Robotics• How Small Can They

Get?• By 2020, scientists at

Rutgers University believe that nano-sized robots will be injected into the bloodstream and administer a drug directly to an infected cell. This robot has a carbon nanotube body, a biomolecular motor that propels it and peptide limbs to orient itself.

Page 59: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 159

Robotics• ASIMO,• a humanoid robot

manufactured by Honda.

Page 60: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 160

5 Computer Vision

Page 61: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 161

Computer Vision

• Computer vision • The technology concerned with

computational understanding and use of the information present in visual images.

• In part, computer vision is analogous (similar) to the transformation of visual sensation into visual perception in biological vision.

Page 62: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 162

Computer Vision

• For this reason the motivation, objectives, formulation, and methodology of computer vision frequently intersect with knowledge about their counterparts in biological vision. However, the goal of computer vision is primarily to enable engineering systems to model and manipulate the environment by using visual sensing.

Page 63: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 163

Computer Vision

• Field of robotics in which programs attempt to identify objects represented in digitized images provided by video cameras, thus enabling robots to "see."

• Much work has been done on stereo vision as an aid to object identification and location within a three-dimensional field of view. Recognition of objects in real time.

Page 64: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 164

Computer Vision Vision based

biological species identification systems

Page 65: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 165

Computer Vision

• Artist's Concept of Rover on Mars,

• an example of an unmanned land-based vehicle. Notice the stereo cameras mounted on top of the Rover. (credit: Maas Digital LLC)

Page 66: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 166

Page 67: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 167

Image Processing Fields

Page 68: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 168

Digital Image Processing• Image

– An image is a two-dimensional signal

]1,0[]1,0[]1,0[: f

Page 69: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 169

Digital Image Processing

• Digital Image– A digital image is a two-dimensional signal with a

countable domain and a countable range

}255,...,1,0{}479,...,1,0{}639,...,1,0{: f

Page 70: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 170

Histogram

Page 71: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 171

2

Page 72: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 172

Image EnhancementImage Enhancement

Page 73: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 173

Line Detection

• horizontal,... +45 degree,.. vertical... and -45 degree masks

• Horizontal mask will result with max response when a line passed through the middle row of the mask with a constant background.

• the similar idea is used with other masks.• note: the preferred direction of each mask is weighted with a

larger coefficient ....(i.e.,2) than other possible directions.

Image Segmentation

Page 74: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 174

Example

Page 75: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 175

7 Expert Systems

• expert systemn. Computer Science.

•A program that uses available information, heuristics, and inference to suggest solutions to problems in a particular discipline.

Page 76: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 176

Expert Systems• Expert systems • Methods and techniques for

constructing human-machine systems with specialized problem-solving expertise.

• The pursuit of this area of artificial intelligence research has emphasized the knowledge that underlies human expertise and has simultaneously decreased the apparent significance of domain-independent problem-solving theory. In fact, new principles, tools, and techniques have emerged that form the basis of knowledge engineering.

Page 77: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 177

Expert Systems• Expertise consists of knowledge about a

particular domain, understanding of domain problems, and skill at solving some of these problems.

• Knowledge in any specialty is of two types, public and private.

• Public knowledge includes the published definitions, facts, and theories which are contained in textbooks and references in the domain of study. But expertise usually requires more than just public knowledge.

Page 78: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 178

Expert Systems

• Human experts generally possess private knowledge which has not found its way into the published literature.

• This private knowledge consists largely of rules of thumb or heuristics.

• Heuristics enable the human expert to make educated guesses when necessary, to recognize promising approaches to problems, and to deal effectively with erroneous or incomplete data.

Page 79: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 179

Expert Systems

Category Problem addressed

InterpretationsInferring situation descriptions from sensor

data

PredictionInferring likely consequences of given

situations

Diagnosis Inferring system malfunctions from observables

Design Configuring objects under constraints

Planning Designing actions

MonitoringComparing observations to plan

vulnerabilities

Debugging Prescribing remedies for malfunctions

RepairExecuting a plan to administer a prescribed

remedy

InstructionDiagnosing, debugging, and repairing

students' knowledge

Page 80: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 180

Jim Miller

Reference

Artificial Intelligence second edition, Elaine Rich and Kevin Knig ht,

- McGraw Hill Inc., 1991.

James A. O’Brien and George M. Marakas, Management Information Systems, 8th edition, McGraw-Hill

/Irwin, 2008

Page 81: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 181

Q & A

Page 82: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 182

http://www.thai2english.com

Page 83: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 183

Page 84: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 184

http://translate.google.com

Page 85: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 185

http://translate.google.com

Page 86: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 186

Page 87: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 187

Text to speech

Page 88: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 188

http://teachrose.com/rose/src/talk.php

Page 89: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 189

Expert systems

Page 90: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 190

Page 91: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 191

http://www.youtube.com/watch?v -= e21jpWhqVM&feature=related

Car Tracking

Page 92: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 192

http://www.youtube.com/watch?v=2GBMAtGaGdg

Robotics

Page 93: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 193

Virtual Reality

Page 94: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 194

http://www.youtube.com/watch?v=OKSodRhEvA8&feature=related

Car Tracking

Page 95: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 195

http://www.tonprikinfo.org/application/index.php?id=16

OLAP

Page 96: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 196

Page 97: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 197

Page 98: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 198

KM

Page 99: 450-101 Management Information System Artificial Intelligence & Expert Systems ผศ. ดร. วิภาดา เวทย์ประสิทธิ์ Office :CS320, Computer

323-670 Artificial Intelligence Chapter 199

Gotoknow.org