GitXplorerGitXplorer
a

PAMAP

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
a1e8382435fba61e4f0c1088f029cde756eaa812

Merge pull request #13 from alexchow/real-features

aalexchow committed 11 years ago
Unverified
39c14b9b89d2cc0cf3f75b6a2fa83e641bc8b70c

Fix DFT typo

committed 11 years ago
Unverified
40ac669d40d56180c35086c31accccbdbecc9525

DFT and comparison between all aggregate features

committed 11 years ago
Unverified
fd794d083c815cca459e0d7b251b81d04afb9e75

Fix activities query parsing bug

committed 11 years ago
Unverified
54338af718f9d77e2e0b702ac05c88c49d04b2bb

Merge pull request #12 from alexchow/setup-instructions

aalexchow committed 11 years ago
Unverified
78d22564f8eccab874a678ecdb4c6a6654510858

Fix readme bug

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