Dynamics-based invariants for video analytics