Evaluating Machine Learning Classifiers in Detecting Cyberattacks

This study aims to develop a machine learning model that can accurately detect cyberattacks. We compare the performance of Support Vector Machine (SVM), Logistic Regression (LR), and Random Forest (RF) in predicting cyberattacks. Furthermore, we investigate whether using Information Gain Attribute Evaluation (IGAE) for feature selection improves the performance of the algorithms. This work provides a clear comparison of the algorithms and shows the most suitable one for classifying cyberattacks. In addition, this study combines LR and RF using a voting classifier along with IGAE and compares its performance with that of the rest of the algorithms. We investigate whether combining algorithms increases the accuracy of the results. The results show that the most accurate algorithm is RF, followed by LR and SVM. Contrary to initial expectations, the findings further indicate that the application of IGAE marginally reduces algorithm accuracy across the tested classifiers, suggesting that feature selection through information gain is not universally beneficial in cyberattack detection tasks. These findings contribute to the growing body of knowledge on effective machine learning methodologies for cybersecurity applications.

Authors

Institutions

Publication Details

Journal
Computers
Published
2026-04-16
DOI
https://doi.org/10.3390/computers15040248
Primary Topic
Cybercrime and Law Enforcement Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Evaluating Machine Learning Classifiers in Detecting Cyberattacks

Mustafa Hammad
Computers
Cybercrime and Law Enforcement Studies
article

Evaluating Machine Learning Classifiers in Detecting Cyberattacks

Mustafa Hammad
article en

Abstract

This study aims to develop a machine learning model that can accurately detect cyberattacks. We compare the performance of Support Vector Machine (SVM), Logistic Regression (LR), and Random Forest (RF) in predicting cyberattacks. Furthermore, we investigate whether using Information Gain Attribute Evaluation (IGAE) for feature selection improves the performance of the algorithms. This work provides a clear comparison of the algorithms and shows the most suitable one for classifying cyberattacks. In addition, this study combines LR and RF using a voting classifier along with IGAE and compares its performance with that of the rest of the algorithms. We investigate whether combining algorithms increases the accuracy of the results. The results show that the most accurate algorithm is RF, followed by LR and SVM. Contrary to initial expectations, the findings further indicate that the application of IGAE marginally reduces algorithm accuracy across the tested classifiers, suggesting that feature selection through information gain is not universally beneficial in cyberattack detection tasks. These findings contribute to the growing body of knowledge on effective machine learning methodologies for cybersecurity applications.

ComputersVol. 15(4)
University of Bahrain (BH), Prince Mohammad bin Fahd University (SA), Mutah University (JO), American University of the Middle East (KW)
Openalex Percentile: Top 21%
Cybercrime and Law Enforcement Studies
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.