Automated Coin Recognition System using ANN

Similar documents
Analecta Vol. 8, No. 2 ISSN

A Simple Feature Extraction Technique of a Pattern By Hopfield Network

Blood Vessel Classification into Arteries and Veins in Retinal Images

Face Recognition For Remote Database Backup System

An Energy-Based Vehicle Tracking System using Principal Component Analysis and Unsupervised ART Network

High-Performance Signature Recognition Method using SVM

Neural Network based Vehicle Classification for Intelligent Traffic Control

LIST OF CONTENTS CHAPTER CONTENT PAGE DECLARATION DEDICATION ACKNOWLEDGEMENTS ABSTRACT ABSTRAK

Automatic Extraction of Signatures from Bank Cheques and other Documents

Automatic Detection of PCB Defects

Comparison of Supervised and Unsupervised Learning Classifiers for Travel Recommendations

How To Fix Out Of Focus And Blur Images With A Dynamic Template Matching Algorithm

Signature Region of Interest using Auto cropping

Keywords: Image complexity, PSNR, Levenberg-Marquardt, Multi-layer neural network.

A Dynamic Approach to Extract Texts and Captions from Videos

HAND GESTURE BASEDOPERATINGSYSTEM CONTROL

An Approach for Utility Pole Recognition in Real Conditions

QUALITY TESTING OF WATER PUMP PULLEY USING IMAGE PROCESSING

DIAGONAL BASED FEATURE EXTRACTION FOR HANDWRITTEN ALPHABETS RECOGNITION SYSTEM USING NEURAL NETWORK

Locating and Decoding EAN-13 Barcodes from Images Captured by Digital Cameras

Price Prediction of Share Market using Artificial Neural Network (ANN)

LEAF COLOR, AREA AND EDGE FEATURES BASED APPROACH FOR IDENTIFICATION OF INDIAN MEDICINAL PLANTS

The Role of Size Normalization on the Recognition Rate of Handwritten Numerals

Circle Object Recognition Based on Monocular Vision for Home Security Robot

Keywords image processing, signature verification, false acceptance rate, false rejection rate, forgeries, feature vectors, support vector machines.

Detection of Bare PCB Defects by Image Subtraction Method using Machine Vision

A New Image Edge Detection Method using Quality-based Clustering. Bijay Neupane Zeyar Aung Wei Lee Woon. Technical Report DNA #

A Content based Spam Filtering Using Optical Back Propagation Technique

How To Use Neural Networks In Data Mining

Recognition Method for Handwritten Digits Based on Improved Chain Code Histogram Feature

Index Terms: Face Recognition, Face Detection, Monitoring, Attendance System, and System Access Control.

An Algorithm for Classification of Five Types of Defects on Bare Printed Circuit Board

Intelligent Database Monitoring System using ARM9 with QR Code

ECE 533 Project Report Ashish Dhawan Aditi R. Ganesan

Image Processing Based Automatic Visual Inspection System for PCBs

ScienceDirect. Brain Image Classification using Learning Machine Approach and Brain Structure Analysis

Fingerprint s Core Point Detection using Gradient Field Mask

Credit Card Fraud Detection Using Self Organised Map

Object Recognition and Template Matching

Simultaneous Gamma Correction and Registration in the Frequency Domain

Poker Vision: Playing Cards and Chips Identification based on Image Processing

HANDS-FREE PC CONTROL CONTROLLING OF MOUSE CURSOR USING EYE MOVEMENT

Algorithm for License Plate Localization and Recognition for Tanzania Car Plate Numbers

Volume 2, Issue 9, September 2014 International Journal of Advance Research in Computer Science and Management Studies

Handwritten Character Recognition from Bank Cheque

ANN Based Fault Classifier and Fault Locator for Double Circuit Transmission Line

Modelling, Extraction and Description of Intrinsic Cues of High Resolution Satellite Images: Independent Component Analysis based approaches

Overview. 1. Introduction. 2. Parts of the Project. 3. Conclusion. Motivation. Methods used in the project Results and comparison

Template-based Eye and Mouth Detection for 3D Video Conferencing

International Journal of Computer Science Trends and Technology (IJCST) Volume 2 Issue 3, May-Jun 2014

SIGNATURE VERIFICATION

