servomac / Human-Activity-Recognition

Use a LSTM network to predict human activities from sensor signals collected from a smartphone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Human Activity Recognition from smartphone signals

Donate

Usage

Download the dataset:

wget https://archive.ics.uci.edu/ml/machine-learning-databases/00240/UCI%20HAR%20Dataset.zip
unzip UCI\ HAR\ Dataset.zip

Build the image and run:

docker build -t keras .
docker run -it --env .env.sample -v `pwd`:/app keras python3 main.py

Results

Confusion matrix:

Pred                LAYING  SITTING  STANDING  WALKING  WALKING_DOWNSTAIRS  WALKING_UPSTAIRS
True
LAYING                 510        0        27        0                   0                 0
SITTING                  0      385       103        1                   0                 2
STANDING                 0       77       453        2                   0                 0
WALKING                  0        0         0      464                  14                18
WALKING_DOWNSTAIRS       0        1         1        3                 407                 8
WALKING_UPSTAIRS         0        0         0       14                  19               438

Resources:

Davide Anguita, Alessandro Ghio, Luca Oneto, Xavier Parra and Jorge L. Reyes-Ortiz. Human Activity Recognition on Smartphones using a Multiclass Hardware-Friendly Support Vector Machine. International Workshop of Ambient Assisted Living (IWAAL 2012). Vitoria-Gasteiz, Spain. Dec 2012

About

Use a LSTM network to predict human activities from sensor signals collected from a smartphone

License:GNU General Public License v3.0


Languages

Language:Python 93.6%Language:Dockerfile 6.4%