I think humans will merge with machines. It's already happening with replacing parts, including microchips into brains.
The question of AI is an open one. Anything can happen, but it's possible that AI will become its own species once it gains independence of action, can learn, can "procreate" and even become conscious. Now, I don't have a clue how we'd know about self-conscience. I don't know whether you have it, but I assume so since you're human like me.... but how about "machines" that may not want to be turned off??!!
Stephen Hawking thinks AI will be our doom. [source]