Skip to main content
. 2020 Feb 4;20(3):823. doi: 10.3390/s20030823
Algorithm 1: MLSTM-iForest
1:   Inputs: Xt,i—time-series source data, S—sliding window step, H—height limit,
2:     N—number of trees, A—abnormal score threshold
3:   Outputs: Rt,i classification result
4:   Standardizing Xt,i to get Xt,in
5:   Inputting Xt,in into MLSTM to get predicted data Ti+n,ip
6:   Calculating the deviation index indexs based on S
7:   Building iForest based on indexs, H, and N
8:   Outputting abnormal Scoret,i from iForest
9:   if Scoret,i> A
10:       Rt,i = abnormal
11:   else
12:     Rt,i = normal
13: return Rt,i Rt,i