A compact lightweight convolutional neural network for handwritten digit recognition

Shehla Afzal, Muhammad Talha Farooqi, Irfanud Din, Tayyaba Anees

Abstract


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.

Keywords


Convolutional neural network; Handwritten digit recognition; Hyperparameter optimization; Deep learning; MNIST;



DOI: http://doi.org/10.11591/ijeecs.v44.i1.pp283-292

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Indonesian Journal of Electrical Engineering and Computer Science (IJEECS)
p-ISSN: 2502-4752, e-ISSN: 2502-4760
This journal is published by the Institute of Advanced Engineering and Science (IAES).

shopify stats IJEECS visitor statistics