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

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
Keywords
How to Cite

asmaraloka, et al. (2025). Implementation of the K-Nearest Neighbor (KNN) Algorithm in Handwritten Digit Pattern Recognition Using the Zoning Method. JUISI : Jurnal Ilmiah Sistem Informasi, 4(2). https://doi.org/10.51903/kf6s5f56

asmaraloka, afilda maharani; Asmaraloka, Afilda Maharani ; Nisa, Kharisatun; Hermansyah, Muhammad Ardi; Saputra, Fikri Hamdhan Dwi; Setiawan, Arif, "Implementation of the K-Nearest Neighbor (KNN) Algorithm in Handwritten Digit Pattern Recognition Using the Zoning Method," JUISI : Jurnal Ilmiah Sistem Informasi, vol. 4, no. 2, 2025.

asmaraloka, afilda maharani; Asmaraloka, Afilda Maharani ; Nisa, Kharisatun; Hermansyah, Muhammad Ardi; Saputra, Fikri Hamdhan Dwi; Setiawan, Arif. "Implementation of the K-Nearest Neighbor (KNN) Algorithm in Handwritten Digit Pattern Recognition Using the Zoning Method." JUISI : Jurnal Ilmiah Sistem Informasi, vol. 4, no. 2, 2025.

asmaraloka, afilda maharani; Asmaraloka, Afilda Maharani ; Nisa, Kharisatun; Hermansyah, Muhammad Ardi; Saputra, Fikri Hamdhan Dwi; Setiawan, Arif. "Implementation of the K-Nearest Neighbor (KNN) Algorithm in Handwritten Digit Pattern Recognition Using the Zoning Method." JUISI : Jurnal Ilmiah Sistem Informasi 4, no. 2 (2025).

asmaraloka, et al. (2025) 'Implementation of the K-Nearest Neighbor (KNN) Algorithm in Handwritten Digit Pattern Recognition Using the Zoning Method', JUISI : Jurnal Ilmiah Sistem Informasi, 4(2). doi: 10.51903/kf6s5f56.

asmaraloka, afilda maharani; Asmaraloka, Afilda Maharani ; Nisa, Kharisatun; Hermansyah, Muhammad Ardi; Saputra, Fikri Hamdhan Dwi; Setiawan, Arif. Implementation of the K-Nearest Neighbor (KNN) Algorithm in Handwritten Digit Pattern Recognition Using the Zoning Method. JUISI : Jurnal Ilmiah Sistem Informasi. 2025;4(2).

Artikel Terkait
Tren Sitasi Jurnal