Skip to main content
. 2022 May 9;22(9):3601. doi: 10.3390/s22093601
Algorithm 1: Edge-Level Evaluation of a PIDS
1 Initialize variables n, npre and npost.
2 Calculate IN for all IIs of the video.
3 If two or more INs intersect, merge them into a single expanded IN.
4 Calculate intrusion beginning neighbourhood IBN for each II.
5 Obtain alarms A(P) from the PIDS.
6 Calculate TP, FN and FP.
7 Calculate precision, recall and other metrics.