We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/General Science/Performance Comparison of Random Forest and Decision Tree Algorithms for Anomaly Detection in Networks
PeriodicalsGeneral Science

Performance Comparison of Random Forest and Decision Tree Algorithms for Anomaly Detection in Networks

Checking your access to this record.

Abstract & Overview

The increase in cyber attacks has made network security a very important focus in this digital era. This research compares the performance of two machine learning algorithms, that is Random Forest and Decision Tree for detecting anomalies in networks using the UNSW-NB15 datasets, which include various types of attacks such as DoS, Backdoor, Exploits and others which will be used to train and test both models. The data collection method, pre-processing, data splitting and modelling using SMOTE method to handle data imbalanced were applied in both algorithms and then evaluated using accuracy, precision, recall and f1-score metrics. From the study result, it can be conclude that the Decision Tree algorithm performs better in detecting anomalies in binary data with an accuracy of 99,71%. However, in multi-class data, Random Forest showed slightly better performance, though it required significantly more time for training and prediction. Despite the small difference in accuracy, Decision Tree demonstrated faster prediction times, making it more efficient for time-sensitive applications. This research concludes that while Random Forest provides higher accuracy for complex datasets, Decision Tree offers a more time-efficient solution with comparable accuracy.

Cite this record

Rafiq Fajar Ramadhan, Wahid Miftahul Ashari (2024). Performance Comparison of Random Forest and Decision Tree Algorithms for Anomaly Detection in Networks. Journal of Applied Informatics and Computing, 8(2), 367–375. https://doi.org/10.30871/jaic.v8i2.8492

Copy in another style

Ramadhan, R. F., & Ashari, W. M. (2024). Performance Comparison of Random Forest and Decision Tree Algorithms for Anomaly Detection in Networks. Journal of Applied Informatics and Computing, 8(2), 367–375. https://doi.org/10.30871/jaic.v8i2.8492
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.