Next Article in Journal
A Combination of Genetic Algorithm and Particle Swarm Optimization for Vehicle Routing Problem with Time Windows
Previous Article in Journal
Development of a Conductivity Sensor for Monitoring Groundwater Resources to Optimize Water Management in Smart City Environments
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Recognizing Banknote Fitness with a Visible Light One Dimensional Line Image Sensor

1
Division of Electronics and Electrical Engineering, Dongguk University, 30, Pildong-ro 1-gil, Jung-gu, Seoul 100-715, Korea
2
Kisan Electronics, Sungsoo 2-ga 3-dong, Sungdong-gu, Seoul 133-831, Korea
*
Author to whom correspondence should be addressed.
Sensors 2015, 15(9), 21016-21032; https://doi.org/10.3390/s150921016
Submission received: 17 July 2015 / Revised: 16 August 2015 / Accepted: 24 August 2015 / Published: 27 August 2015
(This article belongs to the Section Physical Sensors)

Abstract

:
In general, dirty banknotes that have creases or soiled surfaces should be replaced by new banknotes, whereas clean banknotes should be recirculated. Therefore, the accurate classification of banknote fitness when sorting paper currency is an important and challenging task. Most previous research has focused on sensors that used visible, infrared, and ultraviolet light. Furthermore, there was little previous research on the fitness classification for Indian paper currency. Therefore, we propose a new method for classifying the fitness of Indian banknotes, with a one-dimensional line image sensor that uses only visible light. The fitness of banknotes is usually determined by various factors such as soiling, creases, and tears, etc. although we just consider banknote soiling in our research. This research is novel in the following four ways: first, there has been little research conducted on fitness classification for the Indian Rupee using visible-light images. Second, the classification is conducted based on the features extracted from the regions of interest (ROIs), which contain little texture. Third, 1-level discrete wavelet transformation (DWT) is used to extract the features for discriminating between fit and unfit banknotes. Fourth, the optimal DWT features that represent the fitness and unfitness of banknotes are selected based on linear regression analysis with ground-truth data measured by densitometer. In addition, the selected features are used as the inputs to a support vector machine (SVM) for the final classification of banknote fitness. Experimental results showed that our method outperforms other methods.

1. Introduction

In recent years, automatic payment facilities such as vending machines and automatic teller machines (ATMs) have become more and more popular. As a result, the importance of correctly recognizing and classifying banknotes has increased. This problem consists of not only automatically sorting banknotes by denominations, sides, and directions, but also in determining the fitness of those banknotes. By fitness, we mean determining which banknotes are suitable for recirculation and which should be replaced by new ones. If a fit banknote is recirculated frequently, the cost for printing that banknote can be greatly reduced [1]. In addition, if an unfit banknote is replaced with a new one, the processing speed and accuracy of banknote dispensing in ATMs can be greatly enhanced.
There has been previous research on the classification of banknote fitness with regard to various paper currencies. Based on research on the efficient use of banknotes by the Dutch Central Bank [1], soiling is one of the main characteristics that degrade the fitness of banknotes for circulation [1,2]. This characteristic was taken into account in several studies [1,3,4,5], using color images of banknotes. Geusebroek et al. [1] and Balke et al. [5] proposed a machine learning method that classified Euro banknotes by the mean and standard deviation of intensity values extracted from overlapping rectangular regions in the channels of banknote images. These values included intensity, color (RGB), and color combinations of YB and RG channels. The classifier used in [1] and [5] was a combination of simple linear weak classifiers using the AdaBoost algorithm. Aoba et al. [6] proposed an approach for classifying Euro banknotes that used visible and infrared (IR) images as input data. The system in [6] is composed of a classification part that uses a three-layered perceptron, and a validation part that uses a radial basis function (RBF) network for rejecting unfit data. A neural network was also used to classify Chinese banknotes (RMB) [7]. In this approach, the gray-level histogram of a banknote image was used as the feature vector for the neural network using a sine basis function. In [8], they newly proposed the method of recognizing Bangladeshi banknote by using web-camera for visually impaired people. With the Bangladeshi banknotes of white paper background, their system shows a recognition accuracy of 89.4%, and that of 78.4% with banknotes with complex backgrounds.
There was also research conducted on the classification of Indian banknotes (Rupees), but these approaches focused on the classification of the denomination (type of banknote) [9,10,11]. An embedded-system approach for Indian currency recognition was proposed by Pathrabe et al. [12]. This approach focused on counterfeit banknote detection using features extracted from the HSV color space and a neural network classifier. To recognize fake Indian banknotes [13], charge-coupled device (CCD) cameras with visible, ultraviolet (UV), and IR lights were used to detect the security features on banknotes. These security features included watermarks and latent images, which help to detect counterfeit currency.
Although research has been carried out on the automatic classification of Indian currency notes, little of this research focused on classifying the fitness of banknotes. In addition, most of the previous works used multiple sensors. Using multiple sensors can make it easier in classification task by increasing the number of discriminating features. However, it leads to complexity in hardware implementation, and increase of processing time with multiple images by multiple sensors.
To overcome these problems, we proposed a method based on a discrete wavelet transform (DWT) of grayscale Rupee banknote images captured only by a visible light sensor. The fitness of banknotes is usually determined by various factors such as soiling, creases, and tears, etc., but we just consider the soiling of the banknote in our research. The fitness of the banknote is classified based on the features extracted from regions of interest (ROIs) that contain little texture. The 1-level DWT extracts the features for discriminating fit and unfit banknote classes. The optimal DWT features that best represent the fitness and unfitness of banknotes are selected based on linear regression analysis with ground-truth data. In addition, the selected features are used as the inputs to the support vector machine (SVM) for the final classification of banknote fitness. Table 1 compares previous research related to banknote fitness classification, as well as our proposed method.
Table 1. Comparison of previous work and the proposed method.
Table 1. Comparison of previous work and the proposed method.
CategoryMethodAdvantagesDisadvantage
Multiple sensor-based method-Evaluating the five soiling levels of Euro banknotes by using various sensors [4].Using information by various sensors allows for the extraction of more discriminating features-Focuses on analyzing the soiling property of the banknotes without proposing a solution for automatically classifying the fitness of banknotes [4].
-Denomination classification using visible and IR sensors [6].-Mainly focuses on denomination classification [6] and counterfeit banknote detection [13].
-Detecting fake banknotes by CCD cameras with visible, UV, and IR lights [13].-Using multiple sensors leads to complexity in hardware implementation and an increase in processing time with multiple images from multiple sensors.
Single sensor-based methodColor sensor-based method-Features are extracted from banknote images of various color channels [1,5].
-Detecting counterfeit Indian banknotes using features from HSV color space and neural network classifier [12].
Using a single sensor causes simplicity in the algorithm and system implementation with reduced processing time-Banknote images with multiple color channels must be acquired, and a large number of features based on many weak classifiers must be combined, thus reducing the processing speed [1,5].
-Mainly focuses on counterfeit banknote classification [12].
Gray sensor-based methodChinese banknote classification using neural network based on the features of gray-level histogram [7]
-Fitness classification based on DWT and SVM (proposed method)
-Fast image acquisition by single gray sensor with less memory usage-Mainly focuses on banknote classification [7].
-Additional procedure for SVM training is required (proposed method)
This paper is organized as follows: Section 2 describes the proposed method in detail. The experimental results are given in Section 3. Finally, conclusions and future works are explored in Section 4.

