|
Algorithm 1: MLSTM-iForest |
| 1: |
Inputs:
—time-series source data, S—sliding window step, H—height limit, |
| 2: |
N—number of trees, A—abnormal score threshold |
| 3: |
Outputs:
classification result |
| 4: |
Standardizing to get
|
| 5: |
Inputting into MLSTM to get predicted data
|
| 6: |
Calculating the deviation index based on S
|
| 7: |
Building iForest based on , H, and N
|
| 8: |
Outputting abnormal from iForest |
| 9: |
if
> A |
| 10: |
= abnormal
|
| 11: |
else
|
| 12: |
= normal
|
| 13: |
return
|