Discovering Hidden Temporal Patterns in Behavior and Interaction