As of right now, machines do not have the capability to peer into a human’s soul and see what they’re truly feeling at any given moment.
However, humans are always giving off signals, and machines could use these signals as a source of information to understand emotions.