Professional Documents
Culture Documents
ABSTRACT
Handwritten Digit Recognition is one of the challenging task in computer vision due to its
variability in shape, size and orientation. Our project aims to develop a model that identifies
handwritten digits from the image with better accuracy. We proposed a model for this by
using Convolutional Neural Network and MNIST dataset which consists of 70,000 images
ranging the values from 0-9. In this model every neuron in one layer is coupled to every other
neuron in the layer above. At first, Input layer having a filter map by taking 28x28 pixel
image as input. Next there will be a convolutional layer which is used to extract features from
the images. Then they are downsampled by the maxpooling layers. The performance of CNN-
based Handwritten Digit Recognition systems is typically evaluated using accuracy. Our
proposed method achieved an accuracy of 97%.
Key words : Handwritten Digit Recognition, Convolutional Neural Network, MNIST
dataset, Input layer, Convolutional layer, Maxpooling layer.
1. INTRODUCTION
IJIRCST[4] Handwritten Digit This paper tested variety of It is demonstrated that SVM
Recognition Using Machine Learning algorithms to gives an accuracy of 99.36%
Various Machine upgrade the productivity of and CNN accuracy rises to
Learning Algorithms strategy and decrease the 99.89%. Double Q learning
and Models algorithm also gives higher
complexity. Machine Learning
accuracy but it is limited to
algorithms include Support Vector
Machine, Convolutional Neural MATLAB dataset only. CNNs
Network, Quantum Computing, K- excel due to their layered
Nearest Neighbor algorithm. architecture, enhancing
computer vision through a
hierarchical model that
connects neurons in fully
connected layers, facilitating
comprehensive output
processing.
Elsevier[5] An adaptive deep Q- This project presents an ADBN draws inspiration from
learning strategy for adaptive Q-learning strategy to deep reinforcement learning,
handwritten digit enhance accuracy and reduce excelling in feature extraction
recognition runtime in handwritten digit and decision-making. It
employs an ADAE for feature
recognition. It merges deep
extraction from handwritten
learning and reinforcement digit images and integrates Q-
learning creating a Q-ADBN learning, where these features
model. serve as current states for
decision-making.
IJCRT[8] HANDWRITTEN
DIGIT HDR turns handwritten numbers into Trained a Convolutional Neural
RECOGNITION digital ones, saving money. We're Network (CNN) with libraries
USING OPENCV making a smart program to recognize like Keras, Matplotlib, CV2,
AND CNN scanned handwritten numbers, testing and Tensorflow to simplify the
different methods to improve accuracy model and achieve high
using the MNIST dataset. accuracy (99.63%). Then
compared it to other machine
learning algorithms and found
CNN to be the most accurate.
ICCIDS[9] Hybrid CNN-SVM The purpose is to create a cross A hybrid CNN-SVM model for
Classifier for breed demonstrate of a effective handwritten digit recognition
Handwritten Digit Convolutional Neural Network combines CNN for feature
Recognition (CNN) and Support Vector generation and SVM for output
Machine (SVM) to recognize prediction, benefiting from
handwritten digits from MNIST both classifiers. It achieves an
dataset. The suggested model impressive 99.28%
integrates the salient classification accuracy on the
characteristics of both classifiers. MNIST dataset.
Improved Handwritten This study explores the potential of The goal was to improve
Sensors[10]
Digit Recognition Using Convolutional Neural Networks handwritten digit recognition
Convolutional Neural (CNNs) for handwritten digit using a straightforward CNN
Networks (CNN) recognition, optimizing design options approach, achieving a
and evaluating SGD optimization remarkable 99.89% accuracy on
algorithms. The goal is to achieve MNIST. The simpler CNN
exceptional accuracy (99.87%) surpassed more complex models
without the computational used by other researchers. Future
complexity and cost associated with studies could explore hybrid
ensemble architectures, setting a new CNN models and evolutionary
record for MNIST digit classification. algorithms for further
improvements.
IEEE[11] Better digit recognition They introduce a novel approach to The errors of the individual
with a committee of training one-hidden-layer neural net experts should not be associated
committee members. Rather than for the committee to function at
simple Neural Nets
training multiple nets on subsets of the its best. They demonstrated how
training data, they preprocess each doing a little preprocessing on
model's training data so that the the data before training can do
associated errors are decorrelated. this. The observed variances in
Using a committee of 25 one-hidden- aspect ratio and slant of
layer neural nets, they achieve a handwritten numbers serve as
recognition error rate of 0.39% on the the motivation for the
MNIST digit recognition benchmark preprocessing that is applied.
set.
Elsevier[12] Improved method of They have developed a novel neural The LIRA neural classifier,
handwritten digit classifier dubbed LImited Receptive developed for image recognition,
recognition tested Area (LIRA) for photo identification. demonstrated excellent
on MNIST database The output, associative, and sensor performance in handwritten
layers are the three neural layers that recognition and pin-hole relative
comprise the classifier LIRA. There position estimation, with a
are a lot of MNIST database 99.41% recognition rate on the
discoveries in the literature. In the MNIST database.
optimal cases, the error rates are 0.7,
0.63, and 0.42%. The classifier LIRA
indicates that the mean value of three
trials is the error rate of 0.61%.
IEEE[13] Handwriting This paper gives an overview of the For the categorization of
recognition using multi-class categorization of the handwritten digits,
photos using these models is convolutional neural
Deep Learning in
provided in this study, along with a networks are shown to
Keras performance evaluation of the models perform more accurately
using several metrics. than feedforward neural
networks.
IEEE[14] A Robust Model for In this study, they evaluate the By increasing the
Handwritten Digit effectiveness of CNN with SVM and convolutional layer with
KNN and propose CNN as a deep pooling and dropout and fine-
Recognition using
learning approach using Keras for tuning the model with filter,
Machine and Deep MNIST handwritten digit recognition. kernel size, and neuron count,
Learning Technique The suggested CNN, which is based this research effort primarily
on the Keras model, uses the contributes to the field. With
RMSprop optimizer to optimize the epoch 10, the suggested CNN
model and is used to categorize model generates training
photos of handwritten numbers. accuracy of 99.06% and
testing accuracy of 98.80%.
According to experiment
findings, the suggested CNN
works better than
alternative methods.
IEEE[15] Performance Evaluation In this research, they examined the The classification produced
of Machine Learning effectiveness of a few machine by deep neural networks is
Algorithms in learning methods that are used to the most accurate when
Handwritten Digits classify complicated and multiclass compared to the other
Recognition issues. In order to predict handwritten classifiers, according to the
digits, they used four machine findings obtained using
learning methods in this work: K- several similarity criteria,
Nearest Neighbors, Deep Neural including accuracy,
Network, Decision Tree, and Support sensitivity, and specificity.
Vector Machine.
3. PROPOSED SOLUTION
Our proposed work mainly separated into stages, as shown in Figure 1, Data Collection,
Preprocessing the data, Model construction (CNN), Train the Model, Evaluate the Model,
Predictions.
CNN Architecture
CNN is one of the type of the feed-forward neural network that learns feature engineering by
itself using filters or kernal optimization. CNN is also called as Shift Invariant or Space
Invariant Artificial Neural Network. Feed-forward neural networks are completely linked
networks, meaning that every neuron in one layer is coupled to every other neuron in the
layer above.
An input layer, hidden layers, and an output layer make up a convolutional neural network.
3) Input : Prediction :
4) Input : Prediction :
6) Input : Prediction :
9) Input : Prediction :
5. CONCLUSION
The performance of CNN model was significant in recognizing the hand written digits. The
model obtained 97% accuracy and can recognize photographs from the real world. The
evaluation and training loss percentage is also less. The effect of increasing the number of
convolutional layers in CNN architecture on the performance of handwritten digit recognition
is clearly presented through the experiments. We can increase the epochs in order to increase
our accuracy. But more epochs can leads to Overfitting so we have to specify the epochs very
accurately. The parameters like pooling layers, activation functions also plays a major role in
recognizing the pictures clearly.
6. REFERENCES
[1] Essam, Farah, Hanein Samy, and Judy Wagdy. "Mlhandwrittenrecognition: Handwritten digit
recognition using machine learning algorithms." Journal of Computing and Communication 2.1 (2023):
9-19.
[2] Shahid, Muhammad Farhan. "Influence of various ML-Based Binary Classifiers on the Performance
on handwritten digit recognition." Authorea Preprints (2023).
[3] Shamim, S. M., et al. "Handwritten digit recognition using machine learning algorithms." Global Journal
Of Computer Science And Technology 18.1 (2018): 17-23.
[4] Patil, Pranit. "Handwritten digit recognition using various machine learning algorithms and
models." International Journal of Innovative Research in Computer Science & Technology (IJIRCST)
ISSN (2020): 2347-5552.
[5] Qiao, Junfei, et al. "An adaptive deep Q-learning strategy for handwritten digit recognition." Neural
Networks 107 (2018): 61-71.
[6] Ahmed, Syed Sohail, et al. "A novel technique for handwritten digit recognition using deep
learning." Journal of Sensors 2023 (2023).
[7] Alimoğlu, Fevzi, and Ethem Alpaydin. "Combining multiple representations for pen-based handwritten
digit recognition." Turkish Journal of Electrical Engineering and Computer Sciences 9.1 (2001): 1-12.
[8] Swetha, Hithaishi, Tejaswini, Parthasaradhi, Venkateswara Rao, “HANDWRITTEN DIGIT
RECOGNITION USING OPENCV AND CNN”, International Journal of Creative Research Thoughts
(IJCRT), Volume 9, Issue 6, June-2021 | ISSN: 2320-2882.
[9] Ahlawat, Savita, and Amit Choudhary. "Hybrid CNN-SVM classifier for handwritten digit
recognition." Procedia Computer Science 167 (2020): 2554-2560.
[10] Ahlawat, Savita, et al. "Improved handwritten digit recognition using convolutional
neural networks (CNN)." Sensors 20.12 (2020): 3344.
[11] Meier, Ueli, et al. "Better digit recognition with a committee of simple neural nets."
2011 international conference on document analysis and recognition. IEEE, 2011.
[12] Ernst Kussul, Tatiana Baidyk, “Improved method of handwritten digit recognition tested on
MNIST database”, Image and Vision Computing, Volume 22, Issue 12, 2004, Pages 971-
981,
ISSN 0262-8856.
[13] S. Arora and M. P. S. Bhatia, "Handwriting recognition using Deep Learning in Keras," 2018
International Conference on Advances in Computing, Communication Control and
Networking (ICACCCN), Greater Noida, India, 2018, pp. 142-145, doi:
10.1109/ICACCCN.2018.8748540.
[14] A. K. Agrawal, A. K. Shrivas and V. k. Awasthi, "A Robust Model for Handwritten Digit
Recognition using Machine and Deep Learning Technique," 2021 2nd International
Conference for Emerging Technology (INCET), Belagavi, India, 2021, pp. 1-4, doi:
10.1109/INCET51464.2021.9456118.
[15] S. HAMIDA, B. CHERRADI, A. RAIHANI and H. OUAJJI, "Performance Evaluation of
Machine Learning Algorithms in Handwritten Digits Recognition," 2019 1st International
Conference on Smart Systems and Data Science (ICSSD), Rabat, Morocco, 2019, pp. 1-6,
doi: 10.1109/ICSSD47982.2019.9003052.