Behavior monitoring through automatic analysis of video sequences