It's this device invented by Stephen Laberge. It's like a dream mask where you put on, and when you sleep it detects your rapid eye movements, which indicates that you're dreaming, and then flashes these lights so that they can enter your dream as cues.