Teaching machines to predict human behaviors