Vol. 2 No. 2 (2026): Vol 2 No 2 (November 2026)
Articles

Design and Development of an Automated Grading System for Handwritten Exam Answers Using EasyOCR and Fuzzy String Matching

Fadli Maulana
Politeknik Negeri Lhokseumawe
Mahdi Mahdi
Politeknik Negeri Lhokseumawe
Huzaeni Huzaeni
Politeknik Negeri Lhokseumawe
Arya Surbakti
Universitas Muhammadiyah Sumatera Utara

Published 16-10-2026

Keywords

  • Automated Exam Grading,
  • Handwriting Recognition,
  • EasyOCR,
  • Convolutional Neural Network (CNN),
  • Fuzzy String Matching,
  • FastAPI
  • ...More
    Less

Abstract

Manual correction of handwritten exam answer sheets is time-consuming, especially when the number of students is large and the questions are essays requiring in-depth answers. This study designs and develops a website-based system called SiPena that integrates three main components: image preprocessing using the OpenCV library with grayscale conversion and Otsu's thresholding, handwriting recognition using the Convolutional Neural Network (CNN)-based EasyOCR library, and automatic grading using the Fuzzy String Matching algorithm with the token_set_ratio method from the FuzzyWuzzy library. The system also provides a full-sheet grading mode that allows lecturers to upload a single photo of an answer sheet containing all questions at once, as well as a manual override feature to correct automatic grading results. Black-box testing of the system's 15 core functions showed that all functions run according to the established success criteria, while white-box testing confirmed that the logic flow of the preprocessing and grading pipeline, including three answer-parsing strategies and a tiered scoring scheme, runs correctly. A Character Error Rate (CER) comparison test using 210 photos of handwritten answer sheets from 29 respondents was conducted under two conditions: EasyOCR without preprocessing (Condition A) and grayscale conversion with Otsu's thresholding before EasyOCR (Condition B). The test results show an average CER of 42.24% for Condition A and 42.57% for Condition B, a difference of only 0.33%, indicating that the preprocessing stage does not significantly reduce OCR accuracy and even improves recognition accuracy for 17 of the 29 respondents. Grading accuracy testing on the same 210 answers showed a system accuracy of 96.67% compared to the lecturer's manual grading, with an average Fuzzy Matching similarity score of 71.94 out of 100, indicating that the system is able to automatically grade handwritten essay answers with a high level of consistency.

Downloads

Download data is not yet available.

