unsupervised learning networks 主講人 : 虞台文. content introduction important unsupervised...

60
Unsupervised Learning Networks 主主主 : 主主主

Upload: jacob-wilcox

Post on 18-Jan-2016

246 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Unsupervised Learning Networks

主講人 : 虞台文

Page 2: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Content Introduction Important Unsupervised Learning NNs

– Hamming Networks– Kohonen’s Self-Organizing Feature Maps– Grossberg’s ART Networks– Counterpropagation Networks– Adaptive BAN– Neocognitron

Conclusion

Page 3: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Unsupervised Learning Networks

Introduction

Page 4: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

What is Unsupervised Learning?

Learning without a teacher.

No feedback to indicate the desired outputs.

The network must by itself discover the

relationship of interest from the input data.

– E.g., patterns, features, regularities, correlations, or

categories.

Translate the discovered relationship into

output.

Page 5: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

A Strange World

Page 6: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Supervised Learning

IQ

Hei

ght

A B

C

Page 7: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Supervised Learning

IQ

Hei

ght

A B

C

Try ClassificationTry Classification

Page 8: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Probabilities of Populations

IQ

Hei

ght

A B

C

Page 9: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Centroids of Clusters

IQ

Hei

ght

A B

C

Page 10: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Centroids of Clusters

IQ

Hei

ght

A B

C

Try ClassificationTry Classification

Page 11: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Unsupervised Learning

IQ

Hei

ght

Page 12: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Unsupervised Learning

IQ

Hei

ght

Page 13: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Clustering Analysis

IQ

Hei

ght

Categorize the input patterns into several classes based on the similarity among patterns.

Page 14: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Clustering Analysis

IQ

Hei

ght

Categorize the input patterns into several classes based on the similarity among patterns.

How many classes we may have?

How many classes we may have?

Page 15: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Clustering Analysis

IQ

Hei

ght

Categorize the input patterns into several classes based on the similarity among patterns.

2 clusters2 clusters

Page 16: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Clustering Analysis

IQ

Hei

ght

Categorize the input patterns into several classes based on the similarity among patterns.

3 clusters3 clusters

Page 17: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Clustering Analysis

IQ

Hei

ght

Categorize the input patterns into several classes based on the similarity among patterns.

4 clusters4 clusters

Page 18: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Unsupervised Learning Networks

The Hamming Networks

Page 19: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Nearest Neighbor Classifier

Suppose that we have p prototypes centered at x(1),

x(2), …, x(p). Given pattern x, it is assigned to the class label of t

he ith prototype if

Examples of distance measures include the Hamming distance and Euclidean distance.

( )arg min ( , )k

ki dist x x

Page 20: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Nearest Neighbor Classifier

11 22

33 44

x(1) x(2)

x(3)x(4)

The Stored PrototypesThe Stored Prototypes

Page 21: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Nearest Neighbor Classifier

11 22

33 44

x(1) x(2)

x(3)x(4)

?Class

Page 22: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Hamming Networks

Stored a set of classes represented by a set of binary prototypes.

Given an incomplete binary input, find the class to which it belongs.

Use Hamming distance as the distance measurement.

Distance vs. Similarity.

Page 23: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Hamming Net

Similarity Measurement

MAXNET Winner-Take-All

x1 x2 xn

Page 24: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Hamming Distance

y = 1 1 1 1 1 1 1

x = 1 1 1 1 1 1 1

Hamming Distance = ?Hamming Distance = ?

Page 25: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

y = 1 1 1 1 1 1 1

x = 1 1 1 1 1 1 1

The Hamming Distance

Hamming Distance = 3Hamming Distance = 3

Page 26: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

y = 1 1 1 1 1 1 1

The Hamming Distance

1 1 1 1 1 1 1

Sum=1

12( , ) (7 1) 3HD x y

x = 1 1 1 1 1 1 1

Page 27: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Hamming Distance

1 2( , , , ) {1, 1}Tm iy y y y y

1 2( , , , ) {1, 1}Tm ix x x x x

( , ) ?HD x y

( , ) ?Similarity x y

Page 28: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Hamming Distance

1 2( , , , ) {1, 1}Tm iy y y y y

