Git Product home page Git Product logo

invehiclesecurityecuclassification's Introduction

InVehicleSecurityECUClassification

Introduction:

CAN protocol has been widely used as network protocol for in-vehicle communication. CAN protocol has been deemed as reliable ever since it has been first introduced and still being used in the modern vehicle. However, as the modernization of the vehicle took another turn and the communication of the vehicle does not limit to itself but also requires to communicate to external world, then vulnerability of the protocol was detected and required different solution. There were different techniques thought of to tackle the issue and one of the approach is machine learning. This project explores three different machine learning technique, first Gaussian Naive Bayes, second is Random forest and finally Artificial Neural Network to classify/detect the ECU from which the CAN message is transmitted. In addition, those three machine learning techniques are applied to intrusion simulated system to explore further ECU classification.

ECU classification starts with CAN messages taken as dataset. Fig. 1 shows CAN message signal from of one of the ECU from the dataset when its plotted in the graph. The red signal is the actual signal and the green signal is the expected signal in the voltage form. The actual signal in the figure shows that there is some fluctuation seen in each square wave compared to the green expected signal. The fluctuation in the CAN message collected from each ECU can be taken as feature set in machine learning algorithms to classify the ECUs. For the experiment, the dataset consists of CAN message signal from 8 different ECUs.

image

Features Extracted:

Features are selected by isolating each square wave from Fig. 1. There are total of nine features used to train the machine learning algorithm.

  1. Peak Time
  2. Percent Overshoot
  3. Settling Time
  4. Steady State Value
  5. Peak Voltage
  6. Lowest Voltage
  7. Settling Time Max
  8. Peak Frequency using Fourier Transform
  9. Least Frequency using Fourier Transform

Intrusion Simulation:

The intrusion on the vehicle signal is simulated by adding Gaussian noise to one of the eight ECUs used to build the model. For the experiment, ECU 1 was chosen (in random) and the Gaussian noise with zero mean and 0.05 standard deviation was added to the signal of ECU 1. The signal with Gaussian Noise on ECU 1 is named as ECU 9 in the experiment. Following figure is the noise added version of Fig 1. image

invehiclesecurityecuclassification's People

Contributors

sumitshrestha104 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

xianlimei

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.