Image Compression through DCT and Huffman Coding Technique

DESIGN OF DIGITAL SIGNATURE VERIFICATION ALGORITHM USING RELATIVE SLOPE METHOD

CLOUD CHARACTERIZATION USING LOCAL TEXTURE INFORMATION. Antti Isosalo, Markus Turtinen and Matti Pietikäinen

Barcode Based Automated Parking Management System

Data quality in Accounting Information Systems

Performance Evaluation of Online Image Compression Tools

A Study on M2M-based AR Multiple Objects Loading Technology using PPHT

MassArt Studio Foundation: Visual Language Digital Media Cookbook, Fall 2013

Data Mining using Artificial Neural Network Rules

Accurate and robust image superresolution by neural processing of local image representations

Feasibility Study of Implementation of Cell Phone Controlled, Password Protected Door Locking System

Building an Advanced Invariant Real-Time Human Tracking System

FPGA Implementation of Human Behavior Analysis Using Facial Image

How To Filter Spam Image From A Picture By Color Or Color


Tracking and Recognition in Sports Videos

Automatic 3D Reconstruction via Object Detection and 3D Transformable Model Matching CS 269 Class Project Report

HSI BASED COLOUR IMAGE EQUALIZATION USING ITERATIVE n th ROOT AND n th POWER

Medical Image Segmentation of PACS System Image Post-processing *

International Journal of Advanced Information in Arts, Science & Management Vol.2, No.2, December 2014

Hybrid Lossless Compression Method For Binary Images

LOCAL SURFACE PATCH BASED TIME ATTENDANCE SYSTEM USING FACE.

The Scientific Data Mining Process

Schneps, Leila; Colmez, Coralie. Math on Trial : How Numbers Get Used and Abused in the Courtroom. New York, NY, USA: Basic Books, p i.

Image Classification for Dogs and Cats

REAL TIME TRAFFIC LIGHT CONTROL USING IMAGE PROCESSING

Time Series Data Mining in Rainfall Forecasting Using Artificial Neural Network

Automatic Evaluation Software for Contact Centre Agents voice Handling Performance

Delivering Business Intelligence With Microsoft SQL Server 2005 or 2008 HDT922 Five Days

Interactive Flag Identification Using a Fuzzy-Neural Technique

2. IMPLEMENTATION. International Journal of Computer Applications ( ) Volume 70 No.18, May 2013

COMPARISON OF OBJECT BASED AND PIXEL BASED CLASSIFICATION OF HIGH RESOLUTION SATELLITE IMAGES USING ARTIFICIAL NEURAL NETWORKS

FACE RECOGNITION BASED ATTENDANCE MARKING SYSTEM

Multimodal Biometric Recognition Security System

Predicting the Risk of Heart Attacks using Neural Network and Decision Tree

Recognition of Facial Expression Using AAM and Optimal Neural Networks

CHAPTER 5 PREDICTIVE MODELING STUDIES TO DETERMINE THE CONVEYING VELOCITY OF PARTS ON VIBRATORY FEEDER

Data Mining Part 5. Prediction

Identification of TV Programs Based on Provider s Logo Analysis

Navigation Aid And Label Reading With Voice Communication For Visually Impaired People

Design call center management system of e-commerce based on BP neural network and multifractal

FRAUD DETECTION IN ELECTRIC POWER DISTRIBUTION NETWORKS USING AN ANN-BASED KNOWLEDGE-DISCOVERY PROCESS

Palmprint Recognition. By Sree Rama Murthy kora Praveen Verma Yashwant Kashyap

DYNAMIC DOMAIN CLASSIFICATION FOR FRACTAL IMAGE COMPRESSION

A Direct Numerical Method for Observability Analysis

Programming Exercise 3: Multi-class Classification and Neural Networks

Pattern Recognition of Japanese Alphabet Katakana Using Airy Zeta Function

Context-aware Library Management System using Augmented Reality

Signature Segmentation from Machine Printed Documents using Conditional Random Field

Transcription:

