Implementation of Naive Bayes

advertisement

Implementation of Naive Bayes

Classifiers with Op Amps

H. Moga, L. Miron

1)

, and Gh. Pana

2)

Electronics and Computers Department, Transilvania University, Brasov, Romania,

1)

Electronics and Informatics Department, “Henri Coanda” Air Force Academy, Brasov,

Romania,

2)

Electronics and Computers Department, Transilvania University, Brasov, Romania

Email: horatiu.moga@gmail.com

Topic: B

Presentation: P

Summary:

The purpose of our study is the construction of probabilistic classifier for signal detection. Applications of this classifier could be in various areas like surveillance, biomedical equipments, automation with machine vision, military technology, etc. Naïve Bayes classifier are used for learning machine, and the study tries to determine the posterior probabilities for the present approach.

Keywords:

probabilistic classifier, Bayes, signal detection, Op Amp

Motivation

We try and build a classifier which will predict whether a ball is red or blue based on their measured size alone. We have two groups of balls red and blue and border between them. A white ball (could be red or blue) could be in one of groups. Depend by the size to evaluate the affiliation.

Fig. 1: Red balls and blue balls are separated by the size

Results

We consider the generative case with two classes. The detector support Gauss distribution for both of them. The balls size is in first class if ray is smaller 2.25 and bigger 2.75 and second

class other else. For first class we calculated the mean µ1=2.5 and standard deviation ϭ1=0.88.

The second class mean is µ2=0.91 and standard deviation ϭ2=3.6. The schematic is presented in

Fig. 2:

Vz

2

0

0

R1

Vmiu1

10k

2.5

R3

10k

0

R7

10k

R5

0

10k

Vmiu2

3.6

R2

V-

10k

2

TL082

-

OUT

3

R4

10k

+

8

U1A

V+

V+

1

3

U9A

V+

+

OUT

1

2

-

TL082

4

V-

R9

2Meg

Vsigma1

-1.76

5

R8

10k

U2B

V+

+

OUT

6

-

TL082

4

V-

V-

R6

7

10k

0

5

U9B

V+

+

OUT

7

6

-

TL082

4

V-

Vsigma2

-1.82

R10

2Meg

0

0

0

3

4

5

1

2

6

7

U3

X1

X2

U0

U1

U2

Y 1

Y 2

AD734/AD

VP

DD

W

Z1

Z2

ER

VN

1

2

3

4

5

6

7

U4

X1

X2

U0

U1

U2

Y 1

Y 2

AD734/AD

VP

DD

W

Z1

Z2

ER

VN

14

13

12

11

10

9

8

14

13

12

11

10

9

8

U10A

V+

V+

3

0

2

-

+

TL082/301/TI

1

OUT

4

V-

V-

R13

3

4

6

1

2

U6

X1

X2

Y 1

Y 2

Z

AD633/AD

W

7

V+ Q1

Q2N2222

0

0

3.9k

0

V-

0

V-

R11

1T

0

0

V+ Q2

Q2N2222

5

0

6

U5B

V+

-

+

TL082/301/TI

7

OUT

4

V-

V-

R14

3.9k

0

VP2

5V

0

V+

3

4

1

2

6

U7

X1

X2

Y 1

Y 2

Z

W

7

AD633/AD

V-

V-

VP1

7V

0

U8

+

V+

OUT

V+

6

V-

V-

LM311/301/TI

V+ out

0

R15

4.7k

V1

15V

V2

15V

R12

1T

V-

0

0

Fig. 2.

We suppose the uniform distribution for both classes 0.7 for first and 0.5 for second one.

The outcome show us that it verify the initial hypotheses (Fig. 3). The transition band between

(2.25, 2.5) and (2.5, 2.75) decide if white ball is red or blue, and if it is in one class or other one.

15V

10V

5V

0V

0V

V(out)

0.5V

1.0V

1.5V

2.0V

4.0V

4.5V

5.0V

5.5V

6.0V

2.5V

3.0V

V_Vz

Fig. 3.

3.5V

References

[1]

Christopher M. Bishop,“Pattern Recognition and Machine Learning”, Springer Science+Business

Media, LLC, pg. 181, 2006.

[2] Andrew Webb, “Statistical Pattern Recognition”, Second Edition, John Wiley & Sons Ltd., pp.

123-180, 2000.

[3]

Sebe N., Ira Cohen, Ashutosh Garg, Thomas S. Huang, “Machine Learning in Computer Vision”,

Springer Science+Business Media, LLC, pp. 71, 2005.

Download