An adaptive video surveillance architecture for behavior analysis