Git Product home page Git Product logo

dynamicwhar's Introduction

1 DynamicWHAR

This is the official implementation of paper "Towards a Dynamic Framework for Multi-Sensor-Based Wearable Human Activity Recognition". Accepted by PACM IMWUT / UbiComp 2022.

In this paper, we propose a lightweight yet efficient GCN-based dynamic inter-sensor correlations learning framework called DynamicWHAR for automatically learning the dynamic correlations between sensors.

In Initial Feature Extraction module, the initial features of each sensor is extracted separately. The architecture of Initial Feature Extraction module is shown below.

In Dynamic Information Interaction module, the dynamic correlations between sensors are learned automatically, and each sensor aggregates the information of other sensors according to their specific correlations. The architecture of Dynamic Information Interaction module is shown below.

2 Prerequisites

  • Python 3.6.12
  • PyTorch 1.2.0
  • math, sklearn, tensorboardX

3 Data Preparation

For your convenience, the preprocessed data is provided here.

  • Put the preprocessed data into the following directory structure
- Dataset/
 - opp/
   - opp_24_12/
   - opp_60_30/
      ... # preprocessed data of Opportunity
 - realworld/
   - realworld_40_20/
   - realworld_100_50/
      ... # preprocessed data of RealWorld
 - realdisp/
   - realdisp_40_20/
   - realdisp_100_50/
      ... # preprocessed data of Realdisp
 - skoda/
   - skoda_right_78_39/
   - skoda_right_196_98/
      ... # preprocessed data of Skoda

Links of raw datasets:

4 Training & Testing

Here is the descriptions about the arguments:

Argument Description
model The model name (default='DynamicWHAR')
dataset The dataset name (default='opp_24_12')
Scheduling_lambda The scheduling lambda (default=0.995)
test_user The ID of test user (default=0)
seed The random seed (default=1)
no_cuda Disables CUDA training (default=False)

You can change the config depending on what you want:

python main.py --model <model>  --dataset <dataset> --Scheduling_lambda <scheduling_lambda>  --test_user <test_user>  --seed <seed> --no_cuda <no_cuda>

5 Citation

If you find this work useful, please consider to cite as follows:

@article{miao2022towards,
    title={Towards a Dynamic Framework for Multi-Sensor-Based Wearable Human Activity Recognition},
    author={Shenghuan Miao and Ling Chen and Rong Hu and Yingsong Luo},
    journal={Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies},
    volume={6},
    number={3},
    pages={1--25},
    year={2022},
    publisher={ACM New York, NY, USA}
}

6 Acknowledgements

We wish to thank the reviewers for your highly valuable comments on the paper.

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.