Brian Aldiss, a former bookseller whose horrific childhood and wartime exploits in Burma kindled a fecund imagination that animated scores of novels, anthologies, memoirs and short stories, like the one that inspired the Steven Spielberg science fiction film “A.I.,” died on Saturday in Oxford, England, hours after celebrating his 92nd birthday.

His death was confirmed by his son Tim Aldiss.

Mr. Aldiss was celebrated largely for his science fiction, most famously the novels “Non-Stop” (1958), “Hothouse” (1962), “Greybeard” (1964), the Helliconia trilogy (1982-85) and “Frankenstein Unbound” (1973), which in 1990 was the basis of the last film directed by Roger Corman.

He collaborated with Stanley Kubrick and then, after Mr. Kubrick’s death in 1999, with Mr. Spielberg in transforming Mr. Aldiss’s short story “Supertoys Last All Summer Long” into the emotionally challenging 2001 fairy tale “A.I.” (the letters stand for “artificial intelligence”), about a bereft mother who consoles herself with a cybernetic son.

He also found grist in his personal life for autobiographical novels, like “The Hand-Reared Boy” (1970), and memoirs, including “The Twinkling of an Eye: My Life as an Englishman” (1998).