Giter VIP home page Giter VIP logo

arturjordao / wearablesensordata Goto Github PK

View Code? Open in Web Editor NEW
93.0 8.0 26.0 158.3 MB

This repository provides the codes and data used in our paper "Human Activity Recognition Based on Wearable Sensor Data: A Standardization of the State-of-the-Art", where we implement and evaluate several state-of-the-art approaches, ranging from handcrafted-based methods to convolutional neural networks.

Python 100.00%
wearable-devices sensor-data human-activity-recognition state-of-the-art benchmark-framework

wearablesensordata's Introduction

WearableSensorData

This repository provides the codes and data used in our paper "Human Activity Recognition Based on Wearable Sensor Data: A Standardization of the State-of-the-Art", where we implement and evaluate several state-of-the-art approaches, ranging from handcrafted-based methods to convolutional neural networks. Also, we standardize a large number of datasets, which vary in terms of sampling rate, number of sensors, activities, and subjects.

Requirements

Quick Start

  1. Clone this repository
  2. Run
    python <Catal2015|...|ChenXue2015>.py data/<SNOW|FNOW|LOTO|LOSO>/<MHEALTH|USCHAD|UTD-MHAD1_1s|UTD-MHAD2_1s|WHARF|WISDM>.npz
    For example
    python Catal2015.py data/LOSO/MHEALTH.npz

Data Format

The raw signal provided by the original dataset was segmented by using a temporal sliding window of 5 seconds. Its format is (number of samples, 1, temporal window size, number of sensors)

Contributing

Contributions to this repository are welcome. Examples of things you can contribute:

  • Implementation of other methods. See template_hancrafted.py and template_convNets.py
  • Accuracy Improvements.
  • Reporting bugs.

The table below shows the mean accuracy achieved by the methods using the Leave-One-Subject-Out (LOSO) as validation protocol. The symbol 'x' denotes which was not possible to execute the method on the respective dataset.

Method MHEALTH PAMAP2 USCHAD UTD-MHAD1 UTD-MHAD2 WHARF WISDM Mean Accuracy
Kwapisz et al. 90.41 71.27 70.15 13.04 66.67 42.19 75.31 61.29
Catal et al. 94.66 85.25 75.89 32.45 74.67 46.84 74.96 69.29
Kim et al. 93.90 81.57 64.20 38.05 64.60 51.48 50.22 63.43
Chen and Xue 88.67 83.06 75.58 x x 61.94 83.89 78.62
Jiang and Yin 51.46 x 74.88 x x 65.35 79.97 67.91
Ha et al. 88.34 73.79 x x x x x 81.06
Ha and Choi 84.23 74.21 x x x x x 79.21
Mean Accuracy 84.52 78.19 72.14 27.84 68.64 53.55 72.87 x

Please cite our paper in your publications if it helps your research.

@article{Jordao:2018,
author    = {Artur Jordao,
Antonio Carlos Nazare,
Jessica Sena and
William Robson Schwartz},
title     = {Human Activity Recognition Based on Wearable Sensor Data: A Standardization of the State-of-the-Art},
journal   = {arXiv},
year      = {2018},
eprint    = {1806.05226},
}

wearablesensordata's People

Contributors

arturjordao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wearablesensordata's Issues

UTD-MHAD window length, preprocessing code

Thank you so much for sharing the processed data and code of different methods. These are valuable for the research in this domain.

One quick question is that it seems on UTD-MHAD dataset a 1-sec window is used while for other datasets the standard 5-sec window is used. What was the reason for this?
Also, I wonder if it is possible to share the preprocessing code on each dataset too (from raw recording to the npz windowed data)?

Thank you!

How to caculate the mean accuracy?

Hi,
I have done some experiments on HAR, and find that the mean accuracy varies from different subjects. In your experiment, have you compute the mean value for different users or just leave the first subject for test.

Hyperparameter problem

Hello, thanks for the paper and the codes that I got a lot of inspiration, and implement in Pytorch. But when I run the code which download in github in my own environment, the result is not the same as the paper.For example I turndown the batchsize the result is much better than a big one, and so on. Do I have to turn the hyperparameters for ervery paper‘s code?How can I quick repetition of the results in the paper, thanks a lot!

Label problem

@arturjordao Hello!
I am training the model using your preprocessed dataset.(WISDM.npz, mHealth.npz...)
I was confused when making the confusion matrix.
Because I don't know the labels belong to which activities.
Could you give me a hint!
Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.