2. Proposed Method

2.1. Overview of the Proposed Method

Figure 1 shows the overview of the proposed classification method. After acquiring the input banknote images, the ROIs are cropped and decomposed by DWT. The 1-level DWT decomposition produces a two-dimensional signal that consists of four sub-bands: LL, LH, HL, and HH. Detailed explanations are shown in the following sections. From each sub-band, the mean and standard variation values are calculated; thus, eight features are extracted by using DWT from the ROI for each input image. Among the eight features, an optimal two features are selected based on linear regression analysis. The two features are fed into an SVM classifier. In the last step, the input banknote is determined to be fit or unfit for recirculation based on the output of the SVM.
Figure 1. Flowchart of the proposed method.
Figure 1. Flowchart of the proposed method.
Sensors 15 21016 g001

2.2. ROI Cropping and Feature Extraction

We acquired the banknote image by a commercial banknote-counting machine. Because the banknote-counting machine has limitations of size and cost, it captures the banknote image of visible light by a one-dimensional (line) sensor that differs from the conventional camera using a two-dimensional (area) sensor. Therefore, at each triggering time, a space (row by column) image is not captured, but one line (row) image is acquired. While the input banknote is moving through the roller device within the banknote-counting machine at fast speed (higher than 1000 ppm (pulses per minute)), the line image is captured with a visible light emitting diode (LED). The number of pixels of one line image is 1584, and a total of 464 line images are obtained by this system. Therefore, by concatenating the 464 line images sequentially, a two-dimensional banknote image of 1584 × 464 pixels is finally acquired, and the area of banknote is located by a commercial corner detection algorithm which is already built in to the banknote-counting machine used in our experiment. Due to the detection of the area of banknote (excluding the background) in the captured image, the problems of displacement and rotation of banknote area can be solved in our research, and we can obtain the correct area of banknote as shown in Figure 2.
The input banknotes are usually captured in four cases in terms of side and direction: forward and reverse images of the front side, and forward and reverse images of the back side. These are denoted by A–D directions in our research, respectively, as shown in Figure 2. Because both the front and backsides of Indian banknotes have areas that do not include visible texture, these are considered as the ROIs in our proposed method. We chose the ROIs where the amount of banknote type information (patterns, figures, symbols, and numbers, etc.) is minimal. That is because the mean and standard deviation of the region (where the banknote type information are included) are affected by the amount of the banknote type information even with the banknote images of same soiling level, which makes it difficult to correctly discriminate the fit and unfit banknotes. Figure 2 shows examples of the Indian Rupee in the four directions, and the ROIs cropped from these banknote. The banknote-counting machine (used in our experiment) already has the functionality of automatically recognizing the A–D directions with the kinds of banknote, and this functionality was implemented as the commercial software. We manually defined the positions of ROIs according to the directions (A–D) and the kinds of banknote. Based on this information (the positions of ROIs) and the recognition results of the directions and kinds of banknote by the banknote-counting machine, the ROIs for extracting features are automatically detected in our research as shown in Figure 2.
Figure 2. Example of input images in 4 directions and corresponding ROIs of a banknote: (a) A direction; (b) B direction; (c) C direction; (d) D direction.
Figure 2. Example of input images in 4 directions and corresponding ROIs of a banknote: (a) A direction; (b) B direction; (c) C direction; (d) D direction.
Sensors 15 21016 g002
Using the cropped ROIs, features are extracted by DWT. Previous research used DWT to obtain features from banknote images, but mostly focused on classifying types of banknotes [14,15]. DWT has been widely used for extracting the texture feature in the domain of image signal processing [16,17]. In this research, in order to obtain the features for discriminating fitness, we apply DWT on the ROIs cropped from the banknote image. The ROI images are normalized by resizing them to 256 × 256 pixels before the DWT. The 1-level DWT decomposition produces a two-dimensional signal that consists of four subbands: LL, LH, HL, and HH. LL denotes the area of low-frequency components in both the horizontal and vertical directions. LH and HL are the areas where low frequency components exist in one of the horizontal and vertical directions, and high frequency components exist in the other direction. HH represents the area of high-frequency components in both the horizontal and vertical directions [16]. In our research, the DWT was performed by Haar and Daubechies functions [17], and their performances were compared. In addition, we performed the experiments of comparing the accuracies of discriminating the fit and unfit banknotes according to the various levels of DWT. Experimental results showed that the 1-level DWT outperforms the other levels DWT, and we used the 1-level DWT.
Figure 3 shows examples of Haar wavelet transforms for ROIs for fit and unfit banknotes after they were resized to 256 × 256 pixels using bilinear interpolation. In detail, the left images of Figure 3b,c show the original ones of ROI extracted from input banknote. The middle ones are the size normalized images of 256 × 256 pixels which are used for the transform of DWT. The right images are the ones obtained by 1-level DWT. For each sub-band, we calculated the mean (μ) and standard deviation (σ) values. Thus, by using 1-level DWT, we obtain eight feature values from four sub-bands. This feature vector can be written as (μLL, σLL, μHL, σHL, μLH, σLH, μHH, σHH). As shown in Figure 3b,c, the fit image has the characteristics of being brighter and having less texture than the unfit image, whereas the unfit image usually includes more soiling on its surface. Therefore, the mean of the fit image is usually higher than that of the unfit image, whereas the standard deviation of the fit image is lower than that of the unfit image because we just consider the soiling level of the banknote as the measure of fitness in our research.
Figure 3. DWT with fit and unfit banknotes: (a) procedure of DWT and resulting images of DWT with (b) fit banknote and (c) unfit banknote.
Figure 3. DWT with fit and unfit banknotes: (a) procedure of DWT and resulting images of DWT with (b) fit banknote and (c) unfit banknote.
Sensors 15 21016 g003

