Scientists have developed an AI algorithm that can decode pigs' emotions based on their sounds.The research aims to help farmers understand the emotional and physical well-being of pigs.Understanding pig emotions can help identify and address potential issues affecting the animals.The AI algorithm could also be adapted to understand the emotions of other animals.