Skip to main content
. 2020 Nov 5;20(21):6300. doi: 10.3390/s20216300
Algorithm 1. Deep learning-based complex activity identification training procedure.
 1: Input: Training acceleration sample Xn
 2: Output: Set of activity detail performances
 3: Sensor Data preparation
 4: Obtain the acceleration sensor data from smartphone
 5: Segment the sensor data using sliding window
 6: Compute the magnitude using Equation (16)
 7: Compute the pitch-roll values using Equations (17) and (18)
 8: Network Parameter Settings
 9: Set the number of hidden layers and neurons
10: Max epoch values
11: Sparsity regularization values
12: Train the stacked autoencoder using greedy-wise layer approach
13: Compute the cost function of the autoencoder algorithm at each layer using Equations (3)–(5)
14: Set the sparsity regularization values using Equations (6)–(9)
15: Obtain the network output
16: Stack the pre-trained network with their parameter values
17: Train the Softmax classifier to estimate their parameters
18: Minimize the cost function
19: Fine-tune the stacked autoencoder network weights using gradient descent
20: Obtain the activity details