2.3. Selection of Optimal Features Using Regression Analysis

Given the eight feature values (μLL, σLL, μHL, σHL, μLH, σLH, μHH, σHH), optimal values are selected based on statistical analysis (linear regression analysis). Regression analysis is a statistical method for estimating the relationships between two variables. In this research, we use linear regression, in which the relationships between a scalar dependent variable y (reference data) and explanatory variables x (input data) are modeled by linear predictor functions r(x). A regression line is determined to minimize the distance between the measured and predicted values of y [18]. The quality of fitting in the model is evaluated by the coefficient of determination R2, which indicates how well data points fit the regression line. R2 is calculated by the following Equation [19]:
R 2 = 1 i = 1 n [ y i r ( x i ) ] 2 i = 1 n ( y i y ¯ ) 2
where y ¯ is the mean of the reference data. R2 receives the values in a range of 0 to 1, in which 1 indicates the cases where the regression line perfectly fits the data, and 0 implies that there is no linear relation between the two variables.
In our method, we use one of the eight feature values (μLL, σLL, μHL, σHL, μLH, σLH, μHH, σHH) as the x (input data) of the regression method. As the y (reference data) of the regression method, we use the measured value by densitometer [20] based on a soiling level defined by the State Bank of India [21]. By using densitometer, we can measure the ground-truth value of reflectance on the surface of banknote. In general, the banknote of fitness usually shows the higher value of reflectance than that of unfitness. Therefore, we used the reflectance on the surface of banknote by densitometer as the ground-truth value for selecting the optimal features. Based on linear regression results, the two features having the highest R2 values are chosen as the two features for discriminating the fitness and unfitness of the banknote. These features are used as the two inputs to the SVM classifier. Figure 4 shows an example of linear regression analysis on two variables x and y, scaled to a range of −1 to 1 in the case of using σLH feature extracted by Daubechies DWT from C direction images of 50 Rupee.
Figure 4. Example of linear regression analysis on two variables of x and y.
Figure 4. Example of linear regression analysis on two variables of x and y.
Sensors 15 21016 g004

2.4. SVM Training and Testing

In the last step, fit and unfit banknotes are classified by using SVM with the two input features selected by the regression method. The SVM has been widely used as supervised classifier in the domain of pattern recognition [17,22]. The discriminant function of SVM is given as follows [17]:
f ( x ) = sgn ( i = 1 N y i α i K ( x i , x ) + β )
where N is the number of data points, xi represents training points, and yi are the indicator vectors representing the class labels such as y i { 1 , 1 } , in which –1 stands for “class 1” and 1 stands for “class 2.” In our research, we define “class 1” and “class 2” as the classes of fit and unfit banknotes, respectively. K(x,y) is the kernel function. We compared the accuracy of the following four kernel functions, which are popularly used in SVM classifiers [17,22]:
R a d i a l   b a s i s   f u n c t i o n   ( R B F )   k e r n e l : K ( x , y ) = exp ( γ x y 2 ) ,   γ > 0 L i n e a r   k e r n e l : K ( x , y ) = x T y P o l y n o m i a l   k e r n e l : K ( x , y ) = ( γ x T y + r ) d ,   γ > 0 S i g m o i d   k e r n e l : K ( x , y ) = tanh ( γ x T y + r )
where γ, r, and d are the parameters of the kernels. The optimal kernel is selected by a training process in terms of the minimum classification error (equal error rate–EER). The EER is the error rate when the difference between the types 1 and 2 error rates is smallest [17]. In the testing phase, the types 1 and 2 error rates and EER are calculated to evaluate the accuracy of the proposed method. A type 1 error indicates that we have misclassified fit banknotes into unfit ones, whereas type 2 errors indicate the opposite.

3. Experimental Results

