• No results found

A Constructive Algorithm to Determine the Feasibility and Weights of Two-Layer Perceptrons for Celled Decision Regions

N/A
N/A
Protected

Academic year: 2021

Share "A Constructive Algorithm to Determine the Feasibility and Weights of Two-Layer Perceptrons for Celled Decision Regions"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

A Constructive Algorithm to Determine the Feasibility and Weights of

Two-Layer Perceptrons for Celled Decision Regions

CHE-CHERN LIN

Department of Industrial Technology Education

National Kaohsiung Normal University

116 Ho Ping First Road,Kaohsiung, 802

TAIWAN, ROC

Abstract: - Necessary and sufficient conditions for implementing particular decision regions by multi-layer perceptrons have been presented in recent studies. In this paper, from a viewpoint of engineering, a constructive algorithm is proposed to implement celled decision regions using two-layer perceptrons without any training procedure. The algorithm examines the feasibility of a celled decision region and then determines the weights of the second layer for a particular two-layer perceptron to implement the decision region if it is realizable. The algorithm is fast based on two aspects. First, it tests the feasibility and determines the weights without any training procedure. Second, the classifications of input patterns are based on integer manipulations since the weights determined by the algorithm are all integers. The proposed algorithm consists of only three simple steps and is implemented easily by computer programming languages.

Key-Words: - Classification; Multi-layer perceptron; Celled decision region; Partitioning capability.

1 Introduction

A multi-layer perceptron is a layered structure neural network. People use weights to connect nodes in each layer to perform the desired mapping from inputs to outputs. Training algorithms are used to adjust the weight in a neural network in order to get better classification results. However, it takes a lot of time to optimize the weights during the training procedure especially when the number of weights in a neural network is large.

Another approach to obtain the weights of a neural network is to examine its partitioning capability and then determine the weights using some appropriate algorithms. An original discussion about the partitioning capabilities of multi-layer perceptrons can be found in [1] where the author indicated one-layer perceptrons only realize linearly separating decision regions, two-layer percptrons (TLPs) implement either convex open or closed decision regions, and three-layer perceptrons can successfully partition arbitrary decision regions. Further studies related to the feasibilities of multi-layer perceptrons are listed in [2-11]. The partitioning capability of TLPs has been generally discussed in [8], in which the author proposed the Weight Deletion/Selection Algorithm to determine the feasibility of TLPs and select the weights without any training procedure if a decision region is realizable.

In this paper, the author proposes a constructive

algorithm to examine the feasibility of a celled decision region by a particular TLP, and then determine the weights of second layer of the TLP if the decision region is realizable. Therefore, in this paper, when the author mentions ‘select weights ’, it means ‘select weights of the second layer of a particular TLP ’.

The primary advantage of the algorithm lies in the computational speed to determine the feasibility and weights of the neural networks for celled decision regions because there is no training procedure to be used to adjust the weights. Furthermore, the weights determined by the algorithm are all integers. This will make the computation faster when classifying input patterns.

2

Preliminaries

2.1 Decision regions

It has been known that the weights of the first layer of a TLP are pre-determined if its associated decision region is established [2, 8]. We only need to get the weights of the second layer of the TLP. This paper focuses on how to generate the weights of the second layer of a TLP and assumes the weights of the first layer of a TLP are pre-determined.

It has been known that for a two-layer perceptron, the number of inputs determines the dimensionality of its associated decision region. The first layer of a two-layer perceptron generates the associated decision region and the second-layer serves to map

(2)

the input pattern to the desired outputs [2,8]. An m-dimensional decision region can be divided by a group of m-dimensional partitioning hyper-planes. These partitioning hyper-planes are associated with the hidden nodes of a particular two-layer perceptron with a one-to-one correspondence and divide the original decision region into different sub-regions.

For two-class classification problems, theθvalue for a particular sub-region in a decision region, is defined as follows [8]

= = p k k k l w z 1

θ

(1) where θl is the θvalue of sub-region l, p is the

number of partitioning lines in the decision region, and wk is the weight connecting first layer node zk

with the output node.

The output of the TLP is given by

⎩ ⎨ ⎧ < ≥ = h l h l B A y

θ

θ

θ

θ

