Giter Club home page Giter Club logo

human-activity-recognition-ml's Introduction

Objective

Human Activity Recognition ( HAR ) has wide applications in medical research and human survey system. In this project, we design a robust activity recognition system based on a smartphone. The system uses a 3-dimentional smartphone accelerometer and gyroscope to collect time series signals, from which 561 features are generated in both time and frequency domain. The feature space is reduced to 200 using PCA.Activities are classified using 6 different methods, i.e., Random Forest, Gaussian Naive Bayes, Logistic Regression, Multi-layer Perceptron, Support Vector Machine, and Extra-trees. Experiment results show that the classification rate of SVM reaches 98.26 and is robust to common positions and poses of cellphone.

Dataset

The dataset comprises of 3-axial linear acceleration and 3-axial angular velocity measured at a constant rate of 50Hz using the embedded accelerometer and gyroscope of an attached device. After noise reduction and signal processing on the raw inertial data, the time signals are sampled in a sliding window of 2.56 seconds, with a 50% overlap. Moreover, standard measures like mean, median, standard deviation etc. are also calculated. Source: UCI Machine Learning Repository (http://archive.ics.uci.edu/ml/datasets/Smartphone-Based+Recognition+of+Human+Activities+and+Postural+Transitions#)

Data Description:

Samples: 10929 ; Features: 561 ( Physical quantities like jerk, energy etc) ; Classes: 12 {Walking, Walking_upstairs, Walking_Downstairs, Sitting, Standing, Laying, Stand_to_Sit, Sit_to_Stand, Sit_to_Lie, Lie_to_Sit, Stand_to_Lie, Lie_to_Stand }

Models Trained:

Gaussian Naive Bayes, Random Forest classifier, Extra-trees classifier, Multi-layer perceptron (with ReLU activation), Logistic Regression, C-Support Vector Classifier

Results

The highest accuracy was obtained with the SVM ( with PCA ) : 98.26%

Instructions

  1. Navigate to the colab notebook and use the given data to run the code

human-activity-recognition-ml's People

Contributors

singhal373 avatar

Watchers

James Cloos 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.