The same way that we eventually found out how tornadoes work. Examining them. If one person has emotions, and thinks about doing a violent thing over something, and then sees another person doing the exact same violent thing, than that person can assume that that person did it because of emotions. Also, humans can communicate. Tornadoes cannot, as far as we have been able to determine