liu.seSearch for publications in DiVA
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Balancing Data for Anomaly-based Intrusion Detection Systems (IDS)
Linköping University, Department of Computer and Information Science.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Intrusion Detection Systems (IDS) are critical for cybersecurity, yet their performance is frequently compromised by class imbalance in datasets, where underrepresented attack classes lead to degraded detection rates. This study rigorously evaluates machine learning-based Network Intrusion Detection Systems (NIDS) using the CICIDS2017 dataset, addressing class imbalance through Synthetic Minority Oversampling Technique (SMOTE). This study systematically evaluates five supervised models Logistic Regression, k-Nearest Neighbors, Naive Bayes, Random Forest, and Deep Neural Networks for binary classification, along with two unsupervised approaches (K-Means and Isolation Forest), across seven randomly selected attack sample instances from the training set. Controlled imbalance experiments, where the attack sample size as a proportion of the normal data in the training set is progressively increased (1%, 5%, 10%, 30%, 60%, 80%, 100%) to analyze their impact on model performance. This study analysis leverages balanced accuracy, precision, recall, F1-score, and Matthews Correlation Coefficient (MCC) to quantify performance. Results reveal that Random Forest dominates supervised methods, achieving near-flawless detection on balanced data. In stark contrast, unsupervised techniques exhibit severe limitations. K-Means and Isolation Forest fail to generalize beyond rare anomalies. This study provides valuable insights into optimizing NIDS with machine learning, emphasizing the importance of data balancing and algorithm selection for robust cybersecurity solutions. The findings suggest that SMOTE-enhanced supervised models, particularly Random Forest, offer the most reliable intrusion detection, while unsupervised techniques require further refinement for practical deployment.

Place, publisher, year, edition, pages
2025. , p. 63
Keywords [en]
Intrusion Detection Systems, SMOTE, CICIDS2017, Network Intrusion Detection Systems, Machine Learning, Artificial Intelligence
National Category
Artificial Intelligence
Identifiers
URN: urn:nbn:se:liu:diva-215459ISRN: LIU-IDA/STAT-A--25/013--SEOAI: oai:DiVA.org:liu-215459DiVA, id: diva2:1975165
Subject / course
Computer science
Supervisors
Examiners
Available from: 2025-06-23 Created: 2025-06-23 Last updated: 2025-06-23Bibliographically approved

Open Access in DiVA

fulltext(1722 kB)930 downloads
File information
File name FULLTEXT01.pdfFile size 1722 kBChecksum SHA-512
eed588513387f338b09c4cba08c7a0efda7202bf87b1395fbc8a5fae0ec07ec01dc9d364f3784cdf85cc0723cf45f8d9a5378f67d53e622374e92952c25a5f83
Type fulltextMimetype application/pdf

By organisation
Department of Computer and Information Science
Artificial Intelligence

Search outside of DiVA

GoogleGoogle Scholar
Total: 932 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 438 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf