GitXplorerGitXplorer
a

PAMAP

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
748e211ac8f5d37ef7e2d4b7f65849178a7b53bd

Merge pull request #11 from alexchow/setup-instructions

aalexchow committed 11 years ago
Unverified
710bde70d2e0de238986342f029cb792d82307a8

Add query instructions

committed 11 years ago
Unverified
be4e15d4cf94677c09b3da9c92d7beab90635049

Merge pull request #10 from alexchow/setup-instructions

aalexchow committed 11 years ago
Unverified
9752fc0653bc59aa0c5c7a5a263be45d9d2d0ca9

Fix readme formatting

committed 11 years ago
Unverified
c17c8b8d16c5a459e5fd3feb1111629b7438484d

Merge pull request #9 from alexchow/real-features

aalexchow committed 11 years ago
Unverified
5aacf5fa8a1efa712eaa5121f009fe8a3dc7795a

Two way compare

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