if ) class ( 0 if ) class ( 1 (2) whereθh is the threshold for the output node.

The necessary and sufficient condition for implementing a decision region is the minimum θ value of sub-regions belonging to class A must be greater than the maximumθvalue of sub-regions belonging to class B [2,6,8].

2.2 Celled decision regions

A ‘celled decision region’ is a decision region

partitioned by horizontal and vertical lines by which the decision region is divided into rectangle-like celled sub-regions. These celled sub-regions are then grouped into several horizontal or vertical strips. If a celled decision has m vertical partitioning lines and n horizontal partitioning lines, we get (m+1) vertical strips and (n+1) horizontal strips. For convenience, the author uses notation ‘VSi to represent vertical

strips i and numbers the vertical strips from the left to the right (VS0, VS1, VS2, …, VSm). Similarly, the

author uses notation ‘HSj to represent horizontal

strip j and numbers the horizontal strips from the bottom to the top (HS0, HS1, HS2, …, HSn.). A celled

sub-region is denoted as ‘Cij’ if it is in the intersection

of vertical strip i (VSi) and horizontal strip j (HSj).

Figure 1 displays a celled decision region with 4 horizontal partitioning lines (wh1 to wh4) and 5 vertical

partitioning lines (wv1 to wv5). The decision region is

established either by 6 vertical strips: VS0, VS1, VS2, VS3, VS4 and VS5 or by 5 horizontal strips: HS0, HS1, HS2, HS3, and HS4. Each of vertical and horizontal

strips consists of a series of celled sub-regions, as indicated in Figure 1.

A celled sub-region Cij is represented by two

components: ‘horizontal component’ i and ‘vertical

component’ j. The author uses notation ‘HCi to

represent horizontal component i and notation ‘VCj

to represent vertical component j. It is very important to note that the horizontal component of Cij (HCi) is

associated with vertical strip i (VSi), and the vertical

component of Cij (VCj) is associated with horizontal

strip j (HSj). For example, C23 is represented by HC2

which is associated with vertical strip 2 (VS2) and by VC3 which is associated with horizontal strip 3 (HS3).

Furthermore, the author uses notation ‘VSiA to

represent a subset of class A of VSi, in which all

elements belong to class A. The author also uses notation ‘HSjA to represent a subset of class A of HSj,

in which all elements belong to class A. For example, in Figure 1, VS0A = {C01, C02, C03, C04}, VS4A

= {C41, C42}, HS0A=

Φ

(the empty set), and HS3A =

{C03, C23}.

The author uses notation

VS

iAV to represent a collection of the vertical components of the elements in VSiA,. For example, in Figure 1,

V A

VS

0 ={VC1, VC2, VC3, VC4}. Similarly, the author uses

H jA

HS to represent a collection of the horizontal components of the elements in HSjA . For example, in Figure 1,

H A

HS

2 ={HC0, HC1, HC3, HC4, HC5}.

2.3 The XOR examining procedure

Based on the XOR criterion presented in [1-5], the author demonstrates the XOR examining procedure, by providing an example, to explain the necessary and sufficient condition of implementation of a celled decision region using a TLP. Observing Figure 1, one finds that in VS2,C23 belongs to class A while C21

belongs to class B. To implement the classification, the order of the θvalues of C23 andC21 isgiven by

0 1 2 1 2 3 3 2 1 2 1 21 23 > + ⇒ + + > + + + + ⇒ > h h h v v h h h v v w w w w w w w w w w θ θ (3) Similarly, in VS4, C41 belongs to class A while C43

belongs to class B. the order of the θvalues of C41 and C43 isgiven by 0 1 2 3 4 1 2 3 3 2 1 4 3 2 1 41 43 < + ⇒ + + + + < + + + + + + ⇒ < h h h v v v v h h h v v v v w w w w w w w w w w w w w w θ θ (4) Eqs. (3) and (4) lead to a contradiction, called the XOR problem [1-5], which means the decision region cannot be implemented by TLPs sincethe sum of wh2 and wh3 cannot be positive and negative values

simultaneously.

However for a celled decision region, using the above XOR examining procedure to test the feasibilities spends a lot of computational time since it needs to examine any possible sub-region pairs where the XOR problem could occur. For example,

(3)

consider a celled decision region with m vertical strips and n horizontal strips. There are

4

)

