Algorithm 1 for detecting Freezing

where the mean value of the box pixel are first average and then
subtracted for the previous mean
Implemented new algorithm taking the std as the freeze score

shows 97% success in the freeze detection, much better than the mean
detection.