Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts...

17
Short-term memory Long-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion

Transcript of Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts...

Page 1: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Short-term memoryLong-term memory

Structure of rule based expert system

Production Rules Facts

Reasoning

Conclusion

Page 2: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Inference engine match-fire procedure

Knowledge base

Database

Fact: A is x Fact: B is y

Rule: If A is x then B is y

Match Fire

Page 3: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Probability of A

A

Page 4: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Probability of B

B

Page 5: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Joint probability of A and B

A A B B

Page 6: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Boolean logic examples

• Quick cars run a14.1 second quarter mile or better.

• People with hairy backs have 2500 or more hairs on their backs.

• Motors that run really hot are 245 degrees or more.

SlowQuick

HairyBald

14.1 sec

2500 hairs

HotCold

245 degrees

Page 7: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

14.1 seconds

2003 Camaro SS

1969 Camaro Z28 (14.2)

2006 Nissan Maxima (15.2)

1984 VW Diesel Rabbit (19.8)2007 Corvette Z06

(13.05)

1966 427 Cobra (11.5)

1988 Pro-stock Firebird(7.88)

Page 8: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Crisp “Tall Men”

Crisp 'Tall Men'

0

0.2

0.4

0.6

0.8

1

1.2

150 160 170 180 190 200 210

height (cm)

deg

ree

of

mem

ber

sh

ip

Crisp

Page 9: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Fuzzy “Tall Men”

Fuzzy 'Tall Men'

0

0.2

0.4

0.6

0.8

1

1.2

150 160 170 180 190 200 210

height

deg

ree

of

mem

ber

ship

Fuzzy

Page 10: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Fuzzy ‘short, average, tall men’

Fuzzy set, short, average, tall

0

0.2

0.4

0.6

0.8

1

1.2

155 160 165 170 175 180 185 190 195

height

mem

ber

ship

tall

short

average

Page 11: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Crisp ‘short, average, tall men’

0

0.2

0.4

0.6

0.8

1

1.2

155 160 165 170 175 180 185 190 195

tall

short

average

Page 12: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Start

Generate Population of Chromosomes of size N: x1, x2…xn

Calculate fitness of each Chromosome: f(x1), f(x2)…f(xn)

Terminate?

Select pair of chromosomes for mating

Crossover: p(c)

Mutation: p(m)

Add new chromosome to population

Is new Population complete?

Replace current population with new population

StopYes

No

Yes

No

Page 13: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Start

Generate Population of Parameters of size N: x(1) to x(n)

Calculate solution associated with parents: X = f(x(1)….x(n))

Replace X with X’

Stop

No

Get number of generations

Create a population of offspring parameters:x’(1) = x(1) + µx’(2) = x(2) + µ ; µ is a random peturbation

Calculate solution associated with offspring: X’ = f(x’(1)….x’(n))

Is X’ better than X ?

Number of generations complete?

No

yes

yes

Page 14: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Start

Generate Population of S-expressions of size N

Calculate fitness of each S-expression

Stop

Terminate?

No

yes

yesRank S-expressions by fitness

Transfer best S-expression to new population

Select genericoperator

Select one S-expression Select pair of S-expressions Select one S-expression

clone mutatecrossover

Breed

New populationComplete?

Replace old population with new population

Page 15: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Simple diagram of a Neuron

Soma

Synapse

AxonDendrites

Som

a

Page 16: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Soma

Page 17: Short-term memoryLong-term memory Structure of rule based expert system Production Rules Facts Reasoning Conclusion.

Dot product

x(1)

x(2)

x(..)

x(..)

x(n)

w(1)

w(2)

w(..)w(..)

w(n)

yTransferfunction