Skip to main content
. 2021 Aug 31;21(17):5865. doi: 10.3390/s21175865
Algorithm 2 Fault Detection and Identification
  • 1:

    for j=1,2,3,…,mdo                 ▹ generate the Binary_mat

  • 2:

        for i=1,2,3,…,K do

  • 3:

            if Rj(fir)>RiTH then

  • 4:

               Binary_mati,j=1

  • 5:

            else

  • 6:

               Binary_mati,j=0

  • 7:

            end if

  • 8:

         end for

  • 9:

      end for

  • 10:

    fori=1,2,3,…,Kdo              ▹ generate the Probability_mat

  • 11:

        calculate Probability_mati                      ▹ Equation (42)

  • 12:

     end for

  • 13:

    initialize M as index sliding windows         ▹ identify the fault frequency bands fkf

  • 14:

    for  i=1,2,3,…,K do

  • 15:

        if ∑j=−MMProbability_mati+j≥pTH then              ▹ Equation (43)

  • 16:

            H0 is true, set the fault frequency band as fkf=fir             ▹ Equation (44)

  • 17:

        end if

  • 18:

    end for

  • 19:

    forj=1,2,3,…,m do         ▹ update the Binary_mat according to the fkf

  • 20:

        for i=1,2,3,…,K do

  • 21:

            if Binary_mati,j=1 and any(index(fkf)=j)=1 then

  • 22:

                 Binary_mati,j=1

  • 23:

            else

  • 24:

               Binary_mati,j=0

  • 25:

            end if

  • 26:

        end for

  • 27:

    end for

  • 28:

    calculate fdetect                               ▹ Equation (39)

  • 29:

    calculate fseverity                            ▹ Equation (45)