Skip to main content
. 2020 Sep 8;20(18):5114. doi: 10.3390/s20185114
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 xi
 5: Divide the dataset into training dataset Dtrain, validation dataset Dvalidate, test dataset Dtest
 6: Pretraining:
 7: while l<= Hidden layers Nl do
 8:  The dataset xi in Dtrain is corrupted into xi by adding a denoising factor. Then let xi 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 Dtrain to train softmax layer.
 14: Test:
 15: Use the Dtrain and Dvalidate to train model and validate performance of model respectively.
  Recognize the activity type of test data Dtest.