12( , ) ( )THD m x y x y

12

1 12 2

( , ) ( )

T

T

Similarity m m

m

x y x y

x y

1 2( , , , ) {1, 1}Tm ix x x x x

Page 29: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Hamming Net

Similarity Measurement

MAXNET Winner-Take-All

11 22 n1n1 nn

x1 x2 xm1 xm

11 22 n1n1 nn

y1 y2 yn1 yn

Page 30: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Hamming Net

Similarity Measurement

MAXNET Winner-Take-All

11 22 n1n1 nn

x1 x2 xm1 xm

11 22 n1n1 nn

y1 y2 yn1 yn

WS=?WS=?

WM=?WM=?

Page 31: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Stored Patterns

Similarity Measurement

MAXNET Winner-Take-All

11 22 n1n1 nn

x1 x2 xm1 xm

11 22 n1n1 nn

y1 y2 yn1 yn

WS=?WS=?

WM=?WM=?

1 2

1 2( , , ) { 1,

Stored patterns

with 1 }.

n

k k k k T km i

n , , ,

s s s s

s s s

s

1 2

1 2( , , ) { 1,

Stored patterns

with 1 }.

n

k k k k T km i

n , , ,

s s s s

s s s

s

kTk mSimilarity sxsx 21

21),( kTk mSimilarity sxsx 2

121),(

1 12 2

1

( , )m

k ki i

i

Similarity m x s

x s 1 12 2

1

( , )m

k ki i

i

Similarity m x s

x s

Page 32: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Stored Patterns

Similarity Measurement

1 2

1 2( , , ) { 1,

Stored patterns

with 1 }.

n

k k k k T km i

n , , ,

s s s s

s s s

s

1 2

1 2( , , ) { 1,

Stored patterns

with 1 }.

n

k k k k T km i

n , , ,

s s s s

s s s

s

),( kSimilarity sx ),( kSimilarity sxk

x1 x2 xm. . .

112ks 1

22ks

12

kms

m/2

kTk mSimilarity sxsx 21

21),(

kTk mSimilarity sxsx 21

21),(

1 12 2

1

( , )m

k ki i

i

Similarity m x s

x s 1 12 2

1

( , )m

k ki i

i

Similarity m x s

x s

Page 33: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Weights for Stored Patterns

Similarity Measurement

11 22 n1n1 nn

x1 x2 xm1 xm

WS=?WS=?

1 2

1 2( , , ) { 1,

Stored patterns

with 1 }.

n

k k k k T km i

n , , ,

s s s s

s s s

s

1 2

1 2( , , ) { 1,

Stored patterns

with 1 }.

n

k k k k T km i

n , , ,

s s s s

s s s

s

1 1 11 22 2 21 2

1 2

1

2

m

mS

n n nm

s s s

s s s

s s s

W

1 1 11 22 2 21 2

1 2

1

2

m

mS

n n nm

s s s

s s s

s s s

W

112

212

12

T

T

S

T n

s

s

s

x

xW x

x

112

212

12

T

T

S

T n

s

s

s

x

xW x

x

Page 34: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Weights for Stored Patterns

Similarity Measurement

11 22 n1n1 nn

x1 x2 xm1 xm

WS=?WS=?

1 2

1 2( , , ) { 1,

Stored patterns

with 1 }.

n

k k k k T km i

n , , ,

s s s s

s s s

s

1 2

1 2( , , ) { 1,

Stored patterns

with 1 }.

n

k k k k T km i

n , , ,

s s s s

s s s

s

m/2 m/2 m/2

m/2

2/mθi 2/mθi

Page 35: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The MAXNET

Similarity Measurement

MAXNET Winner-Take-All

11 22 n1n1 nn

x1 x2 xm1 xm

11 22 n1n1 nn

y1 y2 yn1 yn

Page 36: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Weights of MAXNET

MAXNET Winner-Take-All11 22 n1n1 nn

y1 y2 yn1 yn

11

Page 37: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Weights of MAXNET

MAXNET Winner-Take-All11 22 n1n1 nn

y1 y2 yn1 yn

0< < 1/n0< < 1/n

1

1

1

1

M

ε ε ε

ε ε ε

ε ε ε

ε ε ε

W

11

Page 38: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Updating Rule

MAXNET Winner-Take-All11 22 n1n1 nn

0< < 1/n0< < 1/n

11

s1 s2 s3 sn1

1

1

1

M

ε ε ε

ε ε ε

ε ε ε

ε ε ε

W

11ty 1

2ty 1

1tny

1tny

1ty 2

ty 1tny

tny

0i iy s

1 ( )t tMa y W y

0 1, , ,Tt t t t

ny y yy

Page 39: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Updating Rule

MAXNET Winner-Take-All11 22 n1n1 nn

0< < 1/n0< < 1/n

11

s1 s2 s3 sn1

1

1

1

M

ε ε ε

ε ε ε

ε ε ε

ε ε ε

W

11ty 1

2ty 1

1tny

1tny

1ty 2

ty 1tny

tny

0i iy s

1 ( )t tMa y W y

0 1, , ,Tt t t t

ny y yy

n

j

tj

ti

n

ijj

tj

ti

n

j

tjij

ti εyyεaεyyayway

111

1 )1(

n

j

tj

ti

n

ijj

tj

ti

n

j

tjij

ti εyyεaεyyayway

111

1 )1(

Page 40: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Analysis Updating Rule

n

j

tj

ti

n

ijj

tj

ti

n

j

tjij

ti εyyεaεyyayway

111

1 )1(

n

j

tj

ti

n

ijj

tj

ti

n

j

tjij

ti εyyεaεyyayway

111

1 )1(

Let

00

0)(

net

netnetneta

If now , 00

ti

v i ky v

i k

ki

kivy t

i 01

Page 41: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Analysis Updating Rule

n

j

tj

ti

n

ijj

tj

ti

n

j

tjij

ti εyyεaεyyayway

111

1 )1(

n

j

tj

ti

n

ijj

tj

ti

n

j

tjij

ti εyyεaεyyayway

111

1 )1(

Let

00

0)(

net

netnetneta

If nowti

i

tk yy max

11 max ti

i

tk yy

0 if 1 tj

ti

ti yijyy

Page 42: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Example

0

0.2

0.4

0.6

0.8

1

1 2 3 4 5 6 7 8 9 10

0

0.2

0.4

0.6

0.8

1

1 2 3 4 5 6 7 8 9 10

Page 43: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Unsupervised Learning Networks

The Self-organizing Feature Map

Page 44: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Feature Mapping

Map high-dimensional input signals onto a lower-dimensional (usually 1 or 2D) structure.

Similarity relations present in the original data are still present after the mapping.

Dimensionality Reduction Dimensionality Reduction

Topology-Preserving Map Topology-Preserving Map

Page 45: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Somatotopic Map Illustration:The “Homunculus”

The relationship between body surfaces and the regions of the brain that control them.

Page 46: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Another Depiction of the Homunculus

Page 47: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Phonotopic maps

Page 48: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Phonotopic maps

humppila

Page 49: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Self-Organizing Feature Map

Developed by professor Kohonen.One of the most popular neural n

etwork models. Unsupervised learning.Competitive learning networks.

Page 50: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

The Structure of SOM

Page 51: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Example

Page 52: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Local Excitation, Distal Inhibition

Page 53: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Topological Neighborhood

Square Hex

Page 54: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Size Shrinkage

)(*

1tiN

)(*

1tiN

)(*

2tiN

)(*

2tiN

)(*

3tiN

)(*

3tiN

Page 55: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Size Shrinkage

)(*

1tiN

)(*

1tiN

)(*

2tiN

)(*

2tiN

)(*

3tiN

)(*

3tiN

Page 56: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Learning Rule

jj

i ww ˆxminˆx *

Similarity Matching*i*i

Updating

otherwisew

Niwxαww t

ij

ti

tij

tj

ttijt

ij )(

)(*

)()()()()1( ][

Page 57: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Example

Page 58: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Example

Page 59: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Example

Page 60: Unsupervised Learning Networks 主講人 : 虞台文. Content Introduction Important Unsupervised Learning NNs – Hamming Networks – Kohonen’s Self-Organizing Feature

Example