Robust individual pig tracking