References

  1. E. Apriani and N. Pratiwi, "Perancangan sistem pengenalan tulisan tangan pada jawaban esai menggunakan metode CNN-LSTM berbasis Android," METIK Jurnal, vol. 9, no. 2, pp. 385 –396, 2025, doi: 10.47002/metik.v9i2.1094.
  2. K. Sharada, W. Alghamdi, K. Karthika, A. H. Alawadi, N. Gulomova, and V. Vijayan, "Deep learning techniques for image recognition and object detection," E3S Web of Conferences, vol. 399, p. 04032, 2023, doi: 10.1051/e3sconf/202339904032.
  3. A. Younesi, M. Ansari, M. Fazli, A. Ejlali, M. Shafique, and J. Henkel, "A comprehensive survey of convolutions in deep learning: Applications, challenges, and future trends," IEEE Access, vol. 12, pp. 41180–41218, 2024, doi: 10.1109/ACCESS.2024.3376441.
  4. L. Huang, H. Tseng, C. Hsieh, and C. Yang, "Deep learning based text detection using ResNet for feature extraction," Multimedia Tools and Applications, vol. 82, pp. 46871 –46903, 2023, doi: 10.1007/s11042-023-15449-z.
  5. Y. Liu, Y. Wang, and H. Shi, "A convolutional recurrent neural-network-based machine learning for scene text recognition application," Symmetry, vol. 15, no. 4, p. 849, 2023, doi: 10.3390/sym15040849.
  6. JaidedAI, "EasyOCR: Ready-to-use OCR with 80+ supported languages" (Version 1.7.2) [Software], GitHub, 2024. https://github.com/JaidedAI/EasyOCR
  7. S. Faizullah, M. S. Ayub, S. Hussain, and M. A. Khan, "A survey of OCR in Arabic language: Applications, techniques, and challenges," Applied Sciences, vol. 13, no. 7, p. 4584, 2023, doi: 10.3390/app13074584.
  8. K. M. Nahar, I. Alsmadi, R. E. Al Mamlook, A. Nasayreh, H. Gharaibeh, A. S. Almuflih, and F. Alasim, "Recognition of Arabic air-written letters: Machine learning, convolutional neural networks, and optical character recognition (OCR) techniques," Sensors, vol. 23, no. 23, p. 9475, 2023, doi: 10.3390/s23239475.
  9. M. A. M. Salehudin et al., "Analysis of optical character recognition using EasyOCR under image degradation," Journal of Physics: Conference Series, vol. 2641, no. 1, 2023, doi: 10.1088/1742 -6596/2641/1/012001.
  10. Z. Yang, S. Zuo, Y. Zhou, J. He, and J. Shi, "A review of document binarization: Main techniques, new
  11. challenges, and trends," Electronics, vol. 13, no. 7, p. 1394, 2024, doi: 10.3390/electronics13071394.
  12. K. Maliński and K. Okarma, "Analysis of image preprocessing and binarization methods for OCR -based detection and classification of electronic integrated circuit labeling," Electronics, vol. 12, no. 11, p. 2449, 2023, doi: 10.3390/electronics12112449.
  13. OpenCV team, "Image thresholding," OpenCV 4.x Documentation, 2024. https://docs.opencv.org/4.x/d7/d4d/tutorial_py_thresholding.html
  14. D. T. Anggraeni and C. Wibawa, "Perbaikan citra tanda tangan digital menggunakan metode Otsu thresholding dan Sauvola," Jurnal Ilmiah Matrik, vol. 25, no. 1, pp. 28 –34, 2023, doi: 10.33557/jurnalmatrik.v25i1.2324.
  15. K. B. K. Malaga, K. L. Verdillo, and E. S. Pascual, "An enhancement of the Jaro -Winkler fuzzy searching algorithm applied in library search engine," Journal of Information Systems Engineering and Management, vol. 10, no. 28, pp. 649–660, 2025, doi: 10.52783/jisem.v10i28s.4369.
  16. N. A. Sekartaji and R. Arifudin, "Implementation of Raita algorithm in Manado -Indonesia translation application with text suggestion using Levenshtein distance algorithm," Recursive Journal of Informatics, vol. 2, no. 2, pp. 88–96, 2024, doi: 10.15294/rji.v2i2.73651.
  17. A. R. Lahitani, "Automated essay scoring menggunakan cosine similarity pada penilaian esai multi soal," Jurnal Kajian Ilmiah, vol. 22, no. 2, pp. 107–118, 2022, doi: 10.31599/jki.v22i2.1121.
  18. D. T. Susetianingtias, D. A. Prasetya, and S. Handayani, "Pembentukan model recurrent neural network dan connectionist temporal classification pada pengenalan kata tulisan tangan offline," DECODE: Jurnal Pendidikan Teknologi Informasi, vol. 3, no. 2, pp. 172–183, 2023, doi: 10.51454/decode.v3i2.151.
  19. K. A. Pradani and L. H. Suadaa, "Automated essay scoring menggunakan semantic textual similarity berbasis Transformer untuk penilaian ujian esai," Jurnal Teknologi Informasi dan Ilmu Komputer (JTIIK), vol. 10, no. 6, pp. 1177–1184, 2023, doi: 10.25126/jtiik.2023107338.
  20. K. Apriana, I. M. A. D. Suarjaya, and N. K. D. Rusjayanthi, "Esscore: An OCR-based Android app for scoring short handwritten answer using Levenshtein distance," Journal of Applied Informatics and Computing, vol. 9, no. 4, pp. 1383–1393, 2025, doi: 10.30871/jaic.v9i4.9708.
  21. H. Misgna, B.-W. On, I. Lee, and G. S. Choi, "A survey on deep learning-based automated essay scoring and feedback generation," Artificial Intelligence Review, vol. 58, no. 2, pp. 1 –40, 2025.
  22. S. Ramírez, FastAPI Documentation (Version 0.111.0), Tiangolo, 2024. https://fastapi.tiangolo.com/
  23. C. Wibawa and D. T. Anggraeni, "Comparison of image segmentation method in image character extraction preprocessing using optical character recognition," Jurnal Teknik Informatika (JUTIF), vol. 4, no. 3, pp. 583–589, 2023, doi: 10.52436/1.jutif.2023.4 .3.956.
  24. B. K. Pattanayak, A. K. Biswal, S. R. Laha, S. Pattnaik, B. B. Dash, and S. S. Patra, "A novel technique for handwritten text recognition using easy OCR," in Proc. 2023 Int. Conf. Self Sustainable Artificia l Intelligence Systems (ICSSAS), 2023, pp. 1115–1119, doi: 10.1109/ICSSAS57918.2023.10331704.
  25. T. D. K, J. James, D. P. Gopinath, and M. Ashraf K, "Advocating character error rate for multilingual ASR evaluation," in Findings of the Association for Computational Linguistics: NAACL 2025, 2025, pp. 4941–4950.
  26. S. Izzat and N. N. Saleem, "Software testing techniques and tools: A review," Journal of Education and Science, vol. 32, no. 2, pp. 30–44, 2023, doi: 10.33899/edusj.2023.137480.1305.
  27. R. S. Pressman and B. R. Maxim, Software Engineering: A Practitioner's Approach, 9th ed. McGraw-Hill Education, 2024. Available: https://www.mheducation.com/highered/product/software -engineering-a-practitioners-approach-pressman.html
  28. Y. Baek, B. Lee, D. Han, S. Yun, and H. Lee, "Character region awareness for text detection," in Proc. IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR), 2019, pp. 9365 -9374, doi: 10.1109/CVPR.2019.00959.