- numpy
- pandas
- scipy
- torch
- tqdm
-
Download datasource from here.
-
"git clone" this repository.
-
Run ./data_prepare.sh
Based on different strategy split datasource into training set and testing set.
-
Run ./run.sh
Under the same splitting strategy train specific model.
We recruit 10 subjects and let them wear a smartwatch branded Samsung Gear Sport on the left wrist.
Subjects are required to repeat 18 actions for 10 times.
During the activity conducted, data of accelerometers and gyroscopes as well as corresponding timestamps are recorded, resulting in a dataset with 1800 samples.
The file name with the format of "I_J_K.mat".
- I(1 - 10): the I-th subject.
- J(1 - 18): the J-th action.
- K(0 - 9): the K-th repetition.
Every mat file contains three keys:
- accData(1, 3, sequence length): A sequence of the accelerometer readings.
- gyrData (1, 3, sequence length): A sequence of the gyroscope readings.
- label(1, sequence length): Action labels for each sample point.
@article{wang2022social,
title={Social Distancing Alert with Smartwatches},
author={Wang, Xin and Wu, Xilei and Meng, Huina and Fan, Yuhan and Shi, Jingang and Ding, Han and Wang, Fei},
journal={arXiv preprint arXiv:2205.06110},
year={2022}
}