Giter Site home page Giter Site logo

diheal / resampling Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 5.0 68 KB

Sensor Data Augmentation by Resampling for Contrastive Learning in Human Activity Recognition

License: GNU General Public License v3.0

Python 100.00%
contrastive-learning human-activity-recognition sensor-data self-supervised-learning resampling augmentation-methods

resampling's Introduction

Sensor Data Augmentation by Resampling in Contrastive Learning for Human Activity Recognition

To address the problem that human activity recognition based on sensor data performs poorly in the contrastive learning framework, we propose resampling data augmentation and adapting MoCo as a contrastive learning framework for HAR

SimCLRHAR

MoCoHAR

More details can be found in our paper: https://arxiv.org/abs/2109.02054

This repository presents some implementation details of the paper and the code runtime environment

Requirements

This project code is done in Python 3.7 and third party libraries.

TensorFlow 2.x is used as a deep learning framework.

The main third-party libraries used and the corresponding versions are as follows:

  • tensorflow 2.3.1

  • tensorflow_addons 0.15.0

  • numpy 1.18.5

  • scipy 1.5.0

  • scikit-learn 0.23.1

  • matplotlib 3.3.4

Running

This demo can be run with the following command:

python SimCLRHAR.py
python MoCoHAR.py

Code Organisation

The main content of each file is marked as follows:

  • Augment.py: This file contains a variety of sensor data augmentation methods.
  • DeepConvLSTM.py: This file contains the network structure of DeepConvLSTM
  • MoCoHAR.py: This file contains the details of MoCoHAR and the methods how it works.
  • SimCLRHAR.py: This file contains the details of SimCLRHAR and the methods how it works.

Citation

If you find our paper useful or use the code available in this repository in your research, please consider citing our work:

@ARTICLE{9925142,
  author={Wang, Jinqiang and Zhu, Tao and Gan, Jingyuan and Chen, Liming Luke and Ning, Huansheng and Wan, Yaping},
  journal={IEEE Sensors Journal}, 
  title={Sensor Data Augmentation by Resampling in Contrastive Learning for Human Activity Recognition}, 
  year={2022},
  volume={22},
  number={23},
  pages={22994-23008},
  doi={10.1109/JSEN.2022.3214198}}

Reference

resampling's People

Contributors

diheal avatar jqwangai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.