Meta-HAR: Federated Representation Learning for Human Activity Recognition
Paper published in TheWebConf 2021
Details in ./data_process/readme.md
-
For collected dataset:
cd data_process python feature_extraction.py --in_dir 'dir stores the original txt data' --out_dir 'dir which is used to store the pickle data'
The
feature_extraction.py
generates pickle files and thetrans_dict_collect.pickle
file. -
For processing of the HHAR dataset please refer to: https://github.com/yscacaca/HHAR-Data-Process. To run on public dataset for yourself, make the dataset to have the same format as mentioned in the ./data_process/readme.md
- data process as mentioned above.
- Run Meta-HAR with default hyper-parameters.
python Central.py # for central model.
python meta-har.py # for meta-har
Note: Configure your own data and output dirs
To run other baselines:
- Reptile: Change the
norm_embed
tonorm_cce
in the Meta-HAR and remove fine-tune. - Meta-HAR-CE: Use "target" instead of "target_t" in fine-tune.
Processing code for the HHAR and the USC-HAD datasets.
Chenglin Li - [email protected]