Comparative Evaluation of Machine Learning Techniques for Handwritten Digit Classification Using the MNIST Dataset
Main Article Content
Abstract
Machine learning (ML) and deep learning (DL) have advanced at a very rapid pace; thus, improving image classification in many fields. MNIST data is one of the most popular benchmark datasets to compare classification algorithms and it is represented by 70,000 grayscale images of handwritten digits (09). This paper will make a comparative analysis of a number of machine learning and deep learning algorithms and models, namely Logistic Regression, Decision Tree, Random Forest, Support Vector Machine (SVM) and Convolutional Neural Networks (CNN) using the MNIST dataset. All of the models were trained and tested using the same preprocessing methods, including normalization and feature scaling. Several evaluation metrics were applied to evaluate the performance, and they included accuracy, precision, recall, F1-score, and confusion matrix. The findings prove that conventional machine learning models, especially SVM and Random Forest, perform competitively. Nonetheless, CNN is more effective as compared to classical models because it is capable of learning hierarchical features of space automatically using image data. The results indicate the significance of choosing suitable models depending upon the nature of data and computing limitations. This paper presents a comparative study in detail and in a systematic manner that would improve the comprehension of the trade-offs between the model performance and computational efficiency and could act as a valuable source of information to researchers and practitioners in image classification exercises.
Article Details
Section

This work is licensed under a Creative Commons Attribution 4.0 International License.
How to Cite
References
[1] T. Zhang, C. Zhang and L. Lin, “Handwritten Digit Recognition Based on Convolutional Neural Network,” in Proc. 2020 Chinese Automation Congress (CAC), pp. 7384–7388, 2020.
DOI: https://doi.org/10.1109/CAC51589.2020.9326781
[2] M. Srivastava and P. Singh, “Handwritten Digit Image Recognition Using Machine Learning,” J. Informatics Electr. Electron. Eng., vol. 3, no. 2, pp. 1–11, Nov. 2022.
DOI: https://doi.org/10.54060/JIEEE/003.02.003
[3] Y. Kumar, B. Bhawna, A. Anupama et al., “Handwritten Digit Recognition Using Machine Learning and Deep Learning Techniques: A Comparative Study of SVM, KNN, RFC, and CNN Models,” Int. J. Research-GRANTHAALAYAH, vol. 11, no. 12, pp. 234–243, Dec. 2023.
DOI: https://doi.org/10.29121/granthaalayah.v11.i12.2023.6111
[4] ImageFeiyang Chen et al., “Assessing Four Neural Networks on Handwritten Digit Recognition Dataset (MNIST),” J. Computer Science Research, vol. 6, no. 3, pp. 17–22, Jul. 2024.
DOI: https://doi.org/10.30564/jcsr.v6i3.6804
[5] S. Sajid Ullah, L. Gang, M. Riaz et al., Handwritten Digit Recognition: An Ensemble-Based Approach for Superior Performance, arXiv:2503.06104, Mar. 2025.
Available: https://arxiv.org/abs/2503.06104
[6] Y. Wen, W. Ke and H. Sheng, “Improved Localization and Recognition of Handwritten Digits on MNIST Dataset with ConvGRU,” Appl. Sci., vol. 15, no. 1, art. 238, Dec. 2024.
DOI: https://doi.org/10.3390/app15010238
[7] Afolabi, A. I., Chukwurah, N., & Abieba, O. A. (2025). Harnessing machine learning techniques for driving sustainable economic growth and market efficiency. International Journal of Multidisciplinary Research and Growth Evaluation, 6(2), 277-283.
[8] S. Ahlawat, A. Choudhary, A. Nayyar, S. Singh, and B. Yoon, “Improved Handwritten Digit Recognition Using Convolutional Neural Networks (CNN),” Sensors, vol. 20, no. 12, p. 3344, 2020.
DOI: https://doi.org/10.3390/s20123344
[9] A. Canziani, A. Paszke, and E. Culurciello, “An Analysis of Deep Neural Network Models for Practical Applications,” arXiv preprint arXiv:1605.07678, updated 2020.
DOI: https://doi.org/10.48550/arXiv.1605.07678
[10] M. Tan and Q. Le, “EfficientNetV2: Smaller Models and Faster Training,” in Proc. International Conference on Machine Learning (ICML), 2021.
DOI: https://doi.org/10.48550/arXiv.2104.00298
[11] A. Howard et al., “Searching for MobileNetV3,” in Proc. IEEE/CVF International Conference on Computer Vision (ICCV), 2019 (widely cited 2020–2024).
DOI: https://doi.org/10.1109/ICCV.2019.00140
[12] A. Dosovitskiy et al., “An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale,” in Proc. ICLR, 2021.