detect and track movement patterns