Skip to main content
. 2020 Oct 12;20(20):5766. doi: 10.3390/s20205766
Subroutine 7 Parallel Relation Table Anomaly Detection Algorithm

Input: Model M={E,En,Er,LP,T0,,T|LP|}, test sequence σ

Output: Detect if σ is normal or not

  • 1:

    Extract the event set E^ of σ.

  • 2:

    ifE^EnorEE^then

  • 3:

    return σ is abnormal.

  • 4:

    end if

  • 5:

    for event pair (ei,ei+1) in σ do

  • 6:

    if T0(ei,ei+1) is then

  • 7:

      return σ is abnormal.

  • 8:

    end if

  • 9:

    end for

  • 10:

    for Loop pattern lpi in LP do

  • 11:

    σ(lpi) = Sequence processing(σ,lpi)

  • 12:

    for event pair (ei,ei+1) in σ(lpi) do

  • 13:

      if Ti(ei,ei+1) is then

  • 14:

       return σ is abnormal.

  • 15:

      end if

  • 16:

    end for

  • 17:

    end for

  • 18:

    returnσ is normal.