Coder Social home page Coder Social logo

princebari / human-activity-recognition-using-classical-ml-and-lstm Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 9.7 MB

This GitHub repository is focused on Human Activity Recognition using classical machine learning algorithms and Long Short-Term Memory (LSTM) models. The repository contains code and implementation details for classifying different human activities.

Jupyter Notebook 100.00%

human-activity-recognition-using-classical-ml-and-lstm's Introduction

Human-Activity-Recognition-using-Classical-ML-and-LSTM

image

Introduction

Human Activity Recognition (HAR) uses sensors to predict what activities a person is doing based on their movements. These movements can be normal indoor activities like standing, sitting, jumping, or going up stairs. Sensors, often located on a smartphone or vest, record accelerometer and gyroscope data in three dimensions. HAR identifies actions by exploiting information from various sources like environmental or body-worn sensors. Once the subject's activity is recognized, an intelligent computer system can offer assistance. Deep learning methods have been successful in HAR due to their ability to automatically learn higher-order features. However, the challenge lies in the large volume of sensor data collected, and conventional pattern recognition approaches heavily rely on hand-crafted feature extraction, hindering their generalization performance. Recent advancements in deep learning have made it possible to perform automatic high-level feature extraction, achieving promising performance in many areas of sensor-based activity recognition.

Dataset Description

The Human Activity Recognition database was built from the recordings of 30 study participants performing activities of daily living (ADL) while carrying a waist-mounted smartphone with embedded inertial sensors. The objective is to classify activities into one of the six activities performed.

The experiments have been carried out with a group of 30 volunteers within an age bracket of 19-48 years. Each person performed six activities (WALKING, WALKING_UPSTAIRS, WALKING_DOWNSTAIRS, SITTING, STANDING, LAYING) wearing a smartphone (Samsung Galaxy S II) on the waist. Using its embedded accelerometer and gyroscope, we captured 3-axial linear acceleration and 3-axial angular velocity at a constant rate of 50Hz. The experiments have been video-recorded to label the data manually. The obtained dataset has been randomly partitioned into two sets, where 70% of the volunteers was selected for generating the training data and 30% the test data.

Accelerometer and Gyroscope readings are taken from 30 volunteers(referred as subjects) while performing the following 6 Activities.

1.Walking

2.WalkingUpstairs

3.WalkingDownstairs

4.Standing

5.Sitting

6.Lying

  • Readings are divided into a window of 2.56 seconds with 50% overlapping.

  • Accelerometer readings are divided into gravity acceleration and body acceleration readings, which has x,y and z components each.

  • Gyroscope readings are the measure of angular velocities which has x,y and z components.

  • Jerk signals are calculated for BodyAcceleration readings.

  • Fourier Transforms are made on the above time readings to obtain frequency readings.

  • Now, on all the base signal readings., mean, max, mad, sma, arcoefficient, engerybands,entropy etc., are calculated for each window.

  • We get a feature vector of 561 features and these features are given in the dataset.

  • Each window of readings is a datapoint of 561 features.

Machine Learning Objective

  • Given a data classifiy it into a one of the 6 Activity

  • Multi-Class Classification Problem

Perfomance Metric

  • Accuracy

  • Confusion Metrics

human-activity-recognition-using-classical-ml-and-lstm's People

Contributors

princebari avatar

Watchers

Kostas Georgiou 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.