Activity representation with motion hierarchies