Artificial intelligence could eventually help us understand when animals are in pain or showing other emotions — at least ...