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
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
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