LIVE DEEP LEARNING DEMO PYTORCH

Draw a digit.
Watch AI recognize it.

A real trained neural network. Ten possible digits. One tiny experiment in machine learning.

01

Your input

Draw any digit from 0 to 9 with your mouse or finger.

DRAWING CANVAS● 8×8 neural input
Or try a verified sample

The drawing is processed locally into 8×8 grayscale pixels and evaluated by the trained model.

02

Model prediction

See the network’s real output probabilities.

∿

Waiting for a digit

Draw on the canvas or choose a sample, then press Recognize digit.

BEHIND THE SCENES

Small network.
Real machine learning.

Built with Python and PyTorch, then exported for live predictions. The same model architecture used in the training code performs the inference here.

96.94%Accuracy on held-out test images
1,797Handwritten digit samples
30Training epochs
64→10Input pixels → output classes
01Input image
8×8 grayscale
→
02Neural layers
64 → 64 → 32
→
03Prediction
10 digit classes
About this demo

Trained on the small scikit-learn Digits dataset. The 96.94% accuracy was measured on 360 held-out dataset images, not live user drawings. Freehand recognition is an experimental extension and may be less accurate because the handwriting style, size and preprocessing differ.

View the training code and methodology ↗