Activity-based temporal segmentation for videos of interacting objects using invariant trajectory features