Automated Coin Recognition System using ANN Shatrughan Modi Dept. of Computer Science and Engineering Thapar University Patiala-147004, India. Dr. Seema Bawa Dept. of Computer Science and Engineering Thapar University Patiala-147004, India. ABSTRACT Coins are integral part of our day to day life. We use coins everywhere like grocery store, banks, buses, trains etc. So it becomes a basic need that coins can be sorted and counted automatically. For this it is necessary that coins can be recognized automatically. In this paper we have developed an ANN (Artificial Neural Network) based Automated Coin Recognition System for the recognition of Indian Coins of denomination `1, `2, `5 and `10 with rotation invariance. We have taken images from both sides of coin. So this system is capable of recognizing coins from both sides. Features are extracted from images using techniques of Hough Transformation, Pattern Averaging etc. Then, the extracted features are passed as input to a trained Neural Network. 97.74% recognition rate has been achieved during the experiments i.e. only 2.26% miss recognition, which is quite encouraging. General Terms Neural Network, Pattern Recognition, Image Processing. Keywords Pattern Averaging, Hough Transform for circle detection, Automated Coin Recognition. 1. INTRODUCTION We can not imagine our life without coins. We use coins in our daily life almost everywhere like in banks, supermarkets, grocery stores etc. They have been the integral part of our day to day life. So there is basic need of highly accurate and efficient automatic coin recognition system. In-spite of daily uses coin recognition systems can also be used for the research purpose by the institutes or organizations that deal with the ancient coins. There are three types of coin recognition systems available in the market based on different methods: Mechanical method based systems Electromagnetic method based systems Image processing based systems The mechanical method based systems use parameters like diameter or radius, thickness, weight and magnetism of the coin to differentiate between the coins. But these parameters can not be used to differentiate between the different materials of the coins. It means if we provide two coins one original and other fake having same diameter, thickness, weight and magnetism but with different materials to mechanical method based coin recognition system then it will treat both the coins as original coin so these systems can be fooled easily. The electromagnetic method based systems can differentiate between different materials because in these systems the coins are passed through an oscillating coil at a certain frequency and different materials bring different changes in the amplitude and direction of frequency. So these changes and the other parameters like diameter, thickness, weight and magnetism can be used to differentiate between coins. The electromagnetic method based coin recognition systems improve the accuracy of recognition but still they can be fooled by some game coins. In the recent years coin recognition systems based on images have also come into picture. In these systems first of all the image of the coin to be recognized is taken either by camera or by some scanning. Then these images are processed by using various techniques of image processing like FFT [1, 2], Gabor Wavelets [3], DCT, edge detection, segmentation, image subtraction [4], decision trees [5] etc and various features are extracted from the images. Then based on these features different coins are recognized. 2. RELATED WORK In 1992 [6] Minoru Fukumi et al. presented a rotational invariant neural pattern recognition system for coin recognition. They performed experiments using 500 yen coin and 500 won coin. In this work they have created a multilayered neural network and a preprocessor consisting of many slabs of neurons to provide rotation invariance. They further extended their work in 1993 [7] and tried to achieve 100% accuracy for coins. In this work they have used BP (Back Propagation) and GA (Genetic Algorithm) to design neural network for coin recognition. Adnan Khashman et al. [8] presented an Intelligent Coin Identification System (ICIS) in 2006. ICIS uses neural network and pattern averaging for recognizing rotated coins at various degrees. It shows 96.3% correct identification i.e. 77 out of 80 variably rotated coin images were correctly identified. Mohamed Roushdy [9] had used Generalized Hough Transform to detect coins in image. In our work we have combined Hough Transform and Pattern Averaging to extract features from image. Then, these features are used to recognize the coins. In section 3 implementation details are given. In section 4 we have presented training and testing data. Then, in section 5 the experimental results are provided. Then, in section 6 we have concluded the work. 3. IMPLEMENTATION DETAILS Coin recognition process has been divided into seven steps. The architecture of Automated Coin Recognition System is shown in Fig. 1. 13

