A small group of people with mid- to late-stage dementia appeared happier and less anxious after spending time with a robotic animal programmed to respond to touch and sound. Larry Greenemeier reports