From how an AI artist broke records with a painting, to an algorithm that might tell us how pigs feel... these are the latest stories from the AI revolution. Angela Johnston reports.