Beruflich Dokumente
Kultur Dokumente
A Classification Method for the Dirty Factor of Banknotes Based on Neural Network with Sine Basis Functions
Kexue HE1,2, Shurong PENG1,2, Shutao Li2 1 College of Electrical and Information EngineeringChangsha University of Science & Technology, 410076 Changsha, Hunan Province, China 2 College of Electrical and Information Engineering, Hunan University 410082 Changsha, Hunan Province, China hekexue@126.com Abstract
The classification on the dirty factor of the new and used banknotes is an important function of the note sorter. This paper proposes a classification method based on neural network with sine basis functions. The gray level histogram of banknote image is used as the characteristic vector to train the neural network. The classification effect is satisfying by this method. of the high gray level in the histogram. In other words, the pixel probability distribution of the new banknote in the part of the high gray level in the histogram is much more than the old banknote. The gray level histogram of the face sides of two pieces of RMB note with different dirty levels is shown in the following Figure 1.
1. Introduction
Many countries raise some higher requirements for the integrity and cleanness of paper currency, because it represents the countrys development level in the economy and the culture [1]. To ensure the good integrity and cleanness of banknotes in currency, banknote sorting is the important service of the bank. The main functions of banknote sorting include the classification of the integrity and cleanness among the new and used banknotes, the classification of the banknote orientations, the identification of banknote denomination and so on. The identification of the new and used banknotes is based on the gray level of the surface, which is one of the important functions of the note sorter. Then the exceeding damaged and old banknotes are picked out. In order to perform the rejecting job of the damaged and old banknotes, this paper proposes an identification and classification method based on the characteristics of the gray level histogram of banknote image and neural network with sine basis functions.
2. Feature extraction
The dirty factor of the used banknote can be shown in the gray level histogram. The newer the banknote is, the more the pixel probability distribution is in the part
Figure 1. Gray level histogram of the face sides of the old RMB note and the new RMB note In the histogram of the old banknote and the new banknote, the distinct difference exists in the high gray level part. The number of the high gray level part of the new banknote is more than the old. But little difference exists in the part of the low gray level less than a threshold. The low gray level data in the above histogram cannot be used to judge the banknote dirty factor. Therefore selecting the proper threshold is extremely necessary. According to the characteristics of the pixel distribution in the gray level histogram, although the image segmentation threshold can be got by the bipolar method, the threshold is not suitable for the banknote identification and classification. It is because the bipolar method omits a lot of information
159
that represent the dirty factor. Thus, another calculation method for getting threshold must be adopted. Suppose that the gray level set is S=(0,1,2,i,L). When the gray level value of the pixel is i , the number of the pixel is n and the total number of the pixel is N. Therefore the pixel probability of every gray level is
P1 = pi , P2 =
iS1
p
jS 2
= 1 - P1 . (1)
in = n
iS 1 iS 1
2 =
jS 2
jn
jS 2
(5)
.
j
(2)
Thus, from the above formula, between- cluster variance B is defined as B=P1(1-T)2+ P2(2-T)2 . (3) If the threshold is T=[B]max, the most difference exists between S1 and S2 [3]. Therefore, the probability data of the gray level in the interval [T,T+1,255] can be used as the classification characteristics. By analyzing the gray level histogram of the new banknote in the Figure 1, we can get 161 as the threshold. Thus, for the classification method in this paper, the characteristic data are in the interval [161,255].
Where W=[w1, w2, w3,wn]T, C()=[ C1(1), C2(2), Cn(n)]T. Then the formula 5can be rewritten as
N 1 Y () = wn sin[(n ) n ] = W T C () . (6) 2 n =1
The dirty levels of the banknote are roughly 10. Therefore the expected output of neuron is D ()= [1,0.9,0.8,,0.1]. Error function e(t) is defined as e(t)= D(t)-Y(t). (7) Where t=1,2,,m. The m is the number of training samples, and D() is the expected output of neural network, and Y() is the actual output of neural network. Performance index is defined as
J=
w1
1 m 2 e (t ) . 2 t =1
(8)
Weight value adjustment: According to the formula (6) (7) (8), the weight value adjustment W is defined as
y()
i
1 1
wi wN
W =
Figure 2. Structure of neural network In the neural network with sine basis functions shown in Figure 2, sine basis functions are C1(1), C2(2),Cn(n) given by
CN
W (t + 1) = W (t ) + e (t )C ( t )
Where is the learning rate, and 0<<1. Convergence of neural network: If the learning rate is set in 02/N, the calculation of neural network with sine basis functions is convergent, N of which is the number of hidden layer neurons. The convergence of neural network is demonstrated in Reference [5] in detail.
160
Figure 3. The histogram of three test banknotes When the test data are identified by the trained neural network, the output of the neural network is got as Table 1. From Table 1, the output of neural network converges to the expected level of banknote. The classifying result is satisfied Table 1.Classification results of three test banknotes
New Output of neural network expected level 0.7020 0.7 Older 0.3908 0.4 Oldest 0.2082 0.2
6. Summary
With the analysis of characteristics of pixel probability distribution in the gray level histogram of banknote image, the pixel distribution probabilities are divided into two types by the threshold segmentation method of maximum between-cluster variance. Then the pixel probability data higher than threshold are used as characteristic vectors that presents banknote dirty factor. The characteristic vectors of images are used as the training samples of neural network based on sine basis functions. Neural network accomplishes the identification and classification of banknote dirty factor through the study of neural network samples. In the banknote sorting experiments, the
J =
1 ei (t ) . 2 i =1
If J > , the training jumps to step 1,and continue to train the neural network. If J < , the training of neural network comes to an end. Therefore, the gray level distribution probability of banknote samples is used as characteristics to train neural network. After the repeated training, the output of neural network is converged to the expected output. Finally the training of neural network is accomplished.
161
classification method based on neural network with sine basis functions has many merits, such as the suitable calculation amount, the high convergence speed of neural network, the effective classification and so on. The actual project problems in the note sorter are solved successfully.
7. Acknowledge
This work is supported by the Natural Science Foundation of education department of Hunan province of China (07C073).
Reference
[1] LI Li-jie, WU Le-nan, DONG Lu, The automatic recognition of disused paper money, Journal of Circuits and Systems, 2005. 6, pp.130~140. [2] LIU Jia-Feng, LIU Song-Bo, and TANG Xiang-Lon, An Algorithm of Real-Time Paper Currency Recongnition, Journal of Computer Research and Development, 2003.7,pp. 1057-1061. [3] Otsu N, A threshold selection method from gray-level histograms, IEEE Trans On System Man and Cybernetics, 1979. 9,pp. 62-66. [4] Ping-Sung Liao, Tse-Sheng Chen, Pau-Choo Chung (2001). A Fast Algorithm for Multilevel thresholding, J. Inf. Sci. Eng., 2001.17,pp. 713-727. [5] WANG Xiao_hua, HE Yi_gang, ZENG Zhe-zhao, Optimized Design of the Type-four FIR Filter Based on Neural Networks with Sine Basis Functions, Journal of Circuits and Systems, 2003.5, pp.97~100.
162