Research Article

A Collaborative Filtering Method for Operation Maintenance Behavior in Power Monitoring Systems

Algorithm 3

The workflow of calculating abnormal behavior discrimination threshold based on OTSU.
Input: Set S of all probability prediction values of behavior space
Output: Abnormal behavior discrimination threshold T
1 Obtain the behavior probability set S
2maxScore =0
3for t = min(S) to max(S) by 0.0001/t represents the candidate threshold, traverseall the probabilities between min(S) and max(S), with an increased step size of 0.001 (0.1%)/
4S1={s|s∈S,s≤t}S2={s|s∈S,s>t}
5 Obtain the mean values of m1and m2 in S1 and S2
6 Obtain ratios p1 andp2 ofS1 and in S
7 Obtain the between-cluster variance of S1 andS2 with Formula (6)
8if (maxScore<)
9     T = t
10   end if
11end for
12 Output the final threshold T