Claim Missing Document
Check
Articles

Klasifikasi Tingkat Serangan pada Log Jaringan Siber dengan Komparasi Naive Bayes dan K-Nearest Neighbor Apriliani, Evinda; Winiarti, Sri; Riadi, Imam; Yuliansyah, Herman
Building of Informatics, Technology and Science (BITS) Vol 7 No 3 (2025): December 2025
Publisher : Forum Kerjasama Pendidikan Tinggi

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.47065/bits.v7i3.8765

Abstract

The increasing threat of cybersecurity poses a significant impact on both organizations and individuals, necessitating a system capable of accurately detecting and classifying attack levels to support prioritization of responses. This study aims to analyze and compare the performance of two machine learning algorithms, Naive Bayes and K-Nearest Neighbor (KNN), in classifying cyberattack levels, and to evaluate the effect of hyperparameter tuning on improving model accuracy. The research methods included utilizing the cybersecurity_attacks dataset, data preprocessing, model training at three data split ratios (70:30, 80:20, and 90:10), and parameter optimization using Randomized Search and Grid Search. Performance evaluation was based on accuracy, precision, recall, and F1-score values. The results showed that KNN performed best, with a peak accuracy of 0.96 at the 80:20 ratio after tuning, increased from an accuracy of 0.947 before tuning, with precision, recall, and F1-score values ​​ranging from 0.95 to 0.96. Meanwhile, Naive Bayes only achieved a peak accuracy of 0.8485 at the same ratio. Although the improvement after hyperparameter tuning was not significant, this process still resulted in a more stable and consistent model. Future research is recommended to explore ensemble methods and test them on other datasets to produce more adaptive cyberattack classification models.
Co-Authors Adil Pratama Afiat Triyuniarta An Nur, Fitrinanda Ana Distia Diva Andina Megawati Akase Andri Pranolo Anis Nurwanto Apriliani, Evinda Ardi Pujiyanta Aris Rakhmadi Astreanto Habibullah Astri Yatnasari Atik Mar’atun Sholihah Augit Indatmowo Bagus Imam S.N. Bagus Priangga Bagus Priangga Bagus Priangga, Bagus Cendani Wukir Choirul Fajri Cindy Mayeza Putri Daffa Alif Murtaja Dedi Nugraha Dedi Nugraha Desy Widayanti Dewi Soyusiawaty Dewi, Kharisma Kusuma Dian Sulistyo Distia Diva, Ana Dwi Oktavia Andriyanti Endriyono Endriyono Enggar Novianto Enita Try Saadyah Fadlillah, Umi Faisal, Ilyas Faza Akmal Fikamelyalla, Naura Fitriana Susanti Fitrinanda An Nur Galih Oktorika Isnawan Heri Pramono Herman Yuliansyah Herman Yuliansyah Herman Yuliansyah Herman Yuliansyah, Herman Ida Widaningrum, Ida Imam Riadi Imam Riadi Irawan, Riki Izzati Muhimmah Kharisma Kusuma Dewi Lathifah Lathifah Meilawati, Noni Melanita Indrianis Miftahurrahma Rosyda Miksa Mardhia, Murein Muhammad Al Mahdi Muhammad Arifin Setyawan Murein Miksa Mardhia Murinto Murinto Nailut Thoyibah Nila Susanti Noni Meilawati Norma Sari Norma Sari Nungky Anjaswari Nur Azizah Nur Kahfi Ibrahim Nur Rachmaliany Nur Rochmah Dyah Pujiastuti Nurul Azizah Pandu Herwijaya Priranda Widara Ananta Puguh Drajat Eka Putra R. Panji Daru Tutuko Rachmaliany, Nur Reni Wijayanti Rifki Pambudi Riki Irawan Rizka Gustikasari Rusydi Umar sapanti, intan rawit Saputro, Mochammad Yulianto Andi Silmina, Esi Putri Sonny Zulhuda Sri Kusumadewi Sri Wahyuni Sri Wahyuni Sulistyo, Dian Sunardi Sunardi Sunardi, Sunardi Supriyanto Taufiq Ismail Taufiq Ismail Taufiq Ismail Taufiq Ismail Tri Afriliyanti Tsaqila, Siti Lathifah Ulaya Ahdiani Ulaya Ahdiani Ulaya Ahdiani Ulfah Yuraida Ulfah Yuraida Witriani Witriani Wiwik Handayani Yuliansyah, Herman Yunita Tri Hernawati Yuraida, Ulfah Yusuf Sulistyo Nugroho Zainal Ihsanul F