Researchers in Japan have developed an algorithm that categorizes the images that sleeping test subjects see. The program can determine basic information about images with 60 percent accuracy.