| Algorithm 2 Outlier Detection Voting | |
| 1: | PROCEDURE: Outlier Detection using Voting |
| 2: | Input: Sa, Sp, n; Actual sensor data: Sa; Predicted sensor data: Sp; Number of physiological parameters: n |
| 3: | Output: At, Af; True alarm: At; Sensor anomaly = False alarm: Af |
| 4: | for i = 1 : n do |
| 5: | error(e) between Sa(i) and Sp(i) > threshold |
| 6: | y(i) ← e (i); |
| 7: | if count(y = i) > average n then |
| 8: | Return At; |
| 9: | Else |
| 10: | Return Af; |
| 11: | end if |
| 12: | end |