The latest in Apple’s string of artificial-intelligence purchases is a company that specializes in tech that deciphers human emotions.