A computer can decode the stuff of dreams. By comparing brain activity during sleep with activity patterns collected while study participants looked at certain objects, a computer learned to identify some contents of people’s unconscious reveries.

“It’s striking work,” says cognitive psychologist Frank Tong of Vanderbilt University in Nashville, who was not involved in the research. “It’s a demonstration that brain activity during dreaming is very similar to activity during w...