| Algorithm 1 Human activity recognition method with SDAE. |
| Input: Raw dataset D |
| Output: Activity types of testing dataset |
| 1: Data Preprocessing: |
| 2: Segment the dataset according to sampling frequency |
| 3: Apply the random oversampling |
| 4: Standardize the dataset to obtain input vector |
| 5: Divide the dataset into training dataset , validation dataset , test dataset |
| 6: Pretraining: |
| 7: while Hidden layers do |
| 8: The dataset in is corrupted into by adding a denoising factor. Then let as input to train l-th layer of stacked denoising autoencoder. |
| 9: The output of l-th layer will be the input of l + 1-th layer |
| 10: l += 1 |
| 11: end while |
| 12: Fine-tuning: |
| 13: Fine-tune the whole network by applying backpropagation. Utilize labeled dataset to train softmax layer. |
| 14: Test: |
| 15: Use the and to train model and validate performance of model respectively. Recognize the activity type of test data . |