Fig. 5: Definition of the confusion matrices.

Confusion matrix of the resting window \({C}_{{w}_{r}}:= \{T{P}_{{w}_{r}},F{P}_{{w}_{r}},F{N}_{{w}_{r}},T{N}_{{w}_{r}}\}\) embedded in the confusion matrix of the prediction window \({C}_{{w}_{p}}:= \{T{P}_{{w}_{p}},F{P}_{{w}_{p}},F{N}_{{w}_{p}},T{N}_{{w}_{p}}\}\). The metrics are calculated based on both confusion matrices.