Threat Algorithm

Each sensor is given a different weight value based on how much of a threat the action triggering the sensor will create. The values are distributed so that the total sum for all of the sensors adds up to 10, which is the maximum threat level. Each sensor has its own threshold for detecting activity which determines whether or not it will be contributing to the overall threat score. Additionally, if the heartbeat of a certain node is not detected, meaning that an attacker has manually switched off the node, the sum of the threat weights of all the sensors in that node is added to the threat score. Finally, depending on the threat score, the user is notified of whether there is complete safety, potential activity, suspicious activity, or a critical threat. If the threat score reaches an index of 8 out of 10, the alarm and external encryption are triggered.

In order to prevent the threat level from immediately decreasing after an action is completed, such as opening a door and closing it right after, the algorithm uses the magnitude of the difference in the last 10 values from a given sensor to determine the rate of decay of that sensor's contribution to the overall threat score.