Prediction and Control with Temporal Segment Models