Hi,
I have seen your attached paper, it uses spatio-temporal variations to detect motion in the frame. This is an interesting project and I have worked on similar algorithms to detect motion in Python and MATLAB. Please contact for further details.
Regards,
Talal