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
Detecting DDoS Attacks with Machine Learning: A Comparison between PCA and an autoencoder
Linköping University, Department of Computer and Information Science.
2024 (English)Independent thesis Basic level (degree of Bachelor), 10,5 credits / 16 HE creditsStudent thesisAlternative title
Att Upptäcka DDoS-attacker med Maskininlärning : En Jämförelse mellan PCA och en autoencoder (Swedish)
Abstract [en]

Distibuted denial of service (DDoS) attacks are getting more and more common in society as the number of devices connected to the Internet is increasing. To reduce the impact of such attacks it is important to detect them as soon as possible. Many papers have investigated how well different machine learning algorithms can detect DDoS attacks. However, most papers are focusing on supervised learning algorithms which require a lot of labeled data, which is hard to find. This thesis compares two unsupervised learning algorithms, an autoencoder and principal component analysis (PCA), in how well they detect DDoS attacks.

The models are implemented in the Python libraries Keras, Tensorflow and scikit-learn. They are then trained and tested with data that has its origin in the CICDDOS2019 dataset. There are normal data and nine different types of DDoS attacks in the used dataset. The models are compared by computing the Receiver Operating Characteristic (ROC) curve and its Area Under the Curve (AUC) score, and the F1 score of the models. For both measures the mean value of the results of all attack types are used. The computations show that the autoencoder perform better than PCA with respect to both the mean AUC score (0.981 compared to 0.967) and the mean F1 score (0.987 compared to 0.978).

The thesis goes on to discussing why the autoencoder performs better than PCA and, finally draws conclusions based on the insights of the analysis.

Place, publisher, year, edition, pages
2024. , p. 27
Keywords [en]
machine learning, distributed denial of service attack, DDoS, autoencoder, pca
National Category
Computer Engineering
Identifiers
URN: urn:nbn:se:liu:diva-205211ISRN: LIU-IDA/LITH-EX-G--24/025--SEOAI: oai:DiVA.org:liu-205211DiVA, id: diva2:1874579
Subject / course
Computer Engineering
Presentation
2024-06-04, 13:45 (Swedish)
Supervisors
Examiners
Available from: 2024-06-25 Created: 2024-06-20 Last updated: 2024-06-25Bibliographically approved

Open Access in DiVA

fulltext(967 kB)424 downloads
File information
File name FULLTEXT01.pdfFile size 967 kBChecksum SHA-512
39228a59fdb54b2f5673f5aad612659f821725409f5d4ed780eb838578b1d5ab8a225170499f5c587941dea140678e9b7aaddd00c351adc5168fbacb4e374504
Type fulltextMimetype application/pdf

By organisation
Department of Computer and Information Science
Computer Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 427 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: 574 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