Deep Learning Based Indian Currency Coin Recognition
Deep Learning Based Indian Currency Coin Recognition
Abstract— Automatic coin recognition and identification to increase the performance of coin recognition system which
systemplays vital role in vending machine, slot machine and in is deep learning based by using constitutional neural network
several banking related equipment’s. Most of the existing coin (CNN) [2].
recognitions systems are based on physical parameters of the Deep Learning is a new technology in Machine Learning
coins whereas image processing methodologies relies on
research, which has been introduced with the objective of
extraction of color, shape and edge features. For recognition and
detection of Indian coin we have proposed Deep Learning moving Machine Learning closer to one of its original goals:
approach in this paper. Pretrained convolutional neural network Artificial Intelligence. In this system novel algorithm is used
i.e. AlexNet is trained by using the features such as textures, for training the machine.
colors and shape. The model is trained on more than 1600 images
and can classify images into four object categories like one, two, II. RELATED WORK
five and ten rupees coins. The trained model is tested on various Coin Recognition using Image Abstraction and Spiral
standard and own recorded datasets consist of rotational, Decomposition” is given by Abdolah Chalechale in year
translated and shifted images. The parameters used to calibrate 2007.This approach is based on finding similarities between
the performance system are recognition accuracy and response
full color and multi-component coin image. This system does
time. Obtained results shown the outperformance of proposed
methodology over conventional systems.
not need image segmentation due to which cost is reduced. A
research, based on deriving strong edges of abstract images on
Keywords—Coin recognition; Deep learning; Convolutional coin image. A set of compact, effective features is extracted
Neural network; AlexNet. using pixel decomposition on abstract image. The query set,
image database is then further used in the tests are scanned,
I. INTRODUCTION photographed, or images downloaded from the web. The result
is compared with many other well- known approaches within
Coin recognition has a tremendous range of application. For
the literature. Practical results show good improvement in the
example, vending machine, slot machine etc. There are 3
traditional ways for the coin recognition that Mechanical, Recall ratio using the proposed features [3, 4]. Discovering
Electromagnetic and image processing. Mechanical coin Characteristic Landmarks on Ancient Coins Using
recognition is normally based on the physical characteristics Convolutional Networks” is given by Jongpil Kim and
of coin structure. Such as radius, weight, width. However, if Vladimir Pavlovic Rutgers in year 2016. There system
two coins with same physical structural properties then system presents method which find characteristic landmarks and
fails is not able to compare those two coins. Whereas, in recognize ancient Roman imperial coins using deep
electromagnetic approach it deals with material properties [1]. convolutional neural networks (CNNs) combined with expert-
In image processing, the coin recognized on the basis of designed domain hierarchies. First they propose new
pattern of coin. The image based coin identification involve framework which recognize the Roman coin by exploits the
the basic two steps that is taking the picture of coin and hierarchical knowledge structure embedded in the coin
compare it with the reference coin data base. The data base domain, which then combine with the classifiers based on
consists of pictures of different coins taken at different angle. CNN. Then next formulate an optimization problem to
Firstly, using camera or scanning device the image of a coin is discover class specific salient coin regions. Analysis of
taken for recognition. FFT, DCT, edge detection, Gabor discovered salient regions confirms that they are largely
Wavelets image subtraction, decision trees, ANN, consistent with human expert annotations. Practical results
show that the proposed system is able to successfully
segmentation, SIFT etc. are used to process the image. Based
recognize the ancient Roman coins and effectively identify
on features extracted, different coins are recognized in
landmarks in a general fine-grained classification problem. For
different categories. Here we have a new and better approach
this research, we have collected a new Roman coin dataset
131
Fig.3.2 Architecture of AlexNet
Krizhevsky, Geoffrey Hinton, and Ilya Sutskever. The Compares with the database provided by the user and gives
architecture of AlexNet is shown in Figure 3.2. AlexNet precise output to the display.
consist of eight learning layers, five convolutional and three
fully connected layers. The output of the final fully connected Camera
layer is a soft max regression which converts the weights to (227*227) pix Processor Display
probability distributions of the given 100classes. The input
images are of 224*224*3 resolution which feed to the
convolutional layer which filters the image using 96 kernels of
size 11*11*3 at a stride of 4 pixels [11, 12]. Keypad
All the layers that is third, fourth and last convolutional layers Fig 4.1: Block diagram
are connected in cascading without any intermediate like
pooling.
V. DATASET
IV. METHODOLOGY Developed algorithms have been tested on two types of
datasets. The detail description of these datasets are given in
We have divided the proposed system into two different following subsections.
phases namely software implementation of project on the
A. Standard Dataset
MATLAB and the implementation using a controller. In this
we have been used a raspberry pi as a controller board through We have collected standard dataset from various URL which
that we can control the operation of the system. In the contains hundred images of each object category such as one,
hardware implementation of the project firstly we captured the two, five and ten rupees coins. The resolution of all images is
snapshot of the given inserted coin then it will be process 256x256 with memory size of around 100KB to 1MB.
using the raspberry pi controller. System overview is shown in
figure 4.1. B. Own Dataset
In this system after the completion of software Own dataset captured by ourselves then datasets are used for
implementation we deploy that system in real time system the training purpose in this type of datasets we can take the
such as vending machines. The block gives us the full different types of images of coin that is tilted image and the
information how we deploy that in real time system. The images in various angles. The sample of own recorded
system proposed in this paper consists of different blocks that datasets containing one rupees, two rupees, five rupees and ten
are camera, controller such as raspberry pi and keyboard, rupees are shown in subsequent figures 5.1,5.2,5.3 and 5.4.
display etc.
Camera is used for the image acquisition in this with the
help of camera we capture the image of the coin with the help
of this we can capture the tilted image and the full image of
the coin. SONY IMX219 8MP sensor which has a property of
Wide life camera traps. Then that output of the camera is fed
to the controller block the controller block is nothing but the
raspberry pi controller which controls the whole system. The Fig.5.1: One Rupees Coin
output of camera is fetched by the controller and the controller
resize that images in a standard size that is 227*227 and
132
Fig.5.2: Two Rupees Coin
Fig.5.3: Five Rupees Coin With the dataset of five rupees and ten rupees coins AlexNet is
trained and testing results are shown in figure 6.3 and figure
6.4.
VI. RESULTS
In the first phase we have trained AlexNet in a such a way that
it is able to identify the different coins and then we kept one-
rupee coin in front of camera then the trained network
identified the given coin as one rupee and two rupee which is
shown in figure 6.1 and figure 6.2. Fig.6.3 AlexNet Identified FIVE Rupee Coin
Fig.6.1 AlexNet Identified ONE Rupee Coin Fig.6.4 AlexNet Identified TEN Rupee Coin
133
VII. CONCLUSION AND FUTURE SCOPE [3] Abdolah Chalechale, “Coin Image Analysis, Semantic Evaluation and
Efficiency Assessment”, pp.01-04, 2007.
Conventional image processingbased methods requires a [4] Kiran Kale, Sushant Pawar and Pravin Dhulekar, “Moving Object
lot of training images in order to achieve the higher accuracy Tracking Using Optical Flow and Motion Vector Estimation” Published
or the better performance whereas comparatively deep in IEEE 4th International conference on reliability, Infocom technologies
and optimization (ICRITO 2015), 2-4 Sept 2015.
learning need lesser data for training which ultimately [5] Preeti Kale, G. M. Phade, S. T. Gandhe, Pravin A. Dhulekar,
increases the speed of operation and reduces response time. In “Enhancement of old images and documents by Digital Image Processing
our preliminary coin recognition experiments, we trained an Techniques” Presented in IEEE International Conference on
AlexNet on a pre-prepared dataset of images, which Communication, Information & Computing Technology (ICCICT),
confirmedthat the amount of training data was enough. The Mumbai, India. 16-17 January 2015.
[6] Kaiping Wei, Bin He, Fang Wang, Tao Zhang, Quanjun Ding “A Novel
performance of the best model showed that 1000 -coin images Method for Classification of Ancient Coins Based on Image Textures”,
are needed in the training phase but significantly all the ranges Second Workshop on Digital Media and its Application in Museum &
of the coin should be considered in that. The deep learning Heritage, pp.63-66, 2007.
architecture that we implemented proved to have substantial [7] P.A. Dhulekar, S.T. Gandhe, Anjali Shewale, Sayali Sonawane, Varsha
Yelmame, “Motion estimation for human activity surveillance”, IEEE
advantages: these include an immediate response to the user, International Conference on Emerging Trends & Innovation in ICT
and the ability to use GPUs for training, validation and testing (ICEI), Pages 82-85, 2017.
of the NN in order to classify models quickly. We developed [8] P.A. Dhulekar, Priyanka Aher, Swapnali Choudhari, Yogita Khairnar,
an application for with the real-time basis that provide a “Design of IR based image processing technique for digital camera
visualization of the results based on an image of a coin, deactivation”, IEEE International Conference on Global Trends in Signal
Processing, Information Computing and Communication (ICGTSPICC),
obtained using the device’s camera. The proposed work can be Pages 83-86, 2016.
extended by deployment of developed algorithms in real time [9] Hussein R. Al-Zoubi, Member, “E cient Coin Recognition Using a
embedded systems. Statistical Approach”, pp.01-04, 2010.
[10] Priyanka Borude, Dr.S.T. Gandhe, Pravin A. Dhulekar, G.M. Phade,
“Identification and Tracking of Facial Features” Published in Elsevier
REFERENCES International Conference on Advances in Computing, Communication
and Control (ICAC3 '15),1st-2nd April 2015.
[1] Nicola Capece, Ugo Erra, Antonio Vito Ciliberto “Implementation of a [11] G. M. Phade, Prerna D. Uddharwar, Pravin A. Dhulekar, Dr. S. T.
Coin Recognition System for Mobile Devices with Deep Learning”, 12th Gandhe “Motion Estimation for Human-Machine Interaction” Presented
International Conference on Signal-Image Technology & Internet-Based in IEEE International Symposium on Signal Processing and Information
Systems, pp.187-192, 2016. Technology (ISSPIT), Noida, India, 15-17 Dec 2014.
[2] Jongpil Kim and Vladimir Pavlovic Rutgers, “Discovering Characteristic [12] Adnan Khashman, “Intelligent Coin Identification System”, International
Landmarks on Ancient Coins Using Convolutional Networks”, 23rd Symposium on Intelligent Control Munich, Germany, October 4-6, 2006.
International Conference on Pattern Recognition (ICPR) Cancún Center,
Cancún, México, December 4-8, 2016
134