sonu275981 / Handwritten-digit-recognition-MNIST

This is a machine learning model that classifies digits from 0-9 from handwritten digits.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handwritten-digit-recognition-MNIST

Handwritten Digit Recognition using Convolutional Neural Networks in Python with Keras

Introduction

MNIST contains 70,000 images of handwritten digits: 60,000 for training and 10,000 for testing. The images are grayscale, 28x28 pixels, and centered to reduce preprocessing and get started quicker.

Keras is a high-level neural network API focused on user friendliness, fast prototyping, modularity and extensibility. It works with deep learning frameworks like Tensorflow, so we can get right into building and training a neural network without a lot of fuss.

MNIST dataset:

MNIST is a collection of handwritten digits from 0-9. Image of size 28 X 28

App Screenshot

Description

This is a 6 layers Sequential Convolutional Neural Network for digits recognition trained on MNIST dataset. I chose to build it with keras API (Tensorflow backend) which is very intuitive.

Code Requirements

python 3.x with following modules installed

  • Numpy
  • Seaborn
  • Tensorflow
  • Keras
  • Opencv2

Accuracy

It achieved 99.92% of accuracy with this CNN trained on a GPU, which took me about a minute. If you dont have a GPU powered machine it might take a little longer, you can try reducing the epochs (steps) to reduce computation.

It achieved 99.12% of accuracy on test set of this CNN model trained on GPU.

About

This is a machine learning model that classifies digits from 0-9 from handwritten digits.


Languages

Language:Jupyter Notebook 100.0%