Skip to main content
. 2020 Oct 12;20(20):5766. doi: 10.3390/s20205766
Subroutine 5 Anomaly Detection of Any Sequence σ

Input: Model M={E,En,LP,P,T}, test sequence σ

Output: Detect if σ is normal or abnormal

  • 1:

    Extract the event set E^ of σ.

  • 2:

    ifE^En or EE^ then

  • 3:

    return σ is abnormal.

  • 4:

    end if

  • 5:

    SLSequence Splitting Routine(σ,LP,E)

  • 6:

    for pattern pair (pi,pi+1) in SL do

  • 7:

    if T(pi,pi+1) is then

  • 8:

      return σ is abnormal.

  • 9:

    end if

  • 10:

    end for

  • 11:

    returnσ is normal.