Code Monkey home page Code Monkey logo

hdc_driving_style_classification's Introduction

VSA for driving behaviour classification

This repository is mainly based on the code of https://github.com/KhaledSaleh/driving_behaviour_classification

It has 3 different models:

  • a LSTM model (original model from [1])
  • a feed-forward model (ANN) for HDC encodings
  • a spiking neural model (SNN) for HDC encodings

[1] K. Saleh, M. Hossny, and S. Nahavandi, “Driving behavior classification based on sensor data fusion using LSTM recurrent neural networks,” in International Conference on Intelligent Transportation Systems (ITSC), 2017.

Tested with the Python packages listed in requirements.txt.

Usage

  • first, clone the Repo git clone https://github.com/TUC-ProAut/HDC_driving_style_classification.git

Train the networks (Python)

  1. Run python3 main.py --help to check the available command line args.
  2. Run ANN with HDC encodings:
    • python3 main.py --HDC_ANN True (use --dataset argument to select between full, motorway, secondary or full_crossval)
  3. Run ANN with concatenated input sequences:
    • python3 main.py --Concat_ANN True
  4. Run the original LSTM model from https://github.com/KhaledSaleh/driving_behaviour_classification
    • python3 main.py --LSTM True
  5. Run SNN with HDC encodings:
    • python3 main.py --HDC_SNN True

The results are written to the log file logs/main_log.log

Data efficiency experiment (Python)

  1. Run python3 main.py --data_efficiency True --HDC_ANN True for the appropriate network as in section above

(Optional) Hyper-parameter analysis for HDC encodings (Python)

  1. Run python3 main.py --hyperparams_experiment True --HDC_ANN True

Run Baseline models (MATLAB)

  1. Run eval_baseline_models.m

hdc_driving_style_classification's People

Contributors

scken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.