GithubHelp home page GithubHelp logo

intrusion_detection's Introduction

Feature selection for intrusion detection using PCA

Importance of intrusion detection

Network intrusion detection systems (IDS) play a crucial role for companies by alerting them to possible malicious activity across variety of gadgets and devices. To this end, machine learning approaches tested on different datasets such as AWID[1] and “KDD99” have shown diverse procedures to detect intrusion attacks effectively ranging from more traditional approaches to sophisticated multi-layered models.

Applying PCA for feature selection

Principal component analysis (PCA) is a method to reduce data complexity with the advantage of obtaining important patterns. This approach was used for intrusion detection problem in [2], however authors applied it to "KDD99" dataset. The method consists of iterative projection observation values on a hyperplane. The coordinates of a hyperplane are orthogonal to each other and chosen in particular order to capture greater variance and map it to a new axis. When repeated step by step, this process compresses original input into lower dimensional space. To be more precise, I obtain a list of sets (eigenvector, eigenvalue) and sort it by eigenvalue. Then I use this eigenvectors to produce final matrix NxM, where N has the same dimension as the number of original rows, M – recomputed initial values with respect to principal components. In this project, I performed PCA part, because it allows to capture unknown patterns of the data, and combine this compressed input with original one in order to obtain features that contribute most to predicting target class.

Finally, I obtained 12 features including one dimension extracted from original data with accuracy rate 98.6%, which is much higher than in [2], where accuracy is 86.34%.

[1]. “AWID dataset.” (dataset used for this problem was preprocessed and balanced having equal number of output classes)

[2]. B.Zhang, Z.Liu, Y.Jia, J.Ren,and X.Zhao, “Network Intrusion Detection Method Based on PCA and Bayes Algorithm”, Security and Communication Networks, Hindawi, 2018.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.