Some software already tries to read and affect human emotions: link
Sample:
EmoSPARK, say its creators, is dedicated to your happiness. To fulfil that, it tries to take your emotional pulse, adapting its personality to suit yours, seeking always to understand what makes you happy and unhappy.
Some software already tries to read and affect human emotions: link
Sample: