Automatic Classification of Letters in the E-Archive System Using K-Nearest Neighbor
DOI:
https://doi.org/10.51903/336mw957Keywords:
E-Archive, K-NN, TF-IDF, Digitalization, Archive ManagementAbstract
The research focuses on designing a web-based E-Archive application that automatically categorizes incoming letters using the K-Nearest Neighbors (KNN) classification method. The research was conducted at the Cultural Heritage Preservation Office of East Java, which continues to face challenges in managing archives manually, including difficulties in document retrieval, delays in information dissemination, and risks of data loss. The application was developed using PHP as the programming language and MySQL as the database engine, applying the Waterfall development model to ensure a structured process from requirements analysis through design, implementation, and testing. System testing used the Black-Box method to verify that all functions operate according to specifications. The classification process involves several stages, including text preprocessing (tokenization, stopword removal, and stemming), term weighting using Term Frequency–Inverse Document Frequency (TF-IDF), and cosine similarity for similarity measurement. Experimental results demonstrate an accuracy rate of 80% with an optimal K value of 14, indicating that the K-NN algorithm is effective in extracting and categorizing letter types. This E-Archive system is expected to improve efficiency in archive management, accelerate document search processes, and support administrative digitalization within government institutions. Furthermore, the research contributes to the practical application of text classification techniques in archival science. It provides a foundation for developing similar systems in other organizations that require modern and integrated document management solutions.
References
[1] Anju Sitompul, Samsudin, and A. Priyamita, “Perancangan Sistem Pengarsipan Buku Tanah Berbasis Web (Studi Kasus:Badan Pertanahan Nasional Kab. Deli Serdang),” Jurnal Ilmiah Sistem Informasi, vol. 2, no. 1, pp. 20–29, Jan. 2023, doi: 10.51903/juisi.v2i1.547.
[2] N. Orinos, Q. Onola, and O. Ben Chistoff, “Zero-Shot Learning for Multilingual Document Classification in Low-Resource Languages,” Journal of Technology Informatics and Engineering, vol. 4, no. 3, pp. 391–402, Dec. 2025, doi: 10.51903/jtie.v4i3.446.
[3] K. Khaeriyah, I. Amirullah, A. A. Rahman, N. Natsir, and N. F. Suyuthi, “Management of Entry and Outcomes of General Sub-Sections of Employment and Legal at the Education Office of South Sulawesi,” Journal of Management and Informatics, vol. 1, no. 3, pp. 22–26, Dec. 2022, Accessed: Jan. 13, 2026. [Online]. Available: https://jmi.stekom.ac.id/index.php/jmi/article/view/12
[4] D. R. Aulianto, “Evaluasi Pengelolaan Arsip Dinamis pada Unit Pengolah di Sekretariat Utama Lembaga Ilmu Pengetahuan Indonesia,” Lentera Pustaka: Jurnal Kajian Ilmu Perpustakaan, Informasi dan Kearsipan, vol. 8, no. 1, pp. 25–36, Jun. 2022, doi: 10.14710/lenpust.v8i1.44715.
[5] S. R. Suartika, I. W. S. E. Putra, A. Y. Wijaya, and R. Soelaiman, “Klasifikasi Citra Menggunakan Convolutional Neural Network (CNN) pada Caltech 101,” Jurnal Teknik ITS, vol. 5, no. 1, pp. 1-76, 2016. doi: 10.12962/j23373539.v5i1.15696.
[6] L. A. Susanto, “Komparasi Model Support Vector Machine dan K-Nearest Neighbor pada Analisis Sentimen Aplikasi Polri Super APP,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 12, no. 2, pp. 1180-1190, Apr. 2024, doi: 10.23960/jitet.v12i2.4152.
[7] T. A. Cahyaaty, H. Herlawati, A. Achmad, and H. Setiawan, “Model Prediksi Kondisi Kesehatan dari Data Medical Check-Up Menggunakan K-Nearest Neighbors dan Decision Tree,” JSRCS (Journal of Students Reasesarch in Computer Science, vol. 6, no. 2, p. 135-148, Nov. 2025, doi: 10.31599/tvt7s936.
[8] A. Mulyani and N. P. Nurazizah, “Klasifikasi Keaslian Uang Kertas Menggunakan Algoritma K-Nearest Neighbor dan Metode Gabor Filter,” Jurnal Algoritma, vol. 22, no. 2, pp. 1510-1520, Nov. 2025, doi: 10.33364/algoritma/v.22-2.2375.
[9] N. F. Octavia and Berlilana, “Penerapan Algoritma K-Nearest Neighbor untuk Analisis Sentimen Ulasan Produk Elektronik pada Platform E-Commerce,” Jurnal Algoritma, vol. 22, no. 2 pp. 2110-2121, Nov. 2025, doi: 10.33364/algoritma/v.22-2.3083.
[10] T. Kartawiyuda, N. Heryana, and A. A. Ridha, “Implementasi Owncloud pada Sistem Manajemen Arsip Digital Di Perpustakaan Universitas,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 12, no. 3, pp. 2498-2505, Aug. 2024, doi: 10.23960/jitet.v12i3.4792.
[11] M. Febima, U. Solihin, L. Magdalena, M. Hatta, M. Asfi, and S. Christina, “Analisis Sentimen Aplikasi PaDi UMKM dengan Peningkatan Kinerja Algoritma KNN,” J. Digit.: Digital Inf. Technol., vol. 15, no. 2, pp. 70–82, 2025. doi: 10.51920/jd.v15i2.446.
[12] S. Naja, R. Akbar, and Ismail, “Sistem Informasi Pengelolaan Arsip Digital pada Kantor Dinas Pertanian Provinsi Aceh Berbasis Web,” Jurnal Sistem Komputer (SISKOM), vol. 4, no. 2, pp. 60–71, Aug. 2024, doi: 10.35870/siskom.v4i2.813.
[13] A. Husnul Hotimah, S. Sukaesih, and K. Kusnandar, “Implementasi Sistem Klasifikasi Keamanan dan Akses Arsip: Studi Kasus pada Records Center FISIP Universitas Padjadjaran,” ANUVA, vol. 8, no. 4, pp. 613–626, 2024. doi: 10.14710/anuva.8.4.613-626.
[14] A. Firizkiansah, A. Muhammad, and I. R. Maulana, “Optimasi Klasifikasi Data Teks Menggunakan Algoritma Logistic Regression dengan TF-IDF dan SMOTE,” J. Ilm. Ilmu Komput. dan Teknol. Inf., vol. 2, no. 1, pp. 29–36, May 2025. [Online]. Available: https://ojs.sains.ac.id/index.php/jikomti/article/view/97
[15] M. Murtiwiyati, R. F. Arini, L. Safitri, S. Widianti, and I. Setiadi, “Implementasi Algoritma K-Nearest Neighbors untuk Klasifikasi Sentimen pada Ulasan Pakaian Anak di Platform TikTok Shop,” Jurnal Minfo Polgan, vol. 14, no. 2, pp. 2921–2928, Nov. 2025, doi: 10.33395/jmp.v14i2.15538.
[16] R. B. Trianto and A. S. Nugroho, “Peringkasan Dokumen Teks Bilingual Sebagai Reduksi Fitur untuk Klasifikasi Menggunakan Algoritma K NN,” LogicLink: Journal of Artificial Intelligence and Multimedia in Informatics, vol. 1, no. 1, pp. 37–49, Jun. 2024. doi: 10.28918/logiclink.v1i1.7801.
[17] A. S. Wibisono, N. Ningsih, and A. D. Ramadhani, “Implementasi Sistem Pemantauan Tanaman Hidroponik Berbasis IoT Menggunakan Metode KNN,” Proc. Seminar Nas. Terapan Riset Inovatif (SENTRINOV), vol. 11, no. 1, pp. 300–307, 2025. [Online]. Available: https://proceeding.isas.or.id/index.php/sentrinov/article/view/1711
[18] D. Pratmanto, R. Wijianto, A. Widayanto, and Ubaidilah, “Komparasi K Nearest Neighbors (KNN) dan Naive Bayes pada Klasifikasi Sentimen Ulasan Aplikasi Tokopedia di Google Play Store,” Informatics and Computer Engineering Journal, vol. 5, no. 2, pp. 75–80, Aug. 2025. [Online]. Available: https://jurnal.bsi.ac.id/index.php/ijec/article/view/8939
[19] D. M. Jeffri and A. Witanti, “Klasifikasi Waktu Tanggap Kebakaran oleh Pemadam Kebakaran di Kabupaten Sleman Menggunakan Metode k Nearest Neighbor,” Jutisi: J. Ilm. Tek. Inform. dan Sist. Inf., vol. 14, no. 2, pp. 1227–1236, Aug. 2025. doi: 10.35889/jutisi.v14i2.2966.
[20] S. Delfi Mardiana Putri, M. Berlian Sari, and M. Kudus Sussalam, “Rancang Bangun Sistem Kualitas Telur Ayam Ras Berbasis Internet of Things untuk Transformasi Digital Peternakan,” BIOCHEPHY: Journal of Science Education, vol. 5, no. 2, pp. 991–1001, 2025, doi: 10.52562/biochephy.v5i2.1773.
[21] K. Mustaqim, F. Amalia Maresti, S. Salwa Azzahra, and S. Paringga Pangestu Ningsih, “Analisis Faktor yang Mempengaruhi Penjualan Mobil Berdasarkan Model k Nearest Neighbour,” Data Sciences Indonesia (DSI), vol. 5, no. 2, pp. 10–19, Dec. 2025. doi: 10.47709/dsi.v5i2.5667.
[22] R. Albin Pranata, N. Azmi Verdikha, U. Muhammdiyah Kalimantan Timur, and J. H. Ir Juanda, “Metode Pembobotan Tf-Idf untuk Klasifikasi Teks Quick Count Pemilihan Wakil Presiden Indonesia 2024 Pada X Twitter Dengan Metode SVM,” vol. 18, no. 2, p. 126, Aug. 2024, doi: 10.47111/jti.
[23] A. H. Nasrullah, “Integrasi tf idf dan Algoritma Cosine Similarity untuk Deteksi Tingkat Kemiripan Judul Penelitian (Studi Kasus Mahasiswa Fakultas Ilmu Komputer Unisan Gorontalo),” Information Technology Education Journal, vol. 3, no. 3, pp. 113–118, Dec. 2024. [Online]. Available: http://journal.unm.ac.id/index.php/intec/article/view/5810
[24] Sukirman, Sajiah, N. Putri Husain, A. Febriana Syam, and R. Mustikosari, “Analisis Sentimen Ulasan Pengguna Tiktok pada Google Play Store Berbasis tf idf dan Support Vector Machine,” J. Syst. Comput. Eng., vol. 5, no. 1, pp. 91–102, 2024. doi: 10.61628/jsce.v5i1.1105.
[25] Y. A. Putri Gabriella, “Optimasi Penerimaan Siswa Baru Dengan Penerapan Algortima Text Mining Dan Tf-Idf,” Journal of Computing and Informatics Research, vol. 2, no. 3, pp. 110–117, Jul. 2023, doi: 10.47065/comforch.v2i3.941.
[26] D. Hindarto, R. E. Indrajit, and E. Dazki, “Perbandingan Kinerja Akurasi K NN, NB dan DT pada APK Android,” JATISI (Jurnal Teknik Informatika dan Sistem Informasi), vol. 9, no. 1, pp. 486–503, 2022. doi: 10.35957/jatisi.v9i1.1542.
[27] D. Wijaya and S. Sutedi, “Analisis Sentimen Opini Masyarakat Terhadap Penerapan Pelayanan Digital di Desa Margo Mulyo Menggunakan Algoritma k Nearest Neighbor,” J. Ilmu Komput., Sist. Inf., Tek. Inf., vol. 3, no. 1, pp. 13–26, Mar. 2024. [Online]. Available: https://jurnal.akommedia.net/index.php/jilkomsiti/article/view/45
[28] K. Nisa, M. A. Hermansyah, A. M. Asmaraloka, F. H. D. Saputra, and A. Setiawan, “Implementation of the K-Nearest Neighbor (KNN) Algorithm in Handwritten Digit Pattern Recognition Using the Zoning Method,” Jurnal Ilmiah Sistem Informasi, vol. 4, no. 2, pp. 175–185, May 2025, doi: 10.51903/kf6s5f56.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Beda Puspita Candra, Achemad Fatkhur Mujaki

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles published in this journal are open access and licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).
Under this license:
-
Authors retain copyright of their work.
-
Others are free to:
-
Share — copy and redistribute the material in any medium or format;
-
Adapt — remix, transform, and build upon the material for any purpose, even commercially;
-
-
As long as they:
-
Give appropriate credit to the original author(s) and the source;
-
Provide a link to the license;
-
Indicate if changes were made;
-
Distribute their contributions under the same license as the original.
-
This ensures that derivative works will also remain free and open under the same terms.













.png)