6285641688335, 628551515511 info@scirepid.com

 
JUISI - Jurnal Ilmiah Sistem Informasi - Vol. 4 Issue. 2 (2025)

Implementation of the K-Nearest Neighbor (KNN) Algorithm in Handwritten Digit Pattern Recognition Using the Zoning Method

Kharisatun Nisa, Muhammad Ardi Hermansyah, Afilda Maharani Asmaraloka, Fikri Hamdhan Dwi Saputra, Arif Setiawan,



Abstract

Handwritten digit recognition is one of the key challenges in the field of digital image processing and artificial intelligence, with significant potential in various applications such as automatic form input systems, handwritten data correction, and attendance systems based on handwriting. This study aims to develop a web-based information system capable of automatically recognizing handwritten digits using the K-Nearest Neighbors (KNN) classification method. The system is designed through several main stages, including image preprocessing (conversion to grayscale, thresholding, and image size normalization), feature extraction using the zoning technique, and classification using the KNN algorithm. This research utilizes the MNIST dataset, which contains thousands of handwritten digit images ranging from 0 to 9. The system is developed using the Google Colab platform, supported by Python libraries such as OpenCV, NumPy, and Scikit-learn. Test results show that the system can achieve an accuracy of over 90% at certain K values, indicating that the KNN method is quite effective and efficient in recognizing handwritten digit patterns. This system is expected to be applicable for various digitization needs of handwritten numbers in education, administration, and information technology sectors







DOI :


Sitasi :

0

PISSN :

2809-1531

EISSN :

2809-1507

Date.Create Crossref:

01-Jun-2025

Date.Issue :

31-May-2025

Date.Publish :

31-May-2025

Date.PublishOnline :

31-May-2025



PDF File :

Resource :

Open

License :