Code Monkey home page Code Monkey logo

deep-learning-har's Introduction

Human Activity Recognition (HAR)

In this part of the repo, we discuss the human activity recognition problem using deep learning algorithms and compare the results with standard machine learning algorithms that use engineered features.

The data can be downloaded from the UCI repository.

Also see G.Chevalier's repo and A. Saeed's blog where I have got lots of isnpiration.

Contents

The utils folder contains the code for reading and processing the data into a tensor form. The generated tensors has the dimensions

(batch, seq_len, n_channels)

where batch is the number of training examples in each batch, seq_len is the number of steps in the time series (128) and n_channels is the number of channels where observations are made (9).

The aim is to clasify the activities correctly, which are

1 WALKING
2 WALKING_UPSTAIRS
3 WALKING_DOWNSTAIRS
4 SITTING
5 STANDING
6 LAYING

Below are the architectures used for training

Notebook Description
explore_data Data exploration
HAR-LSTM LSTM network
HAR-CNN Convolutional neural network(CNN)
HAR-CNN-LSTM CNN + LSTM hybrid
HAR-CNN-Inception CNN with inception module

Results

Method Test accuracy
CNN 93%
LSTM 88%
CNN+LSTM 88%
CNN+Inception 89%
Xgboost 96%

CNN architecture

title

LSTM architecture

title

deep-learning-har's People

Contributors

bhimmetoglu avatar

Watchers

 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.