IDEAS home Printed from https://ideas.repec.org/a/bjf/journl/v10y2025i6p565-572.html
   My bibliography  Save this article

Performance Comparison of Convolutional Neural Network and Long Short-Term Memory for the Classification of Handwritten Digits

Author

Listed:
  • Toyobo, Oluwatobi Joel

    (Department of Computer Science, Ladoke Akintola University of Technology, Ogbomoso, Oyo state Nigeria)

  • Olabiyisi, Stephen Olatunde

    (Department of Computer Science, Ladoke Akintola University of Technology, Ogbomoso, Oyo state Nigeria)

  • Ismaila, Wasiu Oladimeji

    (Department of Computer Science, Ladoke Akintola University of Technology, Ogbomoso, Oyo state Nigeria)

  • Oyedele, Adebayo Olalere

    (Department of Computer Science, Ladoke Akintola University of Technology, Ogbomoso, Oyo state Nigeria)

Abstract

Handwritten digit recognition, a task in computer vision, is critical for applications such as postal automation, banking, and digitization of forms. Traditional approaches have leveraged statistical models, but the rise of deep learning, particularly Convolutional Neural Networks (CNN) and Long-Short Term Memory (LSTM), has revolutionized the field. However, a comprehensive performance comparison of CNN and LSTM architectures in the context of handwritten digit classification remains underexplored. This study aimed to address this gap by evaluating and comparing CNN and LSTM models for the classification of handwritten digits. Two machine learning models – Convolutional Neural Network (CNN) and Long-Short Term Memory (LSTM) were trained with the preprocessed handwritten digit dataset. The CNN model was designed with multiple convolutional and pooling layers, along with dropout for regularization. The LSTM model was designed with LSTM layers to capture sequential patterns in the data, followed by a dense layer for classification. The models were implemented in python, evaluated and compared based on accuracy, precision, recall and F1-score. The evaluation and comparison results indicate that CNN achieved 99.31% accuracy, 99.0% precision, 99.0% recall, and a 99.0% F1-score, while LSTM achieved 98.90% accuracy, 99.0% precision, 99.0% recall, and a 99.0% F1-score. The results demonstrated that CNN outperformed LSTM in terms of accuracy and misclassification errors, making it the optimal choice for image-based handwritten digit recognition. This finding underscores the efficiency of CNN in addressing challenges related to digit recognition, contributing to the advancement of automated digit classification systems and improving the accuracy of image-based classification tasks.

Suggested Citation

  • Toyobo, Oluwatobi Joel & Olabiyisi, Stephen Olatunde & Ismaila, Wasiu Oladimeji & Oyedele, Adebayo Olalere, 2025. "Performance Comparison of Convolutional Neural Network and Long Short-Term Memory for the Classification of Handwritten Digits," International Journal of Research and Innovation in Applied Science, International Journal of Research and Innovation in Applied Science (IJRIAS), vol. 10(6), pages 565-572, June.
  • Handle: RePEc:bjf:journl:v:10:y:2025:i:6:p:565-572
    as

    Download full text from publisher

    File URL: https://www.rsisinternational.org/journals/ijrias/digital-library/volume-10-issue-6/565-572.pdf
    Download Restriction: no

    File URL: https://rsisinternational.org/journals/ijrias/articles/performance-comparison-of-convolutional-neural-network-and-long-short-term-memory-for-the-classification-of-handwritten-digits/
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bjf:journl:v:10:y:2025:i:6:p:565-572. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Dr. Renu Malsaria (email available below). General contact details of provider: https://rsisinternational.org/journals/ijrias/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.