Code Monkey home page Code Monkey logo

human_activity_recognition's Introduction

How to run the code

Human activity recognition

Train model:

python3 main.py --train=True --model_name='multi-rnn' --device_name='iss GPU' --kernel_initializer='he_normal'

Evaluate model:

python3 main.py --train=False --model_name='multi-rnn' --device_name='iss GPU' --kernel_initializer='he_normal'

Ensemble learning, evaluate and visualization:

python3 ensemble.py

Results

Please see details in presentation slides.

Human activity recognition

Results of ensemble model with He_normal Glorot_uniform and Glorot_normal initializers:

Architecture LSTM GRU
Test Accuracy 91.73% 94.48%

Corresponding Hyperparameters for the best GRU-based model:

GRU layers Dense layers GRU units Dense units Window size Shift size Dropout rate Val accuracy
2 3 512 256 250 125 0.471 92.9%

Visualization of test label and predictions:

01_acc_true 02_acc_pred 03_gyro_true 04_gyro_pred 05_colormap

Confusion Matrix: cm_6

Normalised confusion matrix: normal_cm_6

human_activity_recognition's People

Contributors

shengbowang1 avatar

Stargazers

 avatar

Watchers

 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.