📅 21 May 2025
DOI: 10.51903/776j7727

KNN-Based Handwritten Digit Classification with Accuracy Analysis and Visualization

JUISI : Jurnal Ilmiah Sistem Informasi
Universitas Sains dan Teknologi Komputer

📄 Abstract

The rapid advancement of information technology has had a significant impact in various fields, particularly in pattern recognition and image processing. One of the ongoing challenges is accurately recognizing handwritten digits, which plays a crucial role in document digitization, automated form reading, and other intelligent systems. This study aims to implement and evaluate the K-Nearest Neighbors (KNN) algorithm, a simple yet effective classification technique, in recognizing handwritten digit images. The data used comes from the public dataset load_digits from Scikit-learn, which contains 1,797 grayscale images of handwritten digits sized 8x8 pixels. Each image is represented as a 64-dimensional feature vector. The dataset is split into training and testing data with an 80:20 ratio, and the model is trained using KNN with k=3. The experimental results show a classification accuracy of 96.94%, with minimal prediction errors that typically occur in digits with similar visual shapes, such as 5 and 9. This study demonstrates that KNN, despite its simplicity, can provide high accuracy in handwritten digit recognition when supported by proper preprocessing and parameter selection. The implications of this research highlight the potential for developing intelligent applications in education, data entry automation, and identity verification.

🔖 Keywords

#Handwritten Digit Recognition; K-Nearest Neighbors; Digital Image Processing; Machine Learning #Classification

ℹ️ Informasi Publikasi

Tanggal Publikasi
21 May 2025
Volume / Nomor / Tahun
Volume 4, Nomor 2, Tahun 2025

📝 HOW TO CITE

Maulana, Muhammad Rizky; Maulana, Muhammad Rizky ; Nugroho, Adiv Prasetyo ; Adinata, Ferdyan Candra; Haidar, Nova Briyan; Setiawan, Arif, "KNN-Based Handwritten Digit Classification with Accuracy Analysis and Visualization," JUISI : Jurnal Ilmiah Sistem Informasi, vol. 4, no. 2, May. 2025.

ACM
ACS
APA
ABNT
Chicago
Harvard
IEEE
MLA
Turabian
Vancouver

📚 References & Citations

Artikel ini telah dikutip oleh 1 publikasi lainnya.

🔗 Artikel Terkait dari Jurnal yang Sama

Design and Implementation of a Web-Based QR Code Employee Attendance System for Optimizing Attendance Management: A Case Study at Bento and Es Teh Luwes Ungaran

Nufninu, Novinda Grezen; Rudjiono, Rudjiono; Panjaitan, Cherlina Helena Purnamasari ; Nufninu, Novinda Grezen; Rudjiono, Rudjiono; Panjaitan, Cherlina Helena Purnamasari

21 May 2026

Deteksi Aktivitas Vape Berbasis Yolov8 pada Citra dan Video dengan Pendekatan Deep Learning

Lahuddin, Lahuddin; Larasati, Pamela ; Hasbi, Abdilah; Lahuddin, Lahuddin; Larasati, Pamela ; Hasbi, Abdilah

21 May 2026

Grouping of Student Attendance Discipline Levels Based on Daily Attendance Data Using the K-Means Algorithm

Putri, Syahwa Mutiara ; Rahmawati, Anita; Bella, Alfina Chintya; Gurowo, Damar Aji; Arifin, Muhammad; Putri, Syahwa Mutiara ; Rahmawati, Anita; Bella, Alfina Chintya ; Gurowo, Damar Aji; Arifin, Muhammad

21 May 2026

Sistem Informasi Penerimaan Jasa Tenaga Kerja Berbasis Website dengan Metode Extreme Programming (Studi Kasus PT: Gunung Batu)

Pramudya, Bagas; Ariati, Nining ; Dhamayanti, Dhamayanti; Pramudya, Bagas; Ariati, Nining ; Dhamayanti, Dhamayanti

21 May 2026

Analisis Perbandingan Yolov11 dan MobileNetV3 untuk Klasifikasi Varietas Padi

Octaviansyah, Ade ; Sari, Herva Emilda; Raharjo, Teguh; Octaviansyah, Ade; Sari, Herva Emilda ; Raharjo, Teguh

21 May 2026

UI/UX Design of a Mobile Application for Shoe Cleaning Service Management Using the Design Thinking Method (Case Study: OurShoes)

Cahyani, Clariesta Eka Nanda ; Voutama, Apriade ; Cahyani, Clariesta Eka Nanda ; Voutama, Apriade

21 May 2026

📊 Statistik Sitasi Jurnal