A Literal Fever Dream
James Cameron is a very talented illustrator, and drew some of the first concept art of The Terminator himself, well before a production team was ever assembled. But the vision of the Terminator as a character literally came from a malnourished fever dream Cameron had where he envisioned a robotic metal skeleton rising from the flames.
He drew the image, and worked backward from the image to write the script.