Skip to content

Human Activity Generation and Recognition using Bidirectional LSTMs

Notifications You must be signed in to change notification settings

Vivek-23-Titan/Bidir-LSTM-HAR-Generation

Repository files navigation

Human Activity Generation and Recognition using Bidirectional LSTMs

This was my final year B.E. project wherein the dataset was from Wireless Sensor Data Mining Lab (WISDM). The objective of the project was to improve the classification accuracy of the dataset by introducing new generated data with the help of bidirectional Long-Short Term Memory(LSTM) networks. This model was first trained on the original dataset and was then used to predict the values of 6 different activities. These generated activities were compared with the original dataset activities and their losses were compared. For classification purpose, a convolution 1D activity classifier was built. This activity classifier was then trained on both the original dataset and the extended dataset, having generated activities. The results showed that the accuracy improved by expanding the dataset.

Detailed information is available in IEEE Paper.

Dataset

The data used for classification is provided by the Wireless Sensor Data Mining (WISDM) Lab and can be downloaded from here. It consists of 1,098,207 examples of various physical activities (sampled at 20Hz) with 6 attributes: user,activity,timestamp,x-acceleration,y-acceleration,z-acceleration, and the activities include: Walking, Jogging, Upstairs, Downstairs, Sitting, Standing.

Code

The code is available in Juypter notebooks divided into following 2 parts:

Results

The results of the comparison between the validation dataset of the both datasets is shown below.

The comparison between the original dataset and the combined dataset is shown with the help of confusion matrix.

Original Dataset Confusion Matrix (~90%) and Combined Dataset Confusion Matrix (94.1%)

  • The maximum accuracy attained by the combined training dataset was 94.1% which is an improvement of 4% over the original dataset.

Requirements

TensorFlow version 2.2.0
Keras version 2.3.1

Citation

@INPROCEEDINGS{9121096,
author={V. {Aswal} and V. {Sreeram} and A. {Kuchik} and S. {Ahuja} and H. {Patel}},
booktitle={2020 4th International Conference on Intelligent Computing and Control Systems (ICICCS)},
title={Real-Time Human Activity Generation using Bidirectional Long Short Term Memory Networks},
year={2020},  volume={},  number={},  pages={775-780},
doi={10.1109/ICICCS48265.2020.9121096}}

About

Human Activity Generation and Recognition using Bidirectional LSTMs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published