When René Descartes watched a mechanical figure move with lifelike precision in the 17th century, the scene unsettled him. The machine behaved like a person, yet no one believed it could feel.