The film A.I.- Artificial Intelligence is purportedly inspired by a science fiction short story,"Supertoys Last All Summer Long" by Brian Aldiss, first published in a 1969 issue of Harper's Bazaar.
Like the film, the story portrays the loneliness of humanity in an age of intelligent machines.
In both the film and story, a woman named Monica and her husband Henry live in a tightly regulated society where procreation is limited due to overpopulation. They compensate with robots built and programmed to love humans.
As the narrator in the film explains, “When most governments in the developed world introduced legal sanctions to strictly license pregnancies, which was why robots, who were never hungry and did not consume resources beyond those of their first manufacture, were so essential an economic link in the chain mail of society.”