We used the Indian banknote database for our experiments. This database is composed of banknotes in denominations of 10, 20, 50, 100, and 500 Rupees. Each banknote was captured in four directions, as shown in Figure 2. The experiments on fitness classification were conducted separately on the banknote images of four directions from the five denominations. The numbers of banknote images in our experimental database are shown in Table 2. In our experiments, we performed two-fold cross-validation. That is, each data set of banknote images was randomly divided into two parts in the first trial. One of the parts was used for training, and the other was used for testing. In the second trial, the data sets for training and testing were swapped and the experiments were performed again. From those results, we calculated the average of the two accuracies by two trials.
Table 2. Number of images in Indian banknote database.
Table 2. Number of images in Indian banknote database.
DenominationsA DirectionB DirectionC DirectionD Direction
10 Rupee1040102010201020
20 Rupee680670710710
50 Rupee620620650650
100 Rupee1540155015201530
500 Rupee930910950960
Table 3. Experimental results of DWT features selection based on linear regression. (Denom. and Dir. are denominations and directions, respectively. Std indicates standard deviation.)
Table 3. Experimental results of DWT features selection based on linear regression. (Denom. and Dir. are denominations and directions, respectively. Std indicates standard deviation.)
Denom.Dir.Haar DWTDaubechies DWT
Train 1—Test 2Train 2—Test 1Train 1—Test 2Train 2—Test 1
Selected FeaturesR2Selected FeaturesR2Selected FeaturesR2Selected FeaturesR2
10 RupeeALL mean0.6909LL mean0.8266LL mean0.6833LL mean0.8327
LL std0.6437LL std0.7720LL std0.6365LL std0.7792
BLL mean0.6654LL mean0.8443LL mean0.6812LL mean0.8284
LL std0.6099LL std0.7455LL std0.6109LL std0.7477
CLH std0.9026LH std0.9296LH std0.8888LH std0.9197
LL mean0.8055HH std0.8691LL mean0.8176HL std0.8692
DLH std0.9052LH std0.9274LH std0.8845LH std0.9164
LL mean0.8300HH std0.8628LL mean0.8394HL std0.8587
20 RupeeALL std0.7222LL std0.8243LL std0.7244LL std0.8238
LL mean0.5351LL mean0.6733LL mean0.5682LL mean0.6864
BLL std0.7000LL std0.8075LL std0.6917LL std0.8239
LL mean0.5791LL mean0.6760LL mean0.5799LL mean0.6746
CLH std0.8287HL std0.7775LH std0.8034HL std0.7834
HL std0.7781LH std0.7412HL std0.7783LH std0.7439
DLH std0.8514LH std0.7314LH std0.8282LH std0.7526
HL std0.7964LL mean0.7096HL std0.7962LL mean0.7105
50 RupeeALL std0.9018LL std0.9249LL std0.9043LL std0.9224
LH std0.8949LL mean0.8764LL mean0.8526LL mean0.8887
BLL std0.8934LL std0.9315LL std0.8960LL std0.9274
LH std0.8778LL mean0.8762LL mean0.8557LL mean0.8817
CLH std0.9611LH std0.9390LH std0.9511LH std0.9235
LL mean0.9558HL std0.9144LL mean0.9471LL mean0.9087
DLH std0.9627LH std0.9450LH std0.9518LL mean0.9414
HL std0.9489LL mean0.9439LL mean0.9418LH std0.9374
100 RupeeALH std0.8213LH std0.8307LH std0.7635LL std0.8234
LL mean0.7222LL std0.8146LL mean0.7210LH std0.7917
BLH std0.8170LH std0.8249LL mean0.7160LL std0.8313
LL mean0.7395LL mean0.8062LL std0.7141LL mean0.8007
CLH std0.8599LH std0.8817LH std0.8276HL std0.8723
HL std0.8171HL std0.8638HL std0.7986LH std0.8694
DLH std0.8502LH std0.9030LH std0.8112LH std0.8476
HL std0.8073HL std0.8858LL mean0.7883HL std0.8448
500 RupeeALL std0.6582LL std0.5521LL std0.6448LL std0.5581
HL mean0.4041HL mean0.3839HL mean0.3582LL mean0.3580
BLL std0.4907LL std0.5184LL std0.5108LL std0.5510
HH std0.2833LL mean0.3015HL std0.2627LL mean0.3174
CLH std0.9314LH std0.8388LH std0.9105LH std0.7695
HL std0.9309HL std0.7307HL std0.8899LL mean0.6551
DHL std0.9291LH std0.8523LH std0.9270LH std0.8016
LH std0.9203HL std0.7639LL mean0.8959LL mean0.6472
In our experiments for feature selection, the two optimal features which showed the best-fitting result based on linear regression analysis (as explained in Section 2.3) were selected among the eight feature values (μLL, σLL, μHL, σHL, μLH, σLH, μHH, σHH) that were obtained by DWT. The feature selection results for the Haar and Daubechies DWT of banknote images are shown in Table 3.
We divided the database into two parts, (Parts 1 and 2) for training and testing. Thus, in Table 3, “Train 1—Test 2” means that Part 1 was used for training, and Part 2 for testing. In addition, “Train 2—Test 1” means that Part 2 was used for training, and Part 1 was used for testing. In each case, R2 values are calculated by using the training data. As shown in Table 3, we selected the two features that had the highest R2 values in Equation (1) according to different directions of A–D. After obtaining the optimal discriminant features, we determined the fitness of the banknote by using the SVM classifier. For SVM training and testing, we used the two parts of the database from the previous experiments in the feature-selection step. Since the training data was normalized by min-max scaling to the range of 0 to 1, the testing data set was also normalized based on the min-max range of training data.
Figure 5. Examples of data distributions of training datasets in SVM classifications by DWT with (a) Daubechies kernel on 10 Rupees in the A-direction; (b) Haar kernel on 20 Rupees in the B-direction; (c) Daubechies kernel on 50 Rupees in the B-direction; (d) Haar kernel on 100 Rupees in the C-direction; and (e) Haar kernel on 500 Rupees in the A-direction.
Figure 5. Examples of data distributions of training datasets in SVM classifications by DWT with (a) Daubechies kernel on 10 Rupees in the A-direction; (b) Haar kernel on 20 Rupees in the B-direction; (c) Daubechies kernel on 50 Rupees in the B-direction; (d) Haar kernel on 100 Rupees in the C-direction; and (e) Haar kernel on 500 Rupees in the A-direction.
Sensors 15 21016 g005
The optimal SVM parameters and kernel were obtained by the training process. We conducted experiments using SVM with four kernels of RBF, linear, polynomial, and sigmoid of Equation (3), using the LIBSVM tool [23]. Figure 5 shows examples of distributions of training data in the feature space.
Using the trained SVM, the results obtained by Haar DWT with testing data are shown in Table 4. Results obtained by Daubechies DWT with testing data are shown in Table 5. As previously explained, we performed two-fold cross-validation and obtained the average EER. As explained in Section 2.4, the EER is the error rate when the difference between the types 1 and 2 error rates is smallest [17]. In the testing phase, the types 1 and 2 error rates and EER are calculated to evaluate the accuracy of the proposed method. A type 1 error indicates that we have misclassified fit banknotes into unfit ones, whereas type 2 errors indicate the opposite.
Table 4. Experimental results with testing data by Haar DWT and SVM classification. (Denom. and Dir. are denominations and directions, respectively. Poly indicates a polynomial kernel.) (unit: %).
Table 4. Experimental results with testing data by Haar DWT and SVM classification. (Denom. and Dir. are denominations and directions, respectively. Poly indicates a polynomial kernel.) (unit: %).
Denom.Dir.SVM KernelTrain 1—Test 2Train 2—Test 1Average EER
Type 1 ErrorType 2 ErrorEERType 1 ErrorType 2 ErrorEER
10 RupeeAlinear4.88890.00001.88410.00000.00000.00001.1764
Bsigmoid2.72730.00000.34480.00003.33330.58820.4575
CRBF2.00000.00000.47620.00001.66670.00000.2779
DRBF0.66673.33330.95240.00001.66670.00000.5555
20 RupeeARBF0.00000.00000.00001.290340.00002.25811.1290
BRBF0.00005.00000.00000.00000.00000.00000.0000
CRBF0.00000.00000.00000.000035.00001.35140.7142
Dlinear0.00000.00000.00000.00000.00000.00000.0000
50 RupeeARBF0.454516.66672.89472.08330.00000.00002.2385
Blinear0.45450.00000.45453.75000.00000.00000.2275
Clinear0.43481.00000.30300.00000.00000.00000.1786
DRBF0.43480.00000.30302.17390.00000.43480.3573
100 RupeeAlinear0.000012.00000.95240.000012.00000.13330.5605
Blinear0.00004.00000.00000.83337.50002.09681.3266
Clinear0.00000.00000.00000.00000.00000.00000.0000
Dlinear0.27030.00000.00000.000023.33330.13160.0671
500 RupeeApoly0.46510.00000.00000.00000.00000.00000.0000
Bsigmoid0.000050.00000.23811.11110.00000.00000.1190
Csigmoid2.95450.00000.00000.00000.00000.00000.0000
Dsigmoid3.11110.00000.00000.00003.33330.00000.0000
Average EER0.4693
Table 5. Experimental results with testing data by Daubechies DWT and SVM classification. (Denom. and Dir. are denominations and directions, respectively. Poly indicates a polynomial kernel.) (unit: %).
Table 5. Experimental results with testing data by Daubechies DWT and SVM classification. (Denom. and Dir. are denominations and directions, respectively. Poly indicates a polynomial kernel.) (unit: %).
Denom.Dir.SVM KernelTrain 1–Test 2Train 2–Test 1Average EER
Type 1 ErrorType 2 ErrorEERType 1 ErrorType 2 ErrorEER
10 RupeeAlinear4.22220.00000.37740.00001.66670.00000.2039
Blinear1.13640.00000.58820.00006.66670.19610.3944
CRBF2.66670.00001.17650.00001.66670.35090.7405
Dsigmoid0.22228.33332.15690.66670.00000.00001.2499
20 RupeeAsigmoid0.00000.00000.00001.29030.00001.21210.6249
Bsigmoid0.00000.00000.00000.000030.00000.58820.3126
Csigmoid0.00000.00000.00000.303020.00000.30300.1515
Dlinear0.00000.00000.00000.00000.00000.00000.0000
50 RupeeAlinear0.00000.00000.00000.83330.00000.00000.0000
Blinear0.45450.00000.00000.41670.00000.00000.0000
Clinear0.00003.00000.00003.04350.00000.00000.0000
Dsigmoid0.00000.00000.00001.30430.00000.43480.2175
100 RupeeAlinear0.00008.00000.50510.00008.00000.55560.5269
BRBF0.40544.00001.21620.27785.00000.75000.9707
Clinear0.00000.00000.00000.000016.66670.00000.0000
Dpoly0.40540.00000.38220.000026.66671.16500.8290
500 RupeeAlinear0.46510.00000.00000.00003.33330.00000.0000
Blinear0.000025.00000.00000.00000.00000.00000.0000
Clinear2.95450.00000.65220.000013.33330.00000.3334
DRBF2.66670.00001.31150.00000.00000.00000.7548
Average EER0.3655
Table 6. Cases of correct classification, type 1 errors, and type 2 errors in experiments on a 50-Rupee banknote (A-direction) using Haar DWT.
Table 6. Cases of correct classification, type 1 errors, and type 2 errors in experiments on a 50-Rupee banknote (A-direction) using Haar DWT.
Correct ClassificationType 1 Error CaseType 2 Error Case
Fit caseUnfit case
Cropped ROI Sensors 15 21016 i001 Sensors 15 21016 i002 Sensors 15 21016 i003 Sensors 15 21016 i004
Image by Haar DWT Sensors 15 21016 i005 Sensors 15 21016 i006 Sensors 15 21016 i007 Sensors 15 21016 i008
Figure 6 shows the average ROC curves of the testing datasets by two-fold cross-validation. From the results, we find that the average EER (0.3655%) by Daubechies DWT is slightly lower than the average EER (0.4693%) by Haar DWT. The lowest average EER was 0%, and the highest EER was 2.2385% with a 50-Rupee banknote (A-direction). The reason why the highest average EER was obtained with a 50-Rupee banknote (A-direction) is shown in Table 6.
Table 6 shows the examples of correctly classified and error cases in the classification results of a 50-Rupee banknote (A-direction) by Haar DWT. It can be seen from Table 6 that between the ROIs of fit and unfit banknote images, there are differences in gray levels: the unfit banknotes have darker images as well as higher pixel variance. This implies that unfit banknote images have a lower mean and higher standard deviation than fit banknote images. In the case of a type 1 error, the dirty marks on the fit banknote’s image result in a higher pixel variance, which can misclassify the banknote as unfit one. In the case of a type 2 error, the misclassified unfit banknote has bright pixels, which causes the misclassification of the unfit banknote into the fit one.
Figure 6. Average ROC curves of SVM testing process of the cases in Table 4 and Table 5: (a) 10 Rupee; (b) 20 Rupee; (c) 50 Rupee; (d) 100 Rupee and (e) 500 Rupee.
Figure 6. Average ROC curves of SVM testing process of the cases in Table 4 and Table 5: (a) 10 Rupee; (b) 20 Rupee; (c) 50 Rupee; (d) 100 Rupee and (e) 500 Rupee.
Sensors 15 21016 g006
We also completed comparative experiments on the Indian banknote database using the method described in previous work [7]. Referring to [7], we extracted the features from the gray-level histogram of the banknote image in the interval of (161, 255) and used a multilayered perceptron (MLP) network as the classifier. The MLP network consists of 95 nodes in the input and hidden layers and one node in the output layer. For training process, we set the output values of the neural network to 1 in the cases of fit banknotes and to 0 in the cases of unfit ones. In these experiments, the MLP networks used a sigmoid kernel function, whose formula is given by Equation (4), and were trained by a back-propagation algorithm [24]:
f ( x ) = 1 1 + e x
For training and testing, the same data in Table 4 and Table 5 were used for fair comparisons. We obtained the EERs from the MLP testing results by applying discriminant thresholds on the output of the MLP network. In this way, the banknotes that produced output values of MLP lower than the threshold were assigned as unfit notes, and those banknotes producing output values higher than the threshold were determined as fit notes. Table 7 compares the results of classification by our method with those of previous methods [7].
Table 7. Comparison of average EERs by our method with those by previous methods (unit: %).
Table 7. Comparison of average EERs by our method with those by previous methods (unit: %).
DenominationDirectionHaar DWTDaubechies DWTPrevious Method [7]
10 RupeeA1.17640.20396.9036
B0.45750.394416.2962
C0.27790.74056.2792
D0.55551.249916.5487
20 RupeeA1.12900.624925.0000
B0.00000.312625.3456
C0.71420.151526.7717
D0.00000.000028.7490
50 RupeeA2.23850.00005.2397
B0.22750.000016.0191
C0.17860.00002.8302
D0.35730.21750.0000
100 RupeeA0.56050.52691.2179
B1.32660.97072.1053
C0.00000.00000.6868
D0.06710.82901.3765
500 RupeeA0.00000.000025.0000
B0.11900.000025.0000
C0.00000.33340.0000
D0.00000.75480.0000
Average EER0.46930.365511.5685
As shown in Table 7, we can confirm that our method outperforms the methods used in previous works [7]. This is because of our feature extraction method, in which the features that best describe the fitness of Indian banknotes were selected by DWT and regression analysis. In addition, the range (161, 255) of gray-level values proposed in [7] is not optimal for all types of Rupee banknote images.
In general, the soiling on the banknote surface can independently occur on the front or back side of banknote. That is, the front side can be unsoiled whereas the back side can include the large amount of soiling, vice versa. Therefore, we discriminate the fit and unfit banknotes per each direction of A–D, separately. If we combine the results of multiple directions, the accuracy of discriminating the fit and unfit banknotes can be reduced. For example, if A direction is fit and C direction is unfit, the final result by combining these two information can be confused as fit or unfit. However, in actual banknote-counting machine or automatic teller machine (ATM), the input banknote should be determined as unfit one even if one of the four directions of A–D is determined as unfit. That is because this banknote can be jammed inside the machine if it is used, which increases the maintenance cost of dispatching the staff for repairing the machine. Therefore, we determine the fitness of banknote separately of A–D directions.

