Detection of abnormal behaviour in surveillance applications