The primary source of A.I. is Brian Aldiss's "Supertoys Last All Summer Long," and two of his other very short stories about David, the robot with the mommy problem. Kubrick jammed David's story together with the story of Pinocchio. This misses the point of Aldiss's tale: Pinocchio wants to earn the right to be real, but David the robot doesn't get it that he's not a real boy. In the film, David (portrayed with sensitive precision by the eeriest boy actor on earth, Haley Joel Osment) has a more primal urge: to make Mommy (the generically cute Frances O'Connor) love him, no matter what it takes.
When David enters his human Mommy and Daddy's house, he's backlit to look like the tall, spindly extraterrestrials in Close Encounters. Then he's revealed to be an almost perfect replica of a human: a bit shiny-faced and stiff, but convincing, even by the standards of the day (the usual futuristic post-apocalyptic Earth, whose advanced gizmo science produces what Kubrick used to call a "mechanarchy"). At first, sitting at dinner, shot from above through a circular lamp that echoes the War Room in Dr. Strangelove, David seems remote. When he emits a barking laugh and points at the strand of spaghetti dangling from Mommy's chin, and then Mommy and Daddy laugh, it's hard to say whose laugh is more mechanical.
After Mommy imprints herself on David according to the owner's manual, however, his face melts into beatific rapture. Osment does a good job of conveying love at first sight. David hugs Mommy. Later, he's shot from below, with a lamp granting him a halo, like the one that gives Strangelove a nimbus when doomsday arrives. David gets his halo when he becomes aware of death: "Mommy, will you die?"
It's creepy, because of course Mommy doesn't love David--he's just a substitute for her real son, Martin (Jake Thomas), who must remain comatose for years until science can revive him. (The lad is stashed in a bubble bed like the ones astronauts hibernate in in 2001.) At last, Martin is defrosted and comes home. It's bad for David, an echo of the displacement of Alex by Joe the Lodger in A Clockwork Orange. The convincingly bratty Martin taunts David, a cold, Kubrickian echo of the domestic comedy of Spielberg's enchanted suburbia.
Two scenes of mythic impact ensue. Martin tricks David into snipping a lock of Mommy's hair as she makes like Sleeping Beauty one night; Mommy makes excuses for him. But at a pool party soon after, the real boys threaten David, who clutches Martin, begs, "Keep me safe!" and falls with him into the pool. Martin requires CPR after being fished out, and as he's receiving it, the camera pans back from David, infinitely disconsolate on the pool bottom. He recedes, like the castoff astronaut drifting into space in 2001 (the one who doesn't get to be reborn as the Star Child).
David recedes yet again later in the film--in Mommy's rearview mirror when she abandons him in the woods. This is palpable horror. It's not a standard Spielberg kiddie-peril scene, though, because one uneasily identifies with the mom's predicament--at least she didn't send him back to the factory to be destroyed--and David's monomania has begun to alienate our affections just a bit.
Into the woods goes David. He glimpses those scavenging robots--a folksy lot, like hobos in a 1930s Warner flick, though their busted-upness mainly alludes to the wooden boys hacked up by wicked Stromboli in Pinocchio. He meets his rakish new pal, Gigolo Joe (Jude Law), a robot with hair like a Bob's Big Boy statue, built for sex with lonely human women. Law breathes life into a clammy mise en scène--you'll miss him when he goes. Spielberg made him nicer than Kubrick would've done, but it's no sellout. It simply buries the weirdness deeper. Joe tries to tell David that his mommy doesn't love him any more than Joe's dates love him, but David won't listen.