0% found this document useful (0 votes)
322 views

Handwritten Digit Recognition Using Convolutional Neural Networks

This document discusses implementing a handwritten digit recognition app using the MNIST dataset and convolutional neural networks in Python with Keras. The MNIST dataset contains 60,000 training images and 10,000 test images of handwritten digits from 0 to 9. The project will build a graphical user interface to allow a user to draw a digit, which will then be recognized using a convolutional neural network trained on the MNIST images.

Uploaded by

sosos
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
322 views

Handwritten Digit Recognition Using Convolutional Neural Networks

This document discusses implementing a handwritten digit recognition app using the MNIST dataset and convolutional neural networks in Python with Keras. The MNIST dataset contains 60,000 training images and 10,000 test images of handwritten digits from 0 to 9. The project will build a graphical user interface to allow a user to draw a digit, which will then be recognized using a convolutional neural network trained on the MNIST images.

Uploaded by

sosos
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Handwritten Digit Recognition using

Convolutional Neural Networks in


Python with Keras
To make machines more intelligent, the developers are diving into machine
learning and deep learning techniques. A human learns to perform a task by
practicing and repeating it again and again so that it memorizes how to perform
the tasks. Then the neurons in his brain automatically trigger and they can
quickly perform the task they have learned. Deep learning is also very similar to
this. It uses different types of neural network architectures for different types of
problems. For example – object recognition, image and sound classification,
object detection, image segmentation, etc

What is Handwritten Digit Recognition?


The handwritten digit recognition is the ability of computers to recognize
human handwritten digits. It is a hard task for the machine because handwritten
digits are not perfect and can be made with many different flavors. The
handwritten digit recognition is the solution to this problem which uses the
image of a digit and recognizes the digit present in the image.
About the Python Deep Learning Project :

In this article, we are going to implement a handwritten digit recognition app using
the MNIST dataset. We will be using a special type of deep neural network that is 
Convolutional Neural Networks. In the end, we are going to build a GUI in which
you can draw the digit and recognize it straight away.

Prerequisites:

The interesting Python project requires you to have basic knowledge of Python
programming, deep learning with Keras library and the Tkinter library for building
GUI.
Install the necessary libraries for this project using this command:
The MNIST dataset :

This is probably one of the most popular datasets among machine learning and deep
learning enthusiasts. The MNIST dataset contains 60,000 training images of
handwritten digits from zero to nine and 10,000 images for testing. So, the MNIST
dataset has 10 different classes. The handwritten digits images are represented as a
28×28 matrix where each cell contains grayscale pixel value.
Description of the MNIST Handwritten Digit Recognition Problem

The MNIST problem is a dataset developed by Yann LeCun, Corinna Cortes and


Christopher Burges for evaluating machine learning models on the handwritten
digit classification problem.
The dataset was constructed from a number of scanned document dataset available
from the National Institute of Standards and Technology (NIST). This is where the
name for the dataset comes from, as the Modified NIST or MNIST dataset.
Images of digits were taken from a variety of scanned documents, normalized in size
and centered. This makes it an excellent dataset for evaluating models, allowing the
developer to focus on the machine learning with very little data cleaning or
preparation required.
Each image is a 28 by 28 pixel square (784 pixels total). A standard split of the dataset
is used to evaluate and compare models, where 60,000 images are used to train a
model and a separate set of 10,000 images are used to test it.
It is a digit recognition task. As such there are 10 digits (0 to 9) or 10 classes to predict.
Results are reported using prediction error, which is nothing more than the inverted
classification accuracy.

Excellent results achieve a prediction error of less than 1%. State-of-the-art prediction
error of approximately 0.2% can be achieved with large Convolutional Neural
Networks. There is a listing of the state-of-the-art results and links to the relevant
papers on the MNIST and other datasets on Rodrigo Benenson’s webpage.

You might also like