Facial recognition software can sense when a sheep is in pain