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

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.

Authors

Institutions

Publication Details

Journal
Journal of Applied Informatics and Computing
Published
2024-11-06
DOI
https://doi.org/10.30871/jaic.v8i2.8492
Citations
2
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.70
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Wahid Miftahul Ashari, Rizky Mahesa Ramadhan
2 citations
Journal of Applied Informatics and Computing
Network Security and Intrusion Detection
0.70
article

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

Wahid Miftahul Ashari, Rizky Mahesa Ramadhan
article en
2 citations

Abstract

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.

Journal of Applied Informatics and ComputingVol. 8(2)
Universitas Respati Yogyakarta (ID), Universitas Amikom Yogyakarta
Openalex Percentile: Top 26%
Network Security and Intrusion Detection
0.70
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Performance Comparison of Random Forest and Decision Tree Algorithms for Anomaly Detection in Networks — Wahid Miftahul Ashari, Rizky Mahesa Ramadhan · Journal of Applied Informatics and Computing (2024) | TGRS Research Map | TGRS