Skip to main content
. 2024 Feb 18;24(4):1304. doi: 10.3390/s24041304
Algorithm 1 Anomaly prediction notification
Description: The API exports the result as a worksheet. The cells of the worksheet can be used in more applications, such as predictive maintenance. While users receive the predicted result from the cells of the worksheet and reach the threshold value, the proposed macro can automatically send notifications to other staff.
Procedure AlarmNotify (date_cursor, attriValue, attriThres)
  • 1:

    Initialize:

  • 2:

    Let emailAddrQueue be a queue of email address items

  • 3:

    Let date_cursor be a temporary cursor of the currently used resource

  • 4:

    Let sysDate be the current date time of running the algorithm

  • 5:

    Let attriValue be the value of the target attribute

  • 6:

    Let attriThres be the threshold value of the target attribute

  • 7:

    sysDate = the current system date

  • 8:

       if (date_cursor = null) then

  • 9:

        dat_cursor ← sysDate

  • 10:

    endif

  • 11:

    Begin:

  • 12:

    foreach Item of emailAddrQueue do

  • 13:

      if (attriValue ≥ attriThres) then

  • 14:

       date_cursor ← sysDate

  • 15:

       form the notification content

  • 16:

       execute the automatic notification

  • 17:

      endif

  • 18:

    endfor

  • 19:

    End Procedure