New artificial intelligence system can tell if a sheep is in pain