Acquire RGB Coin Image Convert RGB Image to Grayscale Remove Shadow from Image Step 4. Find the maximum value from the Hough Matrix. The corresponding indices give the center coordinates and radius of coin. Now based on the center coordinates and radius, the coin is extracted from the background. So, in this way the shadow of the coin is removed. Fig. 3 shows a coin with shadow and Fig. 4 shows the coin without shadow after applying Hough Transform. Crop and Trim the Image Generate Pattern Averaged Image Generate Feature Vector and pass it as Input to Trained NN Give Appropriate Result according to the Output of NN Fig. 1: Architecture for Automated Coin Recognition System Fig. 3: Image with Shadow Fig. 4: Image without Shadow 3.4 Crop and Trim the Image After shadow removal the image is cropped so that we just have the coin in the image. Then after cropping, coin image is trimmed to make it of equal dimension of 100 100. 3.1 Acquire RGB Coin Image This is the first step of coin recognition process. In this step the RGB coin image is acquired. Indian coins of denominations `1, `2, `5 and `10 were scanned from both sides at 300 dpi (dots per inch) using color scanner as shown in Fig. 2. Five coins of each denomination were scanned. 3.2 Convert RGB Coin Image to Grayscale From the first step the image we got is a 24-bit RGB image. Image processing of colored images takes more time than the grayscale images. So, to reduce the time required for processing of images in further steps it is good to convert the 24-bit RGB image to 8-bit Grayscale image. 3.3 Remove Shadow of Coin from Image In this step, shadow of the coin from the Grayscale image is removed. As all the coins have circular boundary. So, for removing shadow Hough Transform for Circle Detection [9] is used. For this first of all edge of the coin is detected using Sobel Edge Detection. Following is the pseudo code for Hough Transform: Step 1. Define a 3-dimensional Hough Matrix of (M N R), where M, N is the height and width of the Grayscale image and R is the no. of radii for which Step 2. Step 3. we want to search. For each edge pixel (x, y) and for particular radius r, search circle center coordinates (u, v) that satisfy the equation (x-u) 2 +(y-v) 2 =r 2 and increase count in Hough Matrix at (u, v, r) by 1. Repeat step 2 for other radii. Fig. 5: Cropped Image Fig. 6: 100 100 Trimmed Image 3.5 Generate Pattern Averaged Image The 100 100 trimmed coin images become the input for the trained neural network. But to reduce the computation and complexity in the neural network these images are further reduced to size 20 20 by segmenting the image using segments of size 5 5 pixels, and then taking the average of pixel values within the segment. This can be represented by mathematical equations, as shown in (1) and (2): 5 5 Sum i P SegAvg i j 1 k 1 Sum i ijk 25 (1) (2) where i, j, k is the segment no., row no. and column no. of a particular segment respectively, Sum i is the sum of the pixel values P ijk of the segment i, SegAvg i is the average of pixel values of segment i. 14

