In a lot of my stories featuring androids I mention this A.I. brain feature called: Emo-ware.
Well, this blog post gets into what the f*ing it’s all about.
Also, I’ve included a Ted Talk YouTube link at the bottom of the post that gets into how human emotions work.