Streamlit Based Network Intrusion Detection System Prototype with Machine Learning Algorithm
DOI:
https://doi.org/10.59934/jaiea.v5i2.1950Keywords:
Intrusion Detection, Machine Learning, Random Forest, Naive Bayes, StreamlitAbstract
Computer network security has become a crucial elemen in the digital era, with the increasing risk of attacks that could potentially disrupt systems and access critical data. An Intrusion Detection System (IDS) powered by Machine Learning is one effective way to automatically detect suspicious network activity. This study aims to create a prototype of a network Intrusion Detection System using Streamlit that applies Machine Learning algorithms, including Naïve Bayes and Random Forest, to classify normal network activity as an attack. The method used in this study is a quantitative approach with an experimental design utilizing a public dataset of labeled network traffic. The research process includes the stages of initial data processing, feature selection, model creation, performance evaluation, and implementation of the Streamlit interface. Test results show that the Naïve Bayes algorithm has the best performance, with an accuracy level reaching 0.8000, an error rate of 0.2000, and an F1 Score of 0.7273. Random Forest recorded an accuracy level of 0.7333, an error rate of 0.2667, and a lower F1 Score of 0.3333. These findings demonstrate that Naïve Bayes is more effective at detecting intrusions and recognizing anomalous network traffic patterns. The Streamlit based system implementation successfully provides an interactive and userfriendly interface, allowing users to perform analysis and understand classification result without in-depth technical expertise. Given the foregoing, the network intrusion detection system prototype built with Streamlit and a Machine Learning algorithm is considered suitable as a simple, informative, interactive, and efficient network security support tool. This research paves the way for future developments, such as the implementation of Deep Learning models and the integration of live network monitoring.
Downloads
References
A. Saleh, “Implementasi Metode Klasifikasi Naïve Bayes Dalam Memprediksi Besarnya Penggunaan Listrik Rumah Tangga,” Creat. Inf. Technol. J., vol. 2, no. 3, pp. 207–217, 2015.
A. D. Afifaturahman and F. MSN, “Perbandingan Algoritma K-Nearest Neighbour (KNN) dan Naive Bayes pada Intrusion Detection System (IDS),” Innov. Res. Informatics, vol. 3, no. 1, pp. 17–25, 2021, doi: 10.37058/innovatics.v3i1.2852.
F. Ardiyansyah, K. Setiawan, and N. Sutisna, “Implementation of IDS on Computer Networks Using Snort Based on Telegram Chatbot Implementasi IDS pada Jaringan Komputer Menggunakan Snort Berbasis Chatbot Telegram,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 4, no. October, pp. 1614–1623, 2024.
S. Anwar, F. Septian, and R. D. Septiana, “Klasifikasi Anomali Intrusion Detection System ( IDS ) Menggunakan Algoritma Naïve Bayes Classifier dan Correlation-Based Feature Selection,” vol. 2, no. 4, pp. 135–140, 2019.
D. D. Putri, G. F. Nama, and W. E. Sulistiono, “ANALISIS SENTIMEN KINERJA DEWAN PERWAKILAN RAKYAT ( DPR ) PADA TWITTER MENGGUNAKAN METODE NAIVE BAYES CLASSIFIER,” vol. 10, no. 1, pp. 34–40, 2022.
D. A. Larasati and M. Hemansyah, “Deteksi Anomali dalam Sistem Keamanan Jaringan Menggunakan Teknik Supervised Machine Learning,” vol. 9, no. 1, pp. 65–69, 2025, doi: 10.55886/infokom.v9i1.971.
D. I. Kabupaten and D. Tahun, “1 , 2 , 3,” vol. 3, pp. 831–838, 2014.
Y. Ilanda, D. Vionanda, Y. Kurniawati, and D. Fitria, “Comparison of Error Rate Prediction Methods of C4 . 5 Algorithm for Imbalanced Data,” vol. 1, no. 2006, pp. 240–247, 2023.
A. Bachtiar, R. Firliana, and D. Harini, “Rancang Bangun Platform E – Commerce Pada TUTUS BETTA FARM,” vol. 7, no. 2, pp. 96–102, 2024.
A. Lowell, A. Lowell, K. Candra, and E. Indra, “Perbandingan Metode Support Vector Machine ( SVM ) Dan Naive Bayes Pada Analisis Sentimen Ulasan Aplikasi OVO JURNAL MEDIA INFORMATIKA [ JUMIN ],” vol. 6, no. 2, pp. 896–905, 2025.
E. Manalu, F. A. Sianturi, and M. R. Manalu, “PENERAPAN ALGORITMA NAIVE BAYES UNTUK MEMPREDIKSI JUMLAH PRODUKSI BARANG BERDASARKAN DATA PERSEDIAAN DAN JUMLAH PEMESANAN PADA CV . PAPADAN MAMA PASTRIES,” vol. 1, no. 2, 2017.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.