!

(

)

!

(

m

n

XOR pairs needed to be examined in the celled decision region (symbol ‘!’ denotes a factorial manipulation). The computational complexity is extremely heavy when m and n are large numbers.

In Figure 1,

VS

2VA ={VC3, VC4}, and

V A

VS

4 ={VC1, VC2}. The XOR problem occurs because at

least one element in

VS

4VA is not in

VS

2VA, and vice versa. For example, VC1 is in

V A

VS

4 but not in V A

VS

2 , and VC3 is in V A

VS

2 but not in

VS

V4A. To avoid the XOR problem in a celled decision region, for any possible pair of vertical strips, say VSk and VSl,

the following relationship must be satisfied:

or

VKA V lA V lA V KA

VS

VS

VS

VS

(5) Based on the above discussion, in the next section,

two criteria are presented to test the feasibility of implementation of a celled decision region by a TLP and to select the weights of the second layer of the TLP if the decision region is realizable.

2.4 Criteria

Criterion 1: A celled decision region can be

implemented by a TLP if for the vertical strips in the decision region one can find a particular order to satisfy the following relationship

{ { 2 Position 1 Position Λ ⊆ ⊆ V jA V iA VS

VS for distinct vertical strips (6)

It is important to note that in Eq. (6) numbers i, j, k,…, etc, are not necessary in a numerical order. The author defines the ‘position’ of a set in Eq. (6) according to the position counted from the left to the right. The ‘rank’ of a vertical component VCi,

denoted as ‘rank(VCi)’, is said to be r if VCi is in the

set with position rbut not in the set with position r-1. If a vertical component is in the set with posoition1, its rank is 1. For example, in Figure 2(a), we get

V A

VS

0 ={VC0, VC1, VC2, VC3, VC4}, V A

VS

1 ={VC1, VC2}, V A

VS

2 ={VC1, VC2, VC3, VC4}, V A

VS

3 ={VC2},

and

VS

4VA ={VC1, VC2, VC3}. Rearranging these

sets, one gets the following relationship

{ 123 123 123 3 2 1 5 Position 0 4 Position 2 3 Position 4 2 Position 1 1 Position 3 V A V A V A V A V A VS VS VS VS VS ⊂ ⊂ ⊂ ⊂ (7) The ranks of the vertical components are as follows:

rank(VC2) = 1, since VC2 is in V A

VS

3 (position 1), rank(VC1) = 2, since VC1 is in V A

VS

1 (position 2) but not in

VS

V3A (position 1),rank(VC3) = 3, since VC3

is in

VS

4VA (position 3) but not in V A

VS

1 (position 2),rank(VC4) = 4, since VC4 is in V A

VS

2 (position 4)

but not in

VS

V4A (position 3), and rank(VC0) = 5,

since VC0 is in

V A

VS

0 (position 5) but not in

V A

VS

2 (position 4).

Similarly, to obtain the ranks of the horizontal components, one first gets the following relationship:

2 Position 1 Position Λ 3 2 1 3 2 1 ⊆ HjAH iA HS

HS for distinct horizontal strips (8)

Again, in Figure 2(a), we get

HS

0HA ={HC0},

H A

HS

1 ={HC0, HC1, HC2, HC4}, H A

HS

2 ={HC0, HC1, HC2, HC3, HC4}, H A

HS

3 ={HC0, HC2, HC4}, and H A

HS

4 ={HC0, HC2}.

Rearranging these sets, one gets the following relationship 3 2 1 3 2 1 3 2 1 3 2 1 3 2 1 5 Position 2 4 Position 1 3 Position 3 2 Position 4 1 Position 0 H A H A H A H A H A HS HS HS HS HS ⊂ ⊂ ⊂ ⊂ (9)

The ranks of the horizontal components are as follows: rank(HC0)=1, rank(HC2)=2, rank(HC4)=3,

rank(HC1)= 4, and rank(HC3) = 5.

Note that if two or more components are tied at the same position in Eqs. (6) or (8), they have the same position. Figure 2(b) is an example of tired positions with the following relationships:

5 Position 0 4 Position 4 (tied) 3 Position 5 2 (tied) 2 Position 7 3 1 1 Position 6 3 2 1 3 2 1 4 4 3 4 4 2 1 4 4 4 3 4 4 4 2 1 3 2 1 V A V A V A V A V A V A V A V A VS VS VS VS VS VS VS VS ⊂ ⊂ = ⊂ = = ⊂ (10) 5 Position 1 4 Position 3 3 Position 4 2 Position 5 (tied) 1 Position 6 2 0 3 2 1 3 2 1 3 2 1 3 2 1 4 4 4 4 3 4 4 4 4 2 1 H A H A H A H A H A H A H A HS HS HS HS HS HS HS ⊂ ⊂ ⊂ ⊂ = = (11)

The ranks of the vertical components in Figure 2(b) are as follows: rank(VC1) = 1, rank(VC3) = 2,

rank(VC4) = 3, rank(VC5) = 4, rank(VC0) =

rank(VC2) = rank(VC6) = 5. The ranks of the

horizontal components are as follows: rank(HC0) = 1,

rank(HC4) = 2, rank(HC2) = rank(HC5) = 3,

rank(HC1) = rank(HC3) = rank(HC7) = 4, and

rank(HC6) = 5.

Criterion 2: If a celled decision region is realizable by a TLP, the weights of the second layer of the TLP are determined by the following recursive formulas:

wvi = rank(HCi-1) – rank(HCi) for vertical weights (12) whj =rank(VCj-1)–rank(VCj) for horizontal weights (13)

where m is the number of the vertical weightsand n is the number of the horizontal weights.

(4)

3 The Algorithm and Examples

3.1 Procedure of the algorithm

Step 1 (Feasibility-Determining Step): Determine

the feasibility of a celled decision region by Criterion 1. If it is not realizable, stop the algorithm and conclude the decision region cannot be implemented by TLPs. If it is realizable, go to Step 2.

Step 2 (Weight-Selecting Step): Determine the

weights of the second layer for a particular TLP by Criterion 2.

Step 3 (Threshold-Determination Step): θh is set to

be equal to the minimumθvalue of the celled sub-regions belonging to class A.

3.2 Examples of the Algorithm

Figure 1 is an example of an unrealizable celled decision region since one cannot find a particular order for the vertical strips to satisfy Eq. (6).

Figure 2(a) is an example of a realizable celled decision region without tied position where the ranks of the vertical and horizontal components are indicated early. By Criterion 2, the weights of the second layer of the TLP are determined as follows: wv1= rank(HC0) – rank(HC1) = 1 – 4 = -3, wv2= rank(HC1) – rank(HC2) = 4 – 2 = 2, wv3= rank(HC2) – rank(HC3) = 2 – 5 = -3, wv4= rank(HC3) – rank(HC4) = 5 – 3 = 2 wh1= rank(VC0) – rank(VC1) = 5 – 2 = 3, wh2= rank(VC1) – rank(VC2) = 2 - 1 = 1, wh3= rank(VC2) – rank(VC3) = 1 – 3 = -2, and wh4= rank(VC3) – rank(VC4) = 3 – 4 = -1,

The decision region is implemented by lettingθh = 0.

Figure 2(b) is another realizable decision region with tied positions. The vertical and horizontal weights to implement the decision region are determined as follows: wv1 = -3, wv2 = 1, wv3 = -1, wv4 = 2, wv5 = -1, wv6 = -2, wv7 = 1, wh1 = 4, wh2 = -4, wh3

= 3, wh4 = -1, wh5 = -1,and wh6 = -1. By lettingθh =

0, one can implement the decision region by the above weights.

4

Conclusions

The author presented a constructive algorithm to examine the feasibility of implementation of celled decision regions by TLPs. If the celled decision region is realizable by a particular TLP, the algorithm generates the weights of the second layer of the TLP to implement the celled decision region without any training procedure.

The algorithm is fast based on two aspects. First, it

tests the feasibility and determines the weights without any training procedure. Second, the classifications of input patterns are based on integer manipulations since the weights determined by the algorithm are all integers. The proposed algorithm consists of only three simple steps and is implemented easily by computer programming languages.

The partitioning capabilities of two-layer perceptrons for more complex decision regions such as convex or even non-convex decision regions might be interesting issues for the future work.

References

[1] R. P. Lippmann, An Introduction to Computing with Neural Nets, IEEE ASSP Mag.,Vol.4, 1987, pp. 4-22.

[2] J. Makhoul, A. El-Jaroudi, and R. Schwartz, Partitioning Capabilities of Two-Layer Neural Networks, IEEE Trans. on Signal Processing, Vol. 39, No. 6, 1991, pp. 1436-1440.

[3] P. J. Zwietering, E. H. L. Arts, and J. Wessels, Exact Classification with Two-Layered Perceptrons, Int. Journal of Neural Systems, Vol. 3, No. 2, 1992, pp. 143-156.

[4] G. Cybenko, Approximation by Superpositions of a Sigmoidal Function, Math. Contr., Signals, Syst., 1989, pp. 303-314.

[5] R. Shonkwiler, Separating the Vertices of N-Cubes by Hyperplanes and its Application to Artificial Neural Networks, IEEE Trans. on Neural Networks, Vol. 4, No. 2, 1993, pp. 343-347.

[6] C. Lin and A. El-Jaroudi, A Study on the Partitioning Capabilities of Two-Layer Neural Networks, IEEE Int. Conf. on Neural Network, Orlando, Florida, July 1994, pp. I-360-365. [7] G. J. Gibson and C. F. Cowan, On the Decision

Regions of Multilayer Perceptrons, Proceeding of the IEEE, Vol. 78, No. 10, 1990, pp. 1590-1594. [8] C. Lin and A. El-Jaroudi, An Algorithm to

Determine the Feasibilities and Weights of Two-Layer Perceptrons for Partitioning and Classification, Pattern Recognition, Vol. 31, No. 11, 1998, pp. 1613-1625.

[9] G. J. Gibson, A Combinatorial Approach to Understanding Perceptron Capabilities, IEEE Trans. on Neural Networks, Vol. 4, No. 6, 1993, pp. 989-992.

[10] A Wieland and R. Leighton, Geometric Analysis of Neural Network Capabilities, IEEE Int. Conf. on Neural Networks, 1987, pp. III-385-392.

(5)

C

04

C

14

C

24

C

34

C

44

C

54

C

03

C

13

C

23

C

33

C

43

C

53

C

02

C

12

C

22

C

32

C

42

C

52

C

01

C

11

C

21

C

31

C

41

C

51

C

00

C

10

C

20

C

30

C

40

C

50

Remarks:

For vertical strips

:

VS

0

= {C

00

, C

01,

C

02,

C

03,

C

04

},

VS

1

= {C

10

, C

11,

C

12,

C

13,

C

14

},

VS

2

= {C

20

, C

21,

C

22,

C

23,

C

24

},

VS

3

= {C

30

, C

31,

C

32,

C

33,

C

34

},

VS

4

= {C

40

, C

41,

C

42,

C

43,

C

44

},

VS

5

= {C

50

, C

51,

C

52,

C

53,

C

54

}.

The subsets of class A of vertical strips:

VS

0A

={C

01,

C

02,

C

03,

C

04

},

VS

1A

= {C

11,

C

12

},

VS

2A

= {C

23,

C

24

},

VS

3A

= {C

32

},

VS

4A

= {C

41,

C

42

},

VS

5A

= {C

51,

C

52

}.

The sets of vertical components of

VS :

ViA

V A

VS

0

={

VC

1,

VC

2,

VC

3,

VC

4

},

VS

1VA

={

VC

1,

VC

2

},

V A

VS

2

={

VC

3,

VC

4

},

V A

VS

3

={

VC

2

},

V A

VS

4

={

VC

1,

VC

2

},

V A

VS

5

={

VC

1,

VC

2

}.

For horizontal strips:

HS

0

= {C

00

, C

10,

C

20,

C

30,

C

40,

C

50,

},

HS

1

= {C

01

, C

11,

C

21,

C

31,

C

41,

C

51,

},

HS

2

= {C

02

, C

12,

C

22,

C

32,

C

42,

C

52,

},

HS

3

= {C

03

, C

13,

C

23,

C

33,

C

43,

C

53,

},

HS

4

= {C

04

, C

14,

C

24,

C

34,

C

44,

C

54

}.

The subsets of class A of horizontal strips:

HS

0A

=

Φ

,

HS

1A

= {C

01

, C

11,

C

41,

C

51

},

HS

2A

= {C

02

, C

12,

C

32,

C

42,

C

52,

},

HS

3A

= {C

03,

C

23

},

HS

4A

= {C

04

, C

24

}.

The sets of horizontal components of

HSHjA

:

H A

HS

0

=

Φ

,

H A

HS

1

= {

HC

0,

HC

1,

HC

4,

HC

5

},

H A

HS

2

= {

HC

0,

HC

1,

HC

3,

HC

4,

HC

5

},

H A

HS

3

= {

HC

0,

HC

2

},

H A

HS

4

= {

HC

0,

HC

2

}.

wv1 wv2 wv3 wv4 wv5

Figure 1: The Celled Decision Region

wh1 wh2 wh3 wh4

HC

0

HC

1

HC

2

HC

3

HC

4

HC

5

VS

0

VS

1

VS

2

VS

3

VS

4

VS

5

(Vertical Strips)

(Horizontal Components)

Vertical Components

HS

4

HS

3

HS

1

HS

2

HS

0

VC

0

VC

1

VC

4

VC

3

VC

2 Horizontal Strips

(6)

C

04

C

14

C

24

C

34

C

44

C

03

C

13

C

23

C

33

C

43

C

02

C

12

C

22

C

32

C

42

C

01

C

11

C

21

C

31

C

41

C

00

C

10

C

20

C

30

C

40

C

06

C

16

C

26

C

36

C

46

C

56

C

66

C

76

C

05

C

15

C

25

C

35

C

45

C

55

C

65

C

75

C

04

C

14

C

24

C

34

C

44

C

54

C

64

C

74

C

03

C

13

C

23

C

33

C

43

C

53

C

63

C

73

C

02

C

12

C

22

C

32

C

42

C

52

C

62

C

72

C

01

C

11

C

21

C

31

C

41

C

51

C

61

C

71

C

00

C

10

C

20

C

30

C

40

C

50

C

60

C

70

Figure 2: The Examples of the Algorithm

wv1 wv2 wv3 wv4 wh1 wh2 wh3 wh4 wv2 wv3 wv4 wv5 wv6 wv7 wv1 wh1 wh2 wh3 wh4 wh5 wh6

(a) Example without Ties of Positions of Vertical Strips

(b) Example with Ties of Positions of Vertical strips

HS

4

HS

3

HS

1

HS

2

HS

0

VS

0

VS

1

VS

2

VS

3

VS

4

VS

5

VS

6

VS

7

HS

4

HS

3

HS

1

HS

2

HS

0

HS

6

HS

5

HC

3

VC

0

VC

1

VC

2

VC

3

VC

4

VC

0

VC

1

VC

2

VC

3

VC

4

VC

5

VC

6

HC

4

HC

1

HC

2

HC

0

(Horizontal Components)

VS

0

VS

1

VS

2

VS

3

VS

4

(Vertical Strips)

HC

4

HC

1

HC

2

HC

3

HC

0

HC

5

HC

6

HC

7

(Horizontal Components)

(Vertical Strips)

Horizontal Strips Vertical Components Horizontal Strips Vertical Components

References

Related documents

We have found evidence that inhibition of GSK-3 b either through activation of the PI3-kinase/AKT signaling pathway or through the use of pharmacological inhibitors of GSK-3 b leads

Biological control is the use of living organisms, such as predators, parasitoids, and pathogens, to control pest insects, weeds, or diseases.. Other items addressed

A review of wearable motion tracking systems used in rehabilitation following hip and knee replacement.. Shayan Bahadori, Tikki Immins and Thomas

For this research, fragile watermarking is projected where the method of operation is to let the embedded watermark to be destroyed easily if the watermarked image

procera significantly inhibited the AChE activity in the whole brain homogenate of mice, indicating its potential in the attenuation of learning and memory deficits especially

In the present study, although there were no histopathologically significant changes in the testes of male zebrafish, there were significant differences between

These group of viruses can cause one of two types of viral hemorrhagic fever (VHF) in human beings namely hemorrhagic fever with renal syndrome (HFRS), and

The ethno botanical efficacy of various parts like leaf, fruit, stem, flower and root of ethanol and ethyl acetate extracts against various clinically