A video camera connected to facial recognition software gave the robot feedback: When it made a movement that resembled a "real" expression, it received a reward signal.
The camera works by illuminating objects with a laser that emits a different infrared frequency for every single pixel, allowing them to custom-amplify a signal that would otherwise be too dim to see.