Handwritten Digit Recognition Challenge: Build Your First Image Classifier

TL;DR
The Handwritten Digit Recognition Challenge on AIOZ AI is a getting-started computer vision task: classify grayscale images as digits from 0 to 9. Participants practice image preprocessing, multi-class classification, convolutional neural networks, validation, and submission generation, with accuracy determining leaderboard rank.
Baseline code handles data loading, image pipelines, and result.csv creation so newcomers can focus on building a stronger model.
Why This Challenge Matters
Handwritten digit recognition is a foundational computer vision problem with practical applications in postal sorting, financial document processing, and form digitization.
The task sounds simple, but handwriting varies widely. Stroke thickness, slant, loops, placement, and background noise can all change how the same digit appears. A useful model must learn the visual structure of each number without memorizing individual images.
What You Build
You build an image classifier that predicts the digit shown in each grayscale image.
The output is one of ten labels: 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9
Each image receives one label, making this a multi-class image classification task. There are no bounding boxes or segmentation masks. The goal is to move from raw image pixels to one correct digit prediction.
Workflow You Can Practice
This challenge covers the complete image-classification workflow in an accessible format.
- Loading grayscale images and label files
- Exploring class balance, image quality, and handwriting variation
- Normalizing pixel values
- Training a multi-class image classifier
- Using convolutional neural networks to learn edges, curves, and loops
- Applying controlled rotation, translation, and scaling augmentation
- Measuring generalization with stratified cross-validation

Dataset Scope
The challenge dataset combines grayscale image files with CSV files that map image identifiers to labels.
- Train set: Training images plus
groundtruth.csv, which maps each imageidto its correctdigit - Test set: Public test images with hidden labels used for leaderboard evaluation
- Submission file:
result.csvcontaining theidand predicteddigitfor every test image
Grayscale pixels typically use intensity values from 0 to 255. Scaling them to a range such as [0, 1] can make neural-network training more stable.
The higher the percentage of correctly classified images, the higher the submission ranks on the leaderboard.
How to Start Efficiently
Begin with a working end-to-end pipeline before adding model complexity.
A practical first path:
- Inspect the training images, labels, and
result.csvformat. - Run the provided baseline to confirm data loading and submission generation.
- Normalize pixel intensities before training.
- Train a simple classifier or a small convolutional neural network.
- Submit early to establish an accuracy baseline.
- Improve with targeted augmentation, stratified validation, and error analysis.
Start Building
The Handwritten Digit Recognition Challenge offers a focused introduction to computer vision, from raw grayscale pixels to a complete leaderboard submission.
Use the baseline code, train your first model, and improve it through controlled experiments.

FAQ
Q1: What kind of machine learning task is this challenge?
It is a multi-class image classification task. The model predicts one digit label from 0 to 9 for each grayscale image.
Q2: How are submissions evaluated?
Submissions are scored using accuracy, which measures the percentage of test images assigned the correct digit label.
Q3: What does the submission file contain?
The result.csv file contains two columns: the image id and the predicted digit.