GitXplorerGitXplorer
a

PAMAP

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
8d5641d48ddbaf3c5573168a1d9dfef04e7846b1

Merge pull request #8 from alexchow/setup-instructions

aalexchow committed 11 years ago
Unverified
9df45eaf6c0923f5be12ea3e6213d42d4cf5177e

Merge pull request #7 from alexchow/real-features

aalexchow committed 11 years ago
Unverified
0a08208618a32f2b6b6ee8f33cb4ac010c66e358

Maxmium value feature

committed 11 years ago
Unverified
1c039f307e5f53e10b251fa9bfa133a0f7b0b62c

Merge pull request #6 from alexchow/basic-view

aalexchow committed 11 years ago
Unverified
fbe32fe1226402f56162cc04c206761ce1564dbf

Draw multiple features and charts to the page

committed 11 years ago
Unverified
a9855995b2bfed76b84dd6b269e5c6be86a5e575

Merge pull request #5 from alexchow/outside-connections

aalexchow committed 11 years ago

README

The README file for this repository.

Physical Activity Monitoring

Alexander Chow for CS 886 project at University of Waterloo.

For Human Activity Recognition of the PAMAP2 Dataset

[1] A. Reiss and D. Stricker. Introducing a New Benchmarked Dataset for Activity Monitoring. The 16th IEEE International Symposium on Wearable Computers (ISWC), 2012.

Setup

Install all the necessary programs and tools (these instructions are for homebrew. If you use apt-get, that also works).

brew install pip
pip install flask

Clone the git repository:

git clone https://github.com/alexchow/PAMAP.git
cd PAMAP

Download the data set:

wget http://archive.ics.uci.edu/ml/machine-learning-databases/00231/PAMAP2_Dataset.zip
unzip PAMAP2_Dataset.zip

Populate the sqlite database with the dataset

python start.py populatedb

Note: if the python process is getting killed, it's probably linux's Out-of-memory killer. Set up a swap file

Run the server:

python start.py

You can see data and features visualized in your web browser at

http://localhost:5000/view

In the source code, you can see that it uses the URL for deciding the page view. Queries accepted are as follows:

Query Value
windowInterval The number of samples in each time window. Default = 200
activities Comma separated list of activity IDs to use. Default = 'handAccX', handAccY,chestAccX,chestAccY,ankleGyrX,heartrate
data_keys Comma-separated list of raw data columns to use. Example: handAccX,chestGyrY,heartrate. Default uses all sensor data
numWindows The number of time windows to use. Default = 3

An example query is:

http://localhost:5000/view?windowInterval=250&numWindows=4&data_keys=handAccX,chestAccX,ankleGyrX