Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM66620
Volume:
10 |
8 |
Aug 2026
Pages:
1-18
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
Department of computer science and Engineering
R.L.Jallapa institute of technology
Department of computer science and Engineering
R.L.Jallapa institute of technology
The rapid expansion of computer networks and internet-based services has significantly increased the complexity and frequency of cyberattacks. Traditional Network Intrusion Detection Systems (NIDS), which primarily rely on signature-based detection techniques, are effective against known threats but often fail to identify previously unseen or evolving attacks. To address this limitation, this paper presents an AI-Based Network Intrusion Detection System (AI-NIDS) that combines machine learning with real-time network traffic monitoring to improve intrusion detection capabilities. The proposed system captures live network packets using the Scapy library and extracts essential traffic features, including source and destination IP addresses, protocol type, port numbers, and packet length. These features are processed and classified using a Random Forest machine learning model trained on the NSL-KDD dataset. Based on the prediction results, the system distinguishes normal network traffic from malicious traffic. When suspicious activity is detected, an alert is generated, the intrusion details are stored in SQLite and CSV logs, and the monitoring dashboard is updated using Streamlit for real-time visualization. The experimental evaluation demonstrates that the proposed system provides effective real-time intrusion detection while maintaining efficient performance for continuous network monitoring. The modular architecture enables easy integration, scalability, and future enhancement using advanced machine learning or deep learning techniques. The proposed AI-NIDS offers a practical solution for educational institutions, enterprise networks, and small-to-medium organizations seeking an intelligent and cost-effective approach to network security.
KEYWORDS
The increasing complexity of cyber threats has made intelligent intrusion detection systems an essential component of modern network security. Traditional signature-based Network Intrusion Detection Systems (NIDS) are effective in identifying known attacks but often fail to detect previously unseen threats and require frequent signature updates. To overcome these limitations, this research presented an AI-Based Network Intrusion Detection System (AI-NIDS) that integrates machine learning with real-time network traffic monitoring. The proposed framework employs Scapy for live packet capture, extracts relevant network traffic features, and utilizes a Random Forest classifier trained on the NSL-KDD dataset to classify network traffic as either normal or malicious. Upon detecting suspicious activity, the system automatically generates alerts, records intrusion events in SQLite and CSV logs, and updates an interactive Streamlit dashboard for continuous monitoring. Experimental evaluation demonstrated that the proposed system achieved a classification accuracy of 97.98%, indicating its effectiveness in identifying malicious network traffic while maintaining efficient real-time performance. The modular architecture allows easy integration of additional machine learning models, datasets, and visualization components. Furthermore, the proposed framework provides a practical and cost-effective solution for educational institutions, enterprise networks, and small-to-medium organizations requiring intelligent network security. Overall, the proposed AI-NIDS successfully combines machine learning, live packet monitoring, automated logging, and dashboard visualization into a unified platform that enhances network security through accurate and real-time intrusion detection.
1. Tavallaee, M., Bagheri, E., Lu, W., & Ghorbani, A. A., "A Detailed Analysis of the KDD CUP 99 Data Set," IEEE Symposium on Computational Intelligence for Security and Defense Applications, 2009. 2. Breiman, L., "Random Forests," Machine Learning, 45(1), 5–32, 2001. 3. Scikit-learn Developers, Scikit-learn Documentation. 4. Scapy Project Documentation. 5. Streamlit Documentation. 6. Pedregosa, F., et al., "Scikit-learn: Machine Learning in Python," Journal of Machine Learning Research, 2011. 7. McKinney, W., "Data Structures for Statistical Computing in Python," 2010. 8. Harris, C. R., et al., "Array Programming with NumPy," Nature, 2020. 9. Python Software Foundation, Python Documentation. 10. SQLite Documentation.
Publication Date
8/8/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
3
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...