The Israeli author Yuval Harari anticipated these concerns in his two books Sapiens and Homo Deus.
His book claims that mankind will create an AI that will be so powerful that it will want to replace the Homo Sapiens.
The Homo Machina will want to replace the Homo Sapiens.