Robust time contrastive learning (RTCL)