Skip to content

A neural network-based digit recognition system using the MNIST dataset to classify handwritten digits with preprocessing and visualization (Coursera Project).

License

Notifications You must be signed in to change notification settings

k5lowe/Digit-Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Digit-Recognition

A neural network-based digit recognition system using the MNIST dataset to classify handwritten digits with preprocessing and visualization (Coursera Project).

Description

This Coursera project is a neural network-based digit recognition system that utilizes the MNIST dataset to classify handwritten digits (0–9). The dataset comprises 60,000 training and 10,000 testing images of 28x28 grayscale pixels, each representing a single digit. The project includes data preprocessing, model design, training, evaluation, and visualization, providing a comprehensive pipeline for solving this classification problem.

Key Metrics:

  • Accuracy: 97.50%
  • Loss: ~0.14

Features:

  • Classifies digits from 0 to 9 using the MNIST dataset
  • Data Preprocessing:
    • Flattens 3D image data into 2D arrays
    • Normalizes pixel values to the range [-1, 1]
  • Neural Network Model
  • Model Training
    • Trains the neural network using the Adam optimizer
    • Utilizes Sparse Categorical Crossentropy loss function
  • Calculates model loss and accuracy on the test dataset
  • Prediction Visualization

Technologies:

  • Python
  • TensorFlow/Keras
  • MNIST Dataset
  • Matplotlib
  • NumPy

Graphs

Test data images with labels

image

Attributions & Remarks

The entirity of this project rested on the kind help of the following websites, especially Coursera and analyticsvidhya. As always, ChatGPT proved an immense help and guidance where much time and effort was saved.

Please feel free to use this code! Lastly, any feedback on how to better this code would be greatly appreciated. Thank you for your time.

About

A neural network-based digit recognition system using the MNIST dataset to classify handwritten digits with preprocessing and visualization (Coursera Project).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages