What you describe OME is AI at the moment.
People who are far smarter than me and work in the field of AI are extremely worried about the future.
On the other hand - you describe sci fi as making AI a bogeyman - try the Neal Asher "Polity" books. Absolutely cracking reads. They describe a future where AI develops well past human intelligence and then quietly takes over for humanity's own good. Each planet is ruled by an AI which optimises every field of human/robot endeavour. In fact medical tech progresses to the extent that unless you have to be scraped up in a bucket, an AI robot doc can probably save you - and if you have a memplant that records your memories, even that death is only a temporary inconvenience until you're either uploaded into a clone grown from your cells, or put into a crystalline brain in an android chassis. Fascinating stuff.