Deep_Learning_CNN_Implementation_MNIST
Deep_Learning_CNN_Implementation_MNIST
MNIST Dataset
Problem Statement
The goal of this project is to build a Convolutional Neural Network (CNN) to classify
handwritten digits using the MNIST dataset. The MNIST dataset contains 70,000 grayscale
images of handwritten digits (0–9) that are 28x28 pixels in size. This implementation
demonstrates how deep learning techniques can achieve high accuracy on image
classification tasks.
Dataset Overview
The MNIST dataset includes 60,000 training images and 10,000 testing images. Each image
is labeled with the corresponding digit. We normalize the image data and reshape it to fit
the input requirements of a CNN.
import tensorflow as tf
from tensorflow.keras.datasets import mnist
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten, Dense
from tensorflow.keras.utils import to_categorical
Training Results
The CNN model achieved high accuracy on both training and validation datasets. Below is
the plot showing the loss and accuracy over 10 epochs.
Conclusion
This implementation demonstrates the effectiveness of CNNs in image classification tasks.
The model achieved over 97% accuracy on the MNIST dataset, validating the suitability of
deep learning for digit recognition problems.