Probably Ray Kurzweil's The Singularity is Near, from 2005, which helped popularize the idea of the Singularity (not sure if he coined this use of the term, or just borrowed it).AI and how over time it learns and accelerates its learning and the process begins to compound. It was based on an AI book he read.
He's now got an update called The Singularity is Nearer.
IMO, the biggest near-term threat from AI is the potential for misuse by humans. One way to think of it is like how nukes tilted battlefield power dynamics. Except, AI applies to the information domain. Using AI, a lone actor (or small organization) can do things that would've previously taken infeasible numbers of humans.I can't say if it will turn out the way the book's outcome, which isn't good because the book says that ASI super artificial intelligence will see humans as a threat and will turn on them.