This repository is the official implementation of A Multi-Graph Convolution Network Based Wearable Human Activity Recognition Method Using Multi-Sensors
To run our code you will need to install the requirements indicated in the requirements.yml file included in the repository and install PyTorch. Before that, you need install anaconda. Those operations must be done on Linux or WSL. Once that is done, run.
conda env create -f requirements.yml
conda activate torch
The cpu version Pytorch are included in requirements.yml. If you need install PyTorch cuda version, please following to reinstall PyTorch.
After installing all dependencies in the requirements.yml file and PyTorch you will be able to run the main.sh script. Use
./main.sh
This script mainly contains 4 steps.
- Download the raw data from the website
- Preprocess the raw data
- Generate data pattern based graph
- Train and test our method.
The preprocessed code and the framework are based on DeepConvLSTM_py3. Great thanks to the original authors for their work!
We also thank the reviewers for their highly valuable comments on the paper.
Please cite this work if you find it useful.