Handwritten digit recognition (HDR) remains a fundamental research area in computer vision and pattern recognition due to its extensive applications in optical character recognition (OCR), postal mail sorting, bank cheque verification, document digitization, and intelligent document processing. Although the modified national institute of standards and technology (MNIST) dataset has become a well-established benchmark, designing compact convolutional neural network (CNN) architectures that achieve high recognition accuracy with rapid convergence and low computational requirements continues to be an active research challenge. This paper presents a compact CNN architecture comprising three convolutional layers followed by two fully connected layers for handwritten digit classification. In addition, the study investigates the influence of key training hyperparameters, including batch size, kernel size, and optimizer, on model convergence and classification performance. Experimental evaluation on the MNIST dataset demonstrates that the proposed model achieves 99.37% training accuracy and 99.15% testing accuracy after 10 training epochs, with the highest validation accuracy of 99.20% obtained at the sixth epoch. The model contains 333,450 trainable parameters, has an FP32 model size of approximately 1.27 MB, and requires approximately 73.23 million floating-point operations (FLOPs) per inference. The confusion matrix indicates that the most frequent misclassifications involve visually similar digit pairs, particularly 4–9, 6–5, and 3–5. The findings demonstrate that careful CNN architecture design and empirical hyperparameter analysis can provide accurate and computationally compact HDR, with potential suitability for resource-constrained applications.
Copyrights © 2026