Spatio-temporal representation learning : applications to manufacturing planning and pedestrian crowd analysis