An artificial intelligence system is able to detect pain levels in sheep, which could aid in early diagnosis and treatment of common, but painful, conditions in animals.