International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 187 - Number 3 |
Year of Publication: 2025 |
Authors: Prathamesh V. Chavan, Nilesh V. Alone |
![]() |
Prathamesh V. Chavan, Nilesh V. Alone . Optimizing Intrusion Detection with Random Forest: A High-Accuracy Approach using CIC-IDS 2017. International Journal of Computer Applications. 187, 3 ( May 2025), 17-22. DOI=10.5120/ijca2025924816
Intrusion Detection Systems (IDS) are essential for protecting networks against cyber threats. This paper introduces a machine learning-based IDS that utilizes the Random Forest classifier which is trained on the CIC-IDS 2017 dataset and which consists of 2,830,743 entries. The dataset encompasses various attacks, rendering it appropriate for practical applications. The data is prepared by encoding categorical variables and normalizing features prior to model training.The effectiveness of the Random Forest model is assessed using metrics such as accuracy, precision, recall, F1-score,and confusion matrix. The findings indicate high accuracy, making it a promising option for real-time IDS implementation.