(i) (ii) (iii) (iv) (v) (vi) (vii) (viii) (ix) (x) (xi) (xii) (xiii) Fig. 2: Indian Coins of different Denominations; (i) Head of `1 coin (1 st type), (ii) Tail of `1 coin (1 st type), (iii) Head of `1 coin (2 nd type), (iv) Tail of `1 coin (2 nd type), (v) Head of `2 coin (1 st type), (vi) Tail of `2 coin (1 st type), (vii) Head of `2 coin (2 nd type), (viii) Tail of `2 coin (2 nd type), (ix) Head of `5 coin (1 st type), (x) Tail of `5 coin (1 st type), (xi) Head of `5 coin (2 nd type), (xii) Tail of `5 coin (2 nd type), (xiii) Head of `10 coin, (xiv) Tail of `10 coin (xiv) 3.6 Generate Feature Vector and pass it as Input to Trained NN In this step, a feature vector is generated from the pattern averaged coin image. The 20 20 image generates a feature vector of dimension 400 1 i.e. all the pixel values are put into a vector of 1 column. Then, this feature vector of 400 features is passed as input to trained neural network. Fig. 7 gives the architecture of Trained Neural Network. Fig. 7: Architecture of Trained Neural Network 3.7 Give Appropriate Result according to the Output of Neural Network Coins are classified into 14 categories as shown in Fig. 2. The neural network classifies the given coin image into one of these class and based on the classification the results get generated that to which denomination the given coin belongs i.e. if coin gets classified in one of the class from (i) to (iv) then we say it is a `1 coin. Similarly, for other classes we give appropriate result. In Fig. 8 snapshot of the tool developed is given in which a `10 coin is recognized. 4. TRAINING AND TESTING DATA Five samples of each denomination of Indian coins are scanned from both sides as shown in Fig. 2. So, it results to 10 images for each coin. But for `1, `2 and `5 two types of coins are used. So for each of these denominations there are 20 images from which 10 (5 for head and 5 for tail) are of 1 st type and other 10 (5 for head and 5 for tail) are of 2 nd type. Then after preprocessing when we get images of 100 100 then these images were rotated to 5 0, 10 0, 15 0,.,355 0 i.e. total 72 rotated images get generated for each image. So there are 20*72=1440 images for each of `1, `2 and `5 but 10*72=720 images for `10. So there are total 1440*3+720=5040 images. So we trained the neural network by randomly selecting images from these 5040 images. 90% of 5040 images were used for training, and then 5% images were used for testing and rest 5% were used for validation. 15

Fig. 8: Snapshot of Automated Coin Recognition System 5. RESULTS Fig. 9 gives the resultant values of MSE (Mean Square Error) and %E obtained after training, testing and validation. Training of the network takes 148 epochs in total. Fig. 10 shows the performance of network for each training, testing and validation. The best validation performance is achieved at epoch 142. The Fig. 11 shows the confusion matrix for Neural Network. In confusion matrix Target classes are the classes to which the coin actually belongs and Output classes are the classes in which the coins get classified by trained NN. It is clear from the figure that 97.74% correct recognition has been achieved which is quite encouraging. So, there is only 2.26% misclassification. Fig. 9: Results after Training, Testing and Validation of NN Fig. 10: Performance of Neural Network 16

Fig. 11: Confusion Matrix of NN Table 1: Recognition Results Sr. No. Coin Type Images correctly recognized / Total no. of images Recognition Rate (in %age) 1 `1 1412/1440 98.05 2 `2 1426/1440 99.03 3 `5 1368/1440 95 4 `10 720/720 100 Total 4926/5040 97.74 6. CONCLUSION An ANN based automated coin recognition system has been developed using MATLAB. In this system, firstly preprocessing of the images is done and then these preprocessed images are fed to the trained neural network. Neural network has been trained, tested and validated using 5040 sample images of denominations `1, `2, `5 and `10 rotated at 5 0, 10 0, 15 0., 355 0. Experiments show that the system provides 97.74% correct recognition rate from 5040 sample images, i.e., only 2.26% images get miss-recognized; the result is quite encouraging. 7. REFERENCES [1] Cai-ming Chen, Shi-qing Zhang, Yue-fen Chen, "A Coin Recognition System with Rotation Invariance," 2010 International Conference on Machine Vision and Humanmachine Interface, 2010, pp. 755-757. [2] Thumwarin, P., Malila, S., Janthawong, P. and Pibulwej, W., A Robust Coin Recognition Method with Rotation Invariance, 2006 International Conference on Communications, Circuits and Systems Proceedings, 2006, pp. 520-523. [3] Shen, L., Jia, S., Ji, Z. and Chen, W.S., Statictics of Gabor features for coin recognition, IEEE International Workshop on Imaging Systems and Techniques, 2009, pp. 295-298. [4] Gupta, V., Puri, R., Verma, M., Prompt Indian Coin Recognition with Rotation Invariance using Image Subtraction Technique, International Conference on Devices and Communications (ICDeCom), 2011 [5] P. Davidsson, Coin classification using a novel technique for learning characteristic decision trees by controlling the degree of generalization, Ninth International Conference 17

on Industrial & Engineering Applications of Artificial Intelligence & Expert Systems, 1996. [6] Fukumi M. and Omatu S., "Rotation-Invariant Neural Pattem Recognition System with Application to Coin Recognition", IEEE Trans. Neural Networks, Vol.3, No. 2, pp. 272-279, March, 1992. [7] Fukumi M. and Omatu S., "Designing A Neural Network For Coin Recognition By A Genetic Algorithm", Proceedings of 1993 International Joint Conference on Neural Networks, Vol. 3, pp. 2109-2112, Oct, 1993. [8] Khashman A., Sekeroglu B. and Dimililer K., Intelligent Coin Identification System, Proceedings of the IEEE International Symposium on Intelligent Control ( ISIC'06 ), Munich, Germany, 4-6 October 2006, pp. 1226-1230. [9] Roushdy, M., Detecting Coins with Different Radii based on Hough Transform in Noisy and Deformed Image, In the proceedings of GVIP Journal, Volume 7, Issue 1, April, 2007. 18