Residual feature for anormaly detection or action recognition