4. Conclusions

In this research, we proposed a new fitness classification method for Indian banknotes. The input banknotes were captured by visible light image sensors, and the ROIs were cropped from these banknote images. By using DWT and linear regression analysis, the discriminant features that had a high correlation to the reference data were extracted and fed into an SVM classifier for fitness determination. Experimental results showed highly accurate classifications of fit and unfit banknotes using denominations of 10, 20, 50, 100 and 500 Rupees.
In future works, we plan to do experiments using the proposed method on various types of banknotes such as US dollars, the Euro, and Korean banknotes. In addition, we would also consider extending the fitness levels to fit, medium, and unfit, instead of the binary classification of fit and unfit banknotes.

Acknowledgments

This research was supported by a grant from the Advanced Technology Center R&D Program funded by the Ministry of Trade, Industry& Energy of Korea (10039011).

Author Contributions

Tuyen Danh Pham and Kang Ryoung Park designed the overall system and made the classification algorithm. In addition, they wrote and revised the paper. Young Ho Park, Seung Yong Kwon, Dat Tien Nguyen, Husan Vokhidov, Dae Sik Jeong, and Sungsoo Yoon implemented the regression algorithm with experiments.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Geusebroek, J.M.; Markus, P.; Balke, P. Learning Banknote Fitness for Sorting. In Proceedings of the International Conference on Pattern Analysis and Intelligent Robotics, Putrajaya, Malaysia, 28–29 June 2011; pp. 41–46.
  2. De Heij, H. Durable Banknotes: An Overview. In Presented at the BPC/Paper Committee to the BPC/General Meeting, Prague, Czech, 27–30 May 2002; pp. 1–12.
  3. Balke, P. From Fit to Unfit: How Banknotes Become Soiled. In Proceedings of the Fourth International Scientific and Practical Conference on Security Printing Watermark Conference, Rostov-on-Don, Russia, 21–23 June 2011.
  4. Buitelaar, T. The Colour of Soil. In Presented at the DNB Cash Seminar, Amsterdam, The Netherlands, 28–29 February 2008.
  5. Balke, P.; Geusebroek, J.M.; Markus, P. BRAIN2—Machine Learning to Measure Banknote Fitness. In Proceedings of the Optical Document Security Conference, San Francisco, CA, USA, 18–20 January 2012.
  6. Aoba, M.; Kikuchi, T.; Takefuji, Y. Euro banknote recognition system using a three-layered perceptron and RBF networks. IPSJ Trans. Math. Model. Appl. 2003, 44, 99–109. [Google Scholar]
  7. He, K.; Peng, S.; Li, S. A Classification Method for the Dirty Factor of Banknotes Based on Neural Network with Sine Basis Functions. In Proceedings of the International Conference on Intelligent Computation Technology and Automation, Hunan, China, 20–22 October 2008; pp. 159–162.
  8. Rahman, M.M.; Poon, B.; Amin, M.A.; Yan, H. Recognizing Bangladeshi currency for visually impaired. Commun. Comput. Inform. Sci. 2014, 481, 129–135. [Google Scholar]
  9. Chetan, B.V.; Vijaya, P.A. A robust side invariant technique of Indian paper currency recognition. Int. J. Eng. Res. Technol. 2012, 1, 1–7. [Google Scholar]
  10. Verma, K.; Singh, B.K.; Agarwal, A. Indian Currency Recognition Based on Texture Analysis. In Proceedings of the Nirma University International Conference on Engineering, Ahmedabad, Gujarat, India, 8–10 December 2011; pp. 1–5.
  11. Sharma, B.; Kaur, A.; Vipan, D. Recognition of Indian paper currency based on LBP. Int. J. Comput. Appl. 2012, 59, 24–27. [Google Scholar] [CrossRef]
  12. Pathrabe, T.; Karmore, S. A novel approach of embedded system for Indian paper currency recognition. Int. J. Comput. Trends Technol. 2011, 1, 152–156. [Google Scholar]
  13. Sanjana, M.; Diwakar, M.; Sharma, A. An automated recognition of fake or destroyed Indian currency notes in machine vision. Int. J. Comput. Sci. Manag. Stud. 2012, 12, 53–60. [Google Scholar]
  14. Choi, E.; Lee, J.; Yoon, J. Feature Extraction for Bank Note Classification Using Wavelet Transform. In Proceedings of the 18th International Conference on Pattern Recognition, Hong Kong, China, 20–24 August 2006; pp. 934–937.
  15. Ahangaryan, F.P.; Mohammadpour, T.; Kianisarkaleh, A. Persian Banknote Recognition Using Wavelet and Neural Network. In Proceedings of the International Conference on Computer Science and Electronics Engineering, Hangzhou, China, 23–25 March 2012; pp. 679–684.
  16. Gonzalez, R.C.; Woods, R.E. Digital Image Processing, 3rd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2010. [Google Scholar]
  17. Nguyen, D.T.; Park, Y.H.; Shin, K.Y.; Kwon, S.Y.; Lee, H.C.; Park, K.R. Fake finger-vein image detection based on fourier and wavelet transforms. Digit. Signal. Process. 2013, 23, 1401–1413. [Google Scholar] [CrossRef]
  18. Simple Linear Regression. Available online: http://en.wikipedia.org/wiki/Simple_linear_regression (accessed on 17 May 2015).
  19. Coefficient of Determination. Available online: http://en.wikipedia.org/wiki/Coefficient_of_determination (accessed on 17 May 2015).
  20. Densitometer. Available online: http://www.xrite.com/documents/literature/gmb/en/100_d19_en.pdf (accessed on 17 May 2015).
  21. State Bank of India, Request for Proposal. Available online: http://www.sbi.co.in/portal/web/home/tenders-awarded (accessed on 26 July 2015).
  22. Hsu, C.W.; Chang, C.C.; Lin, C.J. A Practical Guide to Support. Vector Classification; Technical Report for National Taiwan University: Taipei, Taiwan, 2003. [Google Scholar]
  23. Chang, C.-C.; Lin, C.-J. LIBSVM: A library for support vector machines. ACM Trans. Intell. Syst. Technol. 2011, 2, 27. [Google Scholar] [CrossRef]
  24. Hagan, M.T.; Demuth, H.B.; Beale, M.H. Neural Network Design; PWS Publishing Co.: Boston, MA, USA, 1995. [Google Scholar]

Share and Cite

MDPI and ACS Style

Pham, T.D.; Park, Y.H.; Kwon, S.Y.; Nguyen, D.T.; Vokhidov, H.; Park, K.R.; Jeong, D.S.; Yoon, S. Recognizing Banknote Fitness with a Visible Light One Dimensional Line Image Sensor. Sensors 2015, 15, 21016-21032. https://doi.org/10.3390/s150921016

AMA Style

Pham TD, Park YH, Kwon SY, Nguyen DT, Vokhidov H, Park KR, Jeong DS, Yoon S. Recognizing Banknote Fitness with a Visible Light One Dimensional Line Image Sensor. Sensors. 2015; 15(9):21016-21032. https://doi.org/10.3390/s150921016

Chicago/Turabian Style

Pham, Tuyen Danh, Young Ho Park, Seung Yong Kwon, Dat Tien Nguyen, Husan Vokhidov, Kang Ryoung Park, Dae Sik Jeong, and Sungsoo Yoon. 2015. "Recognizing Banknote Fitness with a Visible Light One Dimensional Line Image Sensor" Sensors 15, no. 9: 21016-21032. https://doi.org/10.3390/s150921016

Article Metrics

Back to TopTop